Re: Including generated jars into ear file

2010-02-11 Thread tamugrg

Works fine Wayne. Thanks for your help

Wayne Fay wrote:
> 
>> Missing:
>> --
>> 1) xxx:mytranslets:jar:1.0
> 
> 1. Build from parent/top project and Maven will automatically resolve
> the missing artifact.
> 2. Run "mvn install" on module so the jars are copied to your local repo
> cache.
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Including-generated-jars-into-ear-file-tp27495491p27556671.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



Re: Including generated jars into ear file

2010-02-07 Thread tamugrg

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:

 
org.codehaus.mojo
build-helper-maven-plugin

  
attach-artifacts
package

  attach-artifact



  
   
${project.build.directory}/mytranslets.jar
jar
  


  

  


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 

   

mytranslets
1.0


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'
> ---
> :
> :
>   
> maven-antrun-plugin
>   
>   
>   
>   
> 
>   
> compile
> 
>   
>classname="org.apache.xalan.xsltc.cmdline.Compile"
> dir="${project.build.directory}">
>   
>   
>   
>   
>   
> 
> 
>   run
> 
>   
> 
>   
>   
> 
> 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



Including generated jars into ear file

2010-02-07 Thread tamugrg

Hi,

My project structure is as follows:

myproject - pom.xml
  - myearmodule
   -pom.xml
  - mywebmodule
   -pom.xml
  - myejbmodule
   -pom.xml
  .

pom.xml of 'myejbmodule'
---
:
:
  
maven-antrun-plugin
  
  
  
  

  
compile

  
  
  
  
  
  
  


  run

  

  
  

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-tp27495491p27495491.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