jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Integration for Eclipse
  • MNGECLIPSE-413

Dependency with scope provided is deployed to WEB-INF/lib

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.0.11
  • Fix Version/s: 0.9.4
  • Component/s: WTP integration
  • Labels:
    None
  • Environment:
    Jdk 1.6.0_02, eclipse 3.3.1 (+WTP)

Description

I'm deploying a project with maven managed dependencies to a web container (tomcat 6). The dependencies contain several jars with scope provided (e.g. servlet-api, jsp-api).
Library 'Maven Dependencies' is marked as J2EE Module Dependency. After publishing to the server, WEB-INF/lib contains jars with scope provided and cause conflicts with server jars!
This makes it quite impossible using m2eclipse with eclipse WTP plugins. The only workaround is to remove the Maven Dependencies Library from the project classpath and use mvn war:inplace to update WEB-INF/lib jars manually.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    MNGECLIPSE-413.zip
    29/Oct/07 3:25 AM
    4 kB
    Martin Ahrer
    1. File
      MNGECLIPSE-413/.classpath 0.7 kB
    2. File
      MNGECLIPSE-413/.project 1 kB
    3. File
      MNGECLIPSE-413/.../org.eclipse.jdt.core.prefs 0.3 kB
    4. File
      MNGECLIPSE-413/.../org.eclipse.jst.common.project.facet.core.prefs 0.3 kB
    5. File
      MNGECLIPSE-413/.../org.eclipse.wst.common.component 0.4 kB
    6. XML File
      MNGECLIPSE-413/.../org.eclipse.wst.common.project.facet.core.xml 0.3 kB
    7. XML File
      MNGECLIPSE-413/pom.xml 6 kB
    8. XML File
      MNGECLIPSE-413/src/main/.../WEB-INF/web.xml 0.6 kB
    Download Zip
    Show
    Zip Archive
    MNGECLIPSE-413.zip
    29/Oct/07 3:25 AM
    4 kB
    Martin Ahrer
  1. screenshot-1.jpg
    170 kB
    17/Jan/08 6:51 AM

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Abel Muiņo added a comment - 14/Oct/07 6:45 AM

You might also watch MNGECLIPSE-105.

Show
Abel Muiņo added a comment - 14/Oct/07 6:45 AM You might also watch MNGECLIPSE-105.
Hide
Permalink
Eugene Kuleshov added a comment - 18/Oct/07 7:51 PM

Please provide complete test project and detailed instructions that can be used to reproduce this.
For some tips see http://docs.codehaus.org/display/M2ECLIPSE/How+To+Report+Issues

Show
Eugene Kuleshov added a comment - 18/Oct/07 7:51 PM Please provide complete test project and detailed instructions that can be used to reproduce this. For some tips see http://docs.codehaus.org/display/M2ECLIPSE/How+To+Report+Issues
Hide
Permalink
Martin Ahrer added a comment - 29/Oct/07 3:25 AM

As requested a sample project to reproduce the problem.

Follow these steps to test:

eclipse 3.3.1 (eclipse europa with WTP plugins) with Tomcat 6.0.14

1) Import sample project (contains only a pom.xml with plenty of dependencies with jsp-api and servlet being scoped as provided)
2) create server
3) add project MNGECLIPSE-413
4) publish project
5) check the publish folder WEB-INF/lib for the MNGECLIPSE-413 project for jsp-api.jar and servlet.jar

The publish folder is something like
$[workspace}\.metadata\.plugins\org.eclipse.wst.server.core\tmpX\XXXwebapps\MNGECLIPSE-413\WEB-INF\lib

I get the follwing list of jars published to the server
15.10.2007 09:10 527.655 acegi-security-1.0.3.jar
15.10.2007 13:29 13.641 acegijsf-1.1.3.jar
15.10.2007 09:11 443.432 antlr-2.7.6.jar
15.10.2007 09:11 26.361 asm-1.5.3.jar
15.10.2007 09:11 16.757 asm-attrs-1.5.3.jar
15.10.2007 09:11 282.338 cglib-2.1_3.jar
15.10.2007 09:10 188.671 commons-beanutils-1.7.0.jar
15.10.2007 09:10 46.725 commons-codec-1.3.jar
15.10.2007 09:10 571.259 commons-collections-3.2.jar
15.10.2007 09:10 107.631 commons-dbcp-1.2.1.jar
15.10.2007 09:10 168.446 commons-digester-1.6.jar
15.10.2007 09:10 245.274 commons-lang-2.3.jar
15.10.2007 09:10 38.015 commons-logging-1.0.4.jar
15.10.2007 09:10 42.492 commons-pool-1.2.jar
15.10.2007 09:11 313.898 dom4j-1.6.1.jar
15.10.2007 09:11 208.048 ehcache-1.2.3.jar
15.10.2007 09:10 76.643 hamcrest-core-1.1.jar
15.10.2007 09:10 111.504 hamcrest-library-1.1.jar
15.10.2007 09:11 2.255.753 hibernate-3.2.5.ga.jar
15.10.2007 09:10 202.804 jmock-2.2.0.jar
15.10.2007 09:10 364.449 jsf-api-1.1_02.jar
15.10.2007 09:10 796.261 jsf-impl-1.1_02.jar
15.10.2007 09:10 48.457 jsp-api-2.0.jar
15.10.2007 09:10 16.923 jstl-1.1.jar
15.10.2007 09:11 8.812 jta-1.0.1B.jar
15.10.2007 09:06 121.070 junit-3.8.1.jar
15.10.2007 09:09 367.444 log4j-1.2.14.jar
15.10.2007 09:10 65.261 oro-2.0.8.jar
15.10.2007 09:10 97.693 servlet-api-2.4.jar
15.10.2007 09:09 104.500 shale-test-1.0.4.jar
15.10.2007 09:10 13.802 slf4j-log4j12-1.0.jar
15.10.2007 09:10 2.694.014 spring-2.0.6.jar
15.10.2007 09:11 104.178 spring-mock-2.0.6.jar
15.10.2007 09:10 393.259 standard-1.1.2.jar
15.10.2007 09:10 776.744 trinidad-api-1.0.1.jar
15.10.2007 09:10 3.486.580 trinidad-impl-1.0.1.jar
15.10.2007 09:10 1.212.965 xercesImpl-2.8.1.jar

Show
Martin Ahrer added a comment - 29/Oct/07 3:25 AM As requested a sample project to reproduce the problem. Follow these steps to test: eclipse 3.3.1 (eclipse europa with WTP plugins) with Tomcat 6.0.14 1) Import sample project (contains only a pom.xml with plenty of dependencies with jsp-api and servlet being scoped as provided) 2) create server 3) add project MNGECLIPSE-413 4) publish project 5) check the publish folder WEB-INF/lib for the MNGECLIPSE-413 project for jsp-api.jar and servlet.jar The publish folder is something like $[workspace}\.metadata\.plugins\org.eclipse.wst.server.core\tmpX\XXXwebapps\MNGECLIPSE-413\WEB-INF\lib I get the follwing list of jars published to the server 15.10.2007 09:10 527.655 acegi-security-1.0.3.jar 15.10.2007 13:29 13.641 acegijsf-1.1.3.jar 15.10.2007 09:11 443.432 antlr-2.7.6.jar 15.10.2007 09:11 26.361 asm-1.5.3.jar 15.10.2007 09:11 16.757 asm-attrs-1.5.3.jar 15.10.2007 09:11 282.338 cglib-2.1_3.jar 15.10.2007 09:10 188.671 commons-beanutils-1.7.0.jar 15.10.2007 09:10 46.725 commons-codec-1.3.jar 15.10.2007 09:10 571.259 commons-collections-3.2.jar 15.10.2007 09:10 107.631 commons-dbcp-1.2.1.jar 15.10.2007 09:10 168.446 commons-digester-1.6.jar 15.10.2007 09:10 245.274 commons-lang-2.3.jar 15.10.2007 09:10 38.015 commons-logging-1.0.4.jar 15.10.2007 09:10 42.492 commons-pool-1.2.jar 15.10.2007 09:11 313.898 dom4j-1.6.1.jar 15.10.2007 09:11 208.048 ehcache-1.2.3.jar 15.10.2007 09:10 76.643 hamcrest-core-1.1.jar 15.10.2007 09:10 111.504 hamcrest-library-1.1.jar 15.10.2007 09:11 2.255.753 hibernate-3.2.5.ga.jar 15.10.2007 09:10 202.804 jmock-2.2.0.jar 15.10.2007 09:10 364.449 jsf-api-1.1_02.jar 15.10.2007 09:10 796.261 jsf-impl-1.1_02.jar 15.10.2007 09:10 48.457 jsp-api-2.0.jar 15.10.2007 09:10 16.923 jstl-1.1.jar 15.10.2007 09:11 8.812 jta-1.0.1B.jar 15.10.2007 09:06 121.070 junit-3.8.1.jar 15.10.2007 09:09 367.444 log4j-1.2.14.jar 15.10.2007 09:10 65.261 oro-2.0.8.jar 15.10.2007 09:10 97.693 servlet-api-2.4.jar 15.10.2007 09:09 104.500 shale-test-1.0.4.jar 15.10.2007 09:10 13.802 slf4j-log4j12-1.0.jar 15.10.2007 09:10 2.694.014 spring-2.0.6.jar 15.10.2007 09:11 104.178 spring-mock-2.0.6.jar 15.10.2007 09:10 393.259 standard-1.1.2.jar 15.10.2007 09:10 776.744 trinidad-api-1.0.1.jar 15.10.2007 09:10 3.486.580 trinidad-impl-1.0.1.jar 15.10.2007 09:10 1.212.965 xercesImpl-2.8.1.jar
Hide
Permalink
Stephan Oudmaijer added a comment - 17/Jan/08 6:48 AM

Is there any progress on this issue? I have a simular issue.

When depedencies are added to the pom.xm with whatever scope, they are all added to the ear projects "J2EE Module Dependencies" list in Eclipse. It`s not possible to uncheck some of the dependencies.

Because they are checked the dependencies are also exported, including transitive dependencies (servlet-api etc).

Show
Stephan Oudmaijer added a comment - 17/Jan/08 6:48 AM Is there any progress on this issue? I have a simular issue. When depedencies are added to the pom.xm with whatever scope, they are all added to the ear projects "J2EE Module Dependencies" list in Eclipse. It`s not possible to uncheck some of the dependencies. Because they are checked the dependencies are also exported, including transitive dependencies (servlet-api etc).
Hide
Permalink
Joe Taylor added a comment - 05/Feb/08 3:22 PM

I'm also seeing this issue. I work on a rather complex project that makes heavy use of provided/test scoping to prevent transitive dependencies from showing up in our Eclipse classpath. This bug makes the current version of the plugin (0.0.12) unusable for us - I've had to revert back to 0.0.9 to get things working again.

Show
Joe Taylor added a comment - 05/Feb/08 3:22 PM I'm also seeing this issue. I work on a rather complex project that makes heavy use of provided/test scoping to prevent transitive dependencies from showing up in our Eclipse classpath. This bug makes the current version of the plugin (0.0.12) unusable for us - I've had to revert back to 0.0.9 to get things working again.
Hide
Permalink
Gerhard Langs added a comment - 29/Apr/08 4:57 AM

This issue currently hurts us again, as our WAR projects are getting more complex, and manually maintaining the J2EE Module Dependencies is error prone and redundant.

See also last comment in http://jira.codehaus.org/browse/MNGECLIPSE-347

Show
Gerhard Langs added a comment - 29/Apr/08 4:57 AM This issue currently hurts us again, as our WAR projects are getting more complex, and manually maintaining the J2EE Module Dependencies is error prone and redundant. See also last comment in http://jira.codehaus.org/browse/MNGECLIPSE-347
Hide
Permalink
Gerhard Langs added a comment - 29/Apr/08 4:57 AM

This issue currently hurts us again, as our WAR projects are getting more complex, and manually maintaining the J2EE Module Dependencies is error prone and redundant.

See also last comment in http://jira.codehaus.org/browse/MNGECLIPSE-347

Show
Gerhard Langs added a comment - 29/Apr/08 4:57 AM This issue currently hurts us again, as our WAR projects are getting more complex, and manually maintaining the J2EE Module Dependencies is error prone and redundant. See also last comment in http://jira.codehaus.org/browse/MNGECLIPSE-347
Hide
Permalink
Martin Ahrer added a comment - 29/Apr/08 7:50 AM

I have recently upgraded to the latest plugin version from http://m2eclipse.sonatype.org/update/ and have not encountered this bug again. To go sure I also retested this using the attached example project (using eclipse europa 3.3.1.1).

So it seems that this bug has gone. As this bug is still reported as open I'd assume some other changes have helped fixing this issue. Maybe one of the plugin developers can take a look and confirm/close.

Show
Martin Ahrer added a comment - 29/Apr/08 7:50 AM I have recently upgraded to the latest plugin version from http://m2eclipse.sonatype.org/update/ and have not encountered this bug again. To go sure I also retested this using the attached example project (using eclipse europa 3.3.1.1). So it seems that this bug has gone. As this bug is still reported as open I'd assume some other changes have helped fixing this issue. Maybe one of the plugin developers can take a look and confirm/close.
Hide
Permalink
Gerhard Langs added a comment - 02/May/08 3:59 AM

Ok, I verified the behaviour on 2 of my projects with 0.9.3, and it seems that it works.

Show
Gerhard Langs added a comment - 02/May/08 3:59 AM Ok, I verified the behaviour on 2 of my projects with 0.9.3, and it seems that it works.
Hide
Permalink
Gerhard Langs added a comment - 02/May/08 3:59 AM

Ok, I verified the behaviour on 2 of my projects with 0.9.3, and it seems that it works.

Show
Gerhard Langs added a comment - 02/May/08 3:59 AM Ok, I verified the behaviour on 2 of my projects with 0.9.3, and it seems that it works.
Hide
Permalink
Igor Fedorenko added a comment - 02/May/08 10:51 PM

fixed. dependencies with provided/system/test scope are excluded from WTP export and publishing (they're still present in Maven Dependencies classpath container).

Show
Igor Fedorenko added a comment - 02/May/08 10:51 PM fixed. dependencies with provided/system/test scope are excluded from WTP export and publishing (they're still present in Maven Dependencies classpath container).
Hide
Permalink
james gustard added a comment - 22/Oct/08 8:55 AM

I have this bug in Eclipse
Version: 3.4.1
Build id: M20080911-1700

I have repeated it with 0.9.4 and 0.96 versions of the plugin. Does anyone know a version that works with Ganymede?

Show
james gustard added a comment - 22/Oct/08 8:55 AM I have this bug in Eclipse Version: 3.4.1 Build id: M20080911-1700 I have repeated it with 0.9.4 and 0.96 versions of the plugin. Does anyone know a version that works with Ganymede?
Hide
Permalink
Timo Meinen added a comment - 06/Jan/09 9:10 AM

We are using Eclipse 3.4.1 Ganymede and we still (or again?) have this problem.

Show
Timo Meinen added a comment - 06/Jan/09 9:10 AM We are using Eclipse 3.4.1 Ganymede and we still (or again?) have this problem.
Hide
Permalink
Eugene Kuleshov added a comment - 06/Jan/09 9:14 AM

Timo, I would recommend to open new issue, attach your eclipse configuration there and steps to reproduce. Thanks.

Show
Eugene Kuleshov added a comment - 06/Jan/09 9:14 AM Timo, I would recommend to open new issue, attach your eclipse configuration there and steps to reproduce. Thanks.

People

  • Assignee:
    Igor Fedorenko
    Reporter:
    Martin Ahrer
Vote (10)
Watch (9)

Dates

  • Created:
    13/Oct/07 12:30 PM
    Updated:
    06/Jan/09 9:14 AM
    Resolved:
    02/May/08 10:51 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.