Re: Custom MANIFEST.MF maven-ejb-plugin

2013-11-08 Thread Surendran D
Couldn't find any way to achieve the previous scenario.

resolved my adding custom manifest.mf inside src/resources/ and copying
it... instead of generating one.



On Fri, Nov 8, 2013 at 9:30 AM, Surendran Duraisamy
surendra...@gmail.comwrote:

 Hi,
 How can I generate custom class-path: entries in my maven-ejb-plugin.

 I have 3 jar A.jar, B.jar and C.jar in my maven dependency pom.xml. I need
 to put only B.jar and C.jar in my Class-Path: entries of my MANIFEST.

 I cannot use dependency scope provided as my project is referred by
 another project which require dependency scope compile.

 Is there any filters in maven-ejb-plugin or I exclude only specific
 entries in my maven-ejb-plugin.

 Thanks,




exclude entries in MANIFEST.MF

2013-11-06 Thread Surendran D
Hi,
I am currently building and EAR file using maven-ear-plugin

I have a requirement to exclude some of the Class-Path: entries from
MANIFEST.MF file.

For example I have 3 dependencies hibernate-core.jar, quartz-1.6.5.jar and
poi-3.7.jar in my class path (in my dependency of pom.xml)

When I build my EAR file all these entries will be automatically added to
Class-Path entry of my MANIFEST.MF file.

My maven build looks as follows

build
finalNameMyEAR/finalName
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
configuration
archive
addMavenDescriptorfalse/addMavenDescriptor
manifest
addClasspathtrue/addClasspath
addExtensions /
classpathPrefix /
/manifest
manifestFilesrc/main/resources/META-INF/MANIFEST.MF
/manifestFile
/archive
.
.
/configuration
/plugin
/plugins
/build
In the above build file

 addClasspathtrue/addClasspath
is responsible for adding the MANIFEST.MF entries.

My requirement is to add only 2 jars in dependency quartz-1.6.5.jar and
poi-3.7.jar and exlcude the remaning.

If I give false all the entries are excluded from the MANIFEST.MF
classpath. If the remove the depependecy entries from pom I get compilation
errors.

how can I achieve the above scenario.

thanks,


Re: maven-ear-pugin modify applicaion.xml

2013-10-21 Thread Surendran D
thanks used following setting to get it work.

applicationXmlsrc/main/resources/META-INF/application.xml/applicationXml



On Thu, Oct 17, 2013 at 6:26 PM, Wayne Fay wayne...@gmail.com wrote:

  I have requirement to exclude some entries in application.xml during ear
  build.
 ...
  In my case I need to maintain the same EAR structure in the build but
 have
  to exclude entries Alpha.jar and Beta.jar from application.xml during
 build.

 I am fairly certain you can provide an application.xml rather than
 just taking the one that Maven generates for you. Check the
 configuration options  documentation for m-ear-p.

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




include a new file under

2013-10-21 Thread Surendran D
Hi,
I am using maven-ear-plugin to generate my ear.

I need to include a new file xml under
EAR/META-INF/myxmlfile

how can I include that in my META-INF/


Re: include a new file under

2013-10-21 Thread Surendran D
I
have 
earSourceIncludessrc/main/resources/META-INF/myxmlFile.xml/earSourceIncludes

but its not included under EAR/META-INF/

Thanks


On Tue, Oct 22, 2013 at 10:31 AM, Surendran D surendra...@gmail.com wrote:

 Hi,
 I am using maven-ear-plugin to generate my ear.

 I need to include a new file xml under
 EAR/META-INF/myxmlfile

 how can I include that in my META-INF/





Re: include a new file under

2013-10-21 Thread Surendran D
Just figured it out it worked after adding following configuration

earSourceDirectory${basedir}/src/main/resources/earSourceDirectory
earSourceIncludesMETA-INF/myxmlFile.xml/earSourceIncludes


On Tue, Oct 22, 2013 at 10:51 AM, Surendran D surendra...@gmail.com wrote:

 I
 have 
 earSourceIncludessrc/main/resources/META-INF/myxmlFile.xml/earSourceIncludes

 but its not included under EAR/META-INF/

 Thanks


 On Tue, Oct 22, 2013 at 10:31 AM, Surendran D surendra...@gmail.comwrote:

 Hi,
 I am using maven-ear-plugin to generate my ear.

 I need to include a new file xml under
 EAR/META-INF/myxmlfile

 how can I include that in my META-INF/






maven-ear-pugin modify applicaion.xml

2013-10-17 Thread Surendran D
Hi,

I have requirement to exclude some entries in application.xml during ear
build.

application.xml generated by maven-ear-plugin is as follows

?xml version=1.0 encoding=UTF-8?
application xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd; version=5
  descriptionThe EAR packaging for the server side of
Application/description
  display-nameApplicationEAR/display-name
  module
javaAlpha.jar/java
  /module
  module
ejbBeta.jar/ejb
  /module
  module
ejbTheta.jar/ejb
  /module
  module
web
  web-uriDelta.war/web-uri
  context-root/Delta/root/context-root
/web
  /module
/application

With EAR structure
  ApplicationEAR
   |--Alpha.jar
   |--Beta.jar
   |--Theta.jar
   |--Delta.jar


In my case I need to maintain the same EAR structure in the build but have
to exclude entries Alpha.jar and Beta.jar from application.xml during build.

How can I achive the same?