Re: EAR plugin: problem with unpacking modules

2008-02-14 Thread Pavel Kaplin
Problem was successfully solved by executing the 'clean' goal before
packaging.

2008/2/14, Pavel Kaplin <[EMAIL PROTECTED]>:
>
> Hi!
>
> Maven EAR plugin is unpacking modules content right into the working
> folder :-(
> Maven version 2.0.8 (tried on 2.0.6 and 2.0.7 with the same result)
>
> Here's the POM:
>
> 
> 
> mystuff
> mystuff
> 1.0
> 
> 4.0.0
> mystuff
> ear
> mystuff - ear
> ear
> 1.0
> http://maven.apache.org
> 
> 
> mystuff
> ejb
> 1.0
> ejb
> 
> 
> mystuff
> war
> 1.0
> war
> 
> 
> org.jboss.seam
> jboss-seam
> ejb
> 2.0.1.GA
> 
> 
> org.jboss.seam
> jboss-el
> 
> 
> javax.el
> el-api
> 
> 
> jar
> 2.0.0.GA
> 
> 
> commons-beanutils
> commons-beanutils
> 
> 
> commons-logging
> commons-logging
> 
> 
> jar
> 
> 
> 
> 
> 
> org.apache.maven.plugins
> maven-ear-plugin
> 
> rar,war,ejb
> 
> 4
> mystuff:loader=mystuff.ear
> 
> 
> 
> 
> mystuff
> war
> mystuff
> 
> 
> mystuff
> ejb
> 
> 
> org.jboss.seam
> jboss-seam
> 
> 
> 
> org.jboss.seam
> jboss-el
> lib
> 
> 
> commons-beanutils
> commons-beanutils
> lib
> 
> 
> 
> 
> 
> 
> 
>
> And here's the running log:
>
> c:\projects\dinnerManager\ear\test>mvn -f ..\pom.xml package
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Building mystuff - ear
> [INFO]task-segment: [package]
> [INFO]
> 
> [INFO] [ear:generate-application-xml]
> [INFO] Generating application.xml
> [INFO] Generating jboss-app.xml
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [ear:ear]
> [INFO] Copying artifact[war:mystuff:war:1.0] to[war-1.0.war] (unpacked)
> [INFO] Expanding: c:\java\repository\mystuff\war\1.0\war-1.0.war into null
> [INFO] Copying artifact[ejb:mystuff:ejb:1.0] to[ejb-1.0.jar] (unpacked)
> [INFO] Expanding: c:\java\repository\mystuff\ejb\1.0\ejb-1.0.jar into null
> [INFO] Copying artifact[ejb:org.jboss.seam:jboss-seam:2.0.1.GA] to[
> jboss-seam-2.0.1.GA.jar] (unpacked)
> [INFO] Expanding:
> c:\java\repository\org\jboss\seam\jboss-seam\2.0.1.GA\jboss-
> seam-2.0.1.GA.jar into null
> [INFO] Copying artifact[jar:org.jboss.seam:jboss-el:2.0.0.GA]
> to[lib/jboss-el-2.0.0.GA.jar]
> [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0]
> to[lib/commons-beanutils-1.7.0.jar]
> [INFO] Copying artifact[jar:javax.el:el-api:1.0] to[el-api-1.0.jar]
> [INFO] Copying artifact[jar:jboss:javassist:3.3.ga] to[
> javassist-3.3.ga.jar]
> [INFO] Copying artifact[jar:org.jboss.el:jboss-el:2.0.1.GA] to[
> jboss-el-2.0.1.GA.jar]
> [INFO] Copying artifact[jar:dom4j:dom4j:1.6.1-jboss] to[
> dom4j-1.6.1-jboss.jar]
> [INFO] Could not find manifest file:
> c:\projects\dinnerManager\ear\test\..\src\main\application\META-INF\MANIFEST.MF
> - Generating one
> [INFO] Building jar: c:\projects\dinnerManager\ear\test\..\target\ear-
> 1.0.ear
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
> [INFO]
> 
> [INFO] Total time: 19 seconds
> [INFO] Finished at: Thu Feb 14 18:15:55 EET 2008
> [INFO] Final Memory: 4M/9M
> [INFO]
> 
>
> Any ideas?
>
> Many thanks,
> Pavel Kaplin
>


EAR plugin: problem with unpacking modules

2008-02-14 Thread Pavel Kaplin
Hi!

Maven EAR plugin is unpacking modules content right into the working folder
:-(
Maven version 2.0.8 (tried on 2.0.6 and 2.0.7 with the same result)

Here's the POM:



mystuff
mystuff
1.0

4.0.0
mystuff
ear
mystuff - ear
ear
1.0
http://maven.apache.org


mystuff
ejb
1.0
ejb


mystuff
war
1.0
war


org.jboss.seam
jboss-seam
ejb
2.0.1.GA


org.jboss.seam
jboss-el


javax.el
el-api


jar
2.0.0.GA


commons-beanutils
commons-beanutils


commons-logging
commons-logging


jar





org.apache.maven.plugins
maven-ear-plugin

rar,war,ejb

4
mystuff:loader=mystuff.ear




mystuff
war
mystuff


mystuff
ejb


org.jboss.seam
jboss-seam



org.jboss.seam
jboss-el
lib


commons-beanutils
commons-beanutils
lib








And here's the running log:

c:\projects\dinnerManager\ear\test>mvn -f ..\pom.xml package
[INFO] Scanning for projects...
[INFO]

[INFO] Building mystuff - ear
[INFO]task-segment: [package]
[INFO]

[INFO] [ear:generate-application-xml]
[INFO] Generating application.xml
[INFO] Generating jboss-app.xml
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [ear:ear]
[INFO] Copying artifact[war:mystuff:war:1.0] to[war-1.0.war] (unpacked)
[INFO] Expanding: c:\java\repository\mystuff\war\1.0\war-1.0.war into null
[INFO] Copying artifact[ejb:mystuff:ejb:1.0] to[ejb-1.0.jar] (unpacked)
[INFO] Expanding: c:\java\repository\mystuff\ejb\1.0\ejb-1.0.jar into null
[INFO] Copying artifact[ejb:org.jboss.seam:jboss-seam:2.0.1.GA] to[
jboss-seam-2.0.1.GA.jar] (unpacked)
[INFO] Expanding:
c:\java\repository\org\jboss\seam\jboss-seam\2.0.1.GA\jboss-
seam-2.0.1.GA.jar into null
[INFO] Copying artifact[jar:org.jboss.seam:jboss-el:2.0.0.GA] to[lib/jboss-
el-2.0.0.GA.jar]
[INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0]
to[lib/commons-beanutils-1.7.0.jar]
[INFO] Copying artifact[jar:javax.el:el-api:1.0] to[el-api-1.0.jar]
[INFO] Copying artifact[jar:jboss:javassist:3.3.ga] to[javassist-3.3.ga.jar]
[INFO] Copying artifact[jar:org.jboss.el:jboss-el:2.0.1.GA] to[
jboss-el-2.0.1.GA.jar]
[INFO] Copying artifact[jar:dom4j:dom4j:1.6.1-jboss] to[
dom4j-1.6.1-jboss.jar]
[INFO] Could not find manifest file:
c:\projects\dinnerManager\ear\test\..\src\main\application\META-INF\MANIFEST.MF
- Generating one
[INFO] Building jar: c:\projects\dinnerManager\ear\test\..\target\ear-
1.0.ear
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 19 seconds
[INFO] Finished at: Thu Feb 14 18:15:55 EET 2008
[INFO] Final Memory: 4M/9M
[INFO]


Any ideas?

Many thanks,
Pavel Kaplin


Re: EAR plugin problem

2006-12-04 Thread Alexander Sack

Try "APP-INF/lib" instead.  I
believe the BBwMaven book is inaccurate at this point.

-aps

On 12/4/06, Lars Rosenberg Nielsen <[EMAIL PROTECTED]> wrote:


I have a problem with configuring the EAR plugin so it copies the depended
jar files to by APP-INF/lib directory in the EAR file; the plugin places the
jar files in the root directory, which makes my deployment fail. See the
configuration of the EAR file below. Can anyone point me to a fix?

  

  
org.apache.maven.plugins
maven-ear-plugin

APP-INF/lib
   
 
 ...
 
  

  

  




Best regards

Lars Rosenberg Nielsen,
SI Center of Excellence


All manner of good things come from writing less code: delivery of
business value in much less time; a far less complex code base which is then
much easier to change and maintain; and less technical debt accumulated over
the long term



-

Alt i én. Få Yahoo! Mail med adressekartotek, kalender og notesblok.





--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


EAR plugin problem

2006-12-04 Thread Lars Rosenberg Nielsen
I have a problem with configuring the EAR plugin so it copies the depended jar 
files to by APP-INF/lib directory in the EAR file; the plugin places the jar 
files in the root directory, which makes my deployment fail. See the 
configuration of the EAR file below. Can anyone point me to a fix?

  

  
org.apache.maven.plugins
maven-ear-plugin

APP-INF/lib
   
 
 ...
 
  

  

  




Best regards

Lars Rosenberg Nielsen, 
SI Center of Excellence


All manner of good things come from writing less code: delivery of business 
value in much less time; a far less complex code base which is then much easier 
to change and maintain; and less technical debt accumulated over the long term



-

Alt i én. Få Yahoo! Mail med adressekartotek, kalender og notesblok. 

Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)

2005-09-01 Thread Edward Yakop

Hi eric,

The way I solved this is by creating a pom porject that includes all 
three modules and make ear to contain only the dependency. I.e.


 [apps]
|-module-->[earBuilderProj]
|  |  |
|   depend  depend
|  |  |
| \|/ |
|-module-->[proj1]|
|\|/
|-module-->[proj2]


apps.pom


  4.0.0
  com.myco
  apps
  pom 
  1.0
  sub projects
  
earbuilderproj
proj1
proj2
  


And for each of child project (earbuilderproj, proj1 and proj2) will 
have an additional  xml node:



  4.0.0
  ...
  
com.myco
apps
1.0
  


Regards,
Edward


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)

2005-09-01 Thread Manuel G. Chacon

Eric,

there is a property that you have to set in your build.properties in order 
for maven to create the application.xml file for you.


http://maven.apache.org/reference/plugins/ear/properties.html
maven.ear.appxml.generate = true

Manuel

At 08:41 AM 9/1/2005, you wrote:

Having a problem understanding the directory structure for the master
project which contains multiple subprojects.
I am trying to create an ear from two wars which are generated from two
subprojects.

earbuilderproj
  - pom.xml (I want this to generate an EAR)
  - proj1
 - pom.xml
 - src/main/java/
 - src/test/java
 - target/proj1.war (WAR file generated by the build)
  - proj2
 - pom.xml
 - src/main/java/
 - src/test/java
 - target/proj2.war (WAR file generated by the build)

This is where I am a little lost... The 2 WAR files are successfully
generated and installed into my local repository by running the command:
m2 clean:clean install(from the directory
earbuilderproj)

When I try to create the EAR file I do so using the following command:
 m2 ear:ear(from the directory
earbuilderproj)

I receive an error:
 Deployment descriptor:
C:\tmp\earbuilderproj\target\earbuilderproj-1.0\META-INF\application.xml
does not exist.


Three Questions:
1 - Is my directory structure correct?
2 - I thought that the application.xml file was supposed to be generated.
Do you know why it's not being generated?
3 - What else am I missing to generate the EAR?

Any help will be appreciated.

Eric Starr



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)

2005-09-01 Thread eric . starr
I had a copy/paste error in the last email... here is the pom.xml file 
that i am using... I'm still having the issues as described in the 
previous email.


   4.0.0
   com.myco.apps
   earbuilderproj
   ear
   1.0
   sub projects
   
  proj2
  proj1
   
   

com.myco.apps
proj2
1.0-SNAPSHOT
war


com.myco.apps
proj1
1.0-SNAPSHOT
war




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)

2005-09-01 Thread eric . starr
Having some problems with that...

 
**
C:\tmp\earbuilderproj>m2 install
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Reason: Edge between 'Vertex{label='com.myco.apps:proj1'}' 
and 'Vertex{label='com.myco.apps:proj1'}' introduces to cycle in the graph 
com.myco.apps:proj1 --> com.myco.apps:proj1
[INFO] 

[INFO] Total time: < 1 second
[INFO] Finished at: Thu Sep 01 13:31:46 EDT 2005
[INFO] Final Memory: 1M/2M
[INFO] 

 
**

Not sure what I am doing wrong...

This is the pom.xml file that is within the earbuilderproj directory:



   4.0.0
   com.myco.apps
   doctrackbuilder
   ear
   1.0
   sub projects
   
  proj2
  proj1
   
   

com.myco.apps
proj2
1.0-SNAPSHOT
war


com.myco.apps
proj1
1.0-SNAPSHOT
war





Does that look right?

Eric Starr







Kenney Westerhof <[EMAIL PROTECTED]> 
09/01/2005 12:02 PM

Please respond to
"Maven Users List" 


To
Maven Users List 
cc

Subject
Re: [m2] Ear Plugin problem... Generating EAR from two  WARs(subprojects)





In your root project (earbuilder) you need to specify:

- two dependencies on the two war projects, with war
- specify ear
- use m2 install. That way the lifecycle assosiated with packaging ear
kicks in and your application.xml gets generated automatically.
SourceID:NT32BA 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)

2005-09-01 Thread Kenney Westerhof
On Thu, 1 Sep 2005 [EMAIL PROTECTED] wrote:

Hi,

In your root project (earbuilder) you need to specify:

- two dependencies on the two war projects, with war
- specify ear
- use m2 install. That way the lifecycle assosiated with packaging ear
kicks in and your application.xml gets generated automatically.

> 1 - Is my directory structure correct?

Seems fine.

> 2 - I thought that the application.xml file was supposed to be generated.
> Do you know why it's not being generated?

see above.

> 3 - What else am I missing to generate the EAR?

See above. :)

-- Kenney

> Any help will be appreciated.
>
> Eric Starr
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[m2] Ear Plugin problem... Generating EAR from two WARs (subprojects)

2005-09-01 Thread eric . starr
Having a problem understanding the directory structure for the master 
project which contains multiple subprojects.
I am trying to create an ear from two wars which are generated from two 
subprojects.

earbuilderproj
  - pom.xml (I want this to generate an EAR)
  - proj1
 - pom.xml
 - src/main/java/
 - src/test/java
 - target/proj1.war (WAR file generated by the build)
  - proj2
 - pom.xml
 - src/main/java/
 - src/test/java
 - target/proj2.war (WAR file generated by the build)

This is where I am a little lost... The 2 WAR files are successfully 
generated and installed into my local repository by running the command:
m2 clean:clean install(from the directory 
earbuilderproj)

When I try to create the EAR file I do so using the following command:
 m2 ear:ear(from the directory 
earbuilderproj)

I receive an error:
 Deployment descriptor: 
C:\tmp\earbuilderproj\target\earbuilderproj-1.0\META-INF\application.xml 
does not exist.


Three Questions:
1 - Is my directory structure correct?
2 - I thought that the application.xml file was supposed to be generated. 
Do you know why it's not being generated?
3 - What else am I missing to generate the EAR?

Any help will be appreciated.

Eric Starr



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]