Re: Archetype:create broken?
mvn archetype:generate produce the same error. Could it have something to do with the velocity-1.5.pom that it doesn't find? nodje wrote: Sorry didn't pay attention to that. But the result is exactly the same with generate anyway. Looks like you don't have the problem, so it's probably a local config problem. How could that possibly happen? Marc SCHNEIDER-5 wrote: Hi, And what about using mvn archetype:generate instead of create ? create goal is deprecated as far as I know. Marc. nodje a écrit : What's with the archetype:create? I suddenly get this error when trying to create a new project: mvn archetype:create -DgroupId=com.company.commons -DartifactId=xml [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building commons [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] Downloading: http://allence.dyndns.org:8081/artifactory/plugins-releases/velocity/velocity/1.5/velocity-1.5.pom Downloading: http://allence.dyndns.org:8081/artifactory/repo/velocity/velocity/1.5/velocity-1.5.pom [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/commons/lang/StringUtils org.apache.commons.lang.StringUtils [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:165) at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:594) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:241) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116) at org.codehaus.plexus.velocity.DefaultVelocityComponent.initialize(DefaultVelocityComponent.java:79) at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at
Re: Forcing site plugin version
Hi, just add this to your pom: pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin /plugins /pluginManagement 2.0-beta-7 isn't released yet, so you will have to build it yourself and then install it to your local repository or cut an internal release and deploy it to your internal repository. -Tim [EMAIL PROTECTED] schrieb: I am using Maven 2.0.9 and am running into the bug detailed here: http://jira.codehaus.org/browse/MSITE-211 Currently by default it seems to be using 2.0-beta-6 of the site plugin. According to the bug report the bug is fixed in 2.0-beta-7. How do I force Maven to use 2.0-beta-7 of this plugin? Thanks -- Craig Dickson Software Engineering Manager Behr Process Corporation Santa Ana, California _ The information contained in this e-mail message may be proprietary, privileged, confidential or protected from disclosure. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you think that you have received this e-mail message in error, please e-mail the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven in Netbeans
HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven in Netbeans
Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Maven in Netbeans
HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17529056.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven in Netbeans
I haven't figured that out yet. working on it. putting your local repository in C:/r could give you some air to breathe, but in general it's a failure on my part that I haven't seen this coming.. I'll have to come up with some different way of running projects I guess.. or a workaround of sorts. Sorry Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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]
What goals are available by defaut?
Hello, Am very new to maven. I'd like to know what goals are available for my firm-provided installation of maven. I've searched the web and come up with mvn -g but that doesn't seem to work on my version of maven (2.0.6). So, is there a simple way to find out what goals my maven installation offers me? Regards, Darren -- View this message in context: http://www.nabble.com/What-goals-are-available-by-defaut--tp17529252p17529252.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven in Netbeans
HI Thanks for the reply What is the correct setting for Execute Goals in the maven projects properties version 3.1.2? Min is process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec at the moment. Thanks Theuns Milos Kleint wrote: I haven't figured that out yet. working on it. putting your local repository in C:/r could give you some air to breathe, but in general it's a failure on my part that I haven't seen this coming.. I'll have to come up with some different way of running projects I guess.. or a workaround of sorts. Sorry Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html Sent from the Maven - Users mailing list archive at Nabble.com. - To
Re: Maven in Netbeans
that's it, that's the default AFAIK. however obviously it doens't work in some scenarios. Milos theunsgis wrote: HI Thanks for the reply What is the correct setting for Execute Goals in the maven projects properties version 3.1.2? Min is process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec at the moment. Thanks Theuns Milos Kleint wrote: I haven't figured that out yet. working on it. putting your local repository in C:/r could give you some air to breathe, but in general it's a failure on my part that I haven't seen this coming.. I'll have to come up with some different way of running projects I guess.. or a workaround of sorts. Sorry Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Maven in Netbeans
HOw do i move the local repository to c:\ ? mkleint-3 wrote: that's it, that's the default AFAIK. however obviously it doens't work in some scenarios. Milos theunsgis wrote: HI Thanks for the reply What is the correct setting for Execute Goals in the maven projects properties version 3.1.2? Min is process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec at the moment. Thanks Theuns Milos Kleint wrote: I haven't figured that out yet. working on it. putting your local repository in C:/r could give you some air to breathe, but in general it's a failure on my part that I haven't seen this coming.. I'll have to come up with some different way of running projects I guess.. or a workaround of sorts. Sorry Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context:
Re: Maven in Netbeans
in your user directory ~/.m2 you either have a settings.xml file or you create one (easiest way is to have a project opened in netbeans and right click the projects Project Files subnode.) there set the localRepositoryc:/r/localRepository element. and move your existing repository from ~/.m2/repository there. Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HOw do i move the local repository to c:\ ? mkleint-3 wrote: that's it, that's the default AFAIK. however obviously it doens't work in some scenarios. Milos theunsgis wrote: HI Thanks for the reply What is the correct setting for Execute Goals in the maven projects properties version 3.1.2? Min is process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec at the moment. Thanks Theuns Milos Kleint wrote: I haven't figured that out yet. working on it. putting your local repository in C:/r could give you some air to breathe, but in general it's a failure on my part that I haven't seen this coming.. I'll have to come up with some different way of running projects I guess.. or a workaround of sorts. Sorry Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to
Re: What goals are available by defaut?
Hi, unlike with maven1 there are no bundled plugins distributed with maven2, everything is downloaded on demand. The plugins developed by the maven team are listed here [1] and another huge collection of plugins is developed by the mojo project on codehaus.org [2]. If you're searching a specific plugin not available at the above locations, a google search like PRODUCT_NAME maven plugin usually helps. If you can't find a plugin you need at all, don't hesitate to ask here. As a general advise to new maven users I would recommend reading at least the Getting Started Guide [3] and having a look at one of the free books about maven [4], [5]. A collection of useful guides is available here [6]. -Tim [1] http://maven.apache.org/plugins/ [2] http://mojo.codehaus.org/plugins.html [3] http://maven.apache.org/guides/getting-started/index.html [4] http://www.sonatype.com/book/# [5] http://www.exist.com/?q=node/151 [6] http://maven.apache.org/guides/index.html darren smith schrieb: Hello, Am very new to maven. I'd like to know what goals are available for my firm-provided installation of maven. I've searched the web and come up with mvn -g but that doesn't seem to work on my version of maven (2.0.6). So, is there a simple way to find out what goals my maven installation offers me? Regards, Darren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ваше письмо удалено за спам
This is a message from spam filter. It treated this message as spam and replied to us that it was filtered. On 5/29/08, Martin [EMAIL PROTECTED] wrote: Could you translate to English ..not everyone on this list speaks russian спасибо! - Original Message - From: Marat Radchenko [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org; [EMAIL PROTECTED] Sent: Wednesday, May 28, 2008 5:53 AM Subject: Re: Ваше письмо удалено за спам muahaha :) they've said we are spammers On 5/28/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Здравствуйте! Ваше письмо принято за спам и удалено. Если вы считаете это ошибкой, то позвоните пожалуйста по телефону +7(812)578-09-03 в службу поддержки. ===Вашего письмо=== Return-Path: [EMAIL PROTECTED] Received: from [EMAIL PROTECTED] by inc.ru (CommuniGate Pro RULES 4.1.8) with RULES id 2331573; Wed, 28 May 2008 13:49:19 +0400 X-Autogenerated: Mirror X-Mirrored-by: [EMAIL PROTECTED] Received: from mail.netltd.ru (account [EMAIL PROTECTED]) by inc.ru (CommuniGate Pro RPOP 4.1.8) with RPOP id 2331572 for [EMAIL PROTECTED]; Wed, 28 May 2008 13:49:19 +0400 X-Antivirus-passed: yes X-Real-To: [EMAIL PROTECTED] Received: from [EMAIL PROTECTED] by inc.ru (CommuniGate Pro RULES 4.1.8) with RULES id 22462959; Wed, 28 May 2008 13:47:28 +0400 X-Autogenerated: Mirror X-Mirrored-by: [EMAIL PROTECTED] X-Antispam-passed: yes X-Antispam: yes X-Real-To: [EMAIL PROTECTED] X-Antivirus: yes Received: from mail.apache.org ([140.211.11.2] verified) by inc.ru (CommuniGate Pro SMTP 4.1.8) with SMTP id 22462971 for [EMAIL PROTECTED]; Wed, 28 May 2008 13:47:28 +0400 Received: (qmail 70887 invoked by uid 500); 28 May 2008 09:47:24 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:users@maven.apache.org List-Id: Maven Users List users.maven.apache.org Reply-To: Maven Users List users@maven.apache.org Delivered-To: mailing list users@maven.apache.org Received: (qmail 70876 invoked by uid 99); 28 May 2008 09:47:24 - Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 02:47:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of [EMAIL PROTECTED] designates 209.85.200.171 as permitted sender) Received: from [209.85.200.171] (HELO wf-out-1314.google.com) (209.85.200.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 09:46:36 + Received: by wf-out-1314.google.com with SMTP id 25so2821645wfa.0 for users@maven.apache.org; Wed, 28 May 2008 02:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=OAWxL4HCV21I9m3RR/yS2DwO7Gx5EzknliIH8IZHK3g=; b=VbcD7JnHJ3i0qxrTejYL2CbjYbCcrET/nq9e8KeihDKNDkGFMT8b4Ebid1y9kwjTFWOHnlzgqI7unoYpq5oEeKck6GuPG6MMOpWzVIBYpeZmqYG36H96cp2IIEligY48b+NcsWYTIkHrZz96Q91R4doE1wm1qFe4bEFvDHGivd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=vGfLAbzTcnUIhyXGjtr1OAbq8UzIlQCPoTubXdB6hy0KnVrjMcrB7hjj2yetje9ZXaD2/TU8Q1/KCEAeH69bxxsuqppNEH/3J0RGUX+fUu72Hmlg6f3tYfggb5Q2+pSh6d8DnsBHnkfLyI5RNkkfhiDuI81fcscdZ+xrQ8XOuWw= Received: by 10.142.231.7 with SMTP id d7mr963475wfh.30.1211968012727; Wed, 28 May 2008 02:46:52 -0700 (PDT) Received: by 10.142.204.5 with HTTP; Wed, 28 May 2008 02:46:52 -0700 (PDT) Message-ID: [EMAIL PROTECTED] Date: Wed, 28 May 2008 11:46:52 +0200 From: Olivier Lamy [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org, [EMAIL PROTECTED] Subject: Re: Axis2 and Maven2 In-Reply-To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: [EMAIL PROTECTED] X-Google-Sender-Auth: 5d5d945bee9a9b4f X-Virus-Checked: Checked by ClamAV on apache.org Hi, This looks a more an axis ml question. But just note axis1 != axis2. And you have a mojo [1] which can help you with axis1. -- Olivier [1] http://mojo.codehaus.org/axistools-maven-plugin/ 2008/5/28 Karl Heinz Marbaise [EMAIL PROTECTED]: Hello,
Q4E and m2eclipse
Hi, We are working to choose an eclipse plugin : Q4E vs m2eclipse - The Eclipse IAM project proposal (based on Q4E) has been recently approved by the Eclipse Foundation (cf. http://code.google.com/p/q4e/) - m2eclipse has been recently reviewed (cf. http://www.jroller.com/eu/entry/maven_integration_for_eclipse_project) but we have no information if it is approved. Do you have some news about it ? If m2eclipse will also be approved, it won't be clear for eclipse user which one to choose. Even if competition can be good, is there any chance to merge the effort in one eclipse plugin ? In fact, both of them have interesting features. Rémy
Re: Q4E and m2eclipse
I tested both plugins, and reported some issues to m2eclipse that have been fixed in 0.9.4. I just quickly tested q4e but features are *very* similar I'm ok for competition, but as both plugins expect to get approved in eclipse foundation, I thing they must consider merging efforts for some core features. I can't thing there is many way to configure mavenEmbedder, configure Ide decorations and create an import wizard. In a perfect world, both plugin community should work to create a common basic plugin, and provide plugable enhancements as optional features. 2008/5/29 Rémy Sanlaville [EMAIL PROTECTED]: Hi, We are working to choose an eclipse plugin : Q4E vs m2eclipse - The Eclipse IAM project proposal (based on Q4E) has been recently approved by the Eclipse Foundation (cf. http://code.google.com/p/q4e/) - m2eclipse has been recently reviewed (cf. http://www.jroller.com/eu/entry/maven_integration_for_eclipse_project) but we have no information if it is approved. Do you have some news about it ? If m2eclipse will also be approved, it won't be clear for eclipse user which one to choose. Even if competition can be good, is there any chance to merge the effort in one eclipse plugin ? In fact, both of them have interesting features. Rémy
Re: Maven in Netbeans
Hi, I experienced a similar problem while running on win2003 server edition, because the classpath made the command line exceeded 2000 characters which is the limit in that OS cmdXP AFAIK should not have the same problem because it's cmd limit is 8000 char long...anyway workaround suggested is shorten the classpath by repackaging jars and/or replacing the jar in a smarter place in your disk...or something like this. Anyway, post your exec plugin conf...you never know... Hope this helps... On Thu, May 29, 2008 at 9:18 AM, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks -- Daniele De Francesco Senior Java Architect Value Team Italia Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods , if you load the maven project and run it , it first ask you , to select the main class to run , then after that it gives the errors in the output. But if i can run maven with the -e switch out of NB , maybei can see something , but how do i run mvn in NB with the -e switch? Thanks Theuns -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17491781.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-in-Netbeans-tp17489257p17528850.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Q4E and m2eclipse
2008/5/29 Rémy Sanlaville [EMAIL PROTECTED]: Do you have some news about it ? Both were approved (http://blogs.exist.com/bporter/2008/05/20/eclipse-and-maven-iam-and-m2e-complete-creation-review/) 2008/5/29 nicolas de loof [EMAIL PROTECTED]: In a perfect world, both plugin community should work to create a common basic plugin, and provide plugable enhancements as optional features. If only we were in a perfect world :) Cheers, Brett -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A problem about deploying project.
I want to deploy my project to a Host by FTP. I set the distributionManagement and run the command mvn deploy. This is my pom file: modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId version1.0-SNAPSHOT/version ... distributionManagement repository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /repository snapshotRepository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /snapshotRepository /distributionManagement build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-1/version /extension /extensions /build ... When run the command mvn deploy I got this error: [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'comtest:jar': repository metadata for: 'snapshot test:test:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17531032.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Integration testing via profile fails in 2.0.9
I'm not a maven expert so maybe i'm doing something wrong but if not i may have found a bug. I configure integration testing via a build profile as follows: profile iditest/id activation property nameitest/name /property /activation build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration excludes excludenone/exclude /excludes includes include**/*ITest.java/include /includes /configuration /execution /executions /plugin /plugins /build /profile With maven 2.0.8 this worked fine however with 2.0.9 my test resources do not included in the the integration-test and the tests fail. Is there some error is the way that i am using the surefire plugin? -- View this message in context: http://www.nabble.com/Integration-testing-via-profile-fails-in-2.0.9-tp17531266p17531266.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven and organization of source tree in SCM toolset
Hi, I am trying to get an understanding of how users are using the Maven toolset with SCM tools such as Perforce to handle branching strategies. Does anyone know of any such white papers or further reading or be willing to share current practices? Do users tend to use a dense hierarchical structure to store the structure of the project that Maven builds and as a result branch the whole tree when doing a release or use a flat component structure thus promoting re-use and only branch the module that changes when doing a release. From my experience to date with Maven I am finding that the Maven toolset is geared to the hierarchical structure and does not lend itself well to a flat component approach. Are other users running into such issues or have you overcome some issues? -- Robert
RE: A problem about deploying project.
Could you give a more detailed error description by running the command with the -e (exceptions) or even -X (debug) parameters? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -Original Message- From: youhaodeyi [mailto:[EMAIL PROTECTED] Sent: Thu 5/29/2008 11:35 To: users@maven.apache.org Subject: A problem about deploying project. I want to deploy my project to a Host by FTP. I set the distributionManagement and run the command mvn deploy. This is my pom file: modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId version1.0-SNAPSHOT/version ... distributionManagement repository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /repository snapshotRepository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /snapshotRepository /distributionManagement build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-1/version /extension /extensions /build ... When run the command mvn deploy I got this error: [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'comtest:jar': repository metadata for: 'snapshot test:test:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17531032.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Integration testing via profile fails in 2.0.9
It seems to be something related to the 2.4.2 version of the surefire plugin. If i use the 2.0.9 release but force the surefire plugin to use the 2.3 version of the surefire plugin then the test resources are copied correctly. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version etc... maxmil wrote: I'm not a maven expert so maybe i'm doing something wrong but if not i may have found a bug. I configure integration testing via a build profile as follows: profile iditest/id activation property nameitest/name /property /activation build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration excludes excludenone/exclude /excludes includes include**/*ITest.java/include /includes /configuration /execution /executions /plugin /plugins /build /profile With maven 2.0.8 this worked fine however with 2.0.9 my test resources do not included in the the integration-test and the tests fail. Is there some error is the way that i am using the surefire plugin? -- View this message in context: http://www.nabble.com/Integration-testing-via-profile-fails-in-2.0.9-tp17531266p17532410.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven in Netbeans
Good to hear that. still there's a fixed limit to the workaround. When you add a few more dependencies, you reach the top again. :( Milos On Thu, May 29, 2008 at 12:49 PM, theunsgis [EMAIL PROTECTED] wrote: Your suggestion worked!!! Many Thanks Milos Kleint wrote: in your user directory ~/.m2 you either have a settings.xml file or you create one (easiest way is to have a project opened in netbeans and right click the projects Project Files subnode.) there set the localRepositoryc:/r/localRepository element. and move your existing repository from ~/.m2/repository there. Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HOw do i move the local repository to c:\ ? mkleint-3 wrote: that's it, that's the default AFAIK. however obviously it doens't work in some scenarios. Milos theunsgis wrote: HI Thanks for the reply What is the correct setting for Execute Goals in the maven projects properties version 3.1.2? Min is process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec at the moment. Thanks Theuns Milos Kleint wrote: I haven't figured that out yet. working on it. putting your local repository in C:/r could give you some air to breathe, but in general it's a failure on my part that I haven't seen this coming.. I'll have to come up with some different way of running projects I guess.. or a workaround of sorts. Sorry Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class
Re: Maven in Netbeans
Your suggestion worked!!! Many Thanks Milos Kleint wrote: in your user directory ~/.m2 you either have a settings.xml file or you create one (easiest way is to have a project opened in netbeans and right click the projects Project Files subnode.) there set the localRepositoryc:/r/localRepository element. and move your existing repository from ~/.m2/repository there. Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HOw do i move the local repository to c:\ ? mkleint-3 wrote: that's it, that's the default AFAIK. however obviously it doens't work in some scenarios. Milos theunsgis wrote: HI Thanks for the reply What is the correct setting for Execute Goals in the maven projects properties version 3.1.2? Min is process-classes org.codehaus.mojo:exec-maven-plugin:1.1:exec at the moment. Thanks Theuns Milos Kleint wrote: I haven't figured that out yet. working on it. putting your local repository in C:/r could give you some air to breathe, but in general it's a failure on my part that I haven't seen this coming.. I'll have to come up with some different way of running projects I guess.. or a workaround of sorts. Sorry Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI I think you are right. I created a bat file with the whole cmd string copied from NB. When i run it , it tries to display the command and end with The input line is too long. I also do run it on a Win XP OS. Is there some way of getting arround this? Thanks Milos Kleint wrote: Hello, maybe related to http://jira.codehaus.org/browse/MEVENIDE-640 this issue? Milos On 5/29/08, theunsgis [EMAIL PROTECTED] wrote: HI Thanks this help. I still get the problem though , and i did upgrade to the latest maven 3.1.2, Can you tel me what this means : Result of cmd.exe /X /C C:\Program Files\Java\jdk1.6.0_05\bin\java.exe -classpath E:\Java Projects\Geotools Trunk 2.5\demo\example\target\classes;C:\Documents and Settings\Theuns\.m2\repository\junit\junit\4.4\junit-4.4.jar; org.geotools.demo.widgets.StreamWidgetsDemo Can i run tis command just like it is above in the cmd prompt? I truncated the classpath a lot in the above example. Thanks Daniele De Francesco wrote: Hi, Sorry, I just told you the cmd m2 call...not the NB, so sorry... In order to build m2 projects on NB exists a plugin from update site (Maven 2 Integration), that allows to create m2 projects New---ProjectMaven etc Done this you simply right-click on the project icon, click the Custom--Goal item fill out the form that appears and put goals --- exec:exec and then just check the box called show debug output Hope this helps, -- Daniele De Francesco Senior Java Architect Value Team Italia On Wed, May 28, 2008 at 5:24 PM, Daniele De Francesco [EMAIL PROTECTED] wrote: Hi, You must have a running maven 2 installation from the cmd, which generally means setting the env vars JAVA_HOME, M2_HOME,PATH JAVA_HOME=/path/to/your/java/inst (which u should have set yet) M2_HOME=/path/to/your/m2/inst PATH=%PATH%;%JAVA_HOME%\bin;%JAVA_HOME%\bin;%M2_HOME%\bin but how do i run mvn in NB with the -e switch? simply cd in your project root dir and then mvn -e exec:exec BTW: have u checked plugin config?? Regards, -- Daniele De Francesco Senior Java Architect Value Team Italia On Tue, May 27, 2008 at 4:30 PM, theunsgis [EMAIL PROTECTED] wrote: Daniele De Francesco wrote: Hi, it looks like exec plugin could not run the app just compiled due to a bad command line execution or maybe an incomplete or corrupted classpath problem ...why don't you try and run mvn -e exec:exec (eventually -X, but imho it's too much)? I would check the plugin configuration carefully either... HI thanks for the reply Sorry to ask , i am new to Maven How do i run mvn -e exec:exec out of Netbeans? If i run the class from the cmd prompt in windows it does run fine , it is just in NB it does not want to run. In the maven project in NB there is a few example classes with main methods
Re: Maven and organization of source tree in SCM toolset
branch by artifact when necessary but I have found that the use of ranges and api artifacts has almost completely removed the need for traditional branching. By defining the ranges in the deployables you get a consistent deliverable and can have parallel development and patching without necessarily. e.g. trunk/ /groupId.a /artifactid.a /artifactid.b /artifactid.c /reactor (just used for testing and occasionally installing the group) /groupId.b /artifactid.a /artifactid.b tags/ /groupId.a /artifactid.a /1.1 /1.2 /2.1 /2.2 /1.2.1 (tagged from branch) /artifactid.b /... /artifactid.c /... branches /groupId.a /artifactid.a /1.2 (when trunk goes to 2+ any changes go on 1.2 branch) The decision to increment the major version is for a breaking change. We use very granular artifacts where each artifact serves one function and the pom hierachy is by function not by module or group. This leads to significant reuse and most artifacts stabilise very quickly and don't need changing. Quick often also I have found that when it looks like a change in an artifact would require a branch to support two different deliverables that splitting the artifact in two allowed the change to be painlessly integrated into more than one deliverable with no delayed integration hassle. There are two things to consider as well what works with maven and what works in your ide (with maven support). I don't use modules or deployed snapshots because I have found eclipse support to be very unreliable with all sorts of indecipherable classpath issues. for ranges I use the [1,2-!) notation and start numbering from 1.1 so that 1.1-SNAPSHOT through to 1.n where n 2.0.0-SNAPSHOT match the range. If you start from 1-SNAPSHOT or 1.0.0-SNAPSHOT then a range of [1,2-!) wont match an installed snapshot which is probably why most people don't use ranges I suspect. The other gotcha is that [1,2) will match 2-SNAPSHOT and 2.0.0-SNAPSHOT as its 2.0.0. Another reason I suspect why people don't use ranges. There were a large number of bugs fixed since 2.0.4 in relation to ranges that have made them really work. One day i'll get around to putting something up on the net about how i've structured my projects and why. On Thu, 29 May 2008 21:42:14 Bracewell, Robert wrote: Hi, I am trying to get an understanding of how users are using the Maven toolset with SCM tools such as Perforce to handle branching strategies. Does anyone know of any such white papers or further reading or be willing to share current practices? Do users tend to use a dense hierarchical structure to store the structure of the project that Maven builds and as a result branch the whole tree when doing a release or use a flat component structure thus promoting re-use and only branch the module that changes when doing a release. From my experience to date with Maven I am finding that the Maven toolset is geared to the hierarchical structure and does not lend itself well to a flat component approach. Are other users running into such issues or have you overcome some issues? -- Robert -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A problem about deploying project.
Yes, this is the detailed message: [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Tests are skipped. [INFO] [jar:jar] [INFO] [install:install] [INFO] Installing D:\workspace\SecondImagesCopy\mule-transport-dicom-net\target\ mule-transport-dicom-net-1.0-SNAPSHOT.jar to C:\Documents and Settings\user\.m2\ repository\com\ge\sic\mule\dicom\mule-transport-dicom-net\1.0-SNAPSHOT\mule-tran sport-dicom-net-1.0-SNAPSHOT.jar [INFO] [deploy:deploy] altDeploymentRepository = null [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'com.ge.sic.mule.dico m:mule-transport-dicom-net:jar': repository metadata for: 'snapshot com.ge.sic.m ule.dicom:mule-transport-dicom-net:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error retrieving previou s build number for artifact 'com.ge.sic.mule.dicom:mule-transport-dicom-net:jar' : repository metadata for: 'snapshot com.ge.sic.mule.dicom:mule-transport-dicom- net:1.0-SNAPSHOT' could not be retrieved from repository: Local Repository due t o an error: Required directory: '/' is missing at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error retrieving prev ious build number for artifact 'com.ge.sic.mule.dicom:mule-transport-dicom-net:j ar': repository metadata for: 'snapshot com.ge.sic.mule.dicom:mule-transport-dic om-net:1.0-SNAPSHOT' could not be retrieved from repository: Local Repository du e to an error: Required directory: '/' is missing at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:174 ) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:558) ... 16 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error retrieving previous build number for artifact 'com.ge.sic.mule.dicom:mule-trans port-dicom-net:jar': repository metadata for: 'snapshot com.ge.sic.mule.dicom:mu le-transport-dicom-net:1.0-SNAPSHOT' could not be retrieved from repository: Loc al Repository due to an error: Required directory: '/' is missing at org.apache.maven.artifact.transform.SnapshotTransformation.transformF orDeployment(SnapshotTransformation.java:106) at org.apache.maven.artifact.transform.DefaultArtifactTransformationMana ger.transformForDeployment(DefaultArtifactTransformationManager.java:78) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Def aultArtifactDeployer.java:71) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162 ) ... 18 more Caused by: org.apache.maven.artifact.repository.metadata.RepositoryMetadataResol utionException: repository metadata for: 'snapshot
Re: What goals are available by defaut?
Hi Darren open up pom.xml and search for every instance of goal HTH Martin - Original Message - From: darren smith [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, May 29, 2008 3:33 AM Subject: What goals are available by defaut? Hello, Am very new to maven. I'd like to know what goals are available for my firm-provided installation of maven. I've searched the web and come up with mvn -g but that doesn't seem to work on my version of maven (2.0.6). So, is there a simple way to find out what goals my maven installation offers me? Regards, Darren -- View this message in context: http://www.nabble.com/What-goals-are-available-by-defaut--tp17529252p17529252.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Maven and organization of source tree in SCM toolset
This is roughly what I seem to be moving towards. Over the past couple of days I have been converting a hierarchical project into an approach similar to what you listed to get a feel for things I have: trunk/ /area1 - all dev code located under such /group1 /artifact1 /artifact2 group.pom - no reactor - settings specific to group site.pom - reactor - who's parent is group pom /group2 /artifact1 group.pom site.pom /area2 - ancillary code for assemblies, test suites, deployment etc /group1 //assembly-artifact //acceptance-test-artifact pom I am hoping to separate out the areas we would normally co-locate in one big structure. This should also allow me to provide clearer metrics, e.g., metrics for unit tests at the development level and then metrics for test suites at the other level and so forth. -Original Message- From: Michael McCallum [mailto:[EMAIL PROTECTED] Sent: 29 May 2008 12:14 To: Maven Users List Subject: Re: Maven and organization of source tree in SCM toolset branch by artifact when necessary but I have found that the use of ranges and api artifacts has almost completely removed the need for traditional branching. By defining the ranges in the deployables you get a consistent deliverable and can have parallel development and patching without necessarily. e.g. trunk/ /groupId.a /artifactid.a /artifactid.b /artifactid.c /reactor (just used for testing and occasionally installing the group) /groupId.b /artifactid.a /artifactid.b tags/ /groupId.a /artifactid.a /1.1 /1.2 /2.1 /2.2 /1.2.1 (tagged from branch) /artifactid.b /... /artifactid.c /... branches /groupId.a /artifactid.a /1.2 (when trunk goes to 2+ any changes go on 1.2 branch) The decision to increment the major version is for a breaking change. We use very granular artifacts where each artifact serves one function and the pom hierachy is by function not by module or group. This leads to significant reuse and most artifacts stabilise very quickly and don't need changing. Quick often also I have found that when it looks like a change in an artifact would require a branch to support two different deliverables that splitting the artifact in two allowed the change to be painlessly integrated into more than one deliverable with no delayed integration hassle. There are two things to consider as well what works with maven and what works in your ide (with maven support). I don't use modules or deployed snapshots because I have found eclipse support to be very unreliable with all sorts of indecipherable classpath issues. for ranges I use the [1,2-!) notation and start numbering from 1.1 so that 1.1-SNAPSHOT through to 1.n where n 2.0.0-SNAPSHOT match the range. If you start from 1-SNAPSHOT or 1.0.0-SNAPSHOT then a range of [1,2-!) wont match an installed snapshot which is probably why most people don't use ranges I suspect. The other gotcha is that [1,2) will match 2-SNAPSHOT and 2.0.0-SNAPSHOT as its 2.0.0. Another reason I suspect why people don't use ranges. There were a large number of bugs fixed since 2.0.4 in relation to ranges that have made them really work. One day i'll get around to putting something up on the net about how i've structured my projects and why. On Thu, 29 May 2008 21:42:14 Bracewell, Robert wrote: Hi, I am trying to get an understanding of how users are using the Maven toolset with SCM tools such as Perforce to handle branching strategies. Does anyone know of any such white papers or further reading or be willing to share current practices? Do users tend to use a dense hierarchical structure to store the structure of the project that Maven builds and as a result branch the whole tree when doing a release or use a flat component structure thus promoting re-use and only branch the module that changes when doing a release. From my experience to date with Maven I am finding that the Maven toolset is geared to the hierarchical structure and does not lend itself well to a flat component approach. Are other users running into such issues or have you overcome some issues? -- Robert -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - 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]
Problem Regarding junit test classes load , taking wrong classpath
Hi , I have some junit testcase but i guess maven is considering the wrong class path for file and is trying to load classes with name *test.java.x.y.z *However* *my classes are in package *x.y.z **hence I am getting java.lang.ClassNotFoundException*java.lang.ClassNotFoundException: * * Can anybody please help . -- Successful people make more mistakes because they do more Thanks Saurabh Agarwal
Re: A problem about deploying project.
ftp://3.36.231.203/ ftp is the protocol 3.3.36.23.203 is the host / is the folder are you sure you want to retrieve from root / instead of a real folder? Martin - Original Message - From: youhaodeyi [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, May 29, 2008 5:35 AM Subject: A problem about deploying project. I want to deploy my project to a Host by FTP. I set the distributionManagement and run the command mvn deploy. This is my pom file: modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId version1.0-SNAPSHOT/version ... distributionManagement repository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /repository snapshotRepository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /snapshotRepository /distributionManagement build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-1/version /extension /extensions /build ... When run the command mvn deploy I got this error: [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'comtest:jar': repository metadata for: 'snapshot test:test:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17531032.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Multi Module Projects - manifest question
Hi Chris- Have you looked at configuring the manifest-entries in the maven war plugin http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html Martin - Original Message - From: [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, May 29, 2008 1:57 AM Subject: Multi Module Projects - manifest question Hi, I have a multi module ear project. One of the modules is a standard jar (just a resource jar with no dependencies of it's own). One of the other modules is a war file. How do I get the manifest file of the war file to reference the (utility) jar in that is correctly packaged in the ear file? The ear is being correctly built and all of the required modules are being placed in it. However, the final issue that I face is to get the manifests of the war file to be correct. As this is a multi module project, the war project does not actually list the resource jar as a dependency. Should it? I would not have thought so, as the resource jar itself should not be installed into the repository. Help! I've spent about 4 weeks bashing maven into shape, and as far as I can tell, this appears to be pretty much the last hurdle. Otherwise I have to scap maven. -Chris ** CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. If you are not the intended recipient of this message you must: - Not use, copy, distribute or disclose it to anyone other than the addressee; - Notify the sender via return email; and - Delete the message (and any related attachments) from your computer immediately. Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent. Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI. ** - 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: Maven and organization of source tree in SCM toolset
On Thu, 29 May 2008 23:52:35 Bracewell, Robert wrote: This is roughly what I seem to be moving towards. Over the past couple of days I have been converting a hierarchical project into an approach similar to what you listed to get a feel for things One key thing is that my pom hierachy looks like this... root - jar - service - api - model - jaxb2 - webapp - abstract webapp - assembly each of these parents contains the plugin configs needed for the particular artifact. Any given artifact would inherit from one of there functional parents. So a model project has standard jar plugins and very basic metrics and checks as its mostly just basic beans where as a service project would need to pass at least an 80/60 cobertura report for units tests. The groupId for me is related to the position in the source control hierarchy and maven reposititory but nothing else really. My biggest issue at the moment, although I have not tried to solve it is that I want the reactor to generate my docs and NOT use inheritance in any way for it just aggregation. I'm hoping thats what dashboard is for but time has not permitted research. I think I might need to figure out how to package up and deploy the xml report outputs so that any site aggregator can accumulate the site for a deliverable. As the site docs generally should accompany a released deliverable not the overall source tree, that always seemed backwards to me. -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven Doxia Integration Tools 1.0 Released
The Maven team is pleased to announce the release of the Maven Doxia Integration Tools, version 1.0. It is a collection of tools to help the integration of Doxia in Maven plugins. http://maven.apache.org/shared/maven-doxia-tools You can specify the version in your project's dependency configuration: dependency groupIdorg.apache.maven.shared/groupId artifactIdmaven-doxia-tools/artifactId version1.0/version /dependency Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Forcing site plugin version
-Original Message- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 2:53 AM To: Maven Users List Subject: Re: Forcing site plugin version Hi, just add this to your pom: pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin /plugins /pluginManagement I believe that goes into the project/build element, correct? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A problem about deploying project.
I have set the default folder for FTP users. Do I need to specify the folder again? mgainty wrote: ftp://3.36.231.203/ ftp is the protocol 3.3.36.23.203 is the host / is the folder are you sure you want to retrieve from root / instead of a real folder? Martin - Original Message - From: youhaodeyi [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, May 29, 2008 5:35 AM Subject: A problem about deploying project. I want to deploy my project to a Host by FTP. I set the distributionManagement and run the command mvn deploy. This is my pom file: modelVersion4.0.0/modelVersion groupIdtest/groupId artifactIdtest/artifactId version1.0-SNAPSHOT/version ... distributionManagement repository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /repository snapshotRepository idLocal Repository/id nameInternal Repository/name urlftp://3.36.231.203//url /snapshotRepository /distributionManagement build extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-1/version /extension /extensions /build ... When run the command mvn deploy I got this error: [INFO] Retrieving previous build number from Local Repository [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error retrieving previous build number for artifact 'comtest:jar': repository metadata for: 'snapshot test:test:1.0-SNAPSHOT' could not be retrieved from rep ository: Local Repository due to an error: Required directory: '/' is missing -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17531032.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/A-problem-about-deploying-project.-tp17531032p17535681.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What goals are available by defaut?
Best to start from the beginning: http://www.sonatype.com/book -Original Message- From: darren smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 3:34 AM To: users@maven.apache.org Subject: What goals are available by defaut? Hello, Am very new to maven. I'd like to know what goals are available for my firm-provided installation of maven. I've searched the web and come up with mvn -g but that doesn't seem to work on my version of maven (2.0.6). So, is there a simple way to find out what goals my maven installation offers me? Regards, Darren -- View this message in context: http://www.nabble.com/What-goals-are-available-by-defaut--tp17529252p175 29252.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: Forcing site plugin version
yes -Original Message- From: Lalor, Brian [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 9:07 AM To: Maven Users List Subject: RE: Forcing site plugin version -Original Message- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 2:53 AM To: Maven Users List Subject: Re: Forcing site plugin version Hi, just add this to your pom: pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin /plugins /pluginManagement I believe that goes into the project/build element, correct? - 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: Forcing site plugin version
Correct, project/build/pluginManagement. Lalor, Brian schrieb: -Original Message- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 2:53 AM To: Maven Users List Subject: Re: Forcing site plugin version Hi, just add this to your pom: pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin /plugins /pluginManagement I believe that goes into the project/build element, correct? - 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: Forcing site plugin version
Hi, I think you may also use the deployed snapshot version, so you don't have to build yourself the plugin : version2.0-beta-7-SNAPSHOT/version Regards, Anne -Message d'origine- De : Tim Kettler [mailto:[EMAIL PROTECTED] Envoyé : jeudi 29 mai 2008 15:55 À : Maven Users List Objet : Re: Forcing site plugin version Correct, project/build/pluginManagement. Lalor, Brian schrieb: -Original Message- From: Tim Kettler [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 2:53 AM To: Maven Users List Subject: Re: Forcing site plugin version Hi, just add this to your pom: pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version /plugin /plugins /pluginManagement I believe that goes into the project/build element, correct? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to generate Download report using Maven 2
mburger wrote: In Maven 1 it was possible to add a download report to the generated site (maven.xdoc.distributionUrl). I cannot found any information about this feature in the documentation of Maven 2. Is this feature missing? Any news about this topic? Do you create your download pages manually? Any best practices when publishing assemblies? Regards Martin Burger -- View this message in context: http://www.nabble.com/-m2--How-to-generate-%22Download-report%22-using-Maven-2-tp4078325p17536236.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
advanced exclude pattern for Skinny Wars
Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven CVS checkout/comple examples
Guys, I'm a newbie to maven and I'm in the process of migrating from ant. Can anyone proved me an example of how to define a pom that checks out code from a cvs repository, gathers all the dependencies, and builds.??? I've yet to find one.. Thanks, Leon
Advanced exclude pattern for Skinny Wars
Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes Is it possible to exclude only certain libraries? Respectively, can I configure the war plugin in way that I it keeps the web specific dependencies, e.g. Struts libraries, in the web application and shares only the utility libraries in the EAR classloader? Thanks Kuno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
To set a value written in a different file in the pom.xml, at runtime
Hello, I need to set a particular value in a tag in pom.xml at runtime. I tried to set the value through the MavenProject object but that value is not accessed by other tags at runtime. I have written the following code. /** * @parameter default-value=${project} * @required */ MavenProject project; public void execute() throws MojoExecutionException { String pomVersion = 5.0; project.setModelVersion(pomVersion); } After setting this, there is no change in the pom.xml and I could not access the same value which is set here in the pom. What should I do?? I am stuck in the problem for the last 2 days. Any help will be appreciated Thanks in advance. -- View this message in context: http://www.nabble.com/To-set-a-value-written-in-a-different-file-in-the-pom.xml%2C-at-runtime-tp17536254p17536254.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to separate Unit Tests from Integration-Tests with JUnit 4.x?
Hi, Actually, we have mixed JUnit Testcases in our modules - some of them can be run standalone with no database connection or any other environment, others need environment. I now want to separate those tests into different categories, but I don´t want to - manually create a DatabaseTestSuite where I need to add all database-testcases - create a new Maven Module to separate the testcases Can I use JUnit 4.x with its annotations like @RunWith @Ignore and so on to do so ? For example the simple testcases should be bound to the test phase, the database-testcases should be bound to the integration-test phase. Any ideas, links, cookbooks? Thanx, Torsten
Re: how to separate Unit Tests from Integration-Tests with JUnit 4.x?
Standard answer is with naming convention, see http://www.mail-archive.com/users@maven.apache.org/msg81355.html. Kalle On Thu, May 29, 2008 at 7:54 AM, [EMAIL PROTECTED] wrote: Hi, Actually, we have mixed JUnit Testcases in our modules - some of them can be run standalone with no database connection or any other environment, others need environment. I now want to separate those tests into different categories, but I don´t want to - manually create a DatabaseTestSuite where I need to add all database-testcases - create a new Maven Module to separate the testcases Can I use JUnit 4.x with its annotations like @RunWith @Ignore and so on to do so ? For example the simple testcases should be bound to the test phase, the database-testcases should be bound to the integration-test phase. Any ideas, links, cookbooks? Thanx, Torsten
[ANN] Maven PMD Plugin 2.4 released
The Maven team is pleased to announce the release of the Maven PMD Plugin, version 2.4 This plugin is used to check java sources for potential programming problems like possible bugs, dead code, suboptimal code, etc... http://maven.apache.org/plugins/maven-pmd-plugin/ You can specify the plugin version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.4/version /plugin This release includes several bug fixes and other improvements: ** Bug * [MPMD-61] - When running build using -f path_to_pom/pom.xml the site is stored in working directory instead of project directory * [MPMD-70] - Move hard-coded strings to resource bundle * [MPMD-75] - PMD plugin unable to exclude groovy-stub files. * [MPMD-77] - excludeRoots doesn't work with basedir-relative paths ** Improvement * [MPMD-64] - verbose output not useful for inner classes * [MPMD-71] - Add german translation * [MPMD-72] - Add dedicated resource bundles for locale en * [MPMD-74] - Clarify usage of outputDirectory parameter * [MPMD-76] - use ${project.build.sourceEncoding} as default value for sourceEncoding parameter * [MPMD-79] - Warn about usage of platform encoding ** Task * [MPMD-78] - Update to PMD 4.2.1 (actually to 4.2.2) --- Daniel Kulp [EMAIL PROTECTED] http://www.dankulp.com/blog
Re: advanced exclude pattern for Skinny Wars
Is this a question? Or a suggestion for an improvement in the documentation somehow? Or something else entirely? Its just not clear to me. ;-) Wayne On 5/29/08, Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote: Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes - 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]
[ANN] Maven Shade Plugin 1.1 released
The Maven team is pleased to announce the release of the Maven Shade Plugin, version 1.1 This plugin provides the capability to package the artifact in a uber- jar, including its dependencies and to shade - i.e. rename - the packages of some of the dependencies. http://maven.apache.org/plugins/maven-shade-plugin/ You can specify the plugin version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-shade-plugin/artifactId version1.1/version /plugin This release includes several bug fixes and other improvements: ** Bug * [MSHADE-23] - ${basedir} is wrong after running shade plugin * [MSHADE-24] - Use proper file encoding when generating dependency reduced POM * [MSHADE-25] - Use proper encoding when reading/writing component descriptor * [MSHADE-26] - Fix case-insensitive string comparisions in resource transformers * [MSHADE-29] - Documentation has invalid xml * [MSHADE-31] - When promoteTransitiveDependencies=true, all exclusions are stripped from the dependency-reduced-pom * [MSHADE-34] - Shade includes both .jar and -test.jars when only the .jar was needed ** Improvement * [MSHADE-27] - Allow to configure file encoding for processing of NOTICE file * [MSHADE-28] - Add full support for glob patterns in relocator exclusions Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: advanced exclude pattern for Skinny Wars
Oh, I see this was a mistake, you weren't done with the email... Nevermind! On 5/29/08, Wayne Fay [EMAIL PROTECTED] wrote: Is this a question? Or a suggestion for an improvement in the documentation somehow? Or something else entirely? Its just not clear to me. ;-) Wayne On 5/29/08, Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote: Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes - 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: Advanced exclude pattern for Skinny Wars
I think the best way to achieve this would be by simply configuring the scope of the various dependencies. Thus your Struts libraries would be compile scope and the utility libraries would be provided. Then you will need to include the utility libs in the EAR module (as dependencies) as well so they are pulled into the EAR. Wayne On 5/29/08, Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote: Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes Is it possible to exclude only certain libraries? Respectively, can I configure the war plugin in way that I it keeps the web specific dependencies, e.g. Struts libraries, in the web application and shares only the utility libraries in the EAR classloader? Thanks Kuno - 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] How to generate Download report using Maven 2
mburger wrote: In Maven 1 it was possible to add a download report to the generated site (maven.xdoc.distributionUrl). I cannot found any information about this feature in the documentation of Maven 2. Is this feature missing? Any news about this topic? Do you create your download pages manually? Any best practices when publishing assemblies? Regards Martin Burger -- View this message in context: http://www.nabble.com/-m2--How-to-generate-%22Download-report%22-using-Maven-2-tp4078325p17537090.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem Regarding junit test classes load , taking wrong classpath
Please provide more details about how your project is laid out etc. By default, Maven expects that your Java files go in src/main/java and the Java test files are in src/test/java. If you have configured things differently in the pom.xml, then this may not be accurate. What classes exactly are causing the CNFE? Are they classes from your project, or from a dependency, or what? Wayne On 5/29/08, Saurabh Agarwal [EMAIL PROTECTED] wrote: Hi , I have some junit testcase but i guess maven is considering the wrong class path for file and is trying to load classes with name *test.java.x.y.z *However* *my classes are in package *x.y.z **hence I am getting java.lang.ClassNotFoundException*java.lang.ClassNotFoundException: * * Can anybody please help . -- Successful people make more mistakes because they do more Thanks Saurabh Agarwal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to better manage cascading releases
We have migrated all of our internal code to Maven now. We have many separate top-level projects and many of these projects are multi-module projects. We have done a good job of moving common code elements out to their own project so they can easily be reused. Generally speaking from a basic object-oriented architecture standpoint, we are happy with how we have architected our code. However after all of that good work, we have run in to a slight drawback when it comes time to make releases of our code. There is no way we are the biggest code base out there using Maven, so I am hoping someone can help us with this issue. Imagine we have Project-A - it is a multi-module project and the main artifact it produces is a JavaEE application packaged as an Ear file. However this project depends on our shared company-wide uberpom, it also depends on 3 or 4 Java services that are in their own projects and it also depends on our internal commons library also in its own project. Depending on what has happened since the last release, Project-A may be depending on SNAPSHOT versions of some or all of these other Projects. So to make a release we have to first make releases of the other Projects (and also any SNAPSHOTS they depend on etc. etc.). Then as we work our way back up the dependency tree we have to edit pom files to change the SNAPSHOT dependencies to the just released version numbers. And finally we can release Project-A. This is a very time consuming process for us. This is a very real world problem, we recently did a release that ended up causing us to release 13 separate projects. So there seems to be 3 possible conclusions: - There is any easy way to make these kinds of cascading releases, but we just don't know about it - There is a better way to structure our Maven projects so this doesn't happen in the first place (keeping in mind that we are happy with how the code itself is architected currently) - This is just the way it is, so we should get used to it Can anyone comment on this? Thanks -- Craig Dickson Software Engineering Manager Behr Process Corporation Santa Ana, California _ The information contained in this e-mail message may be proprietary, privileged, confidential or protected from disclosure. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you think that you have received this e-mail message in error, please e-mail the sender.
eclipse plugin classpath and .svn directories
Is there any way to tell eclipse:eclipse to add excluding tags to the .classpath to get it to ignore the .svn (**/.svn/)? I have a workspace with hundreds of small projects, and when I rebuild the eclipse classpaths, I have to set them all individually within eclipse. Conversely, if anyone knows how to set a global exclude to all projects' classpath in an eclipse workspace, that would be almost as good. Thanks in advance, -tb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Advanced exclude pattern for Skinny Wars for RAD / WAS
Hello, sorry, for the confusion..outlook automatically send my draft..;-} back to my problem. Unfortunately, your approach doesn't work with RAD 7.0 / Websphere 6.1, since RAD's J2EE Dependency configuration for the WAR project relies on the Manifest file in WEB-INF/lib. If I set the Provided scope to libraries, Maven won't generate an classpath entry in the Manifest file. As a consequence, The web app classloader won't see this dependency. Kuno -Ursprüngliche Nachricht- Von: Wayne Fay [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. Mai 2008 17:27 An: Maven Users List Betreff: Re: Advanced exclude pattern for Skinny Wars I think the best way to achieve this would be by simply configuring the scope of the various dependencies. Thus your Struts libraries would be compile scope and the utility libraries would be provided. Then you will need to include the utility libs in the EAR module (as dependencies) as well so they are pulled into the EAR. Wayne On 5/29/08, Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote: Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars. html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes Is it possible to exclude only certain libraries? Respectively, can I configure the war plugin in way that I it keeps the web specific dependencies, e.g. Struts libraries, in the web application and shares only the utility libraries in the EAR classloader? Thanks Kuno - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: eclipse plugin classpath and .svn directories
1)In Eclipse click on the project you wish to update 2)right click Profile and select the profile (default is called profile) once in profile 5th icon from right should have 3 right arrows 3)click on that 5th icon 4)look for checkbox and check on 'Filter checked launched configuration types' If you dont see svn files it is because you never setup the association of svn and svn (client) which I assume has already been d/led assuming svn is missing setup the association between file/association and svn (client) go back into eclipse and repeat all the steps Thanks Martin - Original Message - From: Terry Bell [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, May 29, 2008 11:47 AM Subject: eclipse plugin classpath and .svn directories Is there any way to tell eclipse:eclipse to add excluding tags to the .classpath to get it to ignore the .svn (**/.svn/)? I have a workspace with hundreds of small projects, and when I rebuild the eclipse classpaths, I have to set them all individually within eclipse. Conversely, if anyone knows how to set a global exclude to all projects' classpath in an eclipse workspace, that would be almost as good. Thanks in advance, -tb - 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: how to separate Unit Tests from Integration-Tests with JUnit 4.x?
Another option is to place the integration tests into a separate module. On Thu, May 29, 2008 at 8:12 AM, Kalle Korhonen [EMAIL PROTECTED] wrote: Standard answer is with naming convention, see http://www.mail-archive.com/users@maven.apache.org/msg81355.html. Kalle On Thu, May 29, 2008 at 7:54 AM, [EMAIL PROTECTED] wrote: Hi, Actually, we have mixed JUnit Testcases in our modules - some of them can be run standalone with no database connection or any other environment, others need environment. I now want to separate those tests into different categories, but I don´t want to - manually create a DatabaseTestSuite where I need to add all database-testcases - create a new Maven Module to separate the testcases Can I use JUnit 4.x with its annotations like @RunWith @Ignore and so on to do so ? For example the simple testcases should be bound to the test phase, the database-testcases should be bound to the integration-test phase. Any ideas, links, cookbooks? Thanx, Torsten
Re: Q4E and m2eclipse
On 29-May-08, at 1:53 AM, nicolas de loof wrote: I tested both plugins, and reported some issues to m2eclipse that have been fixed in 0.9.4. I just quickly tested q4e but features are *very* similar I'm ok for competition, but as both plugins expect to get approved in eclipse foundation, I thing they must consider merging efforts for some core features. I can't thing there is many way to configure mavenEmbedder, configure Ide decorations and create an import wizard. In a perfect world, both plugin community should work to create a common basic plugin, and provide plugable enhancements as optional features. Both plugins will not make it out of the incubator. Only one will survive the incubation. One project will get culled or they will merge. So users are not going to have to worry about always picking between the two because only one will become a full fledged Eclipse project. I highly recommend users start looking the respective proposals and start the decision making process early: http://www.eclipse.org/proposals/m2e/ http://www.eclipse.org/proposals/iam/ 2008/5/29 Rémy Sanlaville [EMAIL PROTECTED]: Hi, We are working to choose an eclipse plugin : Q4E vs m2eclipse - The Eclipse IAM project proposal (based on Q4E) has been recently approved by the Eclipse Foundation (cf. http://code.google.com/p/ q4e/) - m2eclipse has been recently reviewed (cf. http://www.jroller.com/eu/entry/maven_integration_for_eclipse_project) but we have no information if it is approved. Do you have some news about it ? If m2eclipse will also be approved, it won't be clear for eclipse user which one to choose. Even if competition can be good, is there any chance to merge the effort in one eclipse plugin ? In fact, both of them have interesting features. Rémy Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- To do two things at once is to do neither. -—Publilius Syrus, Roman slave, first century B.C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Cargo, Tomcat on CentOS/Linux?
Just wondering if anyone is using tomcat/cargo on Linux. I have the following CFG on windows, but am now getting time-outs on Linux. Just wondering if it is suppose to work on both? plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerId${cargo.container}/containerId zipUrlInstaller url${cargo.container.url}/url installDir${installDir}/installDir /zipUrlInstaller /container configuration properties cargo.servlet.port${cargo.port}/cargo.servlet.port /properties /configuration /configuration /plugin profile idtomcat5.5/id !-- Add el-api dependency since JBoss 4.0.5 uses Tomcat 5.5.x and JBoss 4.2.0 doesn't work with Cargo -- dependencies dependency groupIdjavax.el/groupId artifactIdel-api/artifactId version${el.version}/version /dependency /dependencies properties cargo.containertomcat5x/cargo.container javax.el.scopecompile/javax.el.scope cargo.container.url http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.zip /cargo.container.url !--cargo.container.url http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.tar.gz /cargo.container.url-- /properties /profile -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com
Re: eclipse plugin classpath and .svn directories
On Thu, 2008-05-29 at 08:47 -0700, Terry Bell wrote: Is there any way to tell eclipse:eclipse to add excluding tags to the .classpath to get it to ignore the .svn (**/.svn/)? I have a workspace with hundreds of small projects, and when I rebuild the eclipse classpaths, I have to set them all individually within eclipse. Conversely, if anyone knows how to set a global exclude to all projects' classpath in an eclipse workspace, that would be almost as good. Eclipse+subversion just works fine for me. Maybe you don't have the subclipse plugin for Eclipse installed? Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
War Plugin Filtering
Hello I am trying to filter values in an XML document that should be placed in the WEB-INF directory of a war. The file is located in the source structure in src/main/webapp/WEB-INF/beans.xml along with web.xml. I've configured the war plugin as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration filters filtersrc/main/filters/wile.filter.properties/filter /filters webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes includebeans.xml/include includeweb.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin What happens is that the war winds up with two copies of both web.xml and beans.xml. At the root of the war there are copies that are properly filtered. In the war's WEB-INF are unfiltered copies. I was using Maven 2.0.8. I upgraded to 2.0.9 and got the same result. Any help would be appreciated. Thanks Tom -- View this message in context: http://www.nabble.com/War-Plugin-Filtering-tp17541883p17541883.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven Ant Plugin 2.1 Released
The Maven team is pleased to announce the release of the Maven Ant Plugin, version 2.1 This plugin generates Ant build files for Ant 1.6.2 or above. http://maven.apache.org/plugins/maven-ant-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ant-plugin/artifactId version2.1/version /plugin Release Notes - Maven 2.x Ant Plugin - Version 2.1 ** Bug * [MANT-4] - Generated ANT contains hardcoded get tasks that look at the C:\ drive etc... when using a local repository * [MANT-30] - classcast exception when running ant:ant on tagtraum.com's gcviewer project * [MANT-32] - java.lang.ClassCastException when packaging jeuclid-3.0.1 * [MANT-34] - The generated maven-build.xml and maven-build.properties contains absolute path to local repository * [MANT-35] - The generated maven-build.xml has paths that contain \ characters on Windows * [MANT-36] - Use correct file encoding when writing build files * [MANT-37] - Wrong path to test resources in maven-build.xml * [MANT-39] - Always specify source/target options for javac ** Improvement * [MANT-6] - test targets should fail if junit.jar not present * [MANT-7] - test target should support running a single test - just like mvn test does * [MANT-22] - Make it possible to run the package target without tests * [MANT-38] - Use reporting output directory configured in POM * [MANT-40] - Use includes/excludes configured for Surefire when running tests Enjoy, -The Maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: War Plugin Filtering
Upgrade the war plugin version to last one : 2.1-alpha-1 -- Olivier 2008/5/29 Tom Purcell [EMAIL PROTECTED]: Hello I am trying to filter values in an XML document that should be placed in the WEB-INF directory of a war. The file is located in the source structure in src/main/webapp/WEB-INF/beans.xml along with web.xml. I've configured the war plugin as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration filters filtersrc/main/filters/wile.filter.properties/filter /filters webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes includebeans.xml/include includeweb.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin What happens is that the war winds up with two copies of both web.xml and beans.xml. At the root of the war there are copies that are properly filtered. In the war's WEB-INF are unfiltered copies. I was using Maven 2.0.8. I upgraded to 2.0.9 and got the same result. Any help would be appreciated. Thanks Tom -- View this message in context: http://www.nabble.com/War-Plugin-Filtering-tp17541883p17541883.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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: War Plugin Filtering
Thank you. That was it. olamy wrote: Upgrade the war plugin version to last one : 2.1-alpha-1 -- Olivier 2008/5/29 Tom Purcell [EMAIL PROTECTED]: Hello I am trying to filter values in an XML document that should be placed in the WEB-INF directory of a war. The file is located in the source structure in src/main/webapp/WEB-INF/beans.xml along with web.xml. I've configured the war plugin as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration filters filtersrc/main/filters/wile.filter.properties/filter /filters webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes includebeans.xml/include includeweb.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin What happens is that the war winds up with two copies of both web.xml and beans.xml. At the root of the war there are copies that are properly filtered. In the war's WEB-INF are unfiltered copies. I was using Maven 2.0.8. I upgraded to 2.0.9 and got the same result. Any help would be appreciated. Thanks Tom -- View this message in context: http://www.nabble.com/War-Plugin-Filtering-tp17541883p17541883.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/War-Plugin-Filtering-tp17541883p17542283.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Cargo, Tomcat on CentOS/Linux?
On Thu, May 29, 2008 at 1:25 PM, Mick Knutson [EMAIL PROTECTED] wrote: Just wondering if anyone is using tomcat/cargo on Linux. I have the following CFG on windows, but am now getting time-outs on Linux. Just We're using Tomcat 5.5 / Cargo / M2 on Windows and Linux. We do occasionally get a build failure on the build server (Linux) due to failure deploying the artifact before the timeout, but for the most part, it's been fairly problem-free for us. - Geoffrey -- Geoffrey Wiseman
Re: Archetype:create broken?
I'm having the same troubles. An archetype that we have used before doesn't work anymore! What's going on? nodje wrote: What's with the archetype:create? I suddenly get this error when trying to create a new project: mvn archetype:create -DgroupId=com.company.commons -DartifactId=xml [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building commons [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] Downloading: http://allence.dyndns.org:8081/artifactory/plugins-releases/velocity/velocity/1.5/velocity-1.5.pom Downloading: http://allence.dyndns.org:8081/artifactory/repo/velocity/velocity/1.5/velocity-1.5.pom [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org/apache/commons/lang/StringUtils org.apache.commons.lang.StringUtils [INFO] [INFO] Trace java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils at org.apache.velocity.runtime.resource.ResourceManagerImpl.initialize(ResourceManagerImpl.java:165) at org.apache.velocity.runtime.RuntimeInstance.initializeResourceManager(RuntimeInstance.java:594) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:241) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116) at org.codehaus.plexus.velocity.DefaultVelocityComponent.initialize(DefaultVelocityComponent.java:79) at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95) at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331) at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129) at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73) at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68) at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486) at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29) at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101) at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105) at
Re: How to better manage cascading releases
On Thu, May 29, 2008 at 11:42 AM, [EMAIL PROTECTED] wrote: So there seems to be 3 possible conclusions: At least, yeah. - There is any easy way to make these kinds of cascading releases, but we just don't know about it I don't know of one, but if there is, happy to hear it. - There is a better way to structure our Maven projects so this doesn't happen in the first place (keeping in mind that we are happy with how the code itself is architected currently) Probably partially true. Some things I've considered: - When it's entirely internal, possibly living with a snapshot version. I don't like this, because it reduces the reproducibility, but it would simplify. - Try and ensure that most common code is extensible to the point that I don't need to modify the upstream projects frequently. So, for instance, if I had a common web-testing framework for the company that was in 1.1 (web-testing-1.1) used by my enterprise project (enterprise-project-1.0), and I wanted to alter a class in web-testing, I could do so with a subclass that's specific to enterprise-project-1.0. I could release e-p-1.0 without releasing a new version of w-t, and when I feel like the change is stable and ready to migrate upward, I could release a w-t-1.2 release at my leisure, then migrate e-p to take advantage. I'm sure there are other possibilities in this vein. - This is just the way it is, so we should get used to it If you can live with that answer, my first instinct is that it's at least partially true, yeah. Curious to see other responses. - Geoffrey -- Geoffrey Wiseman
Re: War Plugin Filtering
doc is available at http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? so executing this command against the filtering goal called process-resources mvn target -Dfilter.properties = yourPropertyValue process-resources where the parameters for filter.properties located in pom.xml setup the filter.properties properties filter.propertiesyourPropertyValue/filter.properties /properties !--- Load in Filter properties --- filters filtersrc/main/filters/${filter.properties}/filter /filters !-- Execute filter with set properties -- resources resource filteringtrue/filtering directorysrc/main/resources/directory /resource /resources Notice that filtering is set to true for the folder src/main/resourcesHTHMartin- Original Message - From: Tom Purcell [EMAIL PROTECTED] To: users@maven.apache.org Sent: Thursday, May 29, 2008 1:43 PM Subject: War Plugin Filtering Hello I am trying to filter values in an XML document that should be placed in the WEB-INF directory of a war. The file is located in the source structure in src/main/webapp/WEB-INF/beans.xml along with web.xml. I've configured the war plugin as follows: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration filters filtersrc/main/filters/wile.filter.properties/filter /filters webResources webResource directory${basedir}/src/main/webapp/WEB-INF/directory includes includebeans.xml/include includeweb.xml/include /includes targetPathWEB-INF/targetPath filteringtrue/filtering /webResource /webResources /configuration /plugin What happens is that the war winds up with two copies of both web.xml and beans.xml. At the root of the war there are copies that are properly filtered. In the war's WEB-INF are unfiltered copies. I was using Maven 2.0.8. I upgraded to 2.0.9 and got the same result. Any help would be appreciated. Thanks Tom -- View this message in context: http://www.nabble.com/War-Plugin-Filtering-tp17541883p17541883.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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] Cargo, Tomcat on CentOS/Linux?
do you use the zip for both, or the tar.gz? On Thu, May 29, 2008 at 11:15 AM, Geoffrey Wiseman [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 1:25 PM, Mick Knutson [EMAIL PROTECTED] wrote: Just wondering if anyone is using tomcat/cargo on Linux. I have the following CFG on windows, but am now getting time-outs on Linux. Just We're using Tomcat 5.5 / Cargo / M2 on Windows and Linux. We do occasionally get a build failure on the build server (Linux) due to failure deploying the artifact before the timeout, but for the most part, it's been fairly problem-free for us. - Geoffrey -- Geoffrey Wiseman -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com
Re: [m2] Cargo, Tomcat on CentOS/Linux?
On Thu, May 29, 2008 at 2:34 PM, Mick Knutson [EMAIL PROTECTED] wrote: do you use the zip for both, or the tar.gz? ZIP plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerIdtomcat5x/containerId dependencies dependency groupIdmysql/groupId artifactId mysql-connector-java /artifactId /dependency dependency locationsrc/test/resources/location /dependency /dependencies zipUrlInstaller url http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip /url /zipUrlInstaller /container configuration home ${project.build.directory}/tomcat5x/ /home properties cargo.datasource.datasource cargo.datasource.url=jdbc:mysql://localhost:3306/db-name cargo.datasource.driver=com.mysql.jdbc.Driver cargo.datasource.username=db-username cargo.datasource.password=db-password cargo.datasource.type=javax.sql.DataSource cargo.datasource.jndi=jdbc/db-name /cargo.datasource.datasource /properties deployables deployable groupIdmyorg.secondary.application/groupId artifactIdsecondary/artifactId typewar/type properties contextsecondary/context /properties /deployable deployable groupIdmyorg.primary.application/groupId artifactIdprimary/artifactId typewar/type properties contextprimary/context /properties /deployable /deployables /configuration /configuration executions execution configuration waitfalse/wait /configuration idstart/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin -- Geoffrey Wiseman
Re: [m2] Cargo, Tomcat on CentOS/Linux?
I use it on Linux and noticed intermittent timeouts (I use continuum for continuous integration). The solution was to store the tomcat zip file locally. I use a variable for the tomcat location (defaults to the remote location). Then in my settings.xml, I have a profile that sets the variable to the local location. This allows anyone to use tomcat (because of the default) and anyone, in the know, or my build system, to pull it off the local file system. This has eliminated timeouts for me On Thu, May 29, 2008 at 11:34 AM, Mick Knutson [EMAIL PROTECTED] wrote: do you use the zip for both, or the tar.gz? On Thu, May 29, 2008 at 11:15 AM, Geoffrey Wiseman [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 1:25 PM, Mick Knutson [EMAIL PROTECTED] wrote: Just wondering if anyone is using tomcat/cargo on Linux. I have the following CFG on windows, but am now getting time-outs on Linux. Just We're using Tomcat 5.5 / Cargo / M2 on Windows and Linux. We do occasionally get a build failure on the build server (Linux) due to failure deploying the artifact before the timeout, but for the most part, it's been fairly problem-free for us. - Geoffrey -- Geoffrey Wiseman -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com
Re: [m2] Cargo, Tomcat on CentOS/Linux?
What is the datasource information for? I currently have issues with DBUnit on cargo/tomcat, but am using Spring to create my datasource. Wondering if this might fix that...? On Thu, May 29, 2008 at 11:54 AM, Geoffrey Wiseman [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 2:34 PM, Mick Knutson [EMAIL PROTECTED] wrote: do you use the zip for both, or the tar.gz? ZIP plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration container containerIdtomcat5x/containerId dependencies dependency groupIdmysql/groupId artifactId mysql-connector-java /artifactId /dependency dependency locationsrc/test/resources/location /dependency /dependencies zipUrlInstaller url http://www.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.zip /url /zipUrlInstaller /container configuration home ${project.build.directory}/tomcat5x/ /home properties cargo.datasource.datasource cargo.datasource.url=jdbc:mysql://localhost:3306/db-name cargo.datasource.driver=com.mysql.jdbc.Driver cargo.datasource.username=db-username cargo.datasource.password=db-password cargo.datasource.type=javax.sql.DataSource cargo.datasource.jndi=jdbc/db-name /cargo.datasource.datasource /properties deployables deployable groupIdmyorg.secondary.application/groupId artifactIdsecondary/artifactId typewar/type properties contextsecondary/context /properties /deployable deployable groupIdmyorg.primary.application/groupId artifactIdprimary/artifactId typewar/type properties contextprimary/context /properties /deployable /deployables /configuration /configuration executions execution configuration waitfalse/wait /configuration idstart/id phasepre-integration-test/phase goals goalstart/goal /goals /execution execution idstop/id phasepost-integration-test/phase goals goalstop/goal /goals /execution /executions /plugin -- Geoffrey Wiseman -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com
Re: [m2] Cargo, Tomcat on CentOS/Linux?
What is the setting for your settings.xml? http:// or file:// On Thu, May 29, 2008 at 11:55 AM, Paul Davis [EMAIL PROTECTED] wrote: I use it on Linux and noticed intermittent timeouts (I use continuum for continuous integration). The solution was to store the tomcat zip file locally. I use a variable for the tomcat location (defaults to the remote location). Then in my settings.xml, I have a profile that sets the variable to the local location. This allows anyone to use tomcat (because of the default) and anyone, in the know, or my build system, to pull it off the local file system. This has eliminated timeouts for me On Thu, May 29, 2008 at 11:34 AM, Mick Knutson [EMAIL PROTECTED] wrote: do you use the zip for both, or the tar.gz? On Thu, May 29, 2008 at 11:15 AM, Geoffrey Wiseman [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 1:25 PM, Mick Knutson [EMAIL PROTECTED] wrote: Just wondering if anyone is using tomcat/cargo on Linux. I have the following CFG on windows, but am now getting time-outs on Linux. Just We're using Tomcat 5.5 / Cargo / M2 on Windows and Linux. We do occasionally get a build failure on the build server (Linux) due to failure deploying the artifact before the timeout, but for the most part, it's been fairly problem-free for us. - Geoffrey -- Geoffrey Wiseman -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com
Execute goal after build failure
Greetings, Is there a way to execute a plugin goal IF a build fails? My problem is that I Start my Weblogic 10 in the *pre-integration-test*phase and Stop it in the *post-integration-test* phase. But whenever a test of mine fails in the * integration-test* phase, the *post-integration-phase* is never reached, and then my weblogic is left up and running. I tried the --fail-at-end option but it did not work =/ Any ideias?
Primary artifact: jar up some files, custom extension
I have a series of projects that have the same, very simple behavior: I want the main artifact to simply jar up the source tree, but to have a custom extension (e.g. .foo instead of .jar or .zip). What's the right way to go about this? Producing a plugin seems like overkill for such a trivial requirement, but I'm not having much luck with the assembly plugin that sonatype recommends (I can't seem to control the extension). Specifically, I can't seem to control the extension of the assembly; it always comes out as the format (e.g. .jar). appendAssemblyIdfalse/appendAssemblyId doesn't seem to do it either. My pom's build section looks like this: build plugins plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-2/version executions execution idcreate-foo/id phasepackage/phase goals goalsingle/goal /goals configuration finalNamefinalName.foo/finalName appendAssemblyIdfalse/appendAssemblyId descriptorfoo-assembly-descriptor.xml/descriptor /configuration /execution /executions /plugin /plugins /build The foo-assembly-descriptor.xml looks like this: assembly idfoo/id formats formatzip/format /formats fileSets fileSet directorysrc/directory useDefaultExcludestrue/useDefaultExcludes /fileSet /fileSets /assembly The resulting assembly is finalName.foo.zip; I'd like it to be finalName.foo. Michael Michael Prescott direct: 416.646.7062 main: 416.646.7000 fax: 416.646.7050 Exchange Solutions Inc. 250 Yonge Street, 18th Floor Toronto, ON M5B 2L7 www.exchangesolutions.com
Re: [m2] Cargo, Tomcat on CentOS/Linux?
On Thu, May 29, 2008 at 3:54 PM, Mick Knutson [EMAIL PROTECTED] wrote: What is the datasource information for? I currently have issues with DBUnit on cargo/tomcat, but am using Spring to create my datasource. Wondering if this might fix that...? JNDI Datasource; lets us use the container connection pool, and allow the operations team to configure it via JNDI. I've used Spring-managed connection pools before, don't remember running into DBUnit issues, but ... I'm not sure if I've ever put together M2/Cargo/DBUnit/Spring-managed CP. - Geoffrey -- Geoffrey Wiseman
Re: [m2] Cargo, Tomcat on CentOS/Linux?
I'm using file:// in my settings.xml and http:// in for the default in the pom.xml On Thu, May 29, 2008 at 1:04 PM, Mick Knutson [EMAIL PROTECTED] wrote: What is the setting for your settings.xml? http:// or file:// On Thu, May 29, 2008 at 11:55 AM, Paul Davis [EMAIL PROTECTED] wrote: I use it on Linux and noticed intermittent timeouts (I use continuum for continuous integration). The solution was to store the tomcat zip file locally. I use a variable for the tomcat location (defaults to the remote location). Then in my settings.xml, I have a profile that sets the variable to the local location. This allows anyone to use tomcat (because of the default) and anyone, in the know, or my build system, to pull it off the local file system. This has eliminated timeouts for me On Thu, May 29, 2008 at 11:34 AM, Mick Knutson [EMAIL PROTECTED] wrote: do you use the zip for both, or the tar.gz? On Thu, May 29, 2008 at 11:15 AM, Geoffrey Wiseman [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 1:25 PM, Mick Knutson [EMAIL PROTECTED] wrote: Just wondering if anyone is using tomcat/cargo on Linux. I have the following CFG on windows, but am now getting time-outs on Linux. Just We're using Tomcat 5.5 / Cargo / M2 on Windows and Linux. We do occasionally get a build failure on the build server (Linux) due to failure deploying the artifact before the timeout, but for the most part, it's been fairly problem-free for us. - Geoffrey -- Geoffrey Wiseman -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com MySpace: http://myspace.com/mickknutson Tahoe: http://tahoe.baselogic.com -- Paul E. Davis [EMAIL PROTECTED] 253-861-7769
maven2 with Junit 4 ignores @Test annotations
I am trying to use maven with Junit4 test cases. Eclipse runs these tests just fine but maven doesn't recognize any of these tests. Here is the code import org.junit.Test; import static org.junit.Assert.*; public class AdditionTest { private int x = 1; private int y = 1; @Test public void addition() { int z = x + y; assertEquals(2, z); } } POM file dependencies dependency groupIdorg.junit/groupId artifactIdjunit/artifactId version4.4/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.4.3/version configuration includes include**/*Test.java/include /includes /configuration /plugin /plugins /build Thanks Sankar This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately.
Re: how to separate Unit Tests from Integration-Tests with JUnit 4.x?
Hmm yes, but Torsten said that was exactly what he wanted to avoid. In addition to naming conventions for unit integration tests, we use a separate module for our heavier, end-to-end functional tests. Kalle On Thu, May 29, 2008 at 10:06 AM, Paul Davis [EMAIL PROTECTED] wrote: Another option is to place the integration tests into a separate module. On Thu, May 29, 2008 at 8:12 AM, Kalle Korhonen [EMAIL PROTECTED] wrote: Standard answer is with naming convention, see http://www.mail-archive.com/users@maven.apache.org/msg81355.html. Kalle On Thu, May 29, 2008 at 7:54 AM, [EMAIL PROTECTED] wrote: Hi, Actually, we have mixed JUnit Testcases in our modules - some of them can be run standalone with no database connection or any other environment, others need environment. I now want to separate those tests into different categories, but I don´t want to - manually create a DatabaseTestSuite where I need to add all database-testcases - create a new Maven Module to separate the testcases Can I use JUnit 4.x with its annotations like @RunWith @Ignore and so on to do so ? For example the simple testcases should be bound to the test phase, the database-testcases should be bound to the integration-test phase. Any ideas, links, cookbooks? Thanx, Torsten
RE: maven2 with Junit 4 ignores @Test annotations
I am trying to use maven with Junit4 test cases. Eclipse runs these tests just fine but maven doesn't recognize any of these tests. Here is the code import org.junit.Test; import static org.junit.Assert.*; public class AdditionTest { private int x = 1; private int y = 1; @Test public void addition() { int z = x + y; assertEquals(2, z); } } POM file dependencies dependency groupIdorg.junit/groupId artifactIdjunit/artifactId version4.4/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.4.3/version configuration includes include**/*Test.java/include /includes /configuration /plugin /plugins /build Am I doing anything wrong here? Or anything else needs to be done? This email and any files transmitted with it are confidential, proprietary and intended solely for the individual or entity to whom they are addressed. If you have received this email in error please delete it immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to better manage cascading releases
On Fri, 30 May 2008 03:42:09 [EMAIL PROTECTED] wrote: So there seems to be 3 possible conclusions: - There is any easy way to make these kinds of cascading releases, but we just don't know about it - There is a better way to structure our Maven projects so this doesn't happen in the first place (keeping in mind that we are happy with how the code itself is architected currently) - This is just the way it is, so we should get used to it Can anyone comment on this? release early release often... we don't use snapshot dependencies and release artifacts early. So if you are working on one of the 13 dependent libraries as soon as you - the dev - is happy the change is ready for use then you release it. why leave it as a snapshot? If the change would break anything useing it we bump the major version up so its not pulled in until downstream users are ready. if you use version ranges and manage codelines by major version then you can easily have the trunk of a project being actively developed and released without pulling it into a deliverable. -- Michael McCallum Enterprise Engineer mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Advanced exclude pattern for Skinny Wars
Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote on 30/05/2008 00:37:53: Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war- plugin/examples/skinny-wars.html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*. jar/warSourceExcludes Is it possible to exclude only certain libraries? Respectively, can I configure the war plugin in way that I it keeps the web specific dependencies, e.g. Struts libraries, in the web application and shares only the utility libraries in the EAR classloader? I am having exactly the same issue. (See the current thread with subject: Multi Module Projects - manifest question). Upon reading the doco on the warSourceExcludes attribute ( http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#warSourceExcludes) the value of the tag is a comma separated list. Yes, for things such as struts, spring etc, it may be a very long list, but from what I can infer from the doco, that is what is needed. I'll be testing that out a little further today. I'll let you know how I go. -Chris ** CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. If you are not the intended recipient of this message you must: - Not use, copy, distribute or disclose it to anyone other than the addressee; - Notify the sender via return email; and - Delete the message (and any related attachments) from your computer immediately. Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent. Unless otherwise stated, views expressed within this email are the author's own and do not represent those of AAMI. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MultiModule checkstyle config
Did you ever solve this? I'm having the same problem -- View this message in context: http://www.nabble.com/MultiModule-checkstyle-config-tp9343576p17549363.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven2 with Junit 4 ignores @Test annotations
On Thu, May 29, 2008 at 6:34 PM, Valluri, Sankar [EMAIL PROTECTED] wrote: Am I doing anything wrong here? Or anything else needs to be done? Must be, yeah -- I'm using JUnit 4.X tests with @Test annotations under Maven 2, so -- it does work. I'm not seeing anything specific in our POMs to make this happen, so I'm not sure what to suggest. What error are you encountering? -- Geoffrey Wiseman
Re: Advanced exclude pattern for Skinny Wars
Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote on 30/05/2008 00:37:53: Hello, in der Maven documentation is an article about a workaround for creating skinny wars. http://maven.apache.org/plugins/maven-war- plugin/examples/skinny-wars.html In this approach, all libs in WEB-INF/lib are exluded by applying following pattern configuration: warSourceExcludesWEB-INF/lib/*. jar/warSourceExcludes Is it possible to exclude only certain libraries? Respectively, can I configure the war plugin in way that I it keeps the web specific dependencies, e.g. Struts libraries, in the web application and shares only the utility libraries in the EAR classloader? I've managed to do just that! :-) The tools, resources are the utility ones and the ejb one is added as well. I had issues previously when adding in the dependencies - gave wierd errors about things not being able to be found. The final one was the ejb jar. It needed the type of ejb being set specifically as it otherwise defaults to jar. This is my complete pom for the war file: ?xml version=1.0 encoding=UTF-8? project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; modelVersion4.0.0/modelVersion parent groupIdau.com.aami/groupId artifactIdaami-parent/artifactId version1-SNAPSHOT/version /parent groupIdau.com.aami.dialler/groupId artifactIdDiallerWeb/artifactId packagingwar/packaging version1.0-SNAPSHOT/version nameDiallerWeb Project/name descriptionDiallerWeb Project/description urlhttp://centre.ourspace.int.corp.sun/it/sd/webapplications//url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version${junit.version}/version scopetest/scope /dependency dependency groupIdau.com.aami/groupId artifactIdAAMITools/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdau.com.aami.dialler/groupId artifactIdDiallerResources/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdau.com.aami.dialler/groupId artifactIdDiallerEJB/artifactId version1.0-SNAPSHOT/version typeejb/type /dependency dependency groupIdcom.ibm.websphere.appserver/groupId artifactIdruntime/artifactId version6.1/version typepom/type scopeprovided/scope /dependency /dependencies properties junit.version3.8.1/junit.version /properties build plugins plugin artifactIdmaven-war-plugin/artifactId configuration !-- This is broken in maven-war-plugin 2.0, works in 2.0.1 -- warSourceExcludesWEB-INF/lib/*.jar/ warSourceExcludes archive manifest addClasspathtrue/addClasspath !-- classpathPrefixlib//classpathPrefix -- /manifest /archive /configuration /plugin plugin artifactIdmaven-eclipse-plugin/artifactId configuration wtpversion1.5/wtpversion additionalBuildcommands buildcommand org.eclipse.wst.validation.validationbuilder/buildcommand buildcommand org.eclipse.wst.common.project.facet.core.builder/buildcommand /additionalBuildcommands additionalProjectnatures projectnature org.eclipse.wst.common.project.facet.core.nature/projectnature projectnature org.eclipse.wst.common.modulecore.ModuleCoreNature/projectnature /additionalProjectnatures classpathContainers classpathContainer org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere v6.1 JRE/classpathContainer classpathContainer org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61/was.base.v61 /classpathContainer classpathContainer org.eclipse.jst.j2ee.internal.web.container/classpathContainer classpathContainer org.eclipse.jst.j2ee.internal.module.container/classpathContainer /classpathContainers additionalProjectFacets com.ibm.websphere.extended.web6.1/ com.ibm.websphere.extended.web com.ibm.websphere.coexistence.web6.1/
Re: Multi Module Projects - manifest question
Hi Martin. Yes I did. I had some issues with the EJB jar needing the type of it to be specifially set. ?xml version=1.0 encoding=UTF-8? project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; modelVersion4.0.0/modelVersion parent groupIdau.com.aami/groupId artifactIdaami-parent/artifactId version1-SNAPSHOT/version /parent groupIdau.com.aami.dialler/groupId artifactIdDiallerWeb/artifactId packagingwar/packaging version1.0-SNAPSHOT/version nameDiallerWeb Project/name descriptionDiallerWeb Project/description urlhttp://centre.ourspace.int.corp.sun/it/sd/webapplications//url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version${junit.version}/version scopetest/scope /dependency dependency groupIdau.com.aami/groupId artifactIdAAMITools/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdau.com.aami.dialler/groupId artifactIdDiallerResources/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdau.com.aami.dialler/groupId artifactIdDiallerEJB/artifactId version1.0-SNAPSHOT/version typeejb/type /dependency dependency groupIdcom.ibm.websphere.appserver/groupId artifactIdruntime/artifactId version6.1/version typepom/type scopeprovided/scope /dependency /dependencies properties junit.version3.8.1/junit.version /properties build plugins plugin artifactIdmaven-war-plugin/artifactId configuration !-- This is broken in maven-war-plugin 2.0, works in 2.0.1 -- warSourceExcludesWEB-INF/lib/*.jar/ warSourceExcludes archive manifest addClasspathtrue/addClasspath !-- classpathPrefixlib//classpathPrefix -- /manifest /archive /configuration /plugin plugin artifactIdmaven-eclipse-plugin/artifactId configuration wtpversion1.5/wtpversion additionalBuildcommands buildcommand org.eclipse.wst.validation.validationbuilder/buildcommand buildcommand org.eclipse.wst.common.project.facet.core.builder/buildcommand /additionalBuildcommands additionalProjectnatures projectnature org.eclipse.wst.common.project.facet.core.nature/projectnature projectnature org.eclipse.wst.common.modulecore.ModuleCoreNature/projectnature /additionalProjectnatures classpathContainers classpathContainer org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere v6.1 JRE/classpathContainer classpathContainer org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61/was.base.v61 /classpathContainer classpathContainer org.eclipse.jst.j2ee.internal.web.container/classpathContainer classpathContainer org.eclipse.jst.j2ee.internal.module.container/classpathContainer /classpathContainers additionalProjectFacets com.ibm.websphere.extended.web6.1/ com.ibm.websphere.extended.web com.ibm.websphere.coexistence.web6.1/ com.ibm.websphere.coexistence.web /additionalProjectFacets /configuration /plugin /plugins /build /project Now I need to get it work for fhe actual EJB jar itself. -Chris Martin [EMAIL PROTECTED] wrote on 29/05/2008 22:28:24: Hi Chris- Have you looked at configuring the manifest-entries in the maven war plugin http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html Martin - Original Message - From: [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, May 29, 2008 1:57 AM Subject: Multi Module Projects - manifest question Hi, I have a multi module ear project. One of the modules is a standard jar (just a resource jar with no dependencies of it's own). One of the other modules is a war file. How do I get the manifest file of the war file to reference the (utility) jar
Re: maven2 with Junit 4 ignores @Test annotations
Geoffrey- Looks like you'll need TestDecorator class from junit-4.1 http://www.jdocs.com/junit/4.1/junit/extensions/TestDecorator.html Martin - Original Message - From: Geoffrey Wiseman [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, May 29, 2008 8:57 PM Subject: Re: maven2 with Junit 4 ignores @Test annotations On Thu, May 29, 2008 at 6:34 PM, Valluri, Sankar [EMAIL PROTECTED] wrote: Am I doing anything wrong here? Or anything else needs to be done? Must be, yeah -- I'm using JUnit 4.X tests with @Test annotations under Maven 2, so -- it does work. I'm not seeing anything specific in our POMs to make this happen, so I'm not sure what to suggest. What error are you encountering? -- Geoffrey Wiseman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to better manage cascading releases
On Thu, May 29, 2008 at 6:39 PM, Michael McCallum [EMAIL PROTECTED] wrote: release early release often... we don't use snapshot dependencies and release artifacts early. So if you are working on one of the 13 dependent libraries as soon as you - the dev - is happy the change is ready for use then you release it. why leave it as a snapshot? If the change would break anything useing it we bump the major version up so its not pulled in until downstream users are ready. if you use version ranges and manage codelines by major version then you can easily have the trunk of a project being actively developed and released without pulling it into a deliverable. Hmm, interesting perspective. I still find it takes an hour or two to pull off a release, between the dry-run, the actual prepare and the perform -- do you find that cost goes down if you release a lot, or have tricks for reducing the cost of releasing? - Geoffrey -- Geoffrey Wiseman
Re: MultiModule checkstyle config
gommo [EMAIL PROTECTED] wrote on 30/05/2008 10:53:48: Did you ever solve this? I'm having the same problem I did, but took a slightly different appoach. It works for me (so far at least): Take this pom: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation= http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdau.com.warpspeed/groupId artifactIdwarpspeed-dynamic-parent/artifactId version1-SNAPSHOT/version /parent groupIdau.com.warpspeed/groupId artifactIdbuild-tools/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameWarpSpeed Build Tools Extension/name descriptionProvides resources to aid the common maven build./ description /project I have created this dir structure: \src\main\resources\checkstyle-supressions.xml \src\main\resources\warpspeed_checkstyle_4_4.xml \src\main\resources\warpspeed-header.txt Use you own content. Install it into your repo. And this is what I have in the parent: reporting plugins plugin artifactIdmaven-checkstyle-plugin/artifactId version${maven-checkstyle-plugin.version}/version inheritedtrue/inherited configuration enableRulesSummaryfalse/enableRulesSummary configLocation${checkstyle.config.location}/ configLocation headerLocation${checkstyle.header.location}/ headerLocation !-- headerFile${checkstyle.header.location}/headerFile -- suppressionsLocation ${checkstyle.suppressions.location}/suppressionsLocation /configuration /plugin /plugins /reporting build plugins plugin artifactIdmaven-checkstyle-plugin/artifactId version${maven-checkstyle-plugin.version}/version executions execution phaseverify/phase goals goalcheck/goal /goals /execution /executions configuration configLocation${checkstyle.config.location}/ configLocation headerLocation${checkstyle.header.location}/ headerLocation suppressionsLocation ${checkstyle.suppressions.location}/suppressionsLocation /configuration dependencies dependency groupIdau.com.warpspeed/groupId artifactIdbuild-tools/artifactId version${build-tools.version}/version /dependency dependency groupIdcheckstyle/groupId artifactIdcheckstyle/artifactId version4.4/version /dependency /dependencies /plugin /plugins /build properties build-tools.version1.0-SNAPSHOT/build-tools.version checkstyle.config.locationwarpspeed_checkstyle_4_4.xml/ checkstyle.config.location checkstyle.header.locationwarpspeed-header.txt/ checkstyle.header.location checkstyle.suppressions.locationcheckstyle-suppressions.xml/ checkstyle.suppressions.location /properties Note how I've set them as dependencies of the plugin. This requires maven 2.0.9 (min) and is what Brian Fox suggested. It basically places them on the classpath, so I've used the same technique to get them available for the plugin. It works for me. However, adding in this section may work for you, I've commented it out for me (it lives in the build section): !-- extensions extension groupIdau.com.warpspeed/groupId artifactIdbuild-tools/artifactId version${build-tools.version}/version /extension /extensions -- HTH. -Chris ** CAUTION - This message is intended for the addressee named above. It may contain privileged or confidential information. If you are not the intended recipient of this message you must: - Not use, copy, distribute or disclose it to anyone other than the addressee; - Notify the sender via return email; and - Delete the message (and any related attachments) from your computer immediately. Internet emails are not necessarily secure. Australian Associated Motors Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not accept responsibility for changes made to this message after it was sent. Unless otherwise stated,
Creating a nice application package with execution bat+sh files... problem with maven-assembly-plugin?
Hi! I would like to be able to build a self-sufficient application package from a project into a zip/tar, ie with all dependencies and a prepared scrip to execute it. I have so far tried two approches: A, Using maven-assembly-plugin and creating my own assembly file This has two problems: 1, I have set the dependency scope to runtime, but it still includes the whole world! I mean, it even includes a lot of maven jar:s! (which are obviously not necessary to run the app) 2, It becomes very inconvenient to write the script and manually updating the jar:s that should be in the classpath... :-( B, Using the Mojo appassembler-maven-plugin, but this is very buggy... it even gives me nullpointer exceptions! :-( Anyone have tips about the best we to achive this? //Kent
To set a value written in a different file in the pom.xml, at runtime
Hello, I need to set a particular value in a tag in pom.xml at runtime. I tried to set the value through the MavenProject object but that value is not accessed by other tags at runtime. I have written the following code. /** * @parameter default-value=${project} * @required */ MavenProject project; public void execute() throws MojoExecutionException { String pomVersion = 5.0; project.setModelVersion(pomVersion); } After setting this, there is no change in the pom.xml and I could not access the same value which is set here in the pom. What should I do?? I am stuck in the problem for the last 2 days. Any help will be appreciated Thanks in advance. -- View this message in context: http://www.nabble.com/To-set-a-value-written-in-a-different-file-in-the-pom.xml%2C-at-runtime-tp17551716p17551716.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]