Re: Execute SQL Maven Plugin only once with Multi-module project

2010-06-11 Thread thinkpipes
Thanks for that. You definitely lead me down the right path. #2 was the closest. I declared the s-m-p in the pluginManagement section of my parent pom. Then, to execute it, I simply put sql:execute on the command line. For the modules I don't want to run, I declare the s-m-p inside those as

How can I get the freshly uploaded artifact filename with Maven?

2010-06-11 Thread thinkpipes
I'm using Maven 2.2.1 + Nexus 1.4.1 (open source edition), and I have a system where, for each artifact that gets built and uploaded to Nexus, I insert a row into a local database with that build's information using the sql-maven-plugin. With most of my projects, this works terrifically, because

How to 'unset' parts of an inherited plugin configuration ?

2010-06-11 Thread Tobias Gierke
Hi, We have a parent POM that has the following configuration inside the build/ section (NOT pluginManagement): SNIP- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId version2.2-beta-5/version

Re: How to 'unset' parts of an inherited plugin configuration ?

2010-06-11 Thread Ron Wheeler
On 11/06/2010 5:39 AM, Tobias Gierke wrote: Hi, We have a parent POM that has the following configuration inside the build/ section (NOT pluginManagement): SNIP- plugin groupIdorg.apache.maven.plugins/groupId

help with multi-module releases

2010-06-11 Thread Nathaniel Auvil
I have kept away from multi-module builds for my projects as i do not understand how to control the release aspect of it. I do not want to release all modules if there is no reason to. For example, x is parent. Under x i have: x1-service x2-core x3-web first release is fine...everything is a

Re: How can I get the freshly uploaded artifact filename with Maven?

2010-06-11 Thread Wayne Fay
My question is, how can I access that very final filename with the uniqueVersion? Is there some built-in variable where I can access that myprog-1.0-060910.123432.jar filename? Is there perhaps a way to hook your post-upload action into Nexus itself, rather than Maven? Nexus obviously has

How to integrate Maven into an existing Flex/Java project?

2010-06-11 Thread phantomiaser
Hello all! First I have to say I am a newbie with Maven2. I created a long time ago a combined Flex/J2EE project in Eclipse with Tomcat server and I have this default directory structure - flex_src - here are the Flex sources - Flex 4.0 SDK - bin-debug - flex_libs - Flex libs (I do not use

Re: How to 'unset' parts of an inherited plugin configuration ?

2010-06-11 Thread Tobias Gierke
Hi, Why not just have 2 parent poms, parent-with-assembly and parent-without-assembly and let the child pom attach the most appropriate parent. Yes, this would work. Anyway, I'm inclined to consider this a bug. In my opinion, declaring some configuration property using an empty XML element

Re: How to integrate Maven into an existing Flex/Java project?

2010-06-11 Thread Wayne Fay
Now, what should I do next? Copy all Java files (source and JUnit tests) from src/ into the directory in which App.java is located? And all of my JUnit / DbUnit tests into the folder in which AppTest.java is located? Seems like a reasonable first step. Wayne

RE: m2eclipse Mailing List

2010-06-11 Thread Shelli Orton
I am still receiving emails from the m2eclipse list and looks like it has been moved to the Sonatype servers. See this link for more info and to subscribe: http://m2eclipse.sonatype.org/project-information.html Thanks for the quick response from the m2eclipse team! Shelli -Original

War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Starrman
I have a webapp that is to be used as a war overlay. My packaging type is war. It produces myOverlayWebapp.war I have a different webapp myapp1 that depends upon this overlay... Works well. I have another webapp myapp2 that needs to depend upon the classes within the overlay project at compile

Re: War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Shan Syed
are you using attachClassestrue/attachClasses in your WAR plugin config? you can reference this WAR project's JAR in your project that requires the classes for compile time, using classifierclasses/classifier On Fri, Jun 11, 2010 at 11:03 AM, Starrman sta...@gmail.com wrote: I have a webapp

Re: War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Jesse Farinacci
Hi Starrman, On Fri, Jun 11, 2010 at 11:03 AM, Starrman sta...@gmail.com wrote: Do you have any ideas how I could depend upon the classes during the compile yet not pull in the web artifacts into myapp2? You're having problems because you aren't doing things The Maven Way. Just refactor your

How to take archetypeVersion in archetype-resources ?

2010-06-11 Thread NGUYEN Cong Kinh
Hi everybody, I create a maven-archetype as the following: - myArchetype + pom.xml (1) + src/main/resources + META-INF... + archetype-resources - pom.xml (2) - src/... In the second POM (pom.xml - 2) which module will be

Re: War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Starrman
Hello Jesse... I agree with your principle of doing things the maven way and Maven's principle of convention over configuration. I actually am using common code in both projects... This was the project that I referred to as the myOverlayWebapp.war project... I am trying to use war

Re: War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Jesse Farinacci
Hi Starrman, On Fri, Jun 11, 2010 at 1:27 PM, Starrman sta...@gmail.com wrote: I actually am using common code in both projects... This was the project that I referred to as the myOverlayWebapp.war project... I am trying to use war overlays for the common web components and the common

Re: War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Shan Syed
it's actually Shan ;) just to generalize (not fully sure if this applies to your scenario), if you want a WAR project to produce a JAR locally (within the /lib dir of the webapp), you can use archiveClassestrue/archiveClasses to have the same/similar JAR actually be

Building Maven Without Maven Installed

2010-06-11 Thread christianto hendri
hi , i have 2 problem here could you help me: 1 . i need the maven snapshot because netbeans only can use maven release 3.0 and snapshot version , i have try with 3.0 beta version and i still can't create a maven project , where i can download it 2. i have read the guide to build maven without

Re: Building Maven Without Maven Installed

2010-06-11 Thread Shan Syed
Hi, are you sure netbeans requires Maven 3? http://wiki.netbeans.org/Maven if you're new to Maven, building and understand Maven 3 will be tricky, so it might be a good idea to stick with an older/stable version On Fri, Jun 11, 2010 at 3:17 PM, christianto hendri christianto.hen...@gmail.com

RE: wagon-maven-plugin and wagon-scm

2010-06-11 Thread Jim McCaskey
Thanks for that hint Brett! I don't control the SVN server in question, so that option is out. But you gave me the bread crumb to run with. And in case anyone else wants to try this folly... I was able to put together the below pom file (I called it merge.pom.xml). I can now invoke maven

high-level maven multimodule/inheritance question

2010-06-11 Thread Shan Syed
example scenario: - there is a super POM, which is the parent for 5 other POMs (A, B, C, D, E), which have their own children too - only A, B, and C are listed as modules in the super POM because the others are logically separate (and also, issuing a build at the top with all the modules

Re: basic maven lifecycle - howto always last?

2010-06-11 Thread Adam Hardy
Hi, thanks for the info - I think I might try the custom lifecycle approach if I continue suffering from the ill effects of not remembering where the profile is coming from (I think it must be my short term memory is going) Rgds Adam Anders Hammar on 10/06/10 11:48, wrote: Nope, not

Re: eclipse:eclipse generating wrong version of dynamic web app

2010-06-11 Thread David Sharp
wtpversion is being set to 2.0. The problem is the dynamic web app facet that is being installed is version 2.5, when in fact the version specified in my app's web.xml is version 2.4. As it turns out, this may not even be the cause of my real issue, which is that the Jave EE Modules Dependencie

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Anders Hammar
Well, one way would be to use m2eclipse and have it resolve workspace projects (default setting when importing a maven project). With automatic build turned on, the developer doesn't have to do anything for changes in A/B/C to take effect. /Anders On Fri, Jun 11, 2010 at 22:40, Shan Syed

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Ron Wheeler
On 11/06/2010 5:00 PM, Anders Hammar wrote: Well, one way would be to use m2eclipse and have it resolve workspace projects (default setting when importing a maven project). With automatic build turned on, the developer doesn't have to do anything for changes in A/B/C to take effect. It is

Re: How to integrate Maven into an existing Flex/Java project?

2010-06-11 Thread phantomiaser
Thanks a lot for you reply. I did this on a new Flex/Java project (I created a new project to try to find out what's the error, because I did not get it working in my real project) mvn archetype:create -DgroupId=com.domain.myproject - Dartifactid=myproject The App.java is under myproject

Re: How to integrate Maven into an existing Flex/Java project?

2010-06-11 Thread Wayne Fay
If I do a run as - Java application in Eclipse, I get the error: Launch error: Selection does not contain a main type What should I do after mvn archetype:create ... to get it working? If you're using Eclipse, you should probably also be using m2Eclipse [1] which integrates Maven into Eclipse.

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Wayne Fay
It is not clear that this is a viable way to work. You don't want to take everyone's interim code while testing your own. What Well, you can also argue that people should not be checking code that will break other people's builds, right? I agree with the premise that you should depend on build

Re: How to integrate Maven into an existing Flex/Java project?

2010-06-11 Thread phantomiaser
I already see and installed it. I can easily create a maven project and manage it. But I need a Flex/J2EE/BlazeDS project which I have to create as a Flex Project. And there I have to integrate Maven in this existing project, and this does not work. m2Eclipse does not help here in my

RE: How to integrate Maven into an existing Flex/Java project?

2010-06-11 Thread Martin Gainty
the archetype launcher is looking for a 'launch point' assuming archetype.xml contains the source declaration sourcesrc/main/java/App.java/source so inside the driver class (in this case App.java) code a main method into /src/main/java/App.java Martin Gainty

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Shan Syed
it would be nice if you could somehow specify that certain dependencies were transient or something (perhaps in a profile), and have maven go out and execute the same goals on those? On Fri, Jun 11, 2010 at 6:23 PM, Wayne Fay wayne...@gmail.com wrote: It is not clear that this is a viable way

Re: How to integrate Maven into an existing Flex/Java project?

2010-06-11 Thread phantomiaser
Hm, I do not understand. Where is the archetype.xml? App.java: package com.domain.myproject; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( Hello World! ); } } So there is a main method. Best Regards. Am

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Wayne Fay
it would be nice if you could somehow specify that certain dependencies were transient or something (perhaps in a profile), and have maven go out and execute the same goals on those? You could do that with multiple parents and/or defining modules in the parent in profiles. Wayne

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Anders Hammar
I read the question as one developer working on project A/B/C at the same time he/she is working on war project D/E. For that scenario I see m2eclipse as the best solution. You wouldn't be updating from scm, but just add your own changes. /Anders On Fri, Jun 11, 2010 at 23:19, Ron Wheeler