[ http://jira.codehaus.org/browse/MIDEA-74?page=all ]
Dennis Lundberg closed MIDEA-74.
--------------------------------
Assignee: Dennis Lundberg
Resolution: Fixed
Fix Version/s: 2.1
This is now fixed in SVN.
I did not add this attribute:
{code}
uriAttribute.addAttribute( "value", "<N/A>" );
{code}
This is for two reasons. First of all IDEA doesn't use this for anything else
than presentation in the module settings dialog box, when a dependency is set
to "Do not package". Secondly it messes up the current tests, so that we can't
test the scope functionality. There might be a way around the second one, but I
did not want to mess with the code more than necessary.
> 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
> Assigned To: Dennis Lundberg
> Fix For: 2.1
>
> 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