commons-attribute-compiler has direct dependency on tools.jar and fails on 
MacOSX
---------------------------------------------------------------------------------

         Key: MEV-241
         URL: http://jira.codehaus.org/browse/MEV-241
     Project: Maven Evangelism
        Type: Bug
    Reporter: Matt Brozowski


commons-attributes-compiler-2.1.pom has the following dependency:

    <dependency>
      <groupId>java</groupId>
      <artifactId>tools</artifactId>
      <version>1.4</version>
      <systemPath>${java.home}/../lib/tools.jar</systemPath>
      <scope>system</scope>
    </dependency>


This breaks on MacOSX which doesn't have a tools.jar.  After discussing this 
with brett he pointed me to it0063 in maven-core-it which solved this using 
profiles as follows:

  <profiles>
    <profile>
      <!-- NOTE: This will not be activated on OS X, since classes.jar already 
has the tools in it. -->
      <id>default-tools.jar</id>
      <activation>
        <property>
          <name>java.vendor</name>
          <value>Sun Microsystems Inc.</value>
        </property>
      </activation>
      <dependencies>
        <dependency>
          <groupId>sun.jdk</groupId>
          <artifactId>tools</artifactId>
          <version>1.4.2</version>
          <scope>system</scope>
          <systemPath>${java.home}/../lib/tools.jar</systemPath>
        </dependency>
      </dependencies>
    </profile>
  </profiles>


I have checked out the repo and make the change and will attach the patch file. 
 (Is there someway I could have tested this first?)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to