Maven 1

Maven 1.1 doesn't seems to set up appropriately the java.endored.dir property for Java under Mac OS X

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-1
  • Fix Version/s: 1.1-beta-3
  • Component/s: cli
  • Labels:
    None
  • Environment:
    Mac OS X 10.4 - Java 1.4.2 - Should apply to any Mac OS X and Java
  • Number of attachments :
    0

Description

I had to add the following to the Maven 1.1b1 startup script for it to run properly under Mac OS X :

if $darwin; then
MAVEN_OPTS="$MAVEN_OPTS -Djava.endorsed.dirs=/System/Library/Java/Extensions"
fi

Because the extension are placed in this folder under Mac OS X Java installation. However this as perhaps been already fixed. (also one should have the Xerces libs in the above mentionned folder for running Maven 1.1b1 with jdk 1.4.2 [the classes of Xerces are included in Java 1.5 AFAIK]).

Activity

Hide
Dain Sundstrom added a comment -

This does not fix the java.lang.NullPointerException at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatOutput(XMLJUnitResultFormatter.java:253) on OSX.

The only way to have maven work property on OSX seems to be changing the /System/Library/Frameworks/JavaVM.framework/Versions/Current symlink.

Show
Dain Sundstrom added a comment - This does not fix the java.lang.NullPointerException at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.formatOutput(XMLJUnitResultFormatter.java:253) on OSX. The only way to have maven work property on OSX seems to be changing the /System/Library/Frameworks/JavaVM.framework/Versions/Current symlink.
Hide
Lukas Theussl added a comment -

Added /System/Library/Java/Extensions to MAVEN_ENDORSED. The above comments are different issues.

Show
Lukas Theussl added a comment - Added /System/Library/Java/Extensions to MAVEN_ENDORSED. The above comments are different issues.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: