Discussion:
How to add additional info to the MANIFEST.MF
hujirong
2012-04-24 14:36:35 UTC
Permalink
Hi

The current EAR file only has the first three lines info. How can I add the
next four lines in BOLD? I am using a parent POM which is not created by me.

Thanks
Jirong

Manifest-Version: 1.0
DeployVersion: 7.0.0.0
Created-By: 1.5.0 (IBM Corporation)
*Implementation-Vendor: NBFG
Built-By: NBFG
Implementation-Version: 20120404_1130
Implementation-Title: CDIPubSubMgmtMed*




--
View this message in context: http://maven.40175.n5.nabble.com/How-to-add-additional-info-to-the-MANIFEST-MF-tp5662221p5662221.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Wayne Fay
2012-04-24 15:13:06 UTC
Permalink
Post by hujirong
The current EAR file only has the first three lines info. How can I add the
next four lines in BOLD? I am using a parent POM which is not created by me.
Google for "maven manifest.mf" leads me to:
http://maven.apache.org/guides/mini/guide-manifest.html

With a link to:
http://maven.apache.org/shared/maven-archiver/index.html

Which tells the user how to add such data via <manifestEntries>. Since
this is an ear, you will add configuration to the maven-ear-plugin
entry in your pom.

Here is an example if your project was a jar -- just adapt it slightly:
http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html

Google knows about all of this.

Wayne
hujirong
2012-04-24 17:58:00 UTC
Permalink
I tried, didn't work.

Below is my POM and build output. There is no maven-ear-plugin definition in
the parent POM.


<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.nbfg.max.maven</groupId>
<artifactId>max-wesb-pom</artifactId>
<version>0.0.4-SNAPSHOT</version>
</parent>

<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIPubSubMgmtMed</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>CDIPubSubMgmtMed Mediation</name>

<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<archive>
<manifest>

<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>

<Implementation-Version>${maven.build.timestamp}</Implementation-Version>
<Built-By>NBFG</Built-By>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>

<dependency>
<groupId>com.ibm.ws.sca.sdoplugins</groupId>
<artifactId>sdo_api</artifactId>
<version>${wid.version}</version>
<scope>system</scope>
<systemPath>${was.home}/feature_packs/sca/sdoplugins/sdo_api.jar
</systemPath>
</dependency>

<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>ClientServicesBOLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>ClientInfoMgmtLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIPubSubMgmtLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIPubSubMgmtBOLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIServiceMgmtLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>ClientInfoEventLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

</dependencies>



</project>


[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building CDIPubSubMgmtMed Mediation 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ CDIPubSubMgmtMed
---
[INFO] Deleting
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:regex-property (regex-property) @
CDIPubSubMgmtMed ---
[INFO] Setting property 'portable.artifact.path' to
'C:/Workspace/WID/CDIPubSubMgmtMed/../build/target/CDIPubSubMgmtMed/CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear'.
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @
CDIPubSubMgmtMed ---
[INFO] Source directory: C:\Workspace\WID\CDIPubSubMgmtMed\gen\src added.
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-resource (add-resource) @
CDIPubSubMgmtMed ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
CDIPubSubMgmtMed ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\main\resources
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
CDIPubSubMgmtMed ---
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform dependent!
[INFO] Compiling 2 source files to
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-testResources) @ CDIPubSubMgmtMed ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
CDIPubSubMgmtMed ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @
CDIPubSubMgmtMed ---
[INFO] No tests to run.
[INFO] Surefire report directory:
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ CDIPubSubMgmtMed ---
[INFO] Building jar:
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed.jar
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts)
@ CDIPubSubMgmtMed ---
[INFO]
[INFO] >>> servicedeploy-plugin:0.0.1-SNAPSHOT:run (run-servicedeploy) @
CDIPubSubMgmtMed >>>
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:regex-property (regex-property) @
CDIPubSubMgmtMed ---
[INFO] Setting property 'portable.artifact.path' to
'C:/Workspace/WID/CDIPubSubMgmtMed/../build/target/CDIPubSubMgmtMed/CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear'.
[INFO]
[INFO] --- maven-dependency-plugin:2.1:unpack (run-servicedeploy) @
CDIPubSubMgmtMed ---
[INFO] Configured Artifact:
com.nbfg.fw.maven.plugins:servicedeploy-plugin:assembly:0.0.1-SNAPSHOT:zip
[INFO] Unpacking
C:\Users\Administrator\.m2\repository\com\nbfg\fw\maven\plugins\servicedeploy-plugin\0.0.1-SNAPSHOT\servicedeploy-plugin-0.0.1-SNAPSHOT-assembly.zip
to
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed
with includes null and excludes:null
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (run-servicedeploy) @
CDIPubSubMgmtMed ---
[INFO] Executing tasks

main:
[INFO] Executed tasks
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @
CDIPubSubMgmtMed ---
[INFO] Source directory: C:\Workspace\WID\CDIPubSubMgmtMed\gen\src added.
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-resource (add-resource) @
CDIPubSubMgmtMed ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
CDIPubSubMgmtMed ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\main\resources
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
CDIPubSubMgmtMed ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-testResources) @ CDIPubSubMgmtMed ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
CDIPubSubMgmtMed ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @
CDIPubSubMgmtMed ---
[INFO] No tests to run.
[INFO] Skipping execution of surefire because it has already been run for
this configuration
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ CDIPubSubMgmtMed ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts)
@ CDIPubSubMgmtMed ---
[WARNING] Artifact com.nbfg.max.wesb:CDIPubSubMgmtMed:ear:App:0.0.1-SNAPSHOT
already attached to project, ignoring duplicate
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-5:single (run-servicedeploy) @
CDIPubSubMgmtMed ---
[INFO] Reading assembly descriptor:
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/assemblies/zip-servicedeploy.xml
[INFO] Building zip:
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed-servicedeploy.zip
[INFO]
[INFO] <<< servicedeploy-plugin:0.0.1-SNAPSHOT:run (run-servicedeploy) @
CDIPubSubMgmtMed <<<
[INFO]
[INFO] --- servicedeploy-plugin:0.0.1-SNAPSHOT:run (run-servicedeploy) @
CDIPubSubMgmtMed ---

initialize:

serviceDeploy:
[echo] *** Running serviceDeploy... ***
[mkdir] Created dir:
C:\Workspace\WID\build\target\CDIPubSubMgmtMed\servicedeploy
[exec] The workbench is starting in
C:\Workspace\WID\build\target\CDIPubSubMgmtMed\servicedeploy\136e57e327a.
[exec] The workspace is initializing.
[exec] CDIPubSubMgmtMed-servicedeploy.zip was successfully imported
into the workspace.
[exec] The CDIPubSubMgmtMedApp project is being created.
[exec] The CDIPubSubMgmtMedWeb project is being created.
[exec] The CDIPubSubMgmtMed project is building.
[exec] CDIPubSubMgmtMed is being validated.
[exec]
[exec] The following 3 warning messages were reported during
deployment:
[exec]
[exec] Severity: [warning]
[exec] Description: CWSCA8095W: Unable to find class
com.ibm.ws.sib.api.jmsra.JmsJcaManagedConnectionFactory, please make sure
the classpath is properly set up.
[exec] Resource: ClientInfoEventPublishImport.import
[exec] Location:
[exec]
[exec] Severity: [warning]
[exec] Description: XSD: There is no xmlns declaration for namespace
'http://www.nbfg.ca/ClientServices/InitiatePublishEvent'
[exec] Resource: MemberEventNotification.xsd
[exec] Location: 1
[exec]
[exec] Severity: [warning]
[exec] Description: CWZMU0044E: The fail terminal of the
manageIndividualEvent : CDIServicePartner callout response primitive is not
connected.
[exec] Resource: CDIPubSubMgmtMed.medflow
[exec] Location:
[exec]
[exec]
[exec] The
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear
application is being exported.
[exec] Deployment has completed.
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
CDIPubSubMgmtMed ---
[INFO] Installing
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed.jar
to
C:\Users\Administrator\.m2\repository\com\nbfg\max\wesb\CDIPubSubMgmtMed\0.0.1-SNAPSHOT\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.jar
[INFO] Installing C:\Workspace\WID\CDIPubSubMgmtMed\pom.xml to
C:\Users\Administrator\.m2\repository\com\nbfg\max\wesb\CDIPubSubMgmtMed\0.0.1-SNAPSHOT\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.pom
[INFO] Installing
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear
to
C:\Users\Administrator\.m2\repository\com\nbfg\max\wesb\CDIPubSubMgmtMed\0.0.1-SNAPSHOT\CDIPubSubMgmtMed-0.0.1-SNAPSHOT-App.ear
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 37.667s
[INFO] Finished at: Tue Apr 24 13:55:47 EDT 2012
[INFO] Final Memory: 43M/512M
[INFO]
------------------------------------------------------------------------




--
View this message in context: http://maven.40175.n5.nabble.com/How-to-add-additional-info-to-the-MANIFEST-MF-tp5662221p5662830.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Dennis Lundberg
2012-04-24 18:07:35 UTC
Permalink
Hi

You have not configured your project to be an EAR project.
You need to add the following line to your POM, otherwise
maven-ear-plugin is never run, as can be seen in the log you provided.

<packaging>ear</packaging>
Post by hujirong
I tried, didn't work.
Below is my POM and build output. There is no maven-ear-plugin definition in
the parent POM.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.nbfg.max.maven</groupId>
<artifactId>max-wesb-pom</artifactId>
<version>0.0.4-SNAPSHOT</version>
</parent>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIPubSubMgmtMed</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>CDIPubSubMgmtMed Mediation</name>
<build>
<plugins>
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Version>${maven.build.timestamp}</Implementation-Version>
<Built-By>NBFG</Built-By>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.ibm.ws.sca.sdoplugins</groupId>
<artifactId>sdo_api</artifactId>
<version>${wid.version}</version>
<scope>system</scope>
<systemPath>${was.home}/feature_packs/sca/sdoplugins/sdo_api.jar
</systemPath>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>ClientServicesBOLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>ClientInfoMgmtLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIPubSubMgmtLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIPubSubMgmtBOLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>CDIServiceMgmtLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.nbfg.max.wesb</groupId>
<artifactId>ClientInfoEventLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building CDIPubSubMgmtMed Mediation 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
---
[INFO] Deleting
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed
[INFO]
CDIPubSubMgmtMed ---
[INFO] Setting property 'portable.artifact.path' to
'C:/Workspace/WID/CDIPubSubMgmtMed/../build/target/CDIPubSubMgmtMed/CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear'.
[INFO]
CDIPubSubMgmtMed ---
[INFO] Source directory: C:\Workspace\WID\CDIPubSubMgmtMed\gen\src added.
[INFO]
CDIPubSubMgmtMed ---
[INFO]
CDIPubSubMgmtMed ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\main\resources
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO]
CDIPubSubMgmtMed ---
[WARNING] File encoding has not been set, using platform encoding Cp1252,
i.e. build is platform dependent!
[INFO] Compiling 2 source files to
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\test\resources
[INFO]
CDIPubSubMgmtMed ---
[INFO] No sources to compile
[INFO]
CDIPubSubMgmtMed ---
[INFO] No tests to run.
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed.jar
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts)
@ CDIPubSubMgmtMed ---
[INFO]
CDIPubSubMgmtMed >>>
[INFO]
CDIPubSubMgmtMed ---
[INFO] Setting property 'portable.artifact.path' to
'C:/Workspace/WID/CDIPubSubMgmtMed/../build/target/CDIPubSubMgmtMed/CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear'.
[INFO]
CDIPubSubMgmtMed ---
com.nbfg.fw.maven.plugins:servicedeploy-plugin:assembly:0.0.1-SNAPSHOT:zip
[INFO] Unpacking
C:\Users\Administrator\.m2\repository\com\nbfg\fw\maven\plugins\servicedeploy-plugin\0.0.1-SNAPSHOT\servicedeploy-plugin-0.0.1-SNAPSHOT-assembly.zip
to
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed
with includes null and excludes:null
[INFO]
CDIPubSubMgmtMed ---
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]
CDIPubSubMgmtMed ---
[INFO] Source directory: C:\Workspace\WID\CDIPubSubMgmtMed\gen\src added.
[INFO]
CDIPubSubMgmtMed ---
[INFO]
CDIPubSubMgmtMed ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\main\resources
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO] Copying 20 resources
[INFO] Copying 1 resource
[INFO]
CDIPubSubMgmtMed ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
C:\Workspace\WID\CDIPubSubMgmtMed\src\test\resources
[INFO]
CDIPubSubMgmtMed ---
[INFO] No sources to compile
[INFO]
CDIPubSubMgmtMed ---
[INFO] No tests to run.
[INFO] Skipping execution of surefire because it has already been run for
this configuration
[INFO]
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:attach-artifact (attach-artifacts)
@ CDIPubSubMgmtMed ---
[WARNING] Artifact com.nbfg.max.wesb:CDIPubSubMgmtMed:ear:App:0.0.1-SNAPSHOT
already attached to project, ignoring duplicate
[INFO]
CDIPubSubMgmtMed ---
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed/assemblies/zip-servicedeploy.xml
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed-servicedeploy.zip
[INFO]
CDIPubSubMgmtMed <<<
[INFO]
CDIPubSubMgmtMed ---
[echo] *** Running serviceDeploy... ***
C:\Workspace\WID\build\target\CDIPubSubMgmtMed\servicedeploy
[exec] The workbench is starting in
C:\Workspace\WID\build\target\CDIPubSubMgmtMed\servicedeploy\136e57e327a.
[exec] The workspace is initializing.
[exec] CDIPubSubMgmtMed-servicedeploy.zip was successfully imported
into the workspace.
[exec] The CDIPubSubMgmtMedApp project is being created.
[exec] The CDIPubSubMgmtMedWeb project is being created.
[exec] The CDIPubSubMgmtMed project is building.
[exec] CDIPubSubMgmtMed is being validated.
[exec]
[exec] The following 3 warning messages were reported during
[exec]
[exec] Severity: [warning]
[exec] Description: CWSCA8095W: Unable to find class
com.ibm.ws.sib.api.jmsra.JmsJcaManagedConnectionFactory, please make sure
the classpath is properly set up.
[exec] Resource: ClientInfoEventPublishImport.import
[exec]
[exec] Severity: [warning]
[exec] Description: XSD: There is no xmlns declaration for namespace
'http://www.nbfg.ca/ClientServices/InitiatePublishEvent'
[exec] Resource: MemberEventNotification.xsd
[exec] Location: 1
[exec]
[exec] Severity: [warning]
[exec] Description: CWZMU0044E: The fail terminal of the
manageIndividualEvent : CDIServicePartner callout response primitive is not
connected.
[exec] Resource: CDIPubSubMgmtMed.medflow
[exec]
[exec]
[exec] The
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear
application is being exported.
[exec] Deployment has completed.
[INFO]
CDIPubSubMgmtMed ---
[INFO] Installing
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed.jar
to
C:\Users\Administrator\.m2\repository\com\nbfg\max\wesb\CDIPubSubMgmtMed\0.0.1-SNAPSHOT\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.jar
[INFO] Installing C:\Workspace\WID\CDIPubSubMgmtMed\pom.xml to
C:\Users\Administrator\.m2\repository\com\nbfg\max\wesb\CDIPubSubMgmtMed\0.0.1-SNAPSHOT\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.pom
[INFO] Installing
C:\Workspace\WID\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed-0.0.1-SNAPSHOT.ear
to
C:\Users\Administrator\.m2\repository\com\nbfg\max\wesb\CDIPubSubMgmtMed\0.0.1-SNAPSHOT\CDIPubSubMgmtMed-0.0.1-SNAPSHOT-App.ear
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 37.667s
[INFO] Finished at: Tue Apr 24 13:55:47 EDT 2012
[INFO] Final Memory: 43M/512M
[INFO]
------------------------------------------------------------------------
--
View this message in context: http://maven.40175.n5.nabble.com/How-to-add-additional-info-to-the-MANIFEST-MF-tp5662221p5662830.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
--
Dennis Lundberg
hujirong
2012-07-02 14:59:54 UTC
Permalink
I am using WID 7's serviceDeploy.bat to generate the EAR file from Maven. How
can I inject some build information into the MANIFEST.MF file inside the EAR
file? I want something like this:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Build-Jdk: 1.6.0
Implementation-Title: CdiWebServicesEar
Implementation-Vendor-Id: com.nbfg.cdi
Built-By: NBFG
Implementation-Version: 2.3.4-20120622.195932-29

But the default is as follows:

Manifest-Version: 1.0
Created-By: 1.5.0 (IBM Corporation)
DeployVersion: 7.0.0.0
I notice this command during the run: exec The CDIPubSubMgmtMedApp project
is being created. and I believe it's using a default MANIFEST.MF, so how can
I inject additional information here?

INFO Running with /c call
C:/IBM/WID7_WTE/runtimes/bi_v7/profiles/qesb/bin/serviceDeploy.bat
C:\Sandbox\MDM\CDIPubSubM
gmtMed\..\build\target\CDIPubSubMgmtMed/CDIPubSubMgmtMed-servicedeploy.zip
-workingDirectory C:\Sandbox\MDM\CDIPubSubMgm
tMed\..\build\target\CDIPubSubMgmtMed/servicedeploy -outputApplication
C:\Sandbox\MDM\CDIPubSubMgmtMed\..\build\target\C
DIPubSubMgmtMed/CDIPubSubMgmtMed-2.3.4-SNAPSHOT.ear -keep true -ignoreErrors
false
exec The workbench is starting in
C:\Sandbox\MDM\build\target\CDIPubSubMgmtMed\servicedeploy\138442eb9e5.
exec The workspace is initializing.
exec CDIPubSubMgmtMed-servicedeploy.zip was successfully imported into the
workspace.
exec The CDIPubSubMgmtMedApp project is being created.
exec The CDIPubSubMgmtMedWeb project is being created.
exec The CDIPubSubMgmtMed project is building.
exec CDIPubSubMgmtMed is being validated.
exec The following 2 warning messages were reported during deployment:
exec Severity: warning
exec Description: CWSCA8095W: Unable to find class
com.ibm.ws.sib.api.jmsra.JmsJcaManagedConnectionFactory
, please make sure the classpath is properly set up.
exec Resource: ClientInfoEventPublishImport.import
exec Location:
exec Severity: warning
exec Description: CWZMU0044E: The fail terminal of the manageIndividualEvent
: CDIServicePartner callout r
esponse primitive is not connected.
exec Resource: CDIPubSubMgmtMed.medflow
exec Location:
exec The
C:\Sandbox\MDM\CDIPubSubMgmtMed\..\build\target\CDIPubSubMgmtMed\CDIPubSubMgmtMed-2.3.4-SNAPSHOT.ear
app
lication is being exported.
exec Deployment has completed.

--
View this message in context: http://maven.40175.n5.nabble.com/How-to-add-additional-info-to-the-MANIFEST-MF-tp5662221p5712758.html
Sent from the Maven - Users mailing list archive at Nabble.com.
Wayne Fay
2012-07-03 18:52:00 UTC
Permalink
Post by hujirong
I am using WID 7's serviceDeploy.bat to generate the EAR file from Maven. How
can I inject some build information into the MANIFEST.MF file inside the EAR
I have no idea about WID7 or serviceDeploy.bat but this is simple with
plain-jane Maven:
http://www.lmgtfy.com/?q=maven+manifest.mf+add+entry

Wayne

Loading...