my post has only backup, bookmark and memo purpose.
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
<outputDirectory>${project.build.directory}/endorsed
</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.1</version>
<outputDirectory>${project.build.directory}/endorsed
</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgument>-Djava.endorsed.dirs="${project.build.directory}/endorsed"
</compilerArgument>
<compilerVersion>1.6</compilerVersion>
<encoding>UTF-8</encoding>
<debug>false</debug>
<showWarnings>true</showWarnings>
<source>1.6</source>
<target>1.6</target>
</configuration>
<inherited>true</inherited>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argline>-Djava.endorsed.dirs="${project.build.directory}/endorsed"
</argline>
</configuration>
</plugin>
No comments:
Post a Comment