[ 
https://issues.apache.org/jira/browse/TUSCANY-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevan Miller updated TUSCANY-2594:
----------------------------------

    Attachment: TUSCANY-2594.patch

modules/interface-java-jaxws/pom.xml contains the following dependency to place 
tools.jar in the CLASSPATH:

            <dependencies>
                <dependency>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                    <version>1.5.0</version>
                    <scope>system</scope>
                    <systemPath>${java.home}/../lib/tools.jar</systemPath>
                </dependency>
            </dependencies>

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). The attached patch adds the com.sun.tools.jar dependency 
only for Sun JVMs. 

I tested this patch on my Mac and on a Linux box with Sun JSE 1.5. I don't know 
how this will behave with alternate JVMs. Possible that it could introduce 
problems. Assume this can be fine-tuned as any issues are identified.

> Failed to resolve artifact com.sun:tools:jar:1.5.0 in 
> modules/interface-java-jaxws on Mac OS
> --------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2594
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2594
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: Java-SCA-1.4
>            Reporter: Kevan Miller
>             Fix For: Java-SCA-1.4
>
>         Attachments: TUSCANY-2594.patch
>
>
> Chris Tezzi reported the following problem a few months back. Since I ran 
> into it, also, thought it would be worth fixing.
> I[INFO] Failed to resolve artifact.
> Missing:
> ----------
> 1) com.sun:tools:jar:1.5.0
>   Try downloading the file manually from the project website.
>   Then, install it using the command: 
>       mvn install:install-file -DgroupId=com.sun -DartifactId=tools 
> -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file
>   Alternatively, if you host your own repository you can deploy the file 
> there: 
>       mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools 
> -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
> -DrepositoryId=[id]
>   Path to dependency: 
>       1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.9
>       2) com.sun:tools:jar:1.5.0
> ----------
> 1 required artifact is missing.
> for artifact: 
>   org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.9

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to