You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2015/09/06 22:46:05 UTC
[jira] [Closed] (MSHARED-225) Manifest Entries in execution
elements are completely ignored
[ https://issues.apache.org/jira/browse/MSHARED-225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MSHARED-225.
----------------------------------
Resolution: Auto Closed
This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
> Manifest Entries in execution elements are completely ignored
> -------------------------------------------------------------
>
> Key: MSHARED-225
> URL: https://issues.apache.org/jira/browse/MSHARED-225
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-archiver
> Affects Versions: maven-archiver-2.4
> Environment: MS Win7
> Reporter: Stephen Davidson
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)