Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-319

Cannot bind to lifecycle with multiple modules

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2-beta-2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Executing

      > mvn package

      using this plugin config

      <plugin>
      <artifactId>maven-assembly-plugin</artifactId>
      <configuration>
      <finalName>deploy-artifacts</finalName>
      <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
      <appendAssemblyId>false</appendAssemblyId>
      <descriptors>
      <descriptor>src/main/scripts/assembly-deploy-artifacts.xml</descriptor>
      </descriptors>
      </configuration>
      <executions>
      <execution>
      <id>build-deploy-artifacts</id>
      <phase>package</phase>
      <goals>
      <goal>directory-inline</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      with a descriptor using module sets

      <moduleSets>
      <moduleSet>
      <includes>
      <include>org.jboss.ws:jbossws-cxf-client</include>
      <include>org.jboss.ws:jbossws-cxf-server</include>
      </includes>
      <binaries>
      <outputDirectory>lib</outputDirectory>
      <outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
      <unpack>false</unpack>
      <dependencySets>
      <dependencySet>
      <outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
      <useStrictFiltering>true</useStrictFiltering>
      <includes>
      <include>:cxf-</include>
      <include>:geronimo-javamail</include>
      <include>:geronimo-ws-metadata</include>
      <include>*:jaxb-api:jar</include>
      <include>*:jaxb-impl:jar</include>
      <include>*:jaxb-xjc:jar</include>
      <include>*:jaxrpc-api:jar</include>
      <include>*:jaxws-api:jar</include>
      <include>*:jbossws-common:jar</include>
      <include>*:jbossws-framework:jar</include>
      <include>*:jbossws-spi:jar</include>
      <include>*:jbossws-jboss42:jar</include>
      <include>*:neethi:jar</include>
      <include>*:saaj-api:jar</include>
      <include>*:saaj-impl:jar</include>
      <include>*:spring-beans:jar</include>
      <include>*:spring-context:jar</include>
      <include>*:spring-core:jar</include>
      <include>*:stax-api:jar</include>
      <include>*:wsdl4j:jar</include>
      <include>*:xml-resolver:jar</include>
      <include>*:XmlSchema:jar</include>
      </includes>
      </dependencySet>
      <dependencySet>
      <outputFileNameMapping>wstx.jar</outputFileNameMapping>
      <useStrictFiltering>true</useStrictFiltering>
      <includes>
      <include>*:wstx-asl:jar</include>
      </includes>
      </dependencySet>
      </dependencySets>
      </binaries>
      </moduleSet>
      <moduleSet>
      <includes>
      <include>org.jboss.ws:jbossws-cxf-management</include>
      </includes>
      <binaries>
      <outputDirectory>lib</outputDirectory>
      <outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
      <includeDependencies>false</includeDependencies>
      <unpack>false</unpack>
      </binaries>
      </moduleSet>
      </moduleSets>

      I get

      [INFO] Executed tasks
      [INFO] [source:jar

      {execution: attach-sources}

      ]
      [INFO] [assembly:directory-inline

      {execution: build-deploy-artifacts}

      ]
      [INFO] Reading assembly descriptor: src/main/scripts/assembly-deploy-artifacts.xml
      [INFO] Processing DependencySet (output=bin)
      [WARNING] Cannot include project artifact: org.jboss.ws:jbossws-cxf:pom:3.0.2-SNAPSHOT; it doesn't have an associated file or directory.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error creating assembly: Artifact: org.jboss.ws:jbossws-cxf-server:jar:3.0.2-SNAPSHOT (included by module) does not have an artifact with a file. Please ensure the package phase is run before the assembly is generated.

      It seems that package was not executed in module 'org.jboss.ws:jbossws-cxf-server'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jdcasey John Dennis Casey
                Reporter:
                tdiesler Thomas Diesler
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: