dev@glassfish.java.net

pom rev req: made upgrade.jar into non-OSGi jar

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Tue, 6 Jul 2010 15:58:54 -0400

Hi all (or Jane),

This look ok? The upgrade tool doesn't need to be an OSGI jar file.
The resulting manifest is below the changes.

Thanks,
Bobby

hostname% svn diff extras
Index: extras/upgrade/upgrade-jar/pom.xml
===================================================================
--- extras/upgrade/upgrade-jar/pom.xml (revision 38378)
+++ extras/upgrade/upgrade-jar/pom.xml (working copy)
@@ -46,7 +46,7 @@
      </parent>

      <artifactId>upgrade-tool</artifactId>
- <packaging>hk2-jar</packaging>
+ <packaging>jar</packaging>
      <name>Upgrade Tool</name>

      <build>
@@ -54,16 +54,15 @@
          <resources>
          </resources>
          <plugins>
- <plugin>
- <groupId>com.sun.enterprise</groupId>
- <artifactId>hk2-maven-plugin</artifactId>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
                  <configuration>
                      <archive>
                          <manifest>
                               
<mainClass>com.sun.enterprise.tools.upgrade.UpgradeToolMain</mainClass>
                          </manifest>
- <manifestEntries>
- <Class-Path>common-util.jar javahelp.jar
upgrade-branding.jar upgrade-tool-l10n.jar</Class-Path>
+ <manifestEntries>
+ <Class-Path>common-util.jar javahelp.jar
upgrade-branding.jar upgrade-tool-l10n.jar</Class-Path>
                          </manifestEntries>
                      </archive>
                  </configuration>

And the newly created manifest:

hostname% cat MANIFEST.MF
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: bobby
Build-Jdk: 1.6.0_20
Main-Class: com.sun.enterprise.tools.upgrade.UpgradeToolMain
Class-Path: common-util.jar javahelp.jar upgrade-branding.jar upgrade-
  tool-l10n.jar