Maven EJB Plugin
  1. Maven EJB Plugin
  2. MEJB-53

Class path entry missing in assemblies since maven 3

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows XP, Linux

      Description

      We have an EJB project along with some custom assemblies:

      <project>
      ...
      <name>test</name>
      <packaging>ejb</packaging>
      ...
      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-assembly-plugin</artifactId>
      <configuration>
      <archive>
      <manifest>
      <addClasspath>true</addClasspath>
      </manifest>
      </archive>
      </configuration>
      <executions>
      <execution>
      <id>sender</id>
      <phase>package</phase>
      <goals>
      <goal>single</goal>
      </goals>
      <configuration>
      <descriptors>
      <descriptor>src/main/assembly/custom.xml</descriptor>
      </descriptors>
      </configuration>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>
      </project>

      This creates a test.jar and a test-custom.jar. The first jar has its Class-Path entry filled in correctly in the manifest file, but the 2nd jar has no Class-Path entry. The <addClasspath>true</addClasspath> was added for the maven assembly plugin, the maven-ejb-plugin in the parent pom also has this property set to true.

      This only happens with maven 3.0.3. With maven 2.2.1 both jars have their Class-Path filled in properly.

        Activity

        Hide
        Karl Heinz Marbaise added a comment -

        Unfortunately there is example project releated which can reproduce the problem and it sounds more like a problem for maven-assembly-plugin.
        Apart from that based on the age i will close this issue.
        If you have any objections or updates according to the issue don't hesitate to reopen the issue.

        Show
        Karl Heinz Marbaise added a comment - Unfortunately there is example project releated which can reproduce the problem and it sounds more like a problem for maven-assembly-plugin. Apart from that based on the age i will close this issue. If you have any objections or updates according to the issue don't hesitate to reopen the issue.

          People

          • Assignee:
            Karl Heinz Marbaise
            Reporter:
            Koen Verrecken
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development