Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.4.2
-
None
-
None
-
java version "1.5.0_15", Linux version 2.6.21-1.3194.fc7, Maven 2.0.9
Description
I tried the following without success:
- I added java.endorsed.dirs to systemProperties
<profile>
<id>jboss500</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>java.endorsed.dirs</name>
<value>${jboss500.home}/lib/endorsed</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</profile>
- I added java.endorsed.dirs JVM property to argLine:
<profile>
<id>jboss500</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Djava.endorsed.dirs=${jboss501.home}/lib/endorsed</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
- I tried to propagate it from commandline using command:
mvn -Pjboss500 -Djava.endorsed.dirs=$JBOSS_HOME/lib/endorsed test