[ http://jira.codehaus.org/browse/MECLIPSE-76?page=comments#action_73108 ] 
            
mark struberg commented on MECLIPSE-76:
---------------------------------------

if it's only a debugging issue, you may try to use a maven-dependency-plugin 
with the goal dependency:unpack.

You additionally have to use the 'Add Class Folder' in the Java Build Path 
dialog and set it to the unpacked ear/war paths manually.

But you're right, we have different use-cases. My issue is to be able to 
compile a war which is dependent on a derived war.

> Projects containing war's as dependency will not include war-reference
> ----------------------------------------------------------------------
>
>                 Key: MECLIPSE-76
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-76
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: WTP support
>            Reporter: Tom Spengler
>
> if you have a dependency like 
>               <dependency>
>                       <groupId>j-core</groupId>
>                       <artifactId>j-core-webapp-axx</artifactId>
>                       <version>0.0.1</version>
>                       <type>war</type>
>               </dependency>
> it will not included int .classpath
> Resolution could be
> EclipseClasspathWriter
> --old--
> Artifact artifact = (Artifact) it.next();
>             if ( artifact.getArtifactHandler().isAddedToClasspath() )
> --new --
> Artifact artifact = (Artifact) it.next();
>             if ( artifact.getArtifactHandler().isAddedToClasspath() 
> ||artifact.getArtifactHandler().isIncludesDependencies() )
>             
> and 
> EclipsePlugin.prepareArtifacts()
> --old--
> Collection artifacts = project.getTestArtifacts();
> --new--
> Collection artifacts = project.getTestArtifacts();
>       Set artifact_2 = project.getArtifacts();
>       for (Iterator at = artifact_2.iterator(); at.hasNext();){
>                       Artifact arti = (Artifact) at.next();
>                       if (! artifacts.contains(arti))
>                   artifacts.add(arti);
>       }

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