facebook

More Duplicate jar files in WEB-INF/lib

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #296851 Reply

    allenparslow
    Member

    This post is possibly related to https://www.genuitec.com/forums/topic/duplicate-jar-files-in-web-inf-lib/

    For web-projects (either created with the Web Project wizard or imported), duplicate jars (same groupid/artifactid, diff version) in WEB-INF/lib seem to occur with “Resolve dependencies from Workspace project” and a dependent project has a different version of the same artifact.

    After closing the dependent projects or disabling “Resolve dependencies from Workspace project”, the correct jars are copied WEB-INF/lib.

    Steps to reproduce:
    # Create a web-app using the “Web Project” wizard with maven support.
    # Remove all dependencies from the web-app.
    # Add a dependency:
    <dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.4</version>
    </dependency>
    # Delete /src/WebRoot/WEB-INF/lib/
    # Create a java maven project
    # Remove all dependencies from the 2nd project.
    # Add a dependency with same groupid/artifactid, diff version:
    <dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.3</version>
    </dependency>
    # Add the 2nd project as a dependency in the web-app
    # Deploy the web-app to a server.
    –> 2 commons-lang jars in …/server/[web-app]/WEB-INF/lib/

    #296890 Reply

    Thank you for your bug report. I confirmed the issue and will open a problem report so it gets fixed in the next releases.
    There is a workaround. Duplicate jars will not be deployed if you configure deployment options as shown on the screenshot. Note: dependencies from library projects will still be deployed.

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: More Duplicate jar files in WEB-INF/lib

You must be logged in to post in the forum log in