maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrizio giustina (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MECLIPSE-76) Projects containing war's as dependency will not include war-reference
Date Wed, 05 Apr 2006 08:38:48 GMT
    [ http://jira.codehaus.org/browse/MECLIPSE-76?page=comments#action_62842 ] 

fabrizio giustina commented on MECLIPSE-76:
-------------------------------------------

war projects are usually not added to classpath: I can be wrong, but I don't think classes
contained in a referenced war can be seen by Maven while compiling a project.
Why do you need to have a war added to classpath? Can you describe your project structure?


> 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
>         Type: Bug

>     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


Mime
View raw message