Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.2
    • Labels:
      None
    • Environment:
      Mac OSX 10.8.x
      JDK 7

      Description

      It looks like the plugin has dependencies to the classes.jar included with JDK6.
      This file does not exist anymore in JDK 7.

      <profile>
      <id>jdk_mac</id>
      <activation>
      <os>
      <family>mac</family>
      </os>
      </activation>
      <dependencies>
      <dependency>
      <groupId>com.sun</groupId>
      <artifactId>tools</artifactId>
      <version>1.6</version>
      <scope>system</scope>
      <systemPath>$

      {java.home}

      /bundle/Classes/classes.jar</systemPath>
      </dependency>
      </dependencies>
      </profile>

      A mvn build throws the following exception:

      $ mvn clean install
      [INFO] Scanning for projects...
      [ERROR] The build could not read 1 project -> [Help 1]
      [ERROR]
      [ERROR] The project be.ixor:doccle-euui:0.2-SNAPSHOT (/Users/ct/Projects/ixor/doccle/pom.xml) has 2 errors
      [ERROR] Unresolveable build extension: Plugin org.grails:grails-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:1.6 at specified path /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre/bundle/Classes/classes.jar -> [Help 2]
      [ERROR] Unknown packaging: grails-app @ line 9, column 16
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

        Activity

        Hide
        David Carr added a comment -

        Manuel, you may be dealing with a different issue. The issue above was a Mac-specific problem, as far as I know.

        Show
        David Carr added a comment - Manuel, you may be dealing with a different issue. The issue above was a Mac-specific problem, as far as I know.
        Hide
        Mathias Lin added a comment -

        I'm also still having the issue on Mac OS X 10.7.4, Maven 3.0.3, Grails 2.2.0.

        Show
        Mathias Lin added a comment - I'm also still having the issue on Mac OS X 10.7.4, Maven 3.0.3, Grails 2.2.0.
        Hide
        Brian Morales added a comment -

        This problem is still not fixed. I am running version 2.4.0 and jdk 7 on windows.

        Show
        Brian Morales added a comment - This problem is still not fixed. I am running version 2.4.0 and jdk 7 on windows.
        Hide
        Brian Morales added a comment -

        I guess its a different but related issue to what was originally reported. com.sun.tools.jar cannot be resolved.

        Show
        Brian Morales added a comment - I guess its a different but related issue to what was originally reported. com.sun.tools.jar cannot be resolved.
        Hide
        hass added a comment -

        Hi,

        I am facing a similar issue when trying to upgrade a groovy application that uses the grail-maven-plugin 2.1. The pom file for 2.4 doesn't seem to have a fix applied for Mac. Can someone please shed some lights on at which release this fix will be applied?

        Show
        hass added a comment - Hi, I am facing a similar issue when trying to upgrade a groovy application that uses the grail-maven-plugin 2.1. The pom file for 2.4 doesn't seem to have a fix applied for Mac. Can someone please shed some lights on at which release this fix will be applied?

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Christian Tytgat
          • Votes:
            6 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: