[Git][java-team/maven-processor-plugin][upstream] New upstream version 3.3.3

Emmanuel Bourg gitlab at salsa.debian.org
Sat Jan 19 22:25:02 GMT 2019


Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / maven-processor-plugin


Commits:
4c00cf71 by Emmanuel Bourg at 2019-01-19T22:21:20Z
New upstream version 3.3.3
- - - - -


6 changed files:

- README.md
- 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)** |
 ----|----|----
 


=====================================
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/commit/4c00cf7177c884ebc57de43a5bfa9f91e10345a2

-- 
View it on GitLab: https://salsa.debian.org/java-team/maven-processor-plugin/commit/4c00cf7177c884ebc57de43a5bfa9f91e10345a2
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/a6c4f3ef/attachment.html>


More information about the pkg-java-commits mailing list