Showing preview only (623K chars total). Download the full file or copy to clipboard to get everything.
Repository: xolstice/protobuf-maven-plugin
Branch: master
Commit: d36a396eaf54
Files: 248
Total size: 553.1 KB
Directory structure:
gitextract_d2avz9m1/
├── .appveyor/
│ └── toolchains.xml
├── .appveyor.yml
├── .editorconfig
├── .gitattributes
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── pull_request_template.md
├── .gitignore
├── .mvn/
│ └── wrapper/
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
├── .travis/
│ └── toolchains.xml
├── .travis.yml
├── AUTHORS
├── CONTRIBUTORS
├── LICENSE
├── NOTICE
├── README.md
├── docs/
│ ├── CODE_OF_CONDUCT.md
│ └── CONTRIBUTING.md
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src/
├── changes/
│ └── changes.xml
├── it/
│ ├── TEST-1/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-10/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-11/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-12/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-13/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── it/
│ │ │ │ └── project1/
│ │ │ │ └── test1.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-14/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── test1.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-15/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-16/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ ├── test1.proto
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-17/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ └── proto/
│ │ └── test.proto
│ ├── TEST-18/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-19/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-2/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ └── verify.groovy
│ ├── TEST-20/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-21/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-22/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── a/
│ │ │ │ └── aaa.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── b/
│ │ │ └── bbb.proto
│ │ └── verify.groovy
│ ├── TEST-23/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── a/
│ │ │ │ └── aaa.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── b/
│ │ │ └── bbb.proto
│ │ └── verify.groovy
│ ├── TEST-24/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ └── pom.xml
│ │ └── verify.groovy
│ ├── TEST-25/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-26/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-27/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ └── pom.xml
│ │ └── verify.groovy
│ ├── TEST-28/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-29/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ ├── test.proto
│ │ │ ├── тест.proto
│ │ │ └── テスト.proto
│ │ └── verify.groovy
│ ├── TEST-3/
│ │ ├── invoker.properties
│ │ └── pom.xml
│ ├── TEST-30/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-31/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-32/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-33/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-34/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-35/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-36/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-37/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-4/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-5/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-6/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-7/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-8/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-9/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto3
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto3
│ │ └── verify.groovy
│ ├── dependencies/
│ │ └── pom.xml
│ ├── settings.xml
│ ├── setup-it-parent/
│ │ ├── invoker.properties
│ │ └── pom.xml
│ └── setup-protoc-plugin/
│ ├── invoker.properties
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── org/
│ └── xolstice/
│ └── protobuf/
│ └── plugin/
│ └── minimal/
│ └── MinimalPlugin.java
├── main/
│ ├── java/
│ │ └── org/
│ │ └── xolstice/
│ │ └── maven/
│ │ ├── plugin/
│ │ │ └── protobuf/
│ │ │ ├── AbstractProtocCompileMojo.java
│ │ │ ├── AbstractProtocMojo.java
│ │ │ ├── AbstractProtocTestCompileMojo.java
│ │ │ ├── MojoConfigurationException.java
│ │ │ ├── MojoInitializationException.java
│ │ │ ├── Protoc.java
│ │ │ ├── ProtocCompileCppMojo.java
│ │ │ ├── ProtocCompileCsharpMojo.java
│ │ │ ├── ProtocCompileCustomMojo.java
│ │ │ ├── ProtocCompileDescriptorSetMojo.java
│ │ │ ├── ProtocCompileJavaScriptMojo.java
│ │ │ ├── ProtocCompileMojo.java
│ │ │ ├── ProtocCompilePythonMojo.java
│ │ │ ├── ProtocPlugin.java
│ │ │ ├── ProtocPluginAssembler.java
│ │ │ ├── ProtocTestCompileCppMojo.java
│ │ │ ├── ProtocTestCompileCsharpMojo.java
│ │ │ ├── ProtocTestCompileCustomMojo.java
│ │ │ ├── ProtocTestCompileDescriptorSetMojo.java
│ │ │ ├── ProtocTestCompileJavaScriptMojo.java
│ │ │ ├── ProtocTestCompileMojo.java
│ │ │ └── ProtocTestCompilePythonMojo.java
│ │ └── toolchain/
│ │ └── protobuf/
│ │ ├── DefaultProtobufToolchain.java
│ │ ├── DefaultProtobufToolchainFactory.java
│ │ └── ProtobufToolchain.java
│ └── resources/
│ ├── META-INF/
│ │ ├── m2e/
│ │ │ └── lifecycle-mapping-metadata.xml
│ │ └── plexus/
│ │ └── components.xml
│ └── winrun4j/
│ ├── README.txt
│ ├── WinRun4J.md5
│ ├── WinRun4J.sha
│ └── WinRun4J.sha.asc
└── site/
├── apt/
│ ├── examples/
│ │ ├── protobuf-dependencies.apt.vm
│ │ ├── protobuf-toolchain.apt.vm
│ │ ├── protoc-artifact.apt.vm
│ │ └── protoc-plugin.apt.vm
│ ├── index.apt.vm
│ └── usage.apt.vm
├── fml/
│ └── faq.fml
└── site.xml
================================================
FILE CONTENTS
================================================
================================================
FILE: .appveyor/toolchains.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>1.8</version>
<vendor>OpenJDK</vendor>
<id>openjdk8</id>
</provides>
<configuration>
<jdkHome>C:/Program Files/Java/jdk1.8.0</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>protobuf</type>
<provides>
<version>3.4.0</version>
</provides>
<configuration>
<protocExecutable>
C:/Users/appveyor/.m2/repository/com/google/protobuf/protoc/3.4.0/protoc-3.4.0-windows-x86_64.exe
</protocExecutable>
</configuration>
</toolchain>
<toolchain>
<type>protobuf</type>
<provides>
<version>3.11.1</version>
</provides>
<configuration>
<protocExecutable>
C:/Users/appveyor/.m2/repository/com/google/protobuf/protoc/3.11.1/protoc-3.11.1-windows-x86_64.exe
</protocExecutable>
</configuration>
</toolchain>
</toolchains>
================================================
FILE: .appveyor.yml
================================================
version: '{build}'
skip_tags: true
environment:
JAVA_HOME: 'C:\Program Files\Java\jdk1.8.0'
install:
# Prepend Java entry to PATH
- cmd: SET PATH=%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-Xmx2g
- cmd: SET JAVA_OPTS=-Xmx2g
- cmd: java -version
# Set up toolchains for java and protoc
- cmd: if not exist %USERPROFILE%\.m2 mkdir %USERPROFILE%\.m2
- cmd: copy .appveyor\toolchains.xml %USERPROFILE%\.m2\
# Download all dependencies that integration tests might need later
# These include protoc and grpc plugin executables being referenced in toolchains.xml
- cmd: mvnw.cmd -B -V -Dstyle.color=always -Djansi.passthrough=true dependency:go-offline -f src/it/dependencies/pom.xml -P protoc-3.4.0
- cmd: mvnw.cmd -B -V -Dstyle.color=always -Djansi.passthrough=true dependency:go-offline -f src/it/dependencies/pom.xml -P protoc-3.11.1
- cmd: mvnw.cmd -B -V -Dstyle.color=always -Djansi.passthrough=true dependency:go-offline -P run-its
build_script:
- cmd: mvnw.cmd -B -V -Dstyle.color=always -Djansi.passthrough=true clean package -Dmaven.test.skip=true
test_script:
- cmd: mvnw.cmd -B -V -Dstyle.color=always -Djansi.passthrough=true verify -P run-its -Dinvoker.streamLogs=true
cache:
- '%USERPROFILE%\.m2\'
================================================
FILE: .editorconfig
================================================
# http://editorconfig.org
# A special property that should be specified at the top of the file outside of any sections.
# Set to true to stop .editorconfig file search on the current file.
root = true
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4
continuation_indent_size = 8
max_line_length = 120
[*.{yml,yaml,json}]
indent_size = 2
================================================
FILE: .gitattributes
================================================
# Set the default behaviour, in case users don't have core.autocrlf set
* text=auto
# Explicitly declare text files we want to always be normalized and converted to native line endings on checkout
*.md text
*.java text
*.properties text
*.proto text
# Declare files that will always have LF line endings on checkout.
*.pom text eol=lf
pom.xml text eol=lf
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
---
**Before submitting a bug report**
- [ ] Check the existing issues, please avoid submitting duplicates
- [ ] Check the [FAQ](https://www.xolstice.org/protobuf-maven-plugin/faq.html) for known problems
- [ ] Try asking on [Gitter](https://gitter.im/xolstice/protobuf-maven-plugin)
**Describe the bug**
<!-- A clear and concise description of what the bug is -->
**Environment**
<!-- Please paste the output of `mvn --version` below: -->
```
...
```
**Standalone or IDE**
Are you are running Maven inside an IDE, and in that case, which IDE?
**Plugin configuration**
<!-- Paste below the relevant section(s) from your POM, or a link to a gist containing the entire POM -->
```
...
```
**To Reproduce**
Steps to reproduce the behavior:
1. ...
2. ...
**Log output**
<!-- Please paste the relevant portion of maven log output below -->
```
...
```
**Expected behavior**
<!-- A clear and concise description of what you expected to happen -->
**Additional context**
<!-- Add any other context about the problem here -->
================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context about the feature request here.
================================================
FILE: .github/pull_request_template.md
================================================
**Applicable Issues**
<!-- If this pull request fixes an existing issue, please reference it below -->
Fixes #...
**Description**
<!-- Please add a meaningful description of the proposed change here -->
================================================
FILE: .gitignore
================================================
# IDEA project files
.idea*
*.ipr
*.iws
*.iml
# Eclipse project files
.classpath
.project
.settings
# Maven output
target
*.releaseBackup
pom.xml.versionsBackup
release.properties
.mvn/timing.properties
================================================
FILE: .mvn/wrapper/maven-wrapper.properties
================================================
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip
================================================
FILE: .travis/toolchains.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<version>1.8</version>
<vendor>OpenJDK</vendor>
<id>openjdk8</id>
</provides>
<configuration>
<jdkHome>/usr/lib/jvm/java-8-openjdk-amd64</jdkHome>
</configuration>
</toolchain>
<toolchain>
<type>protobuf</type>
<provides>
<version>3.4.0</version>
</provides>
<configuration>
<protocExecutable>
/home/travis/.m2/repository/com/google/protobuf/protoc/3.4.0/protoc-3.4.0-linux-x86_64.exe
</protocExecutable>
</configuration>
</toolchain>
<toolchain>
<type>protobuf</type>
<provides>
<version>3.11.1</version>
</provides>
<configuration>
<protocExecutable>
/home/travis/.m2/repository/com/google/protobuf/protoc/3.11.1/protoc-3.11.1-linux-x86_64.exe
</protocExecutable>
</configuration>
</toolchain>
</toolchains>
================================================
FILE: .travis.yml
================================================
dist: trusty
sudo: false
language: java
jdk: openjdk8
before_install:
# Set up toolchains for java and protoc
# Protoc executables will be downloaded in the next phase
- mkdir -p $HOME/.m2
- cp .travis/toolchains.xml $HOME/.m2/
install:
# Download all dependencies that integration tests might need later
- ./mvnw -B -V -Dstyle.color=always dependency:go-offline -f src/it/dependencies/pom.xml -P protoc-3.4.0
- ./mvnw -B -V -Dstyle.color=always dependency:go-offline -f src/it/dependencies/pom.xml -P protoc-3.11.1
- ./mvnw -B -V -Dstyle.color=always dependency:go-offline -P run-its
before_script:
# These protoc executables were downloaded in the previous phase and are being referenced in toolchains.xml
- chmod +x $HOME/.m2/repository/com/google/protobuf/protoc/3.4.0/protoc-3.4.0-linux-x86_64.exe
- chmod +x $HOME/.m2/repository/com/google/protobuf/protoc/3.11.1/protoc-3.11.1-linux-x86_64.exe
script:
# Finally, run the build with integration tests
- ./mvnw -B -V -Dstyle.color=always clean verify -P run-its -Dinvoker.streamLogs=true
cache:
directories:
- $HOME/.m2
================================================
FILE: AUTHORS
================================================
# This is the official list of Maven Protocol Buffers Plugin authors for copyright purposes.
# This file is distinct from the CONTRIBUTORS files.
# See the latter for an explanation.
#
# Names should be added to this file as one of
# Organization's name
# Individual's name <submission email address>
# Individual's name <submission email address> <email2> <emailN>
# See CONTRIBUTORS for the meaning of multiple email addresses.
#
# Please keep the list sorted.
Google, Inc.
Sergei Ivanov <sergei@xolstice.org> <sergei_ivanov@mail.ru>
Xolstice Ltd.
================================================
FILE: CONTRIBUTORS
================================================
# This is the official list of people who have contributed
# code to the Maven Protocol Buffers Plugin repository.
# The AUTHORS file lists the copyright holders; this file
# lists people.
#
# Names should be added to this file like so:
# Individual's name <submission email address>
# Individual's name <submission email address> <email2> <emailN>
#
# Where applicable, GitHub user name may be added in parentheses
# after the Individual's name.
#
# Please keep the list sorted.
Alexander Torstling (atorstling) <alexander@torstling.com>
Andrey Batalev <andrey.batalev@gmail.com>
Brice Figureau (masterzen) <brice@daysofwonder.com>
Chris Heisterkamp (cheister) <cheister@squareup.com>
Cosmin Lehene (clehene) <clehene@gmail.com>
Daniel Evans (devans) <daniel.evans@plymouthsystems.com> <devans@greenenergycorp.com>
David Reichert (davidmreichert) <davidmreichert@gmail.com>
David Trott (dtrott) <github@davidtrott.com>
Gregory Kick <gak@google.com>
Julien Henry (henryju) <julien.henry@sonarsource.com>
Laurent Goujon (laurentgo) <laurent@dremio.com>
Marek Kedzierski (kedzie) <mark.kedzierski@gmail.com>
Rob Wicke (rwicke) <rwicke@me.com> <rwicke@mac.com>
Sergei Ivanov (sergei-ivanov) <sergei@xolstice.org> <sergei_ivanov@mail.ru>
================================================
FILE: LICENSE
================================================
This license applies to all parts of Maven Protocol Buffers Plugin except the following:
- WinRun4J Java launcher binaries, located in
src/main/resources/winrun4j/*.exe
These files are copyrighted by WinRun4J Authors,
please see the NOTICE file for licensing details.
Maven Protocol Buffers Plugin
Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
================================================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
================================================
FILE: NOTICE
================================================
Maven Protocol Buffers Plugin
Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
================================================================================
This software includes a binary distribution of WinRun4J,
which is used to execute protoc plugins written in Java
under 32-bit and 64-bit Windows operating systems.
WinRun4J is licensed under the Common Public License (CPL).
http://www.eclipse.org/legal/cpl-v10.html
Additional information about WinRun4J is available on
the project's home page:
http://winrun4j.sourceforge.net/
For information about the bundled versions of the binaries
please read src/main/resources/winrun4j/README.txt
inside this git repository.
================================================
FILE: README.md
================================================
[](http://unmaintained.tech/)
[](https://raw.githubusercontent.com/xolstice/protobuf-maven-plugin/master/LICENSE)
[](https://repo1.maven.org/maven2/org/xolstice/maven/plugins/protobuf-maven-plugin/)
> [!IMPORTANT]
> This project is no longer being maintained, and no further contributions will be considered.
>
> Please consider switching to alternatives, such as: \
> https://github.com/ascopes/protobuf-maven-plugin
# Maven Protocol Buffers Plugin
A plugin that integrates protocol buffers compiler (`protoc`) into Maven lifecycle.
This is a continuation of `maven-protoc-plugin` that was started at Google
and later developed by GitHub community.
[Release notes](https://www.xolstice.org/protobuf-maven-plugin/changes-report.html) and detailed documentation
are available on the [web site](https://www.xolstice.org/protobuf-maven-plugin/).
================================================
FILE: docs/CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance, race,
religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [code-of-conduct@xolstice.org][email]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [https://www.contributor-covenant.org/version/1/4/code-of-conduct.html][version]
[homepage]: https://www.contributor-covenant.org
[version]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[email]: mailto:code-of-conduct@xolstice.org
================================================
FILE: docs/CONTRIBUTING.md
================================================
# Contributor's Guide
## Code of Conduct
This project and everyone participating in it is governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
## I don't want to read this whole thing I just have a question!!!
> **Note:** Please don't file an issue to ask a question.
> You'll usually get faster feedback on Gitter.
Join the chat on [Gitter](https://gitter.im/xolstice/protobuf-maven-plugin) and post your question there.
## How you can help
As with any open source project, there are several ways you can help:
* Submit [bug reports](#reporting-bugs) and feature requests into the issue tracker
* Submit [patches](#patches) to reported issues (both those you find, or that others have filed)
* Help with the documentation
## Reporting bugs
Please provide detailed information about your environment and steps to reproduce the problem.
Specifically, please include the following:
* Output of `mvn --version` command:
* Operating system
* Maven version
* Java version
* Whether you are running Maven inside an IDE, and in that case, which IDE
* Plugin configuration
* Any relevant information from the log files
## Patches
Patches and pull requests are very welcome as long as they adhere to the following simple rules:
* the existing coding style is preserved;
* the patch does not needlessly introduce major code refactorings;
* the patch preserves backwards compatibility;
* no existing integration tests are broken by the patch;
* code and site documentation is updated, all new goals and parameters are marked with `@since <version>` tag;
* javadocs are kept compliant with doclint;
* ideally, integration tests are provided to cover the changes introduced in the patch.
================================================
FILE: mvnw
================================================
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven2 Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
export JAVA_HOME="`/usr/libexec/java_home`"
else
export JAVA_HOME="/Library/Java/Home"
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
# TODO classpath?
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`which java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=`cd "$wdir/.."; pwd`
fi
# end of workaround
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
BASE_DIR=`find_maven_basedir "$(pwd)"`
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found .mvn/wrapper/maven-wrapper.jar"
fi
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
fi
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
while IFS="=" read key value; do
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
esac
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
if [ "$MVNW_VERBOSE" = true ]; then
echo "Downloading from: $jarUrl"
fi
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
if command -v wget > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found wget ... using wget"
fi
wget "$jarUrl" -O "$wrapperJarPath"
elif command -v curl > /dev/null; then
if [ "$MVNW_VERBOSE" = true ]; then
echo "Found curl ... using curl"
fi
curl -o "$wrapperJarPath" "$jarUrl"
else
if [ "$MVNW_VERBOSE" = true ]; then
echo "Falling back to using Java to download"
fi
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
if [ -e "$javaClass" ]; then
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Compiling MavenWrapperDownloader.java ..."
fi
# Compiling the Java class
("$JAVA_HOME/bin/javac" "$javaClass")
fi
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
# Running the downloader
if [ "$MVNW_VERBOSE" = true ]; then
echo " - Running MavenWrapperDownloader.java ..."
fi
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
if [ "$MVNW_VERBOSE" = true ]; then
echo $MAVEN_PROJECTBASEDIR
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
fi
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
================================================
FILE: mvnw.cmd
================================================
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
FOR /F "tokens=1,2 delims==" %%A IN (%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties) DO (
IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
echo Found %WRAPPER_JAR%
) else (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %DOWNLOAD_URL%
powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"
echo Finished downloading %WRAPPER_JAR%
)
@REM End of extension
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%
================================================
FILE: pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Maven Protocol Buffers Plugin</name>
<version>0.7.0-SNAPSHOT</version>
<url>https://www.xolstice.org/protobuf-maven-plugin</url>
<description>Maven Plugin that executes the Protocol Buffers (protoc) compiler</description>
<inceptionYear>2016</inceptionYear>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- JDK version -->
<java.sdk.version>1.8</java.sdk.version>
<!-- Settings for the java compiler -->
<java.compiler.compilerVersion>${java.sdk.version}</java.compiler.compilerVersion>
<java.compiler.source>${java.sdk.version}</java.compiler.source>
<java.compiler.target>${java.sdk.version}</java.compiler.target>
<mavenVersion>3.3.9</mavenVersion>
<plexusComponentVersion>2.1.0</plexusComponentVersion>
<plexusUtilsVersion>3.3.0</plexusUtilsVersion>
<pluginToolsVersion>3.6.0</pluginToolsVersion>
<goalPrefix>protobuf</goalPrefix>
</properties>
<prerequisites>
<maven>${mavenVersion}</maven>
</prerequisites>
<organization>
<name>Maven Protocol Buffers Plugin Authors</name>
<url>https://github.com/xolstice/protobuf-maven-plugin/blob/master/AUTHORS</url>
</organization>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>sergei-ivanov</id>
<name>Sergei Ivanov</name>
<email>sergei@xolstice.org</email>
<url>https://github.com/sergei-ivanov</url>
<organization>Xolstice Ltd.</organization>
<organizationUrl>https://www.xolstice.org</organizationUrl>
<timezone>0</timezone>
</developer>
</developers>
<scm>
<url>https://github.com/xolstice/protobuf-maven-plugin</url>
<connection>scm:git:git://github.com/xolstice/protobuf-maven-plugin.git</connection>
<developerConnection>scm:git:ssh://git@github.com/xolstice/protobuf-maven-plugin.git</developerConnection>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<downloadUrl>https://bintray.com/xolstice/maven/protobuf-maven-plugin/view</downloadUrl>
<site>
<!--
release:perform checks this element to determine whether site-deploy goal needs to be run.
The actual site deployment is done by GitHub site-maven-plugin, so the URL here is not used.
-->
<id>gh-pages</id>
<url>https://github.com/xolstice/protobuf-maven-plugin/tree/gh-pages</url>
</site>
<repository>
<id>bintray</id>
<name>Releases on Bintray</name>
<url>https://api.bintray.com/maven/xolstice/maven/protobuf-maven-plugin</url>
</repository>
</distributionManagement>
<issueManagement>
<system>Github</system>
<url>https://github.com/xolstice/protobuf-maven-plugin/issues/</url>
</issueManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>3.0.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<version>${plexusComponentVersion}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<minmemory>128m</minmemory>
<maxmemory>512m</maxmemory>
<detectLinks>true</detectLinks>
<show>package</show>
<notimestamp>true</notimestamp>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.8.2</version>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.12</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-build-environment</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>[${mavenVersion},)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[${java.sdk.version},)</version>
</requireJavaVersion>
</rules>
<fail>true</fail>
</configuration>
</execution>
<execution>
<id>enforce-dependency-convergence</id>
<!--
Postpone the check until the verification phase in the lifecycle,
in order to guarantee resolution of all dependencies,
and to reduce the amount of logging in the early phases.
-->
<phase>verify</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<dependencyConvergence>
<!--
Make sure all direct and transitive dependencies
converge to the same versions
-->
</dependencyConvergence>
</rules>
<!-- Generate warnings only -->
<fail>false</fail>
</configuration>
</execution>
<execution>
<id>enforce-latest-dependency-versions</id>
<!--
Postpone the check until the verification phase in the lifecycle,
in order to guarantee resolution of all dependencies,
and to reduce the amount of logging in the early phases.
-->
<phase>verify</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireUpperBoundDeps>
<!--
Make sure that the latest of available dependency versions is selected
-->
</requireUpperBoundDeps>
</rules>
<!-- Generate warnings only -->
<fail>false</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>default-toolchain</id>
<phase>validate</phase>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>[${java.sdk.version},)</version>
</jdk>
</toolchains>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
<mojoDependencies />
<goalPrefix>${goalPrefix}</goalPrefix>
</configuration>
<executions>
<execution>
<id>default-descriptor</id>
<phase>process-classes</phase>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
<execution>
<id>generate-helpmojo</id>
<goals>
<goal>helpmojo</goal>
</goals>
<configuration>
<helpPackageName>org.xolstice.maven.plugin.protobuf</helpPackageName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-metadata</artifactId>
<executions>
<execution>
<goals>
<goal>generate-metadata</goal>
<goal>generate-test-metadata</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<fork>true</fork>
<compilerVersion>${java.compiler.compilerVersion}</compilerVersion>
<source>${java.compiler.source}</source>
<target>${java.compiler.target}</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<compilerArgument>-Xlint:all</compilerArgument>
<testCompilerArgument>-Xlint:all</testCompilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<!-- Override the default release settings from the Super-POM -->
<configuration>
<!-- Suppress the default release profile from Maven Super-POM -->
<useReleaseProfile>false</useReleaseProfile>
<!-- Release profile that will be activated by release:perform -->
<releaseProfiles>release</releaseProfiles>
<!-- Enforce integration tests during both release:prepare and release:perform -->
<arguments>-P run-its</arguments>
<!-- Not used in this project, but included for completeness -->
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>display-dependency-updates</goal>
<goal>display-plugin-updates</goal>
<goal>display-property-updates</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<!-- Output the resolved tree of dependencies at the end of the build lifecycle -->
<id>display-dependency-tree</id>
<phase>verify</phase>
<goals>
<goal>tree</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<skipDeploy>true</skipDeploy>
</configuration>
</plugin>
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<executions>
<execution>
<id>github-site</id>
<goals>
<goal>site</goal>
</goals>
<phase>site-deploy</phase>
<configuration>
<message>Create website for ${project.artifactId}-${project.version}</message>
<merge>false</merge>
<noJekyll>true</noJekyll>
<server>github</server>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<mojoDependencies />
<goalPrefix>${goalPrefix}</goalPrefix>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<minmemory>128m</minmemory>
<maxmemory>512m</maxmemory>
<detectLinks>true</detectLinks>
<show>package</show>
<notimestamp>true</notimestamp>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>javadoc-no-fork</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
</plugin>
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.7</version>
<reportSets>
<reportSet>
<reports>
<report>dependency-updates-report</report>
<report>plugin-updates-report</report>
<report>property-updates-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changes-plugin</artifactId>
<version>2.12.1</version>
<reportSets>
<reportSet>
<reports>
<report>changes-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<!--
A separate profile to optionally enable integration tests
(beware that they can be very time and resource-consuming).
It is forcibly activated when running the release goals.
-->
<id>run-its</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<debug>false</debug>
<projectsDirectory>src/it</projectsDirectory>
<pomIncludes>
<pomInclude>*/pom.xml</pomInclude>
</pomIncludes>
<pomExcludes>
<pomExclude>dependencies/pom.xml</pomExclude>
</pomExcludes>
<setupIncludes>
<setupInclude>setup*/pom.xml</setupInclude>
</setupIncludes>
<postBuildHookScript>verify</postBuildHookScript>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<properties>
<execProps>fromExecProps</execProps>
</properties>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.2.1</version>
</plugin>
</plugins>
</reporting>
</profile>
<profile>
<!--
A separate set of executions to be performed when running the release goals.
-->
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${mavenVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${pluginToolsVersion}</version>
<exclusions>
<exclusion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>${plexusUtilsVersion}</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
<version>${plexusComponentVersion}</version>
</dependency>
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-build-api</artifactId>
<version>0.0.7</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${mavenVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${mavenVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>${mavenVersion}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
================================================
FILE: src/changes/changes.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2020 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<document xmlns="http://maven.apache.org/changes/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0
http://maven.apache.org/xsd/changes-1.0.0.xsd">
<body>
<release version="0.7.0" date="Pending" description="TBD">
<action dev="sergei-ivanov" type="fix" issue="72" due-to="Laurent Goujon (laurentgo)">
Fix file descriptor leak.
</action>
<action dev="sergei-ivanov" type="add" issue="64" due-to="Julien Henry (henryju)">
Support passing options to the Java compiler.
</action>
<action dev="sergei-ivanov" type="update" issue="57" due-to="David Reichert (davidmreichert)">
Allowed more flexibility in specifying input proto files.
Versioned file extensions (e.g. .proto2, .proto3) can be used.
</action>
<action dev="sergei-ivanov" type="update" issue="54">
Removed common goal properties and logic for generating descriptor sets.
Instead, two additional goals were introduced for descriptor set generation.
</action>
<action dev="sergei-ivanov" type="remove" issue="52">
Removed support for JavaNano generator.
</action>
<action dev="sergei-ivanov" type="add" issue="53">
Provided origin information for WinRun4J binaries.
</action>
<action dev="sergei-ivanov" type="update" issue="51" due-to="Cosmin Lehene (clehene)">
Use pb instead of protobin as file extension for binary descriptors.
</action>
<action dev="sergei-ivanov" type="update" issue="48">
Set clearOutputDirectory parameter to false by default.
</action>
<action dev="sergei-ivanov" type="update" issue="49">
Java 1.8 and Maven 3.3.9 are now minimum required versions for running the plugin.
</action>
<action dev="sergei-ivanov" type="update" issue="47" due-to="Cosmin Lehene (clehene)">
More detailed error message.
</action>
</release>
<release version="0.6.1" date="2018-10-01" description="Additional protoc options">
<action dev="sergei-ivanov" type="update" issue="43">
Address vulnerabilities reported by Snyk.
</action>
<action dev="sergei-ivanov" type="add" issue="5" due-to="Chris Heisterkamp (cheister)">
Add useArgumentFile option to help with "Command line is too long" error.
</action>
<action dev="sergei-ivanov" type="add">
Added CI configurations.
</action>
<action dev="sergei-ivanov" type="add" issue="1">
Added new goals to generate C# sources from protobuf definitions.
</action>
<action dev="sergei-ivanov" type="add" issue="4">
Added new goals to generate JavaScript sources from protobuf definitions.
</action>
</release>
<release version="0.5.0" date="2016-01-28" description="Rebranding">
<action dev="sergei-ivanov" type="add">
Added licence and copyright information and prepared for the first release into Maven Central.
</action>
<action dev="sergei-ivanov" type="update">
Renamed project coordinates and java packages.
</action>
<action dev="sergei-ivanov" type="remove">
Obsolete goal 'testCompile' has been removed.
</action>
</release>
<release version="0.4.4" date="2015-12-21" description="Additional protoc options">
<action dev="sergei-ivanov" type="add" issue="39" due-to="Alexander Torstling (atorstling)">
Added support for including source info in descriptor sets.
</action>
</release>
<release version="0.4.3" date="2015-09-20" description="Support for JavaNano, minor changes">
<action dev="sergei-ivanov" type="add" issue="38" due-to="Marek Kedzierski (kedzie)">
Added support for JavaNano generator (requires protobuf compiler version 3 or above).
</action>
</release>
<release version="0.4.2" date="2015-04-29" description="Bug fixes">
<action dev="sergei-ivanov" type="fix" issue="34">
Made the order of imports predictable and matching the order of dependencies.
</action>
<action dev="sergei-ivanov" type="fix">
Fixed release configuration.
</action>
</release>
<release version="0.4.1" date="2015-04-27" description="Support for native protoc plugins">
<action dev="sergei-ivanov" type="add" issue="33">
Added an option to download protoc binary artifact from Maven repo.
</action>
<action dev="sergei-ivanov" type="add" issue="21">
Generated descriptor set can be attached to the build.
</action>
<action dev="sergei-ivanov" type="add" issue="30">
Added new goals to use custom native protoc plugins.
</action>
<action dev="sergei-ivanov" type="add" issue="32">
Added new parameter 'attachProtoSources', which controls whether the source protobuf files
are attached to the build and included into the final artifact.
</action>
</release>
<release version="0.4.0" date="2015-03-11" description="Support for C++ and Python, Java 6, Maven 3">
<action dev="sergei-ivanov" type="fix" issue="25">
Fixed toolchain support that was broken by incompatible changes in Maven 3.2.5.
</action>
<action dev="sergei-ivanov" type="update" issue="27">
Maven 3.0 is now a minimum required version for running the plugin.
</action>
<action dev="sergei-ivanov" type="update" issue="26">
Java 1.6 is now a minimum required version for running the plugin.
</action>
<action dev="sergei-ivanov" type="add" issue="19" due-to="abatalev">
A new option to suppress clearing of the output directory.
</action>
<action dev="sergei-ivanov" type="add" issue="5">
Added new goals to generate C++ and Python sources from protobuf definitions.
</action>
<action dev="sergei-ivanov" type="update">
Goal 'testCompile' has been renamed into 'test-compile'
(the old goal still remains for backward compatibility).
</action>
</release>
<release version="0.3.2" date="2013-10-21" description="Compatibility with Maven 3.1.x">
<action dev="sergei-ivanov" type="fix">
Removed direct dependency on Aether library, and used injected Maven components for artifact resolution.
</action>
<action dev="sergei-ivanov" type="add">
Allowed to specify classifier in java protoc plugin definition.
</action>
<action dev="sergei-ivanov" type="add">
Allowed to use version range specifications in java protoc plugin definition.
</action>
<action dev="sergei-ivanov" type="remove">
Removed 'scope' parameter from java protoc plugin definition.
It has never been used, and any scope other than "runtime" is unlikely to work correctly.
</action>
</release>
<release version="0.3.1" date="2013-03-05" description="Functional updates">
<action dev="rwicke" type="add">
Integration tests for java protoc plugins.
</action>
<action dev="rwicke" type="update">
Support for running java protoc plugins on 64-bit Windows platform.
</action>
<action dev="sergei-ivanov" type="update" due-to="jsilland">
Fixed integration into Eclipse lifecycle (library version conflict)
</action>
</release>
<release version="0.3.0" date="2013-01-04" description="New features">
<action dev="rwicke" type="add">
Support for java-based plugins for protoc compiler.
</action>
<action dev="rwicke" type="add">
Generation of binary descriptor sets.
</action>
<action dev="sergei-ivanov" type="update">
Upgraded required Maven version to 2.2.1.
</action>
<action dev="sergei-ivanov" type="update">
Updated to the latest versions of Maven plugins.
Switched to using Java 5 Mojo annotations for plugin metadata.
</action>
<action dev="sergei-ivanov" type="add" due-to="Igor Petruk">
Integration into Eclipse lifecycle (supported by M2E 1.1 and later)
</action>
</release>
<release version="0.2.0" date="2011-12-12" description="Bug fixes and new features">
<action dev="sergei-ivanov" type="add">
Added protobuf toolchain extension for use by maven-toolchains-plugin.
Integrated protobuf toolchain into plugin execution.
</action>
<action dev="sergei-ivanov" type="add">
Additional debug logging is produced when Maven runs in verbose mode.
</action>
<action dev="sergei-ivanov" type="add">
Added a suite of integration tests.
</action>
<action dev="sergei-ivanov" type="add">
Created content for the Maven-generated web site.
</action>
<action dev="sergei-ivanov" type="fix">
Updated documentation in source code.
</action>
<action dev="sergei-ivanov" type="fix">
Updated Mojo documentation.
</action>
<action dev="sergei-ivanov" type="fix">
Updated Mojo annotations for Maven3 (marked plugin as thread-safe for parallel module builds).
</action>
<action dev="sergei-ivanov" type="add">
Allowed protoc executable to be specified when invoking plugin from command line.
</action>
<action dev="sergei-ivanov" type="add">
Added options to suppress plugin execution.
</action>
<action dev="sergei-ivanov" type="fix" due-to="B. K. Oxley (binkley)">
Enabled test protobuf definitions to import production definitions from the same module.
</action>
<action dev="sergei-ivanov" type="fix" due-to="Paul Nyheim (pnyheim)">
Fixed importing protobuf definitions from other projects or modules when namespaces are used.
</action>
</release>
</body>
</document>
================================================
FILE: src/it/TEST-1/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protoc location is picked up from 'protobuf' tool chain, \
and proto compilation completes successfully.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean compile
================================================
FILE: src/it/TEST-1/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-1</artifactId>
<version>1.0.0</version>
<name>Integration Test 1</name>
<properties>
<protobufVersion>[3.4.0,3.5.0)</protobufVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<executions>
<execution>
<id>protobuf-toolchain</id>
<phase>validate</phase>
<goals>
<goal>toolchain</goal>
</goals>
<configuration>
<toolchains>
<protobuf>
<version>${protobufVersion}</version>
</protobuf>
</toolchains>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-1/src/main/proto/test.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-1/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'test/TestProtos.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package test');
assert content.contains('class Test');
assert content.contains('class TestMessage');
return true;
================================================
FILE: src/it/TEST-10/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protobuf definitions can be imported from other modules in the reactor. \
In this test, imports are scoped to the default package.
invoker.goals = clean compile
================================================
FILE: src/it/TEST-10/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-10-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>Integration Test 10 (Parent)</name>
<modules>
<module>project1</module>
<module>project2</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
================================================
FILE: src/it/TEST-10/project1/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-10-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-10-project1</artifactId>
<name>Integration Test 10 (1)</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-10/project1/src/main/proto/test1.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "it.project1.messages";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage1 {
}
================================================
FILE: src/it/TEST-10/project2/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-10-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-10-project2</artifactId>
<name>Integration Test 10 (2)</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>test-10-project1</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>
================================================
FILE: src/it/TEST-10/project2/src/main/proto/test2.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
import "test1.proto";
option java_package = "it.project2.messages";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage2 {
TestMessage1 included = 1;
}
================================================
FILE: src/it/TEST-10/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'project1/target/generated-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project1.messages');
assert content.contains('class TestProtos');
assert content.contains('class TestMessage1');
outputDirectory = new File(basedir, 'project2/target/generated-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project2.messages');
assert content.contains('class TestProtos');
assert content.contains('class TestMessage2');
return true;
================================================
FILE: src/it/TEST-11/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protobuf definitions can be imported from other modules in the reactor. \
The dependency has type of 'test-jar' (test protobuf files import \
test protobuf files from another module). \
In this test, imports are scoped to packages. \
We need to make sure that package structure for protobuf definitions \
is preserved in packaged jars, and correctly restored for importing.
invoker.goals = clean test-compile
================================================
FILE: src/it/TEST-11/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-11-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>Integration Test 11 (Parent)</name>
<modules>
<module>project1</module>
<module>project2</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
================================================
FILE: src/it/TEST-11/project1/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-11-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-11-project1</artifactId>
<name>Integration Test 11 (1)</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-11/project1/src/test/proto/it/project1/test1.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package it.project1;
option java_package = "it.project1.messages";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage1 {
}
================================================
FILE: src/it/TEST-11/project2/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-11-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-11-project2</artifactId>
<name>Integration Test 11 (2)</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>test-11-project1</artifactId>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>
================================================
FILE: src/it/TEST-11/project2/src/test/proto/it/project2/test2.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package it.project2;
import "it/project1/test1.proto";
option java_package = "it.project2.messages";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage2 {
it.project1.TestMessage1 included = 1;
}
================================================
FILE: src/it/TEST-11/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'project1/target/generated-test-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project1.messages');
assert content.contains('class TestProtos');
assert content.contains('class TestMessage1');
outputDirectory = new File(basedir, 'project2/target/generated-test-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project2.messages');
assert content.contains('class TestProtos');
assert content.contains('class TestMessage2');
return true;
================================================
FILE: src/it/TEST-12/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protobuf definitions can be imported from other modules in the reactor. \
In this test, imports are scoped to the default package.
invoker.goals = clean test-compile
================================================
FILE: src/it/TEST-12/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-12-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<name>Integration Test 12 (Parent)</name>
<modules>
<module>project1</module>
<module>project2</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
================================================
FILE: src/it/TEST-12/project1/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-12-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-12-project1</artifactId>
<name>Integration Test 12 (1)</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-12/project1/src/test/proto/test1.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "it.project1.messages";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage1 {
}
================================================
FILE: src/it/TEST-12/project2/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-12-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-12-project2</artifactId>
<name>Integration Test 12 (2)</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>test-12-project1</artifactId>
<version>1.0.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>
================================================
FILE: src/it/TEST-12/project2/src/test/proto/test2.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
import "test1.proto";
option java_package = "it.project2.messages";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage2 {
TestMessage1 included = 1;
}
================================================
FILE: src/it/TEST-12/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'project1/target/generated-test-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project1.messages');
assert content.contains('class TestProtos');
assert content.contains('class TestMessage1');
outputDirectory = new File(basedir, 'project2/target/generated-test-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project2.messages');
assert content.contains('class TestProtos');
assert content.contains('class TestMessage2');
return true;
================================================
FILE: src/it/TEST-13/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that production protobuf definitions can be imported into test protobuf definitions \
within the same module. \
In this test, imports are scoped to packages. \
We need to make sure that package structure for protobuf definitions \
is correctly handled by the plugin.
invoker.goals = clean test-compile
================================================
FILE: src/it/TEST-13/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-13</artifactId>
<version>1.0.0</version>
<name>Integration Test 13</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-13/src/main/proto/it/project1/test1.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package it.project1;
option java_package = "it.project1.messages";
option java_outer_classname = "TestProtos1";
option optimize_for = SPEED;
message TestMessage1 {
}
================================================
FILE: src/it/TEST-13/src/test/proto/it/project1/test2.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package it.project1;
import "it/project1/test1.proto";
option java_package = "it.project1.messages";
option java_outer_classname = "TestProtos2";
option optimize_for = SPEED;
message TestMessage2 {
it.project1.TestMessage1 included = 1;
}
================================================
FILE: src/it/TEST-13/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos1.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project1.messages');
assert content.contains('class TestProtos1');
assert content.contains('class TestMessage1');
outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos2.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project1.messages');
assert content.contains('class TestProtos2');
assert content.contains('class TestMessage2');
return true;
================================================
FILE: src/it/TEST-14/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that production protobuf definitions can be imported into test protobuf definitions \
within the same module. \
In this test, imports are scoped to the default package.
invoker.goals = clean test-compile
================================================
FILE: src/it/TEST-14/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-14</artifactId>
<version>1.0.0</version>
<name>Integration Test 14</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-14/src/main/proto/test1.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "it.project1.messages";
option java_outer_classname = "TestProtos1";
option optimize_for = SPEED;
message TestMessage1 {
}
================================================
FILE: src/it/TEST-14/src/test/proto/test2.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
import "test1.proto";
option java_package = "it.project1.messages";
option java_outer_classname = "TestProtos2";
option optimize_for = SPEED;
message TestMessage2 {
TestMessage1 included = 1;
}
================================================
FILE: src/it/TEST-14/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos1.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project1.messages');
assert content.contains('class TestProtos1');
assert content.contains('class TestMessage1');
outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/java');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos2.java');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
content = generatedJavaFile.text;
assert content.contains('package it.project1.messages');
assert content.contains('class TestProtos2');
assert content.contains('class TestMessage2');
return true;
================================================
FILE: src/it/TEST-15/invoker.properties
================================================
#
# Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that a protobuf file descriptor set is written in the expected location.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean generate-resources
================================================
FILE: src/it/TEST-15/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-15</artifactId>
<version>1.0.0</version>
<name>Integration Test 15</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>compile-descriptor-set</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-15/src/main/proto/test.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-15/verify.groovy
================================================
/*
* Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-resources/protobuf/descriptor-sets')
assert outputDirectory.exists()
assert outputDirectory.isDirectory()
generatedDescriptorFile = new File(outputDirectory, 'test-15-1.0.0.pb')
assert generatedDescriptorFile.exists()
assert generatedDescriptorFile.isFile()
return true
================================================
FILE: src/it/TEST-16/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that a custom protoc plugin is invoked
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean compile
#invoker.mavenOpts = -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
================================================
FILE: src/it/TEST-16/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-16</artifactId>
<version>1.0.0</version>
<name>Integration Test 16</name>
<properties>
<!-- Peg to the same protobuf version as MinimalPlugin was compiled against -->
<protobufVersion>3.4.0</protobufVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<id>custom-protoc-generate</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<protocPlugins>
<protocPlugin>
<id>minimal</id>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-protoc-plugin</artifactId>
<version>1.0.5</version>
<mainClass>org.xolstice.protobuf.plugin.minimal.MinimalPlugin</mainClass>
</protocPlugin>
<protocPlugin>
<id>prefix</id>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-protoc-plugin</artifactId>
<!-- Test that version ranges are correctly resolved too -->
<version>[1.0.0,1.1.0)</version>
<mainClass>org.xolstice.protobuf.plugin.minimal.MinimalPlugin</mainClass>
<args>
<arg>prefix-</arg>
</args>
</protocPlugin>
</protocPlugins>
</configuration>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-16/src/main/proto/test1.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test1";
option java_outer_classname = "Test1Protos";
option optimize_for = SPEED;
message TestMessage1 {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-16/src/main/proto/test2.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test2";
option java_outer_classname = "Test2Protos";
option optimize_for = SPEED;
message TestMessage2 {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-16/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
def assertGeneratedFile(outputDirectory, fname, content) {
genFile = new File(outputDirectory, fname)
assert genFile.exists()
assert genFile.isFile()
assert genFile.text == content
}
outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java')
assert outputDirectory.exists()
assert outputDirectory.isDirectory()
assertGeneratedFile(outputDirectory, 'test1.txt', 'test1.proto')
assertGeneratedFile(outputDirectory, 'prefix-test1.txt', 'test1.proto')
assertGeneratedFile(outputDirectory, 'test2.txt', 'test2.proto')
assertGeneratedFile(outputDirectory, 'prefix-test2.txt', 'test2.proto')
return true
================================================
FILE: src/it/TEST-17/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that the execution fails if the artifact for java protoc plugin cannot be resolved.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean compile
# The expected result of the build, possible values are "success" (default) and "failure"
invoker.buildResult = failure
================================================
FILE: src/it/TEST-17/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-17</artifactId>
<version>1.0.0</version>
<name>Integration Test 17</name>
<properties>
<!-- Peg to the same protobuf version as MinimalPlugin was compiled against -->
<protobufVersion>3.4.0</protobufVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<id>custom-protoc-generate</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<protocPlugins>
<protocPlugin>
<id>missing</id>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>test-protoc-plugin</artifactId>
<!-- This is a knowingly non-existent version -->
<version>2.0.0</version>
<mainClass>org.xolstice.protobuf.plugin.minimal.MinimalPlugin</mainClass>
</protocPlugin>
</protocPlugins>
</configuration>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-17/src/main/proto/test.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
option java_package = "test";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-18/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protoc location is picked up from 'protobuf' tool chain, \
and proto compilation into Python completes successfully.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean compile
================================================
FILE: src/it/TEST-18/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-18</artifactId>
<version>1.0.0</version>
<name>Integration Test 18</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>compile-python</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-18/src/main/proto/test.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-18/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-sources/protobuf/python');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedPythonFile = new File(outputDirectory, 'test_pb2.py');
assert generatedPythonFile.exists();
assert generatedPythonFile.isFile();
content = generatedPythonFile.text;
assert content.contains('TestMessage');
assert content.contains('NestedMessage');
return true;
================================================
FILE: src/it/TEST-19/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protoc location is picked up from 'protobuf' tool chain, \
and test proto compilation into Python completes successfully.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean test-compile
================================================
FILE: src/it/TEST-19/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-19</artifactId>
<version>1.0.0</version>
<name>Integration Test 19</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>test-compile-python</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-19/src/test/proto/test.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-19/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/python');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedPythonFile = new File(outputDirectory, 'test_pb2.py');
assert generatedPythonFile.exists();
assert generatedPythonFile.isFile();
content = generatedPythonFile.text;
assert content.contains('TestMessage');
assert content.contains('NestedMessage');
return true;
================================================
FILE: src/it/TEST-2/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that the custom 'protobuf' tool chain is picked up by maven-toolchains-plugin \
as long as protobuf-maven-plugin registers its extensions with maven build. \
No executions for protobuf-maven-plugin itself are defined in the test pom.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean validate
================================================
FILE: src/it/TEST-2/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-2</artifactId>
<version>1.0.0</version>
<name>Integration Test 2</name>
<properties>
<protobufVersion>[3.4.0,3.5.0)</protobufVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<executions>
<execution>
<id>protobuf-toolchain</id>
<phase>validate</phase>
<goals>
<goal>toolchain</goal>
</goals>
<configuration>
<toolchains>
<protobuf>
<version>${protobufVersion}</version>
</protobuf>
</toolchains>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-2/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildLogFile = new File(basedir, 'build.log');
assert buildLogFile.exists();
assert buildLogFile.isFile();
content = buildLogFile.text;
assert content.contains('Found matching toolchain for type protobuf: PROTOC');
return true;
================================================
FILE: src/it/TEST-20/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protoc location is picked up from 'protobuf' tool chain, \
and proto compilation into C++ completes successfully.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean compile
================================================
FILE: src/it/TEST-20/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-20</artifactId>
<version>1.0.0</version>
<name>Integration Test 20</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>compile-cpp</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-20/src/main/proto/test.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-20/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-sources/protobuf/cpp');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedHeaderFile = new File(outputDirectory, 'test.pb.h');
assert generatedHeaderFile.exists();
assert generatedHeaderFile.isFile();
content = generatedHeaderFile.text;
assert content.contains('class TestMessage');
assert content.contains('class TestMessage_NestedMessage');
assert content.contains('enum TestMessage_NestedEnum');
generatedClassFile = new File(outputDirectory, 'test.pb.cc');
assert generatedClassFile.exists();
assert generatedClassFile.isFile();
content = generatedClassFile.text;
assert content.contains('TestMessage::TestMessage()');
assert content.contains('TestMessage_NestedMessage::TestMessage_NestedMessage()');
return true;
================================================
FILE: src/it/TEST-21/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protoc location is picked up from 'protobuf' tool chain, \
and test proto compilation into C++ completes successfully.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean test-compile
================================================
FILE: src/it/TEST-21/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-21</artifactId>
<version>1.0.0</version>
<name>Integration Test 21</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>test-compile-cpp</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-21/src/test/proto/test.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
option java_package = "test";
option java_outer_classname = "TestProtos";
option optimize_for = SPEED;
message TestMessage {
message NestedMessage {
int32 bb = 1;
}
enum NestedEnum {
FOO = 0;
BAR = 1;
BAZ = 2;
}
// Singular
int32 optional_int32 = 1;
}
================================================
FILE: src/it/TEST-21/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/cpp');
assert outputDirectory.exists();
assert outputDirectory.isDirectory();
generatedHeaderFile = new File(outputDirectory, 'test.pb.h');
assert generatedHeaderFile.exists();
assert generatedHeaderFile.isFile();
content = generatedHeaderFile.text;
assert content.contains('class TestMessage');
assert content.contains('class TestMessage_NestedMessage');
assert content.contains('enum TestMessage_NestedEnum');
generatedClassFile = new File(outputDirectory, 'test.pb.cc');
assert generatedClassFile.exists();
assert generatedClassFile.isFile();
content = generatedClassFile.text;
assert content.contains('TestMessage::TestMessage()');
assert content.contains('TestMessage_NestedMessage::TestMessage_NestedMessage()');
return true;
================================================
FILE: src/it/TEST-22/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protoc location is picked up from 'protobuf' tool chain, \
proto compilation into java completes successfully \
and protobuf sources are attached to the build.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean package
================================================
FILE: src/it/TEST-22/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xolstice.maven.plugins.protobuf.its</groupId>
<artifactId>it-parent</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>test-22</artifactId>
<version>1.0.0</version>
<name>Integration Test 22</name>
<build>
<plugins>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}
</protocArtifact>
</configuration>
</plugin>
</plugins>
</build>
</project>
================================================
FILE: src/it/TEST-22/src/main/proto/a/aaa.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package a;
option java_package = "a";
option java_outer_classname = "AaaProtos";
option optimize_for = SPEED;
message Aaa {
int32 a = 1;
}
================================================
FILE: src/it/TEST-22/src/test/proto/b/bbb.proto
================================================
//
// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package b;
option java_package = "b";
option java_outer_classname = "BbbProtos";
option optimize_for = SPEED;
message Bbb {
int32 b = 1;
}
================================================
FILE: src/it/TEST-22/verify.groovy
================================================
/*
* Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
generatedJavaFile = new File(basedir, 'target/classes/a/AaaProtos.class');
assert generatedJavaFile.exists();
assert generatedJavaFile.isFile();
attachedResource = new File(basedir, 'target/classes/a/aaa.proto');
assert attachedResource.exists();
assert attachedResource.isFile();
generatedJavaTestFile = new File(basedir, 'target/test-classes/b/BbbProtos.class');
assert generatedJavaTestFile.exists();
assert generatedJavaTestFile.isFile();
attachedTestResource = new File(basedir, 'target/test-classes/b/bbb.proto');
assert attachedTestResource.exists();
assert attachedTestResource.isFile();
return true;
================================================
FILE: src/it/TEST-23/invoker.properties
================================================
#
# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# An optional description for this build job to be included in the build reports.
invoker.description = \
Verifies that protoc location is picked up from 'protobuf' tool chain, \
proto compilation into java completes successfully \
and protobuf sources are NOT attached to the build.
# A comma or space separated list of goals/phases to execute, may
# specify an empty list to execute the default goal of the IT project
invoker.goals = clean package
================================================
FILE: src/it/TEST-23/pom.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
gitextract_d2avz9m1/
├── .appveyor/
│ └── toolchains.xml
├── .appveyor.yml
├── .editorconfig
├── .gitattributes
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── pull_request_template.md
├── .gitignore
├── .mvn/
│ └── wrapper/
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
├── .travis/
│ └── toolchains.xml
├── .travis.yml
├── AUTHORS
├── CONTRIBUTORS
├── LICENSE
├── NOTICE
├── README.md
├── docs/
│ ├── CODE_OF_CONDUCT.md
│ └── CONTRIBUTING.md
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src/
├── changes/
│ └── changes.xml
├── it/
│ ├── TEST-1/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-10/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-11/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-12/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-13/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── it/
│ │ │ │ └── project1/
│ │ │ │ └── test1.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-14/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── test1.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-15/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-16/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ ├── test1.proto
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-17/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ └── proto/
│ │ └── test.proto
│ ├── TEST-18/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-19/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-2/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ └── verify.groovy
│ ├── TEST-20/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-21/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-22/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── a/
│ │ │ │ └── aaa.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── b/
│ │ │ └── bbb.proto
│ │ └── verify.groovy
│ ├── TEST-23/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ ├── main/
│ │ │ │ └── proto/
│ │ │ │ └── a/
│ │ │ │ └── aaa.proto
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── b/
│ │ │ └── bbb.proto
│ │ └── verify.groovy
│ ├── TEST-24/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ └── pom.xml
│ │ └── verify.groovy
│ ├── TEST-25/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-26/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-27/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ └── pom.xml
│ │ └── verify.groovy
│ ├── TEST-28/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-29/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ ├── test.proto
│ │ │ ├── тест.proto
│ │ │ └── テスト.proto
│ │ └── verify.groovy
│ ├── TEST-3/
│ │ ├── invoker.properties
│ │ └── pom.xml
│ ├── TEST-30/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-31/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-32/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-33/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-34/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-35/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-36/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-37/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-4/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test.proto
│ │ └── verify.groovy
│ ├── TEST-5/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-6/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-7/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-8/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test1.proto
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── test/
│ │ │ └── proto/
│ │ │ └── test2.proto
│ │ └── verify.groovy
│ ├── TEST-9/
│ │ ├── invoker.properties
│ │ ├── pom.xml
│ │ ├── project1/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project1/
│ │ │ └── test1.proto3
│ │ ├── project2/
│ │ │ ├── pom.xml
│ │ │ └── src/
│ │ │ └── main/
│ │ │ └── proto/
│ │ │ └── it/
│ │ │ └── project2/
│ │ │ └── test2.proto3
│ │ └── verify.groovy
│ ├── dependencies/
│ │ └── pom.xml
│ ├── settings.xml
│ ├── setup-it-parent/
│ │ ├── invoker.properties
│ │ └── pom.xml
│ └── setup-protoc-plugin/
│ ├── invoker.properties
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── org/
│ └── xolstice/
│ └── protobuf/
│ └── plugin/
│ └── minimal/
│ └── MinimalPlugin.java
├── main/
│ ├── java/
│ │ └── org/
│ │ └── xolstice/
│ │ └── maven/
│ │ ├── plugin/
│ │ │ └── protobuf/
│ │ │ ├── AbstractProtocCompileMojo.java
│ │ │ ├── AbstractProtocMojo.java
│ │ │ ├── AbstractProtocTestCompileMojo.java
│ │ │ ├── MojoConfigurationException.java
│ │ │ ├── MojoInitializationException.java
│ │ │ ├── Protoc.java
│ │ │ ├── ProtocCompileCppMojo.java
│ │ │ ├── ProtocCompileCsharpMojo.java
│ │ │ ├── ProtocCompileCustomMojo.java
│ │ │ ├── ProtocCompileDescriptorSetMojo.java
│ │ │ ├── ProtocCompileJavaScriptMojo.java
│ │ │ ├── ProtocCompileMojo.java
│ │ │ ├── ProtocCompilePythonMojo.java
│ │ │ ├── ProtocPlugin.java
│ │ │ ├── ProtocPluginAssembler.java
│ │ │ ├── ProtocTestCompileCppMojo.java
│ │ │ ├── ProtocTestCompileCsharpMojo.java
│ │ │ ├── ProtocTestCompileCustomMojo.java
│ │ │ ├── ProtocTestCompileDescriptorSetMojo.java
│ │ │ ├── ProtocTestCompileJavaScriptMojo.java
│ │ │ ├── ProtocTestCompileMojo.java
│ │ │ └── ProtocTestCompilePythonMojo.java
│ │ └── toolchain/
│ │ └── protobuf/
│ │ ├── DefaultProtobufToolchain.java
│ │ ├── DefaultProtobufToolchainFactory.java
│ │ └── ProtobufToolchain.java
│ └── resources/
│ ├── META-INF/
│ │ ├── m2e/
│ │ │ └── lifecycle-mapping-metadata.xml
│ │ └── plexus/
│ │ └── components.xml
│ └── winrun4j/
│ ├── README.txt
│ ├── WinRun4J.md5
│ ├── WinRun4J.sha
│ └── WinRun4J.sha.asc
└── site/
├── apt/
│ ├── examples/
│ │ ├── protobuf-dependencies.apt.vm
│ │ ├── protobuf-toolchain.apt.vm
│ │ ├── protoc-artifact.apt.vm
│ │ └── protoc-plugin.apt.vm
│ ├── index.apt.vm
│ └── usage.apt.vm
├── fml/
│ └── faq.fml
└── site.xml
SYMBOL INDEX (165 symbols across 26 files)
FILE: src/it/setup-protoc-plugin/src/main/java/org/xolstice/protobuf/plugin/minimal/MinimalPlugin.java
class MinimalPlugin (line 31) | public class MinimalPlugin {
method main (line 33) | public static void main(String... args) {
method generateCode (line 52) | private static CodeGeneratorResponse generateCode(CodeGeneratorRequest...
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/AbstractProtocCompileMojo.java
class AbstractProtocCompileMojo (line 32) | public abstract class AbstractProtocCompileMojo extends AbstractProtocMo...
method doAttachProtoSources (line 43) | @Override
method doAttachGeneratedFiles (line 49) | @Override
method getDependencyArtifacts (line 56) | @Override
method getProtoSourceRoot (line 61) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/AbstractProtocMojo.java
class AbstractProtocMojo (line 81) | abstract class AbstractProtocMojo extends AbstractMojo {
method execute (line 398) | @Override
method createProtocPlugins (line 536) | protected void createProtocPlugins() {
method detectJavaHome (line 575) | protected String detectJavaHome() {
method addProtocBuilderParameters (line 616) | protected void addProtocBuilderParameters(final Protoc.Builder protocB...
method skipMojo (line 641) | protected boolean skipMojo() {
method findGeneratedFilesInDirectory (line 655) | protected static List<File> findGeneratedFilesInDirectory(final File d...
method lastModified (line 675) | protected static long lastModified(final Iterable<File> files) {
method checkFilesUpToDate (line 690) | protected boolean checkFilesUpToDate(final Iterable<File> sourceFiles,...
method hasDelta (line 702) | protected boolean hasDelta(final Iterable<File> files) {
method checkParameters (line 711) | protected void checkParameters() {
method getProtoSourceRoot (line 740) | protected abstract File getProtoSourceRoot();
method getIncludes (line 742) | protected String[] getIncludes() {
method getExcludes (line 746) | protected String[] getExcludes() {
method getDependencyArtifacts (line 752) | protected abstract List<Artifact> getDependencyArtifacts();
method getOutputDirectory (line 760) | protected abstract File getOutputDirectory();
method doAttachFiles (line 762) | protected void doAttachFiles() {
method doAttachProtoSources (line 769) | protected abstract void doAttachProtoSources();
method doAttachGeneratedFiles (line 771) | protected abstract void doAttachGeneratedFiles();
method getDependencyArtifactFiles (line 778) | protected List<File> getDependencyArtifactFiles() {
method makeProtoPathFromJars (line 799) | protected List<File> makeProtoPathFromJars(
method findProtoFilesInDirectory (line 874) | protected List<File> findProtoFilesInDirectory(final File directory) {
method findProtoFilesInDirectories (line 892) | protected List<File> findProtoFilesInDirectories(final Iterable<File> ...
method truncatePath (line 909) | protected String truncatePath(final String jarPath) {
method md5Hash (line 936) | private static String md5Hash(final String string) {
method toHexString (line 949) | protected static String toHexString(final byte[] byteArray) {
method resolveBinaryArtifact (line 957) | protected File resolveBinaryArtifact(final Artifact artifact) {
method createDependencyArtifact (line 1034) | protected Artifact createDependencyArtifact(final String artifactSpec) {
method createDependencyArtifact (line 1047) | protected Artifact createDependencyArtifact(
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/AbstractProtocTestCompileMojo.java
class AbstractProtocTestCompileMojo (line 32) | public abstract class AbstractProtocTestCompileMojo extends AbstractProt...
method doAttachProtoSources (line 43) | @Override
method doAttachGeneratedFiles (line 49) | @Override
method getDependencyArtifacts (line 56) | @Override
method getProtoSourceRoot (line 61) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/MojoConfigurationException.java
class MojoConfigurationException (line 24) | public final class MojoConfigurationException extends RuntimeException {
method MojoConfigurationException (line 28) | public MojoConfigurationException(final String message) {
method MojoConfigurationException (line 32) | public MojoConfigurationException(final String message, final Throwabl...
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/MojoInitializationException.java
class MojoInitializationException (line 24) | public final class MojoInitializationException extends RuntimeException {
method MojoInitializationException (line 28) | public MojoInitializationException(final String message) {
method MojoInitializationException (line 32) | public MojoInitializationException(final String message, final Throwab...
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/Protoc.java
class Protoc (line 39) | final class Protoc {
method Protoc (line 152) | private Protoc(
method execute (line 213) | public int execute(final Log log) throws CommandLineException, Interru...
method buildProtocCommand (line 252) | public List<String> buildProtocCommand() {
method logExecutionParameters (line 323) | public void logExecutionParameters(final Log log) {
method getOutput (line 392) | public String getOutput() {
method getError (line 399) | public String getError() {
method fixUnicodeOutput (line 410) | private static String fixUnicodeOutput(final String message) {
method createFileWithArguments (line 421) | private File createFileWithArguments(String... args) throws IOException {
class Builder (line 444) | static final class Builder {
method Builder (line 514) | Builder(final String executable) {
method setTempDirectory (line 524) | public Builder setTempDirectory(final File tempDirectory) {
method setJavaOutputDirectory (line 542) | public Builder setJavaOutputDirectory(final File javaOutputDirectory) {
method setCppOutputDirectory (line 560) | public Builder setCppOutputDirectory(final File cppOutputDirectory) {
method setPythonOutputDirectory (line 578) | public Builder setPythonOutputDirectory(final File pythonOutputDirec...
method setCsharpOutputDirectory (line 596) | public Builder setCsharpOutputDirectory(final File csharpOutputDirec...
method setJavaScriptOutputDirectory (line 614) | public Builder setJavaScriptOutputDirectory(final File javaScriptOut...
method setCustomOutputDirectory (line 633) | public Builder setCustomOutputDirectory(final File customOutputDirec...
method addProtoFile (line 653) | public Builder addProtoFile(final File protoFile) {
method addPlugin (line 670) | public Builder addPlugin(final ProtocPlugin plugin) {
method setPluginDirectory (line 678) | public Builder setPluginDirectory(final File pluginDirectory) {
method setNativePluginId (line 690) | public Builder setNativePluginId(final String nativePluginId) {
method setNativePluginExecutable (line 707) | public Builder setNativePluginExecutable(final String nativePluginEx...
method setNativePluginParameter (line 715) | public Builder setNativePluginParameter(final String nativePluginPar...
method withDescriptorSetFile (line 726) | public Builder withDescriptorSetFile(
method useArgumentFile (line 747) | public Builder useArgumentFile(final boolean useArgumentFile) {
method checkProtoFileIsInProtopath (line 752) | private void checkProtoFileIsInProtopath(final File protoFile) {
method checkProtoFileIsInProtopathHelper (line 761) | private boolean checkProtoFileIsInProtopathHelper(final File directo...
method addProtoFiles (line 779) | public Builder addProtoFiles(final Iterable<File> protoFiles) {
method addProtoPathElement (line 792) | public Builder addProtoPathElement(final File protopathElement) {
method addProtoPathElements (line 811) | public Builder addProtoPathElements(final Iterable<File> protopathEl...
method validateState (line 821) | private void validateState() {
method build (line 844) | public Protoc build() {
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocCompileCppMojo.java
class ProtocCompileCppMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 53) | @Override
method getOutputDirectory (line 59) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocCompileCsharpMojo.java
class ProtocCompileCsharpMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 53) | @Override
method getOutputDirectory (line 59) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocCompileCustomMojo.java
class ProtocCompileCustomMojo (line 38) | @Mojo(
method addProtocBuilderParameters (line 140) | @Override
method getOutputDirectory (line 173) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocCompileDescriptorSetMojo.java
class ProtocCompileDescriptorSetMojo (line 36) | @Mojo(
method addProtocBuilderParameters (line 100) | @Override
method getOutputDirectory (line 109) | @Override
method doAttachGeneratedFiles (line 114) | @SuppressWarnings("MethodDoesntCallSuperMethod")
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocCompileJavaScriptMojo.java
class ProtocCompileJavaScriptMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 63) | @Override
method getOutputDirectory (line 72) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocCompileMojo.java
class ProtocCompileMojo (line 33) | @Mojo(
method addProtocBuilderParameters (line 63) | @Override
method getOutputDirectory (line 72) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocCompilePythonMojo.java
class ProtocCompilePythonMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 53) | @Override
method getOutputDirectory (line 59) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocPlugin.java
class ProtocPlugin (line 34) | public class ProtocPlugin {
method getId (line 71) | public String getId() {
method getGroupId (line 80) | public String getGroupId() {
method getArtifactId (line 89) | public String getArtifactId() {
method getVersion (line 99) | public String getVersion() {
method getClassifier (line 108) | public String getClassifier() {
method getMainClass (line 117) | public String getMainClass() {
method getArgs (line 126) | public List<String> getArgs() {
method getJvmArgs (line 135) | public List<String> getJvmArgs() {
method getJavaHome (line 139) | public String getJavaHome() {
method setJavaHome (line 143) | public void setJavaHome(final String javaHome) {
method getWinJvmDataModel (line 147) | public String getWinJvmDataModel() {
method getPluginName (line 151) | public String getPluginName() {
method validate (line 160) | public void validate(final Log log) {
method archDirectoryExists (line 213) | private boolean archDirectoryExists(String arch) {
method getPluginExecutableFile (line 225) | public File getPluginExecutableFile(final File pluginDirectory) {
method toString (line 233) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocPluginAssembler.java
class ProtocPluginAssembler (line 51) | public class ProtocPluginAssembler {
method ProtocPluginAssembler (line 77) | public ProtocPluginAssembler(
method execute (line 104) | public void execute() {
method buildWindowsPlugin (line 122) | private void buildWindowsPlugin() {
method findJvmLocation (line 176) | private static File findJvmLocation(final File javaHome, final String....
method copyWinRun4JExecutable (line 186) | private void copyWinRun4JExecutable() {
method buildUnixPlugin (line 201) | private void buildUnixPlugin() {
method createPluginDirectory (line 240) | private void createPluginDirectory() {
method resolvePluginDependencies (line 248) | private void resolvePluginDependencies() {
method getWinrun4jExecutablePath (line 301) | private String getWinrun4jExecutablePath() {
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocTestCompileCppMojo.java
class ProtocTestCompileCppMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 53) | @Override
method getOutputDirectory (line 65) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocTestCompileCsharpMojo.java
class ProtocTestCompileCsharpMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 53) | @Override
method getOutputDirectory (line 65) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocTestCompileCustomMojo.java
class ProtocTestCompileCustomMojo (line 38) | @Mojo(
method addProtocBuilderParameters (line 140) | @Override
method getOutputDirectory (line 180) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocTestCompileDescriptorSetMojo.java
class ProtocTestCompileDescriptorSetMojo (line 36) | @Mojo(
method addProtocBuilderParameters (line 101) | @Override
method getOutputDirectory (line 116) | @Override
method doAttachGeneratedFiles (line 121) | @SuppressWarnings("MethodDoesntCallSuperMethod")
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocTestCompileJavaScriptMojo.java
class ProtocTestCompileJavaScriptMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 63) | @Override
method getOutputDirectory (line 78) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocTestCompileMojo.java
class ProtocTestCompileMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 65) | @Override
method getOutputDirectory (line 80) | @Override
FILE: src/main/java/org/xolstice/maven/plugin/protobuf/ProtocTestCompilePythonMojo.java
class ProtocTestCompilePythonMojo (line 35) | @Mojo(
method addProtocBuilderParameters (line 53) | @Override
method getOutputDirectory (line 65) | @Override
FILE: src/main/java/org/xolstice/maven/toolchain/protobuf/DefaultProtobufToolchain.java
class DefaultProtobufToolchain (line 31) | public class DefaultProtobufToolchain extends DefaultToolchain implement...
method DefaultProtobufToolchain (line 35) | protected DefaultProtobufToolchain(ToolchainModel model, Logger logger) {
method findTool (line 41) | @Override
method getProtocExecutable (line 52) | @Override
method setProtocExecutable (line 57) | @Override
method toString (line 62) | @Override
FILE: src/main/java/org/xolstice/maven/toolchain/protobuf/DefaultProtobufToolchainFactory.java
class DefaultProtobufToolchainFactory (line 40) | @Component(
method createToolchain (line 49) | @Override
method createDefaultToolchain (line 97) | @Override
method toProperties (line 102) | protected static Properties toProperties(final Xpp3Dom dom) {
FILE: src/main/java/org/xolstice/maven/toolchain/protobuf/ProtobufToolchain.java
type ProtobufToolchain (line 26) | public interface ProtobufToolchain extends Toolchain {
method getProtocExecutable (line 28) | String getProtocExecutable();
method setProtocExecutable (line 30) | void setProtocExecutable(String protocExecutable);
Condensed preview — 248 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (602K chars).
[
{
"path": ".appveyor/toolchains.xml",
"chars": 1774,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": ".appveyor.yml",
"chars": 1249,
"preview": "version: '{build}'\n\nskip_tags: true\n\nenvironment:\n JAVA_HOME: 'C:\\Program Files\\Java\\jdk1.8.0'\n\ninstall:\n # Prepend Ja"
},
{
"path": ".editorconfig",
"chars": 500,
"preview": "# http://editorconfig.org\n\n# A special property that should be specified at the top of the file outside of any sections."
},
{
"path": ".gitattributes",
"chars": 406,
"preview": "# Set the default behaviour, in case users don't have core.autocrlf set\n* text=auto\n\n# Explicitly declare text files we "
},
{
"path": ".github/ISSUE_TEMPLATE/bug_report.md",
"chars": 1091,
"preview": "---\nname: Bug report\nabout: Create a report to help us improve\n\n---\n\n**Before submitting a bug report**\n- [ ] Check the "
},
{
"path": ".github/ISSUE_TEMPLATE/feature_request.md",
"chars": 508,
"preview": "---\nname: Feature request\nabout: Suggest an idea for this project\n\n---\n\n**Is your feature request related to a problem? "
},
{
"path": ".github/pull_request_template.md",
"chars": 204,
"preview": "**Applicable Issues**\n<!-- If this pull request fixes an existing issue, please reference it below -->\nFixes #...\n\n**Des"
},
{
"path": ".gitignore",
"chars": 205,
"preview": "# IDEA project files\n.idea*\n*.ipr\n*.iws\n*.iml\n\n# Eclipse project files\n.classpath\n.project\n.settings\n\n# Maven output\ntar"
},
{
"path": ".mvn/wrapper/maven-wrapper.properties",
"chars": 115,
"preview": "distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip"
},
{
"path": ".travis/toolchains.xml",
"chars": 1763,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": ".travis.yml",
"chars": 1112,
"preview": "dist: trusty\nsudo: false\n\nlanguage: java\njdk: openjdk8\n\nbefore_install:\n # Set up toolchains for java and protoc\n # Pr"
},
{
"path": "AUTHORS",
"chars": 563,
"preview": "# This is the official list of Maven Protocol Buffers Plugin authors for copyright purposes.\n# This file is distinct fro"
},
{
"path": "CONTRIBUTORS",
"chars": 1243,
"preview": "# This is the official list of people who have contributed\n# code to the Maven Protocol Buffers Plugin repository.\n# The"
},
{
"path": "LICENSE",
"chars": 11834,
"preview": "This license applies to all parts of Maven Protocol Buffers Plugin except the following:\n\n - WinRun4J Java launcher bin"
},
{
"path": "NOTICE",
"chars": 712,
"preview": "Maven Protocol Buffers Plugin\nCopyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n\n=========="
},
{
"path": "README.md",
"chars": 1094,
"preview": "[](http://unmaintained.tech/)\n[ 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/changes/changes.xml",
"chars": 11925,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2020 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-1/invoker.properties",
"chars": 1027,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-1/pom.xml",
"chars": 2746,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-1/src/main/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-1/verify.groovy",
"chars": 1114,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-10/invoker.properties",
"chars": 917,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-10/pom.xml",
"chars": 2026,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-10/project1/pom.xml",
"chars": 1712,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-10/project1/src/main/proto/test1.proto",
"chars": 811,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-10/project2/pom.xml",
"chars": 1936,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-10/project2/src/main/proto/test2.proto",
"chars": 865,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-10/verify.groovy",
"chars": 1664,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-11/invoker.properties",
"chars": 1173,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-11/pom.xml",
"chars": 2026,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-11/project1/pom.xml",
"chars": 2117,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-11/project1/src/test/proto/it/project1/test1.proto",
"chars": 833,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-11/project2/pom.xml",
"chars": 2007,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-11/project2/src/test/proto/it/project2/test2.proto",
"chars": 911,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-11/verify.groovy",
"chars": 1674,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-12/invoker.properties",
"chars": 922,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-12/pom.xml",
"chars": 2026,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-12/project1/pom.xml",
"chars": 2117,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-12/project1/src/test/proto/test1.proto",
"chars": 811,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-12/project2/pom.xml",
"chars": 2007,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-12/project2/src/test/proto/test2.proto",
"chars": 865,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-12/verify.groovy",
"chars": 1674,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-13/invoker.properties",
"chars": 1059,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-13/pom.xml",
"chars": 2070,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-13/src/main/proto/it/project1/test1.proto",
"chars": 834,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-13/src/test/proto/it/project1/test2.proto",
"chars": 912,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-13/verify.groovy",
"chars": 1655,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-14/invoker.properties",
"chars": 957,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-14/pom.xml",
"chars": 2070,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-14/src/main/proto/test1.proto",
"chars": 812,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-14/src/test/proto/test2.proto",
"chars": 866,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-14/verify.groovy",
"chars": 1655,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-15/invoker.properties",
"chars": 999,
"preview": "#\n# Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-15/pom.xml",
"chars": 2031,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-15/src/main/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-15/verify.groovy",
"chars": 973,
"preview": "/*\n * Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-16/invoker.properties",
"chars": 1046,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-16/pom.xml",
"chars": 3653,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-16/src/main/proto/test1.proto",
"chars": 956,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-16/src/main/proto/test2.proto",
"chars": 956,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-16/verify.groovy",
"chars": 1282,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-17/invoker.properties",
"chars": 1120,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-17/pom.xml",
"chars": 2995,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-17/src/main/proto/test.proto",
"chars": 933,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-18/invoker.properties",
"chars": 1039,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-18/pom.xml",
"chars": 2023,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-18/src/main/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-18/verify.groovy",
"chars": 1071,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-19/invoker.properties",
"chars": 1049,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-19/pom.xml",
"chars": 2028,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-19/src/test/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-19/verify.groovy",
"chars": 1076,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-2/invoker.properties",
"chars": 1154,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-2/pom.xml",
"chars": 2508,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-2/verify.groovy",
"chars": 877,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-20/invoker.properties",
"chars": 1036,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-20/pom.xml",
"chars": 2020,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-20/src/main/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-20/verify.groovy",
"chars": 1455,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-21/invoker.properties",
"chars": 1046,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-21/pom.xml",
"chars": 2025,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-21/src/test/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-21/verify.groovy",
"chars": 1460,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-22/invoker.properties",
"chars": 1084,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-22/pom.xml",
"chars": 2070,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-22/src/main/proto/a/aaa.proto",
"chars": 809,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-22/src/test/proto/b/bbb.proto",
"chars": 809,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-22/verify.groovy",
"chars": 1260,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-23/invoker.properties",
"chars": 1088,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-23/pom.xml",
"chars": 2226,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-23/src/main/proto/a/aaa.proto",
"chars": 809,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-23/src/test/proto/b/bbb.proto",
"chars": 809,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-23/verify.groovy",
"chars": 1190,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-24/invoker.properties",
"chars": 883,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-24/pom.xml",
"chars": 2026,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-24/project1/pom.xml",
"chars": 1858,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-24/project1/src/main/proto/it/project1/test1.proto",
"chars": 833,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-24/project2/pom.xml",
"chars": 2595,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-24/verify.groovy",
"chars": 957,
"preview": "/*\n * Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-25/invoker.properties",
"chars": 982,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-25/pom.xml",
"chars": 2101,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-25/src/main/proto/test.proto",
"chars": 794,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-25/verify.groovy",
"chars": 1114,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-26/invoker.properties",
"chars": 1009,
"preview": "#\n# Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-26/pom.xml",
"chars": 2036,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-26/src/test/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-26/verify.groovy",
"chars": 978,
"preview": "/*\n * Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-27/invoker.properties",
"chars": 890,
"preview": "#\n# Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-27/pom.xml",
"chars": 2026,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-27/project1/pom.xml",
"chars": 1863,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-27/project1/src/test/proto/it/project1/test1.proto",
"chars": 833,
"preview": "//\n// Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-27/project2/pom.xml",
"chars": 2679,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-27/verify.groovy",
"chars": 962,
"preview": "/*\n * Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-28/invoker.properties",
"chars": 995,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-28/pom.xml",
"chars": 3401,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-28/src/main/proto/test.proto",
"chars": 1042,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-28/verify.groovy",
"chars": 1589,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-29/invoker.properties",
"chars": 1016,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-29/pom.xml",
"chars": 2263,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-29/src/main/proto/test.proto",
"chars": 794,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-29/src/main/proto/тест.proto",
"chars": 798,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-29/src/main/proto/テスト.proto",
"chars": 798,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-29/verify.groovy",
"chars": 1750,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-3/invoker.properties",
"chars": 1202,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-3/pom.xml",
"chars": 2241,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-30/invoker.properties",
"chars": 1040,
"preview": "#\n# Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-30/pom.xml",
"chars": 2023,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-30/src/main/proto/test.proto",
"chars": 913,
"preview": "//\n// Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-30/verify.groovy",
"chars": 1043,
"preview": "/*\n * Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-31/invoker.properties",
"chars": 1050,
"preview": "#\n# Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-31/pom.xml",
"chars": 2028,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-31/src/test/proto/test.proto",
"chars": 913,
"preview": "//\n// Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-31/verify.groovy",
"chars": 1048,
"preview": "/*\n * Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-32/invoker.properties",
"chars": 949,
"preview": "#\n# Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-32/pom.xml",
"chars": 2019,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-32/src/main/proto/test.proto",
"chars": 849,
"preview": "//\n// Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-32/verify.groovy",
"chars": 1046,
"preview": "/*\n * Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-33/invoker.properties",
"chars": 985,
"preview": "#\n# Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-33/pom.xml",
"chars": 2196,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-33/src/main/proto/test.proto",
"chars": 849,
"preview": "//\n// Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-33/verify.groovy",
"chars": 1042,
"preview": "/*\n * Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-34/invoker.properties",
"chars": 970,
"preview": "#\n# Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-34/pom.xml",
"chars": 2024,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-34/src/test/proto/test.proto",
"chars": 849,
"preview": "//\n// Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-34/verify.groovy",
"chars": 1051,
"preview": "/*\n * Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-35/invoker.properties",
"chars": 1006,
"preview": "#\n# Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-35/pom.xml",
"chars": 2201,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-35/src/test/proto/test.proto",
"chars": 849,
"preview": "//\n// Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-35/verify.groovy",
"chars": 1047,
"preview": "/*\n * Copyright (c) 2018 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-36/invoker.properties",
"chars": 987,
"preview": "#\n# Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-36/pom.xml",
"chars": 2264,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-36/src/main/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-36/verify.groovy",
"chars": 1183,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-37/invoker.properties",
"chars": 1009,
"preview": "#\n# Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-37/pom.xml",
"chars": 2269,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-37/src/test/proto/test.proto",
"chars": 953,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-37/verify.groovy",
"chars": 1188,
"preview": "/*\n * Copyright (c) 2019 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-4/invoker.properties",
"chars": 1094,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-4/pom.xml",
"chars": 1774,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-4/src/main/proto/test.proto",
"chars": 774,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-4/verify.groovy",
"chars": 901,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-5/invoker.properties",
"chars": 1435,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-5/pom.xml",
"chars": 2278,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-5/project1/pom.xml",
"chars": 1709,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-5/project1/src/main/proto/it/project1/test1.proto",
"chars": 833,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-5/project2/pom.xml",
"chars": 1932,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-5/project2/src/main/proto/it/project2/test2.proto",
"chars": 911,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-5/verify.groovy",
"chars": 1664,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-6/invoker.properties",
"chars": 1176,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-6/pom.xml",
"chars": 2278,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-6/project1/pom.xml",
"chars": 1709,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-6/project1/src/main/proto/test1.proto",
"chars": 811,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-6/project2/pom.xml",
"chars": 1932,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-6/project2/src/main/proto/test2.proto",
"chars": 865,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-6/verify.groovy",
"chars": 1664,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-7/invoker.properties",
"chars": 1433,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-7/pom.xml",
"chars": 2278,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-7/project1/pom.xml",
"chars": 2114,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-7/project1/src/test/proto/it/project1/test1.proto",
"chars": 833,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-7/project2/pom.xml",
"chars": 2003,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-7/project2/src/test/proto/it/project2/test2.proto",
"chars": 911,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-7/verify.groovy",
"chars": 1674,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-8/invoker.properties",
"chars": 1181,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-8/pom.xml",
"chars": 2278,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-8/project1/pom.xml",
"chars": 2114,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-8/project1/src/test/proto/test1.proto",
"chars": 811,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-8/project2/pom.xml",
"chars": 2003,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-8/project2/src/test/proto/test2.proto",
"chars": 865,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-8/verify.groovy",
"chars": 1674,
"preview": "/*\n * Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n *\n * Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-9/invoker.properties",
"chars": 1175,
"preview": "#\n# Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n#\n# Licensed under the Apache License"
},
{
"path": "src/it/TEST-9/pom.xml",
"chars": 2024,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-9/project1/pom.xml",
"chars": 1709,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-9/project1/src/main/proto/it/project1/test1.proto3",
"chars": 833,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
},
{
"path": "src/it/TEST-9/project2/pom.xml",
"chars": 1932,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<!--\n ~ Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights re"
},
{
"path": "src/it/TEST-9/project2/src/main/proto/it/project2/test2.proto3",
"chars": 912,
"preview": "//\n// Copyright (c) 2016 Maven Protocol Buffers Plugin Authors. All rights reserved.\n//\n// Licensed under the Apache Lic"
}
]
// ... and 48 more files (download for full content)
About this extraction
This page contains the full source code of the xolstice/protobuf-maven-plugin GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 248 files (553.1 KB), approximately 135.3k tokens, and a symbol index with 165 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.