Skip to content

Commit

Permalink
mvn package should pass after mvn clean install -Pfastest -T4C too
Browse files Browse the repository at this point in the history
- processing annotations of generated classes moved to own execution as
  the current compiler plugin supports that
  • Loading branch information
dmatej committed Apr 11, 2022
1 parent 8fa08c2 commit bc4e02a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 27 deletions.
7 changes: 0 additions & 7 deletions appserver/jdbc/jdbc-ra/jdbc40/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,5 @@
</excludes>
</resource>
</resources>
<plugins>
<plugin><!--
Use JDBC 4.0 API regardless of which JDK we are building with.
-->
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
7 changes: 0 additions & 7 deletions appserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -661,13 +661,6 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.glassfish.build</groupId>
<artifactId>spec-version-maven-plugin</artifactId>
Expand Down
14 changes: 1 addition & 13 deletions nucleus/admin/rest/rest-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<description>Rest Interface for GlassFish Management and Monitoring</description>

<dependencies>

<dependency>
<groupId>org.glassfish.hk2</groupId>
<artifactId>hk2</artifactId>
Expand Down Expand Up @@ -145,19 +146,6 @@

<build>
<plugins>
<plugin><!-- The services directory must be processed after compilation,
it would be used in compilation otherwise and the build would fail -->
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>default-resources</id>
<phase>process-classes</phase>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Test classes from this module are used elsewhere -->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
22 changes: 22 additions & 0 deletions nucleus/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,28 @@
<testExclude>**/.ade_path/**</testExclude>
</testExcludes>
</configuration>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<proc>none</proc>
</configuration>
</execution>
<execution>
<id>process-annotations</id>
<phase>process-classes</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<proc>only</proc>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down

0 comments on commit bc4e02a

Please sign in to comment.