[ http://jira.codehaus.org/browse/MIDEA-74?page=all ]

Remy Coqueugniot reopened MIDEA-74:
-----------------------------------

             
Indeed, this issue is a duplicated one, Xcuse me for that :-'

But, the bug is not correctly fixed in the last SVN version:
1- only Artifact.SCOPE_PROVIDED is tested.
When a dependency with a "test" scope is included for a webmofule, this should 
not be packaged.
A best way is to define a list a acceptable scope to be include in the 
packaging process.

2- Only the methodAttribute is changed.
When the dependency is choosed to be excluded in the package, 2 XML attributes 
should be added : 
  methodAttribute.addAttribute( "value", "0" );
  uriAttribute.addAttribute( "value", "<N/A>"  );

Thanks for your answer/support.

RC

> Plugin doesn't handle correctly WebModule dependency scope
> ----------------------------------------------------------
>
>                 Key: MIDEA-74
>                 URL: http://jira.codehaus.org/browse/MIDEA-74
>             Project: Maven 2.x Idea Plugin
>          Issue Type: Bug
>            Reporter: Remy Coqueugniot
>         Attachments: IdeaModuleMojo.java
>
>
> If a pom.xml include a dependency with a "provided" or "test" scope, it 
> shouldn't be packaged with the webapp.
> Ex:
> [pom.xml]
> <project>
> (...)
>   <dependencies>
>     <dependency>
>       <groupId>javax.servlet</groupId>
>       <artifactId>servlet-api</artifactId>
>       <version>2.4</version>
>       <scope>provided</scope>
>     </dependency>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
> </project>
> This two depndency shouldn't be included in the webapp/WEB-INF/lib. Indeed, 
> some webcontainer (tomcat for example) may crash (or ignore them) if 
> libraries are already provided (servlet-api, jsp-api, ...)
> I've done some really basic tests and fix the IdeaModuleMojo class.
> Hope you will find some utility.

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