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

Archive Configuration ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.2
    • 2.2-beta-1
    • None
    • None

    Description

      I'd like to create executable .jar files.

      I tried

      <executions>
        <execution>
          <id>makeExecJar_1</id>
          <phase>package</phase> 
          <goals>
            <goal>attached</goal>
          </goals>
          <configuration>
            <descriptors>
              <descriptor>assembly/my-assembly.xml</descriptor>
            </descriptors>
            <finalName>../../target/dist/final-1</finalName>
            <archive>
              <addMavenDescriptor>false</addMavenDescriptor>
              <manifest>
                <mainClass>my.package.MyMainClass</mainClass>
              </manifest>
            </archive>
          </configuration>
        </execution>
      </executions>
      

      as well as

      <executions>
        <execution>
          <id>makeExecJar_1</id>
          <phase>package</phase> 
          <goals>
            <goal>attached</goal>
          </goals>
          <configuration>
            <descriptors>
              <descriptor>assembly/my-assembly.xml</descriptor>
            </descriptors>
            <finalName>../../target/dist/final-1</finalName>
            <archive>
              <addMavenDescriptor>false</addMavenDescriptor>
              <manifestFile>MY_MANIFEST.MF</manifestFile>
            </archive>
          </configuration>
        </execution>
      </executions>
      

      The result is the same. In the final jar file

      • maven descriptors are added
      • standard MANIFEST.MF is used

      Attachments

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              msturzen Martin Sturzenhecker
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: