Hi Wayne,
Thanks for the response. I feel we are close now. In pom.xml for
'myejbmodule' module, immediately after 'maven-antrun-plugin' section, I
have added the following section:
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
executions
execution
idattach-artifacts/id
phasepackage/phase
goals
goalattach-artifact/goal
/goals
configuration
artifacts
artifact
file${project.build.directory}/mytranslets.jar/file
typejar/type
/artifact
/artifacts
/configuration
/execution
/executions
/plugin
When I run maven build for just that module, I do not get any errors. Now
when I tried to add dependency to my 'myearmodule' like
dependency
groupId/groupId
artifactIdmytranslets/artifactId
version1.0/version
/dependency
Then I get build error:
Missing:
--
1) xxx:mytranslets:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=au.com.auspost.pcms
-DartifactId=pcms-
abel-translets -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Cheers,
tamugrg wrote:
Hi,
My project structure is as follows:
myproject - pom.xml
- myearmodule
-pom.xml
- mywebmodule
-pom.xml
- myejbmodule
-pom.xml
.
pom.xml of 'myejbmodule'
---
:
:
plugin
artifactIdmaven-antrun-plugin/artifactId
dependencies
/dependencies
executions
execution
phasecompile/phase
configuration
tasks
java
classname=org.apache.xalan.xsltc.cmdline.Compile
dir=${project.build.directory}
arg line=-p package1.package2./
arg line=-j mytranslets.jar/
arg line=-u
file:///${basedir}/myfolder/label.xsl/
/java
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
The 'mytranslets.jar' jar file created in 'myejbmodule' gets created in
the 'target' folder of 'myejbmodule'
I would want to include the jar as part of the myearmodule.ear that gets
generated from 'myearmodule'. Any pointers??
Cheers,
--
View this message in context:
http://old.nabble.com/Including-generated-jars-into-ear-file-tp27495491p27496356.html
Sent from the Maven - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org