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

descriptorSourceDirectory: parameter isn't used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 3.1.0
    • None
    • None

    Description

      I configure the plugin with something like this :

            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-assembly-plugin</artifactId>
              <configuration>
                <descriptors>
                  <descriptor>plf-standalone-enterprise-tomcat-distribution-content.xml</descriptor>
                </descriptors>
      <descriptorSourceDirectory>src/main/assemblies</descriptorSourceDirectory>
              </configuration>
            </plugin>
      

      But it doesn't find the descriptor (using its filename or its ID)

      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-assembly-plugin:2.4:single' with basic configurator -->
      ....
      [DEBUG]   (s) descriptorSourceDirectory = /Users/arnaud/Code/eXo/platform-distributions/plf-enterprise-tomcat-standalone/src/main/assemblies
      [DEBUG]   (s) descriptors = [plf-standalone-enterprise-tomcat-distribution-content.xml]
      ....
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (plf-standalone-tomcat-distribution-content) on project plf-enterprise-tomcat-standalone: Error reading assemblies: Error locating assembly descriptor: plf-standalone-enterprise-tomcat-distribution-content.xml
      [ERROR] 
      [ERROR] [1] [INFO] Searching for file location: /Users/arnaud/Code/eXo/platform-distributions/plf-enterprise-tomcat-standalone/plf-standalone-enterprise-tomcat-distribution-content.xml
      [ERROR] 
      [ERROR] [2] [INFO] File: /Users/arnaud/Code/eXo/platform-distributions/plf-enterprise-tomcat-standalone/plf-standalone-enterprise-tomcat-distribution-content.xml does not exist.
      [ERROR] 
      [ERROR] [3] [INFO] File: /Users/arnaud/Code/eXo/platform-distributions/plf-enterprise-tomcat-standalone/plf-standalone-enterprise-tomcat-distribution-content.xml does not exist.
      

      I simplified the config (I'll need to create an it) in my case i was using a 2nd assembly coming from the classpath

      Attachments

        Activity

          People

            michael-o Michael Osipov
            aheritier Arnaud Heritier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: