Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-497

Unable to force Java endorsed mechanism for tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.2
    • None
    • classloading
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            opalka Richard Opalka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: