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 2.x EJB Plugin
  • MEJB-18

Manifest classpath contains wrong entries in multi-module build

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Duplicate
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Labels:
    None

Description

We had to detect, that in multi-module builds the entries in the Manifest for the classpath for those artifacts can be wrong that are also part of the build. The incident occurs, if an artifact is build in a SNAPSHOT version, but the EJB refers this artifact in a released version. The manifest contains nevertheless an entry for the SNAPSHOT.

Additional observations:

  • the target/effective-pom.xml contains the dependency with the right version
  • the manifest contains the correct entry classpath when the artifact is build locally

This is a real blocker, since building the EAR. Maven will copy the correct released version of the artifact, but the EJB is broken, because of the wrong (and missing) dependency.

It seems the component creating the manifest uses a wrong dependency resolution for multi module builds ... might be the maven-archiver ?

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

Attachments

  1. Hide
    Zip Archive
    MEJB-18.zip
    06/Jul/06 5:24 AM
    3 kB
    Joerg Schaible
    1. XML File
      MEJB-18/commons-lang/pom.xml 0.8 kB
    2. Java Source File
      MEJB-18/commons-lang/.../mejb/Issue18CL.java 0.1 kB
    3. XML File
      MEJB-18/issue-ejb/pom.xml 1 kB
    4. Java Source File
      MEJB-18/issue-ejb/.../mejb/Issue18Home.java 0.1 kB
    5. XML File
      MEJB-18/issue-ejb/.../META-INF/ejb-jar.xml 0.5 kB
    6. XML File
      MEJB-18/pom.xml 1.0 kB
    Download Zip
    Show
    Zip Archive
    MEJB-18.zip
    06/Jul/06 5:24 AM
    3 kB
    Joerg Schaible

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. MNG-2424 Classpath in reactor builds differ from dependency resolution

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-1245 Reactor projects sometimes used even with version mismatch

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Joerg Schaible added a comment - 06/Jul/06 5:24 AM

Minimal multi module setup demonstrating the problem. Build from the root to create an EJB with the wrong manifest entries. Build from the issue-ejb to get a proper manifest.

Show
Joerg Schaible added a comment - 06/Jul/06 5:24 AM Minimal multi module setup demonstrating the problem. Build from the root to create an EJB with the wrong manifest entries. Build from the issue-ejb to get a proper manifest.
Hide
Permalink
Joerg Schaible added a comment - 12/Jul/06 11:09 PM

This is just another result of the problem described in MNG-1245. That fix solves also this issue, so Maven 2.0.5 will solve the problem.

Show
Joerg Schaible added a comment - 12/Jul/06 11:09 PM This is just another result of the problem described in MNG-1245. That fix solves also this issue, so Maven 2.0.5 will solve the problem.

People

  • Assignee:
    Unassigned
    Reporter:
    Joerg Schaible
Vote (0)
Watch (1)

Dates

  • Created:
    06/Jul/06 5:22 AM
    Updated:
    12/Jul/06 11:10 PM
    Resolved:
    12/Jul/06 11:10 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.