Re: Install phase ignore in command: mvn -e install jboss:deploy

2009-03-15 Thread Rusty Wright
Try taking or commenting out the ... section. That's causing it to run during the stated phases. With that section out you'll have to manually invoke it (jboss:deploy), which is what it sounds like you want. Nafter wrote: Before I want to deploy my WAR to Jboss, I want maven to generate t

Re: Newbie Question: Dependencies among Sibling Projects?

2009-03-15 Thread Massimo Heitor
Wayne Fay wrote: > >> It seems that I need to "install" librarya before libraryb will compile. > > This is correct. Unless you are running "mvn compile" from the top > parent/aggregation pom. > I am running "mvn compile" from the top aggregation pom and I still get the dependency failure. I'm

Seam persistence unit over written in testing phase

2009-03-15 Thread troy.sellers
Hi All, I am wondering how to fix the following 2 problems. With the seam project that I am building, the persistence.xml in the src/main/resources/META-INF directory is over writting the perstence.xml in the test/resources/META-INF directory. Problem here is that the main PU uses an Oracle dia

How skip/exclude artifacts from deployment to jboss

2009-03-15 Thread Nafter
If you invoke the following command: mvn -e install jboss:deploy .. then first the super.pom is being install:install and then deploy:deploy. After this all other modules are installed (install:install) and deployed (deploy:deploy). Let say we have 4 modules: module_1 module_2 module_3 module

Re: Profile with non existing property

2009-03-15 Thread Thomas Marti
Hi Henri Put an exclamation point '!' before the property name. !foo Bye, Thomas Henri Gomez wrote: We could activate a profile if a property exist or if this property exist and it's value match some string. http://maven.apache.org/guides/introduction/introduction-to-profiles.html But

Re: maven adding wrong jar files in war lib

2009-03-15 Thread Wayne Fay
> I have no idea how asm libraries are coming from. list, tree, etc does not > list the asm dependency > from any libraries. I am using m2eclipse, and none of its dependency view > shows asm Are you using "mvn clean package" or what? It is possible that asm and other libs landed in target a while

How to set outputFileNameMapping for generated Class-Path in MANIFEST.MF?

2009-03-15 Thread Vladimir Korenev
Hi, I specify the following outputFileNameMapping option in the assembly descriptor to cut off version number from jar names. This is because the produced jars are used in another project, and I don't want to change the naming convention there. ... ... ${module.a

Re: maven adding wrong jar files in war lib

2009-03-15 Thread agent59624285
Thanks Wayne and Mathus, I tried both of your suggestion but it did not help me. Here is the link to the diff file http://pastebin.com/m28d5480f http://pastebin.com/m28d5480f I deleted the oracle dependency, and I am still experiencing the same problem. On the new pom file, I added hibernate a

Re: Install phase ignore in command: mvn -e install jboss:deploy

2009-03-15 Thread Nafter
Nafter wrote: > > Does somebody know which command to use in order to first INSTALL and > after that deploy to Jboss? > So in fact I only need to know which maven command I have to use to first do the INSTALL of all Jars/wars etc, and after that doing the deployment to Jboss (using the maven

Re: maven compiler plugin problem (probably)

2009-03-15 Thread Santosh Patel
hi, I think this might help... http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html Santosh On Sun, Mar 15, 2009 at 7:01 PM, Roman Kournjaev wrote: > Hi Folks > > I just wanted to be sure that im not somekind of stuipid or so > I have the following li

Re: Failed to execute mvn findbugs:check

2009-03-15 Thread Wendy Smoak
On Sun, Mar 15, 2009 at 8:36 AM, dekely wrote: > Hi Wendy, > Thank you for your reply, I didn't notice  :-D > What is the date for 2.0 ? The plugin lives at Codehaus, so you'd have to (search the archives and then) ask on the mojo mailing list. Actually according to this thread it looks like th

Re: Failed to execute mvn findbugs:check

2009-03-15 Thread dekely
Hi Wendy, Thank you for your reply, I didn't notice :-D What is the date for 2.0 ? thankd Dekel -- View this message in context: http://www.nabble.com/Failed-to-execute-mvn-findbugs%3Acheck-tp22522757p22524375.html Sent from the Maven - Users mailing list archive at Nabble.com. -

Re: Failed to execute mvn findbugs:check

2009-03-15 Thread Wendy Smoak
On Sun, Mar 15, 2009 at 5:39 AM, dekely wrote: > When I execute mvn findbugs:check I get the following error: > "Required goal not found: findbugs:check in > org.codehaus.mojo:findbugs-maven-plugin:1.2" The docs for the 'check' goal say "since 2.0", so it isn't available in the version 1.2 that

maven compiler plugin problem (probably)

2009-03-15 Thread Roman Kournjaev
Hi Folks I just wanted to be sure that im not somekind of stuipid or so I have the following lines of code private static final ArrayList> tabItems = new ArrayList>(); static{ tabItems.addAll((Collection>) Arrays.asList(new Class[]{BuildProfile.class})); } We

Failed to execute mvn findbugs:check

2009-03-15 Thread dekely
Hi, When I execute mvn findbugs:check I get the following error: "Required goal not found: findbugs:check in org.codehaus.mojo:findbugs-maven-plugin:1.2" However, the command mvn findbugs:findbugs works as expected. I need to fail the build on findbugs errors but findbugs:check does not work.

Multiple module maven project questions

2009-03-15 Thread Thai Dang Vu
This is the directory structure of my project seam-glassfish |-- ear ||-- pom.xml |-- ejb ||-- src ||-- pom.xml |-- war ||-- src ||-- pom.xml |-- pom.xml This is the parent pom.xml: 4.0.0 home seam-glassfish 1.0-SNAPSHOT pom seam-glassfish ejb war ear

Any java ee 5 directory structure available?

2009-03-15 Thread Thai Dang Vu
Is there any java ee 5 directory structure with maven2 support available on the Internet? I'm looking to something like this: project-name |-- ear ||-- pom.xml |-- ejb ||-- src ||-- pom.xml |-- war ||-- src ||-- pom.xml |-- pom.xml with whi

Re: maven adding wrong jar files in war lib

2009-03-15 Thread Wayne Fay
> But when my source code is present, it adds asm-1.5.3.jar, > asm-attrs-1.5.3.jar, cglib-2.1_3.jar,xml-apis-1.0.b2.jar, .. etc .. (as I > said previously, these libraries crashes jboss server instance in staging. > If I take the jar files generated by empty project, then everything works > fine)