You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Geoffrey De Smet (JIRA)" <ji...@codehaus.org> on 2006/08/17 16:13:48 UTC
[jira] Created: (MIDEA-64) Provided dependencies are also copied to
/WEB-INF/lib
Provided dependencies are also copied to /WEB-INF/lib
-----------------------------------------------------
Key: MIDEA-64
URL: http://jira.codehaus.org/browse/MIDEA-64
Project: Maven 2.x Idea Plugin
Issue Type: Bug
Affects Versions: 2.0
Reporter: Geoffrey De Smet
A dependency with the scope "provided" (and probably "system" too) is also marked as to be copied to /WEB-INF/lib for webapp modules.
--
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
[jira] Closed: (MIDEA-64) Provided dependencies are also copied to
/WEB-INF/lib
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-64?page=all ]
Dennis Lundberg closed MIDEA-64.
--------------------------------
Resolution: Duplicate
This has been fixed in SVN for IDEA-62.
> Provided dependencies are also copied to /WEB-INF/lib
> -----------------------------------------------------
>
> Key: MIDEA-64
> URL: http://jira.codehaus.org/browse/MIDEA-64
> Project: Maven 2.x Idea Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Geoffrey De Smet
> Attachments: parent.zip, screenshot-1.jpg
>
>
> A dependency with the scope "provided" (and probably "system" too) is also marked as to be copied to /WEB-INF/lib for webapp modules.
--
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
[jira] Updated: (MIDEA-64) Provided dependencies are also copied to
/WEB-INF/lib
Posted by "Geoffrey De Smet (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-64?page=all ]
Geoffrey De Smet updated MIDEA-64:
----------------------------------
Attachment: screenshot-1.jpg
I 've made log4j provided in my case.
> Provided dependencies are also copied to /WEB-INF/lib
> -----------------------------------------------------
>
> Key: MIDEA-64
> URL: http://jira.codehaus.org/browse/MIDEA-64
> Project: Maven 2.x Idea Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Geoffrey De Smet
> Attachments: screenshot-1.jpg
>
>
> A dependency with the scope "provided" (and probably "system" too) is also marked as to be copied to /WEB-INF/lib for webapp modules.
--
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
[jira] Commented: (MIDEA-64) Provided dependencies are also copied
to /WEB-INF/lib
Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-64?page=comments#action_75996 ]
Stephen Connolly commented on MIDEA-64:
---------------------------------------
I can confirm this bug exists in IDEA 4.5.4, IDEA 5.1.2, and IDEA 6.0 beta.
In all cases I regenerated the IDEA project files
mvn idea:clean
mvn idea:idea
before loading in the IDE in order to eliminate contamination between IDEA versions.
In our case the dependency in our pom.xml is:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.3</version>
<scope>provided</scope>
</dependency>
I have checked all the poms for all of our dependencies and any that list servlet-api as a dependency also have scope set to provided.
In all three versions of the IDE the WAR packaging is incorrectly set to "Copy files to".
> Provided dependencies are also copied to /WEB-INF/lib
> -----------------------------------------------------
>
> Key: MIDEA-64
> URL: http://jira.codehaus.org/browse/MIDEA-64
> Project: Maven 2.x Idea Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Geoffrey De Smet
> Attachments: screenshot-1.jpg
>
>
> A dependency with the scope "provided" (and probably "system" too) is also marked as to be copied to /WEB-INF/lib for webapp modules.
--
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
[jira] Updated: (MIDEA-64) Provided dependencies are also copied to
/WEB-INF/lib
Posted by "Stephen Connolly (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-64?page=all ]
Stephen Connolly updated MIDEA-64:
----------------------------------
Attachment: parent.zip
The attached zip file can be used to generate two test cases:
1. Where the dependency is also a project in IDEA:
in parent directory
mvn clean idea:clean
mvn install idea:idea
Load the parent.ipr in IDEA and view the module settings for the webapp module.
The child module packaging method will be listed as "JAR module output and copy to". This should be "Do not Package"
2. Where the dependency is a jar from the maven local repository:
in parent directory
mvn clean idea:clean
mvn install
cd webapp
mvn idea:idea
Load the webapp/webapp.ipr in IDEA and view the module settings
The child-1.0.jar packaging method will be listed as "Copy files to". This should be "Do not package".
I have confirmed this behaviour in IDEA 4.5.4, IDEA 5.1.2 and IDEA 6.0 beta
> Provided dependencies are also copied to /WEB-INF/lib
> -----------------------------------------------------
>
> Key: MIDEA-64
> URL: http://jira.codehaus.org/browse/MIDEA-64
> Project: Maven 2.x Idea Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Geoffrey De Smet
> Attachments: parent.zip, screenshot-1.jpg
>
>
> A dependency with the scope "provided" (and probably "system" too) is also marked as to be copied to /WEB-INF/lib for webapp modules.
--
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
[jira] Commented: (MIDEA-64) Provided dependencies are also copied
to /WEB-INF/lib
Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MIDEA-64?page=comments#action_75947 ]
Dennis Lundberg commented on MIDEA-64:
--------------------------------------
Geoffrey, which version of IDEA are you using?
I found a comment in the plugin source that says IDEA 5.0.2 is buggy when it comes to reading this part of the module file.
> Provided dependencies are also copied to /WEB-INF/lib
> -----------------------------------------------------
>
> Key: MIDEA-64
> URL: http://jira.codehaus.org/browse/MIDEA-64
> Project: Maven 2.x Idea Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Geoffrey De Smet
> Attachments: screenshot-1.jpg
>
>
> A dependency with the scope "provided" (and probably "system" too) is also marked as to be copied to /WEB-INF/lib for webapp modules.
--
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