[Git][java-team/maven-processor-plugin][master] 6 commits: Standards-Version updated to 4.3.0
Emmanuel Bourg
gitlab at salsa.debian.org
Sat Jan 19 22:24:59 GMT 2019
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / maven-processor-plugin
Commits:
6c43042c by Emmanuel Bourg at 2019-01-19T22:20:06Z
Standards-Version updated to 4.3.0
- - - - -
7f7bfbb8 by Emmanuel Bourg at 2019-01-19T22:20:16Z
Use salsa.debian.org Vcs-* URLs
- - - - -
4c00cf71 by Emmanuel Bourg at 2019-01-19T22:21:20Z
New upstream version 3.3.3
- - - - -
5524bfc7 by Emmanuel Bourg at 2019-01-19T22:21:20Z
Update upstream source from tag 'upstream/3.3.3'
Update to upstream version '3.3.3'
with Debian dir 791ece26ce801f272d2787609ecb633a64c4c985
- - - - -
fc06aa6f by Emmanuel Bourg at 2019-01-19T22:22:51Z
Refreshed the patch
- - - - -
c28e4c41 by Emmanuel Bourg at 2019-01-19T22:23:12Z
Upload to unstable
- - - - -
9 changed files:
- README.md
- debian/changelog
- debian/control
- debian/patches/01-java9-compatibility.patch
- pom.xml
- src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java
- src/main/java/org/bsc/maven/plugin/processor/AnnotationProcessorCompiler.java
- + src/site/markdown/qa.md
- src/site/site.xml
Changes:
=====================================
README.md
=====================================
@@ -15,21 +15,34 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
* [Version 2 (old)](http://bsorrentino.github.io/maven-annotation-plugin/site2/index.html)
-## Related plugin ##
+## Related plugin
[m2e-apt](https://github.com/jbosstools/m2e-apt) | eclipse plugin from Jboss
----|----
[m2e-annotations](https://github.com/ilx/m2e-annotations) | eclipse plugin
-## Releases ##
+## Develop an annotation processor
+
+* [ANNOTATION PROCESSING 101](http://hannesdorfmann.com/annotation-processing/annotationprocessing101)
+
+## Releases
+
+currently | **Release 3.3.3-SNAPSHOT** | available from **[MAVEN CENTRAL REPO](https://oss.sonatype.org/content/repositories/snapshots/org/bsc/maven/maven-processor-plugin/3.3.3-SNAPSHOT/)** |
+---- | ---- | ----
Sep 7,2017 | **Release 3.3.2**. | Available on **[MAVEN CENTRAL REPO](http://search.maven.org/#artifactdetails%7Corg.bsc.maven%7Cmaven-processor-plugin%7C3.3.2%7Cmaven-plugin)** |
----|----|----
* [Issue 69](https://github.com/bsorrentino/maven-annotation-plugin/issues/69) - Java 9 support
* [Pull request 70](https://github.com/bsorrentino/maven-annotation-plugin/pull/70) - Pass through additional compiler arguments
-
+
> Thanks to [beikov](https://github.com/beikov) for contribution
+Apr 11,2017 | **Release 3.3.1**. | Available on **[MAVEN CENTRAL REPO](http://search.maven.org/#artifactdetails%7Corg.bsc.maven%7Cmaven-processor-plugin%7C3.3.1%7Cmaven-plugin)** |
+----|----|----
+
+* [Issue 66](https://github.com/bsorrentino/maven-annotation-plugin/issues/66) - source 1.8 ignored
+* [Issue 67](https://github.com/bsorrentino/maven-annotation-plugin/issues/67) - options are not taking in consideration
+
Apr 10,2017 | **Release 3.3**. | Available on **[MAVEN CENTRAL REPO](http://search.maven.org/#artifactdetails%7Corg.bsc.maven%7Cmaven-processor-plugin%7C3.3%7Cmaven-plugin)** |
----|----|----
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+maven-processor-plugin (3.3.3-1) unstable; urgency=medium
+
+ * Team upload.
+ * New upstream release
+ - Refreshed the patch
+ * Standards-Version updated to 4.3.0
+ * Use salsa.debian.org Vcs-* URLs
+
+ -- Emmanuel Bourg <ebourg at apache.org> Sat, 19 Jan 2019 23:22:56 +0100
+
maven-processor-plugin (3.3.2-2) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -11,9 +11,9 @@ Build-Depends:
libmaven3-core-java,
libplexus-compiler-java,
maven-debian-helper (>= 1.5)
-Standards-Version: 4.1.4
-Vcs-Git: https://anonscm.debian.org/git/pkg-java/maven-processor-plugin.git
-Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/maven-processor-plugin.git
+Standards-Version: 4.3.0
+Vcs-Git: https://salsa.debian.org/java-team/maven-processor-plugin.git
+Vcs-Browser: https://salsa.debian.org/java-team/maven-processor-plugin
Homepage: http://bsorrentino.github.io/maven-annotation-plugin/
Package: libmaven-processor-plugin-java
=====================================
debian/patches/01-java9-compatibility.patch
=====================================
@@ -3,7 +3,7 @@ Author: Emmanuel Bourg <ebourg at apache.org>
Forwarded: no
--- a/src/main/java/org/bsc/maven/plugin/processor/AnnotationProcessorCompiler.java
+++ b/src/main/java/org/bsc/maven/plugin/processor/AnnotationProcessorCompiler.java
-@@ -399,6 +399,8 @@
+@@ -402,6 +402,8 @@
{
return new CompilationTask() {
=====================================
pom.xml
=====================================
@@ -3,7 +3,7 @@
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<packaging>maven-plugin</packaging>
- <version>3.3.2</version>
+ <version>3.3.3</version>
<name>MAVEN PROCESSOR PLUGIN - ${project.version}</name>
<description>A maven plugin to process annotation for jdk6 at compile time
@@ -33,6 +33,7 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
</distributionManagement>
<properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.release>3.1.0</maven.release>
<!-- SONATYPE REPO -->
<snapshot.repo.id>sonatype-repo</snapshot.repo.id>
@@ -82,24 +83,24 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
<dependencyManagement>
<dependencies>
- <dependency>
+ <dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-api</artifactId>
- <version>2.8.1</version>
+ <version>2.8.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-manager</artifactId>
- <version>2.8.1</version>
+ <version>2.8.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac</artifactId>
- <version>2.8.1</version>
+ <version>2.8.2</version>
<scope>compile</scope>
</dependency>
</dependencies>
- </dependencyManagement>
+ </dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
@@ -124,7 +125,7 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
<artifactId>plexus-utils</artifactId>
<version>3.0.15</version>
</dependency>
- <dependency>
+ <dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-api</artifactId>
</dependency>
@@ -146,7 +147,6 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
</dependencies>
-
<build>
<plugins>
@@ -203,6 +203,19 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
<version>3.4</version>
<scope>runtime</scope>
</dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.reporting</groupId>
+ <artifactId>maven-reporting-exec</artifactId>
+ <version>1.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.maven.doxia</groupId>
+ <artifactId>doxia-module-markdown</artifactId>
+ <version>1.6</version>
+ </dependency>
+
</dependencies>
<configuration>
<reportPlugins>
@@ -210,13 +223,18 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
- <version>3.1</version>
+ <version>3.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
+
+ <configuration>
+ <!-- @see https://www.mkyong.com/maven/maven-site-build-is-very-slow-dependency-report/ -->
+ <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+ </configuration>
</plugin>
</reportPlugins>
</configuration>
@@ -234,6 +252,7 @@ This plugin could be considered the 'alter ego' of maven apt plugin http://mojo.
</extensions>
-->
+
</build>
<profiles>
=====================================
src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java
=====================================
@@ -90,6 +90,14 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo
private static final String SOURCE_CLASSIFIER = "sources";
+ /**
+ * value of -release parameter in java 9+
+ *
+ * @since 3.3.3
+ */
+ @Parameter
+ private String releaseVersion;
+
/**
*
*/
@@ -483,7 +491,6 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo
}
- @SuppressWarnings("unchecked")
private void executeWithExceptionsHandled() throws Exception
{
if (outputDirectory == null)
@@ -583,6 +590,11 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo
options.add("-s");
options.add(outputDirectory.getPath());
+ if( releaseVersion!=null ) {
+ options.add("--release");
+ options.add( releaseVersion );
+ }
+
if( getLog().isDebugEnabled() ) {
for (String option : options) {
=====================================
src/main/java/org/bsc/maven/plugin/processor/AnnotationProcessorCompiler.java
=====================================
@@ -339,6 +339,9 @@ public class AnnotationProcessorCompiler implements JavaCompiler {
else if( "-s".equals(option) ) {
javacConf.setGeneratedSourcesDirectory( new java.io.File(ii.next()));
}
+ else if( "--release".equals(option) ) {
+ javacConf.setReleaseVersion(ii.next());
+ }
else /*if( option.startsWith("-A") ) */ { // view pull #70
// Just pass through any other arguments
javacConf.addCompilerCustomArgument(option, "");
=====================================
src/site/markdown/qa.md
=====================================
@@ -0,0 +1,8 @@
+## Questions & Answers
+
+
+### Multiple executions of plugin
+
+Referring to issue [72](https://github.com/bsorrentino/maven-annotation-plugin/issues/72), apparently the default configuration of the sources plugin doesn't play nice with plugins bound to the `generate-sources` phase.
+
+In the case you having this issue please refer to: [How to prevent generate-sources phase executing twice](http://blog.peterlynch.ca/2010/05/maven-how-to-prevent-generate-sources.html)
=====================================
src/site/site.xml
=====================================
@@ -20,6 +20,7 @@
<item name="Summary" href="project-summary.html"/>
<item name="Goals" href="plugin-info.html"/>
<item name="Usage" href="usage.html"/>
+ <item name="Q&A" href="qa.html"/>
</menu>
View it on GitLab: https://salsa.debian.org/java-team/maven-processor-plugin/compare/f73be789726c01f36347ec437391d185e5237bef...c28e4c4168e194d64154b8f9cc6f84368e444229
--
View it on GitLab: https://salsa.debian.org/java-team/maven-processor-plugin/compare/f73be789726c01f36347ec437391d185e5237bef...c28e4c4168e194d64154b8f9cc6f84368e444229
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20190119/d36fa8fe/attachment.html>
More information about the pkg-java-commits
mailing list