[ 
http://jira.codehaus.org/browse/MCHECKSTYLE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260475#action_260475
 ] 

Savas Ali Tokmen commented on MCHECKSTYLE-156:
----------------------------------------------

Fixing this is as easy as:

{noformat}
<dependencies>
  <dependency>
    <groupId>com.puppycrawl.tools</groupId>
    <artifactId>checkstyle</artifactId>
    <version>5.3</version>
    <exclusions>
      <exclusion>
        <groupId>com.sun</groupId>
        <artifactId>tools</artifactId>
      </exclusion>
    </exclusions>
  </dependency>
</dependencies>
{noformat}

> Plugin fails to build on Mac OS
> -------------------------------
>
>                 Key: MCHECKSTYLE-156
>                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-156
>             Project: Maven 2.x Checkstyle Plugin
>          Issue Type: Bug
>    Affects Versions: 2.6
>         Environment: Mac OS X 10.6.6, java version "1.6.0_22"
>            Reporter: Lukas Theussl
>
> Trying to build the plugin on Mac fails:
> {noformat}
> [ERROR] Failed to execute goal on project maven-checkstyle-plugin: Could not 
> resolve dependencies for project 
> org.apache.maven.plugins:maven-checkstyle-plugin:maven-plugin:2.7-SNAPSHOT: 
> Could not find artifact com.sun:tools:jar:1.5.0 at specified path 
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/tools.jar
>  -> [Help 1]
> {noformat}
> The reason is apparently that the [checkstyle 
> pom|http://repo1.maven.org/maven2/com/puppycrawl/tools/checkstyle/5.3/checkstyle-5.3.pom]
>  declares a system dependency
> {code:xml}
> <dependency>
>   <groupId>com.sun</groupId>
>   <artifactId>tools</artifactId>
>   <version>1.5.0</version>
>   <scope>system</scope>
>   <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>
> {code}
> which does not exist on Mac. On Mac OS, the tools.jar classes are included in 
> classes.jar. There's no need for a systemPath dependency on Mac OS, all 
> required classes are already in the runtime classes.jar.

-- 
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

        

Reply via email to