Maven Shared Components
  1. Maven Shared Components
  2. MSHARED-225

Manifest Entries in execution elements are completely ignored

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: maven-archiver-2.4
    • Fix Version/s: None
    • Component/s: maven-archiver
    • Labels:
      None
    • Environment:
      MS Win7
    • Number of attachments :
      0

      Description

      When multiple executions are used, (for example when deploying a test-jar as well) execution specific Manifest entries are not used. Only "Global" configurations are used.

      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jar-plugin</artifactId>
      <version>2.4</version>
      <configuration>
      <archive>
      <manifest>
      <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
      </manifest>
      <manifestEntries>
      <!-- These entries are specific to deployable jar only. -->
      <!--
      <Premain-Class>com.demo.vm.plugins.Agent</Premain-Class>
      <Agent-Class>com.demo.vm.plugins.Agent</Agent-Class>
      <Boot-Class-Path>asm-4.0.jar</Boot-Class-Path>
      -->
      </manifestEntries>
      </archive>
      </configuration>
      <executions>
      <execution>
      <id>vm</id>
      <configuration>
      <!-- This set of entries are ignored -->
      <archive>
      <manifest>
      <addClasspath>true</addClasspath>
      <!-- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
      <classpathPrefix>Boot-</classpathPrefix> -->
      </manifest>
      <manifestEntries>
      <Premain-Class>com.demo.vm.plugins.Agent</Premain-Class>
      <Agent-Class>com.demo.vm.plugins.Agent</Agent-Class>
      <Boot-Class-Path>asm-4.0.jar</Boot-Class-Path>
      </manifestEntries>
      </archive>
      </configuration>
      <goals>
      <goal>jar</goal>
      </goals>
      </execution>
      <execution>
      <id>test</id>
      <goals>
      <goal>test-jar</goal>
      </goals>
      </execution>
      </executions>
      </plugin>
      NOTE: Versions after 2.4 do not seem to be available from the main repositories? 2.4 was the latest I was able to download.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stephen Davidson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: