You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2017/09/23 10:00:54 UTC

svn commit: r1809384 - /axis/axis2/java/core/trunk/pom.xml

Author: veithen
Date: Sat Sep 23 10:00:54 2017
New Revision: 1809384

URL: http://svn.apache.org/viewvc?rev=1809384&view=rev
Log:
AXIS2-5890: Work around bug in jaxb2-maven-plugin.

Modified:
    axis/axis2/java/core/trunk/pom.xml

Modified: axis/axis2/java/core/trunk/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/pom.xml?rev=1809384&r1=1809383&r2=1809384&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/pom.xml (original)
+++ axis/axis2/java/core/trunk/pom.xml Sat Sep 23 10:00:54 2017
@@ -1170,7 +1170,7 @@
                 </plugin>
                 <plugin>
                     <artifactId>maven-clean-plugin</artifactId>
-                    <version>2.2</version>
+                    <version>3.0.0</version>
                 </plugin>
                 <plugin>
                     <artifactId>maven-compiler-plugin</artifactId>
@@ -1367,6 +1367,31 @@
                 </configuration>
             </plugin>
             <plugin>
+                <artifactId>maven-clean-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <!-- Work around AXIS2-5890. The jaxb2-maven-plugin doesn't have an option
+                             to force regenerating the source, so just clean the stale flag file. -->
+                        <id>clean-testXjcStaleFlag</id>
+                        <phase>generate-test-sources</phase>
+                        <goals>
+                            <goal>clean</goal>
+                        </goals>
+                        <configuration>
+                            <excludeDefaultDirectories>true</excludeDefaultDirectories>
+                            <filesets>
+                                <fileset>
+                                    <directory>${project.build.directory}/jaxb2</directory>
+                                    <includes>
+                                        <include>*-testXjcStaleFlag</include>
+                                    </includes>
+                                </fileset>
+                            </filesets>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>