Re: CD, version numbers, IDE integration
netbeans is also embedding 3.0.5 (which is used for project loading exclusively, for building any version can be used) Milos On Mon, Sep 1, 2014 at 8:22 AM, Mark Derricutt m...@talios.com wrote: Currently IntelliJ embeds 3.0.5 and gets perplexed over anything 3.2.x specific ( it really doesn't like the tiles plugin ). I have a fork of Idea where I've bumped the embedded version of Maven but as yet, it dies horribly with RMI Classloader issues :( On 1 Sep 2014, at 4:57, Benson Margulies wrote: sure that IntelliJ would be most perplexed by version${our-version}/version at the top of a project hierarchy. I gave up on Eclipse some time ago, but I'd be nearly as surprised if - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Custom Parent property from Module
does your child project reference the parent using the parent element? in the correct version? Milos On Mon, Nov 25, 2013 at 9:57 AM, Panciz dav.pole...@gmail.com wrote: I cant access, from a Maven module, to a property defined in the properties section of the parent. As a matter of fact When I launch the build below the warName is the default one. This is the parent Pom modelVersion4.0.0/modelVersion groupIdcom.speed.pms/groupId artifactIdPMS-Main/artifactId version1.0.0/version packagingpom/packaging namePMS Main Build Project/name properties context-rootPMS-CUSTOM/context-root /properties modules module../PMS-WEB/module /modules And this is the module ... artifactIdPMS-WEB/artifactId packagingwar/packaging namePMS-WEB Webapp/name properties project.build.sourceEncodingUTF-8/project.build.sourceEncoding web.resource.dirsrc/main/webapp/web.resource.dir /properties build plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.4/version configuration warName${context-root}/warName webResources resource directory${web.resource.dir}/directory /resource /webResources /configuration /plugin While I can use the ${project.parent.arctifactId} property. I try also ${project.parent.properties.context-root} but without success. It should be simple but I cant understand Which is my errror? Shouldn't be the properties inherited from the parent in a Module? Davide -- View this message in context: http://maven.40175.n5.nabble.com/Maven-Custom-Parent-property-from-Module-tp5776488.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Custom Parent property from Module
while your module../PMS-WEB/module section in parent pom references the child in the same directory, your parent/relativePath is undefined, therefore expecting the parent to be one level up, not on the same level. Please check documentation for maven model + see the effective pom to see if the property is actually defined. milos On Mon, Nov 25, 2013 at 10:22 AM, Panciz dav.pole...@gmail.com wrote: Yes I do . Actually in the previous post I omit the parent declaration the complete child header is: 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 groupIdcom.speed.pms/groupId artifactIdPMS-Main/artifactId version1.0.0/version /parent artifactIdPMS-WEB/artifactId packagingwar/packaging namePMS-WEB Maven Webapp/name dependencies /dependencies build finalNamePMS-WEB/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.4/version configuration warName${context-root}/warName webResources resource directory${web.resource.dir}/directory /resource /webResources /configuration /plugin /plugins /build /project Davide -- View this message in context: http://maven.40175.n5.nabble.com/Maven-Custom-Parent-property-from-Module-tp5776488p5776490.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven bootstrap/surefire:test performance
that's the maven/plexus/guice boostrap IMHO. Milos On Sat, Sep 14, 2013 at 9:06 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Mark, I like the decision to use Maven whenever possible as well, nonetheless I could imagine being even more happy should the execution times decrease. I use a very small maven projects for tests[0] with Maven 3.1.1, turned on timestamps and it takes Maven about 2 seconds when running mvn -o surefire:test. Even with option -X I do not see what is happening in the first 1300ms, the first output line 1775 [INFO] Scanning for projects... starts after 1800ms. Regards Mirko [0] https://github.com/mfriedenhagen/pastebin/tree/surefire-speed-test -- Sent from my mobile On Sep 13, 2013 9:49 PM, Mark Eggers its_toas...@yahoo.com wrote: On 9/13/2013 12:38 PM, Milos Kleint wrote: with Compile on Save enabled, the test-compile phase should be skipped and only surefire:test should be executed. However even with that, there's overhead of jvm startup + maven startup before the mojo gets executed. Obviously the overhead is biggest when you run just a single test. Unfortunately not much that can be done here. We've used to execute Compile on Save stuff with internal nb execution (via ant in IDE-jvm) but the devil is in the detail there, it's not 100% exactly the same execution as surefire. The current design decision is to be 100% equal to what cmd line executes. The downside is speed. Milos On Fri, Sep 13, 2013 at 9:25 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello everybody, I use Netbeans 7.4 as IDE and mostly like how it uses Maven to get stuff done. While it is nice that I do not encounter problems as I did with Eclipse when dealing with dependency scoping I am slowed down when running single test files or methods. Netbeans invokes test-compile surefire:test -Dtest= Now even from the CLI it takes Maven some time to reach surefire:test. Even when I do not invoke test-compile 3 seconds are spent before surefire:test starts it's work and another 3 seconds afterwards. The tests of a single testcase themselves only take 0.3 seconds. With Eclipse or Intellij the execution happens in less than 1 second while with Maven or Netbeans this will take up to 10 seconds even in offline mode. Any hints for speeding up things would be appreciated (except of changing the IDE ;-)). Regards Mirko -- Sent from my mobile Yep, with Compile on Save and an external Maven (using 3.1) and a reasonably recent NetBeans 7.4 build I get about 3 seconds for executing a focused test method. In short, it's not the 10 seconds you're seeing, but it's not the 0.3 seconds you're expecting. I can certainly live with (and in fact applaud) the design decision to be 100% equal to what the command line executes. . . . . just my two cents /mde/ --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven bootstrap/surefire:test performance
with Compile on Save enabled, the test-compile phase should be skipped and only surefire:test should be executed. However even with that, there's overhead of jvm startup + maven startup before the mojo gets executed. Obviously the overhead is biggest when you run just a single test. Unfortunately not much that can be done here. We've used to execute Compile on Save stuff with internal nb execution (via ant in IDE-jvm) but the devil is in the detail there, it's not 100% exactly the same execution as surefire. The current design decision is to be 100% equal to what cmd line executes. The downside is speed. Milos On Fri, Sep 13, 2013 at 9:25 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello everybody, I use Netbeans 7.4 as IDE and mostly like how it uses Maven to get stuff done. While it is nice that I do not encounter problems as I did with Eclipse when dealing with dependency scoping I am slowed down when running single test files or methods. Netbeans invokes test-compile surefire:test -Dtest= Now even from the CLI it takes Maven some time to reach surefire:test. Even when I do not invoke test-compile 3 seconds are spent before surefire:test starts it's work and another 3 seconds afterwards. The tests of a single testcase themselves only take 0.3 seconds. With Eclipse or Intellij the execution happens in less than 1 second while with Maven or Netbeans this will take up to 10 seconds even in offline mode. Any hints for speeding up things would be appreciated (except of changing the IDE ;-)). Regards Mirko -- Sent from my mobile
Re: Maven bootstrap/surefire:test performance
On Fri, Sep 13, 2013 at 9:47 PM, Mark Eggers its_toas...@yahoo.com wrote: On 9/13/2013 12:38 PM, Milos Kleint wrote: with Compile on Save enabled, the test-compile phase should be skipped and only surefire:test should be executed. However even with that, there's overhead of jvm startup + maven startup before the mojo gets executed. Obviously the overhead is biggest when you run just a single test. Unfortunately not much that can be done here. We've used to execute Compile on Save stuff with internal nb execution (via ant in IDE-jvm) but the devil is in the detail there, it's not 100% exactly the same execution as surefire. The current design decision is to be 100% equal to what cmd line executes. The downside is speed. Milos On Fri, Sep 13, 2013 at 9:25 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello everybody, I use Netbeans 7.4 as IDE and mostly like how it uses Maven to get stuff done. While it is nice that I do not encounter problems as I did with Eclipse when dealing with dependency scoping I am slowed down when running single test files or methods. Netbeans invokes test-compile surefire:test -Dtest= Now even from the CLI it takes Maven some time to reach surefire:test. Even when I do not invoke test-compile 3 seconds are spent before surefire:test starts it's work and another 3 seconds afterwards. The tests of a single testcase themselves only take 0.3 seconds. With Eclipse or Intellij the execution happens in less than 1 second while with Maven or Netbeans this will take up to 10 seconds even in offline mode. Any hints for speeding up things would be appreciated (except of changing the IDE ;-)). Regards Mirko -- Sent from my mobile Yep, with Compile on Save and an external Maven (using 3.1) and a reasonably recent NetBeans 7.4 build I get about 3 seconds for executing a focused test method. In short, it's not the 10 seconds you're seeing, but it's not the 0.3 seconds you're expecting. I can certainly live with (and in fact applaud) the design decision to be 100% equal to what the command line executes. actually the biggest problem I get to hear about is not the speed (which I admit is slower than expected), but the fact that run focused method often doesn't work, that's due to various combinations of maven-surefire-plugin and junit/testng version. Only some combinations support the executions of single test methods. Milos . . . . just my two cents /mde/ --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] Maven Indexer 5.1.1 Released
are there any steps to be taken by 3rd party integrators when upgrading? Milos Kleint On Fri, Mar 8, 2013 at 3:10 PM, Tamás Cservenák ta...@cservenak.net wrote: The Apache Maven team is pleased to announce the release of the Maven Indexer, version 5.1.1. Apache Maven Indexer (former Sonatype Nexus Indexer) is the defacto standard for producing indexes of Maven repositories. The Indexes are produced and consumed by all major tools in the ecosystem. http://maven.apache.org/maven-indexer/ Release notes - Maven Indexer 5.1.1 Link: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=12112version=18988 Bug [MINDEXER-70] - SearchEngine does not releaseIndexSearcher in some cases [MINDEXER-71] - Do not implicitely close indexing context Have fun, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assembly plugin - Java 7 classes are missing in the final JAR file
are you doing a clean build? do you have Compile on safe turned on or off? are the classes in question in target/classes after the build? are they part of the original jar produced by the jar plugin? in general the source/target value in compiler plugin should not have any influence over other plugins. So the reason is probably someplace else. Milos Kleint On Wed, Feb 13, 2013 at 10:49 AM, j.tosov...@email.cz wrote: Dear All, I want to inlude one small dependency library together with my JAR file. There is an assembly plugin for this and it works fine. But now my primary project is coded in Java 7 syntax. Netbeans IDE adds a special settings (source/target) for maven-compiler-plugin in my POM file. I don't know if this is the reason, but when this project is built using assembly:single, there is only the content of external libraries in my file, not my Java 7 classes of the primary project. Is it necessary to switch something else on? Thanks, Jan plugins plugin artifactIdmaven-assembly-plugin/artifactId version2.4/version configuration archive manifest mainClass... my main class .../mainClass /manifest /archive descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.4/version configuration source1.7/source target1.7/target /configuration /plugin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MissingProjectException
I suggest you move the project from root E:\ to something like E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml Milos On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin frogger...@gmail.com wrote: Hello, When I try to either Build, Clean and Build or Run (play button) my ' http://www.coderanch.com/forums/f-67/tools Maven Webapplication' in NetBeans, I get the following output: 1. cd E:\Dev\Java\MyApp; JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7 M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4 \E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\ clean install -e 2. Error stacktraces are turned on. 3. Scanning for projects... 4. 5. BUILD FAILURE 6. 7. Total time: 0.138s 8. Finished at: Mon Oct 22 13:16:36 CEST 2012 9. Final Memory: 2M/15M 10. 11. The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. - [Help 1] 12. org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. 13. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte r.java:89) 14. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 15. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 16. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) 17. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) 18. at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 19. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57 ) 21. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:43) 22. at java.lang.reflect.Method.invoke(Method.java:601) 23. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.ja va:290) 24. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) 25. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher. java:409) 26. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 27. 28. Re-run Maven using the -X switch to enable full debug logging. 29. 30. For more information about the errors and possible solutions, please read the following articles: 31. [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException This is what I have tried to fix the problem: - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi directory (I don't know if this belongs to NetBeans), rebooted and reinstalled NetBeans 7.2 - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1 - modified the POM file of the project - modify the context.xml file in META-INF/ folder of my project to point it to a different path. - Correctly install Maven by adding the proper environment variables (works) My projects used to build and run perfectly with no problems when I was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when I started getting this error. The error doesn't go away no matter what I try. Other strange behavior: - When I try to create a new Maven Webapplication in NetBeans, it always creates it under the root of my drive E:\ in a folder even though I explicitly tell it to install it under my projects folder. What works: -The only time when my projects successfully build and run is when I run them in my Windows XP SP3 virtual machine. So I don't know what to think here. What application or configuration is at fault? I find it very difficult to troubleshoot. -Running this command: https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException thus using an explicit path to my project I don't want to do this every time. I want it to work like it's supposed to. Specs: JDK 1.7 Sourcecode http://www.javaranch.com/ java version: 1.6 OS: Windows 7 x64 Server used: Tomcat 7.x / GlassFish 3.1.2 Thank you, -- William - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: MissingProjectException
I would bet on the jdk then. Milos On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin frogger...@gmail.com wrote: That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from. -Original Message- From: Milos Kleint [mailto:mkle...@gmail.com] Sent: dinsdag 27 november 2012 14:11 To: Maven Users List Subject: Re: MissingProjectException I suggest you move the project from root E:\ to something like E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml Milos On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin frogger...@gmail.com wrote: Hello, When I try to either Build, Clean and Build or Run (play button) my ' http://www.coderanch.com/forums/f-67/tools Maven Webapplication' in NetBeans, I get the following output: 1. cd E:\Dev\Java\MyApp; JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7 M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4 \E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\ clean install -e 2. Error stacktraces are turned on. 3. Scanning for projects... 4. 5. BUILD FAILURE 6. 7. Total time: 0.138s 8. Finished at: Mon Oct 22 13:16:36 CEST 2012 9. Final Memory: 2M/15M 10. 11. The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. - [Help 1] 12. org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. 13. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle Starte r.java:89) 14. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 15. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 16. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) 17. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) 18. at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 19. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j ava:57 ) 21. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess orImpl .java:43) 22. at java.lang.reflect.Method.invoke(Method.java:601) 23. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launc her.ja va:290) 24. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java :230) 25. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher. java:409) 26. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:3 52) 27. 28. Re-run Maven using the -X switch to enable full debug logging. 29. 30. For more information about the errors and possible solutions, please read the following articles: 31. [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcepti on This is what I have tried to fix the problem: - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi directory (I don't know if this belongs to NetBeans), rebooted and reinstalled NetBeans 7.2 - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1 - modified the POM file of the project - modify the context.xml file in META-INF/ folder of my project to point it to a different path. - Correctly install Maven by adding the proper environment variables (works) My projects used to build and run perfectly with no problems when I was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when I started getting this error. The error doesn't go away no matter what I try. Other strange behavior: - When I try to create a new Maven Webapplication in NetBeans, it always creates it under the root of my drive E:\ in a folder even though I explicitly tell it to install it under my projects folder. What works: -The only time when my projects successfully build and run is when I run them in my Windows XP SP3 virtual machine. So I don't know what to think here. What application or configuration is at fault? I find it very difficult to troubleshoot. -Running this command: https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcep tion https://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcept ion thus using an explicit path to my project I don't want to do this every time. I want it to work like it's supposed to. Specs: JDK 1.7 Sourcecode http://www.javaranch.com/ java version
Re: MissingProjectException
well, you've changed everything else but the JDK. that's where the thought is coming from. And it has to be something with your setup, as it's working fine for the majority of users out there. So yes, it could be a netbeans issue, but most likely it's not netbeans alone, but a combination of factors. Milos On Tue, Nov 27, 2012 at 5:54 PM, Froggerbin frogger...@gmail.com wrote: How would the JDK be at fault in this and what does it have to do with the path? -Original Message- From: Milos Kleint [mailto:mkle...@gmail.com] Sent: dinsdag 27 november 2012 17:48 To: Maven Users List Subject: Re: MissingProjectException I would bet on the jdk then. Milos On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin frogger...@gmail.com wrote: That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from. -Original Message- From: Milos Kleint [mailto:mkle...@gmail.com] Sent: dinsdag 27 november 2012 14:11 To: Maven Users List Subject: Re: MissingProjectException I suggest you move the project from root E:\ to something like E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml Milos On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin frogger...@gmail.com wrote: Hello, When I try to either Build, Clean and Build or Run (play button) my ' http://www.coderanch.com/forums/f-67/tools Maven Webapplication' in NetBeans, I get the following output: 1. cd E:\Dev\Java\MyApp; JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7 M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4 \E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\ clean install -e 2. Error stacktraces are turned on. 3. Scanning for projects... 4. 5. BUILD FAILURE 6. 7. Total time: 0.138s 8. Finished at: Mon Oct 22 13:16:36 CEST 2012 9. Final Memory: 2M/15M 10. 11. The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. - [Help 1] 12. org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. 13. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl e Starte r.java:89) 14. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 15. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 16. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) 17. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) 18. at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 19. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. j ava:57 ) 21. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces s orImpl .java:43) 22. at java.lang.reflect.Method.invoke(Method.java:601) 23. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun c her.ja va:290) 24. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a :230) 25. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher. java:409) 26. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 3 52) 27. 28. Re-run Maven using the -X switch to enable full debug logging. 29. 30. For more information about the errors and possible solutions, please read the following articles: 31. [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectExcept i on This is what I have tried to fix the problem: - Uninstalled NetBeans 7.2, removed .m2 directory, removed .nbi directory (I don't know if this belongs to NetBeans), rebooted and reinstalled NetBeans 7.2 - Uninstalled NetBeans 7.2 and installed NetBeans 7.0.1 - modified the POM file of the project - modify the context.xml file in META-INF/ folder of my project to point it to a different path. - Correctly install Maven by adding the proper environment variables (works) My projects used to build and run perfectly with no problems when I was using NetBeans 7.0.1, until I installed NetBeans 7.2. That's when I started getting this error. The error doesn't go away no matter what I try. Other strange behavior: - When I try to create a new Maven Webapplication in NetBeans, it always creates it under the root of my drive E:\ in a folder even though I explicitly tell
Re: MissingProjectException
what about moving maven installation out of a path with brackets and spaces in the path? the only other thing i can think of. milos On Tuesday, November 27, 2012, Froggerbin wrote: When in commandline doing a cd to the project's directory and running mvn install -f pom.xml from there, the build is a success. Doing mvn package from there = SUCCESS. Maven appears to be working there. When trying to run the same project with the same command (as far as I can see) in NetBeans, I get the error I originally posted. Here's NetBeans' maven command: cd E:\Dev\Java\MyApp; JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7 M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4 \E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\ -Dnetbeans.deploy=true package -Original Message- From: Ron Wheeler [mailto:rwhee...@artifact-software.com] Sent: dinsdag 27 november 2012 18:00 To: users@maven.apache.org Subject: Re: MissingProjectException This looks like a Netbeans issue. You might get more help there. The s look odd but you seem to say that the command is generated by Netbeans so that is where I would look. Does Maven work if you run it in a cmd window? Ron On 27/11/2012 11:54 AM, Froggerbin wrote: How would the JDK be at fault in this and what does it have to do with the path? -Original Message- From: Milos Kleint [mailto:mkle...@gmail.com] Sent: dinsdag 27 november 2012 17:48 To: Maven Users List Subject: Re: MissingProjectException I would bet on the jdk then. Milos On Tue, Nov 27, 2012 at 5:42 PM, Froggerbin frogger...@gmail.com wrote: That is the whole problem. The project is not in E:\. It's in E:\Dev\Apps\Java. Still I get this error no matter where I put the project or open it from. -Original Message- From: Milos Kleint [mailto:mkle...@gmail.com] Sent: dinsdag 27 november 2012 14:11 To: Maven Users List Subject: Re: MissingProjectException I suggest you move the project from root E:\ to something like E:\projectA (thus the pom.xml file will be at E:\projectA\pom.xml Milos On Tue, Nov 27, 2012 at 12:17 PM, Froggerbin frogger...@gmail.com wrote: Hello, When I try to either Build, Clean and Build or Run (play button) my ' http://www.coderanch.com/forums/f-67/tools Maven Webapplication' in NetBeans, I get the following output: 1. cd E:\Dev\Java\MyApp; JAVA_HOME=E:\\Apps (x86)\\Dev\\Java\\jdk7u7 M2_HOME=E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4 \E:\\Apps (x86)\\Dev\\apachemaven\\apache-maven-3.0.4\\bin\\mvn.bat\ clean install -e 2. Error stacktraces are turned on. 3. Scanning for projects... 4. 5. BUILD FAILURE 6. 7. Total time: 0.138s 8. Finished at: Mon Oct 22 13:16:36 CEST 2012 9. Final Memory: 2M/15M 10. 11. The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. - [Help 1] 12. org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (E:\). Please verify you invoked Maven from the correct directory. 13. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecyc l e Starte r.java:89) 14. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 15. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 16. at org.apache.maven.cli.MavenCli.exe p t ion thus using an explicit path to my project I don't want to do this every time. I want it to work like it's supposed to. Specs: JDK 1.7 Sourcecode http://www.javaranch.com/ java version: 1.6 OS: Windows 7 x64 Server used: Tomcat 7.x / GlassFish 3.1.2 Thank you, -- William - To unsubscribe, e-mail: users-unsubscr...@maven.apache.orgjavascript:; For additional commands, e-mail: users-h...@maven.apache.orgjavascript:; - To unsubscribe, e-mail: users-unsubscr...@maven.apache.orgjavascript:; For additional commands, e-mail: users-h...@maven.apache.orgjavascript:; - To unsubscribe, e-mail: users-unsubscr...@maven.apache.orgjavascript:; For additional commands, e-mail: users-h...@maven.apache.orgjavascript:; - To unsubscribe, e-mail: users-unsubscr...@maven.apache.orgjavascript:; For additional commands, e
Re: Can not get a jar from maven central
wget is blacklisted. Milos On Mon, Nov 5, 2012 at 2:52 PM, Ron Wheeler rwhee...@artifact-software.com wrote: You might be blacklisted. I got a pretty quick response to the http link. Have you done anything that might have made Maven Central think that you should be blacklisted? If so, you probably have to reassure them that you will not do it again. Do you have your own repo in place? Ron On 05/11/2012 8:43 AM, eugene wrote: Here is some more output if needed: wget -dv http://repo1.maven.org/maven2/org/codehaus/woodstox/woodstox-core-asl/4.1.4/woodstox-core-asl-4.1.4.jar Setting --verbose (verbose) to 1 DEBUG output created by Wget 1.12 on linux-gnu. --2012-11-05 10:40:08-- http://repo1.maven.org/maven2/org/codehaus/woodstox/woodstox-core-asl/4.1.4/woodstox-core-asl-4.1.4.jar Resolving repo1.maven.org... 68.232.34.223 Caching repo1.maven.org = 68.232.34.223 Connecting to repo1.maven.org|68.232.34.223|:80... connected. Created socket 3. Releasing 0x089813e8 (new refcount 1). ---request begin--- GET /maven2/org/codehaus/woodstox/woodstox-core-asl/4.1.4/woodstox-core-asl-4.1.4.jar HTTP/1.0 User-Agent: Wget/1.12 (linux-gnu) Accept: */* Host: repo1.maven.org Connection: Keep-Alive ---request end--- HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Closed fd 3 Retrying. --2012-11-05 10:41:09-- (try: 2) http://repo1.maven.org/maven2/org/codehaus/woodstox/woodstox-core-asl/4.1.4/woodstox-core-asl-4.1.4.jar Found repo1.maven.org in host_name_addresses_map (0x89813e8) Connecting to repo1.maven.org|68.232.34.223|:80... connected. Created socket 3. Releasing 0x089813e8 (new refcount 1). -- View this message in context: http://maven.40175.n5.nabble.com/Can-not-get-a-jar-from-maven-central-tp5729478p5729497.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: No versions available but actually local repository contains it!
there's some code in latest maven that not only checks the presence of the jar/pom in local repository but also some additional metadata which describes where it was downloaded from. where is defined by repository id. if the repository id in your project is missing in the current metadata, a new attempt will be made to download it. if it fails, the build fails as well. That way maven shoudl enforce that your project is always buildable with given pom content. Milos On Wed, Jul 25, 2012 at 9:27 AM, Markus Karg k...@quipsy.de wrote: I have a very strange problem with Maven 3.0.4 running on JDK 1.6.0_26 on Win 7 Pro SP1 (64 Bit): When I want to compile, Maven says that it cannot resolve a dependency: No versions available for org.hamcrest:hamcrest-core:jar:[1.3,1.3] within specified range. But actually, Maven in fact successfully downloaded exactly that JAR and POM in exactly that version from Nexus (hence, from Maven Central in turn), as I can see the JAR and POM in both, my local repository and my Nexus instance! The weird thing is, if I replace [1.3] by [1.2] it does NOT complain about missing dependency! Weird, isn't it? And it gets even more weird: If I change my POM to relax the requested range from [1.2] to simply 1.2 (without braces, just to see what happens) it downloads version 1.1. But for what, if a 1.2 and 1.3 already are there? How can I fix this? I definitively need version 1.3, which IS available in my local repository, my Nexus instance and Maven Central! Thanks a lot! Markus - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: list of phases defined by the lifecycle of a packaging type
public ListString getLifecyclePhases() { LifecycleMapping lifecycleMapping = lookupComponent(LifecycleMapping.class); if (lifecycleMapping != null) { SetString phases = new TreeSetString(); MapString, Lifecycle lifecycles = lifecycleMapping.getLifecycles(); for (Lifecycle lifecycle : lifecycles.values()) { phases.addAll(lifecycle.getPhases().keySet()); } return new ArrayListString(phases); } return Collections.StringemptyList(); } is what we use for certain code completions in netbeans.. Milos On Sun, Jun 10, 2012 at 9:48 PM, Pascal Rapicault pas...@rapicault.net wrote: Hi, Given a packaging type, is there a way to programmatically know all the phases that are associated with the various lifecycle? For example during the execution with -X I see the following output. This is pretty much what I want. [DEBUG] Lifecycle clean - [pre-clean, clean, post-clean] [DEBUG] Lifecycle site - [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default - [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] Thx in advance, Pascal - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Accessing .properties file
common, just entering it into google gives you the right page at the top.. no, you don't need to configure anything, if you just add your properties file into the src/main/resources (sub)directory, it will be included into the resulting jar file. Milos On Mon, Apr 2, 2012 at 7:31 AM, SudeepShakya shakyasud...@live.com wrote: Thanks for reply, Can u send me the link to the plugin. Is there something to add/modify in pom file. -- View this message in context: http://maven.40175.n5.nabble.com/Accessing-properties-file-tp5611509p5611529.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Accessing .properties file
src/main/resources by default. See the maven-resources-pluign for more details and configuration options. Milos On Mon, Apr 2, 2012 at 7:13 AM, SudeepShakya shakyasud...@live.com wrote: I am new to Maven and using Wicket Framework in Netbeans IDE. Previously i used Ant(set default by IDE). I created a Maven project and added Wicket Framework in Netbeans, and I want to use .properties file for my application. In ant i simply put the properties file in the package where the java file is located but i don't know how to access in maven project. Thanx in advance. -- View this message in context: http://maven.40175.n5.nabble.com/Accessing-properties-file-tp5611509p5611509.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Avoid constant manual artifact installation in Netbeans
On Fri, Mar 16, 2012 at 5:33 PM, Wayne Fay wayne...@gmail.com wrote: Whenever a new jar-file is built, I usually go to the jar-dependency in the Maven project and click on 'Manually install artifact'. I was wondering if there is a mechanism to automate it. So, whenever a new jar file is built the dependency gets updated as well. 1. I don't think Tim intended to reply to your post, at least, his reply makes no sense in the context of your question. I blame Nabble for the mistake. 2. I don't see how this list could help with an issue you are having in Netbeans. Might I suggest asking this question on a Netbeans User list? We primarily handle Maven from the command line type questions here. Netbeans' Manually Install artifact action just perfoms mvn install:install-file on the chosen artifact. In that sense it can be considered a general maven question. Milos Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Avoid constant manual artifact installation in Netbeans
manually instal artifact is mvn install:install-file, either create a shell script to automate the process or make the install part of the build that produces the jar. Milos On Fri, Mar 16, 2012 at 6:14 AM, new2maven ralf.but...@web.de wrote: Hi there, I work on a Maven project which makes use of a jar-file via a dependency. The jar-file is modified on a daily basis. Whenever a new jar-file is built, I usually go to the jar-dependency in the Maven project and click on 'Manually install artifact'. I was wondering if there is a mechanism to automate it. So, whenever a new jar file is built the dependency gets updated as well. Many thanks in advance! Sarah -- View this message in context: http://maven.40175.n5.nabble.com/Avoid-constant-manual-artifact-installation-in-Netbeans-tp5569994p5569994.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Execution of plugin in child poms and not in current pom
you could place the enforcer plugin definition in pluginManagement section of the parent pom and then in each of the child poms you want to execute the plugin, you would include it in the plugins section Milos On Thu, Aug 4, 2011 at 3:47 PM, Kreyßel, Conny conny.kreys...@inter-forum.de wrote: Hello, i try to create a company parent pom that defines the usage of the enforcer plugin with some handmade enforcer rules. This rules validates the project settings for all our applications we build with maven. My problem is that the enforcer plugin (and the defined rules) are called in the run of the company parent pom build and fail the build because he use the rules that should only be used in application projects. Do anyone know how if i can fix this? The enforcer plugin should only called in all projects based on company parent pom as parent. Thanks. Conny - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: m2eclipse: missing Navigate menu items
the book is most probably not uptodate. M2E had to follow Eclipse guidelines on main menu content when being accepted into indigo release train and all/most of the menu items are gone now. Milos On Mon, Jul 25, 2011 at 9:14 PM, kanesee kane...@gmail.com wrote: This is more a m2eclipse plugin issue and less maven but if any has an answer or can point me in the right direction, I'd appreciate it. I have eclipse indigo (v3.7) for mac and it came preinstalled with m2eclipse (v1.0.0.20110607-2117). I believe both are one of the most recent builds. Anyways, this link and others on the web mention certain features that allow me to search my repository for classes: http://www.sonatype.com/books/m2eclipse-book/reference/repository-sect-searching-artifacts.html The problem is I don't have these Navigate menu items (e.g. Open Maven POM, or Open Type from Maven) http://maven.40175.n5.nabble.com/file/n4632029/Screen_shot_2011-07-25_at_11.59.37_AM.png My eclipse has other Maven-related menu items, like I can convert a Java Project to a Maven project and it recognizes pom.xml files and opens them in a specific pom viewer. Any ideas on maybe how to activate these other Maven options would be helpful. Thanks, Kane -- View this message in context: http://maven.40175.n5.nabble.com/m2eclipse-missing-Navigate-menu-items-tp4632029p4632029.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Compiling test classes and using ${project.name}
project name can be anything (or nothing).. it's for sure not intended to be used in filesystem paths.. don't use it. Milos On Tue, Dec 7, 2010 at 12:36 PM, Anders Hammar and...@hammar.net wrote: Maven best-practice is to stick to Maven conventions. You're not doing that and therefore you're running into trouble. I'm guessing here, but you've probably run into some limitation in the testCompile goal of m-compile-p. I suggest you change your opinion regarding where Maven creates files during build and follow the Maven standard. Your life will be much easier then. /Anders On Tue, Dec 7, 2010 at 12:08, Viktor Sadovnikov vl_sadovni...@yahoo.comwrote: Hello, I'm migrating our ANT + Ivy based projects to Maven and came across a strange problem with compiling test classes. Currently I have only on parent pom.xml, which controls common for all modules settings, and one child module. The child module compiles and tests perfectly as long as builddirectory is kept to default. However we prefer to keep temporary files outside of modules, therefore I changed directory as it shown below. Compilation still succeeds, but compiler plugin fails to compile test classes in test phase - it doesn't file compiled main classes. I also noticed that if the directory name is fixed (doesn't use ${project.name}) compilation of test classes succeeds either. Is it OK to use ${project.name} as I'm using? With regards, Viktor build sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory directory../.build/${project.name}/target/directory plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.3.2/version configuration source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.6/version configuration systemPropertyVariables com.fiserv.storage.dir${storage.dir}/com.fiserv.storage.dir log4j.configurationfile:${storage.dir}/log4j.xml/log4j.configuration com.fiserv.application.dir${com.fiserv.application.dir}/com.fiserv.application.dir com.fiserv.classes.dir${project.build.outputDirectory}/com.fiserv.classes.dir /systemPropertyVariables /configuration /plugin /plugins /build - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mavenicing bpel module
I don't know what the actual problem you are facing is, but you might want to consider starting with maven from scratch and only add tasks (or better convert tasks to plugins) as the need arises. Milos On Thu, Oct 14, 2010 at 5:08 PM, José Vicente jvia...@gmail.com wrote: Hi: I’m mavenicing a BPEL Module but i has this error: Embedded error: The following error occurred while executing this line: C:\caps\NETBEA~1\EchoDeAfirma\BpelConexions\nbproject\build-impl.xml:79: taskdef class org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask cannot be found do you have any idea ? pom.xml: ?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 artifactIdBpelConexions/artifactId groupIdBpelConexions/groupId packagingjar/packaging version1.0-SNAPSHOT/version build plugins !-- DISABLE COMPILER PLUGIN AS ANT RUN WOUDL COMPILE THE CODE -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration skiptrue/skip source1.5/source target1.5/target excludes exclude**/*.java/exclude /excludes /configuration /plugin !-- DISABLE the test code run as a junit test as this test is integration test code.-- plugin artifactIdmaven-surefire-plugin/artifactId version2.1.3/version inheritedtrue/inherited configuration skiptrue/skip excludes exclude**/enginetest/*.java/exclude /excludes /configuration /plugin plugin artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution idjbicomp-build-package/id phasepackage/phase goalsgoalrun/goal/goals configuration tasks ant antfile=build.xml inheritAll=false target=dist_se /ant copy overwrite=true file=dist/${ jbi.component.name}.jar toFile=${project.build.directory}/${project.artifactId}-${project.version}.jar / !-- dist/EJBWSAfirma.jar -- /tasks /configuration /execution /executions /plugin /plugins /build properties jbi.component.name${project.artifactId}/jbi.component.name /properties /project build-impl.xml : ?xml version=1.0 encoding=UTF-8? !-- *** GENERATED FROM project.xml - DO NOT EDIT *** *** EDIT ../build.xml INSTEAD *** -- project name=BpelConexions-impl default=default basedir=.. target name=default depends=dist_se/ !-- INITIALIZATION SECTION -- target name=pre-init !-- Empty placeholder for easier customization. -- !-- You can override this target in the ../build.xml file. -- /target target name=init-private depends=pre-init property file=nbproject/private/private.properties/ /target target name=init-userdir depends=pre-init,init-private property name=user.properties.file location=${netbeans.user}/build.properties/ /target target name=init-user depends=pre-init,init-private,init-userdir property file=${user.properties.file}/ /target target name=init-project depends=pre-init,init-private,init-userdir,init-user property file=nbproject/project.properties/ /target target name=do-init depends=pre-init,init-private,init-userdir,init-user,init-project available file=${src.dir}/../retrieved property=retrieved.exists/ /target target name=post-init !-- Empty placeholder for easier customization. -- !-- You can override this target in the ../build.xml file. -- /target target name=init-check depends=pre-init,init-private,init-userdir,init-user,init-project,do-init fail unless=src.dirMust set src.dir/fail fail unless=build.dirMust set build.dir/fail fail unless=dist.dirMust set dist.dir/fail fail unless=dist.jarMust set dist.jar/fail /target target name=init-taskdefs if=from.commandline path id=ant.task.classpath pathelement
Re: Maven Ban!
have you attempted to download the *whole* repository? http://maven.apache.org/guides/introduction/introduction-to-repositories.html mentions that you can get banned for doing so. It's a truckload of bandwidth you are not paying for. I don't know how to get you unbanned, sorry reading this thread might help, no guarantees I just did a google search - http://www.mail-archive.com/users@maven.apache.org/msg90290.html Milos On Wed, Sep 22, 2010 at 6:51 AM, Fabien Renaud fabienrenaud...@gmail.comwrote: Hi, Few month ago (in July), I tried to download (for work) the Maven Repository with my home PC but after a couple of hours, I was banned! Now I need to work with Maven at home and realize that I'm still banned of the repo. I will not retry to download the repository… ever! My IP: 82.236.20.140 If someone could remove it from the ban list, it could be more than very helpful. Thanks. -- Fabien Renaud Tél : 09 53 22 69 79 E-mail : cont...@fabienrenaud.com Web : http://www.fabienrenaud.com
Re: [ANN] Maven Compiler Plugin 2.3 Released
The checksums on central shall be fixed now. My apologies to everyone. Milos On Wed, Apr 21, 2010 at 10:22 PM, Brett Porter br...@apache.org wrote: On 21/04/2010, at 11:13 PM, John Singleton wrote: Thanks, Brett. FWIW, I also noticed this problem with the 2.2 version of Compiler plugin, which was released a couple of weeks ago. Yes, they both use the same version of the shared component. It's being taken care of. - Brett -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven Compiler Plugin 2.2 Released
The Maven team is pleased to announce the release of the Maven Compiler Plugin, version 2.2 This plugin provides the capability to compile the java sources and newly also to process annotations in jdk 1.6. See the plugin's site for ore details: http://maven.apache.org/plugins/maven-compiler-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.2/version /plugin Release Notes - Maven 2.x Compiler Plugin - Version 2.2 ** Bug [MCOMPILER-98] - -sourcepath not passed to javac [MCOMPILER-118] - all compiler messages are reported as errors if failOnError == true ** Improvement [MCOMPILER-115] - Support source/target 1.5 from eclipse compiler [MCOMPILER-116] - support compilerArguments / testCompilerArguments from eclipse compiler ** New Feature [MCOMPILER-75] - Add apt support for Java 6 ** Task [MCOMPILER-117] - convert to JDK 1.5 source/target Enjoy, -The Maven team
Re: Problems with Dependencies and Classpath
On Mon, Mar 8, 2010 at 3:03 PM, Matthias Hofmann matthias.hofm...@tu-dortmund.de wrote: Hi, currently i am trying to get my Java program running outside of the Netbeans IDE. Within Netbeans, it works well, all dependencies are correctly loaded and executed. But if i try to run the program from the console with java -cp or java -jar, i get NoClassFoundDefError concerning the dependencies of the project. My pom.xml uses plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration archive manifest mainClass...omitted.../mainClass addClasspathtrue/addClasspath this willl just generate the relevant manifest entry, but will not ensure that the jars are at the designated location at runtime. To get them there, you could use the maven-assembly plugin, or you could merge all dependency jars into the main jar using the maven-shade-plugin. Milos /manifest /archive /configuration /plugin as buildoptions Any ideas concerning this issue? Most likely, sth. with the classpath is wrong, but i can't figure it out. Best regards and thank you, Matthias - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Clean up of pom files
not for netbeans. AFAIK the maven pom schema doesn't enforce ordering. you could write such enforcer rule yourself I guess. Milos On Wed, Feb 24, 2010 at 10:30 AM, Nick Stolwijk nick.stolw...@gmail.comwrote: Hi all, We have a multitude of components and projects all build with maven and we want to enforce some standard layout for the pom files, like the ordering of the elements(like the ordering in the schema) and forbidding some elements (like company and url, there are already set in the company pom). So 2 questions: - Is there a maven/eclipse/netbeans plugin which can sort pom (xml) files based on their schema? - Is there an enforcer plugin who can enforce the ordering of the elements and forbidding some elements. Hope someone can help, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: generated sources/resources path conventions
On Fri, Jan 15, 2010 at 3:43 PM, Mark Hobson markhob...@gmail.com wrote: 2010/1/13 lukewpatterson lukewpatter...@gmail.com: It seems like ${project.build.directory}/generated-sources/generator-name and ${project.build.directory}/generated-resources/generator-name have been mentioned [1][2], but I wonder if something like this ${project.build.directory}/generated/generator-name is more consistent. With ${project.build.directory}/generated/generator-name, I could have good consistency like: ${project.build.directory}/generated/generator-name/src/main/java ${project.build.directory}/generated/generator-name/src/test/scala ${project.build.directory}/generated/generator-name/src/main/resources Sounds reasonable enough, although I'd probably also ditch 'src' since 'generated' conceptually replaces this. Any new standard would have to be applied across all Apache and Mojo plugins though. and it would break IDE integrations, at least netbeans which relies on the current convention. Milos Mark - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Code template converters?
On Mon, Dec 21, 2009 at 9:19 PM, Dennis Lundberg denn...@apache.org wrote: Alexander wrote: Hello, Eclipse, IDEA and NetBeans has code template engines but they can't use template from other platform. So question is: are there any code template converters? I mean write some template and make maven convert them to other platforms at package time. Just to make sure, when you say code template do you mean code style configuration? If so, then there are no such converters to my knowledge. I have that on my todo list, but it's been sitting there a long time. Another thing one could try to do is transform to/from a Checkstyle configuration file. netbeans 6.8 should be able to do that already. It seems to perform reasonably well for mojo.codehaus.org style formats. Milos -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mixing Scala and Java in the same project
http://kenai.com/projects/nb-maven-generators/ uses both scala and java code in the same project. It's a netbeans module that can add the scala configuration to your existing projects. Milos On Wed, Dec 9, 2009 at 10:23 AM, Pilgrim, Peter peter.pilg...@lloydsbanking.com wrote: Hi Has anyone got any guidelines for mixing Scala and Java in the same project? Thanks very much in advance -- Peter Pilgrim | E-Channel Services, Technical Lead, eBusiness Lloyds Banking Group | Wholesale Markets Treasury IT 33 Old Broad Street, London, EC2N 1HZ, UK ' +44 (0)207 158 6135 | ( +44 (0)1234 567 8901 * peter.pilg...@lloydsbanking.com * www.lloydsbankinggroup.com http://www.lloydsbankinggroup.com/ This e-mail is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland, number 95000. Telephone: 0131 225 4555. Lloyds TSB Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales, number 2065. Telephone: 020 7626 1500. Lloyds TSB Scotland plc. Registered Office: Henry Duncan House, 120 George Street, Edinburgh EH2 4LH. Registered in Scotland, number 95237. Telephone: 0131 225 4555. Cheltenham Gloucester plc. Registered Office: Barnett Way, Gloucester GL4 3RL. Registered in England and Wales, number 2299428. Telephone: 01452 372372. Cheltenham Gloucester Savings is a division of Lloyds TSB Bank plc. Lloyds TSB Bank plc, Lloyds TSB Scotland plc and Cheltenham Gloucester plc are authorised and regulated by the Financial Services Authority. Telephone calls may be monitored or recorded. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Maven Run Manifest entries
not really within the exec plugin, not within netbeans. I suggest you create a profile that will properly assemble the app (including the ClassPath entry in manifest etc) and activate it when running within IDE. Then you can map action in netbeans to exec:exec only.. Milos On Wed, Dec 2, 2009 at 6:12 PM, eppleton nab...@eppleton.de wrote: Thanks Milos, is there a variable for jar name like for className, packageClassName? Toni Bugzilla from mkle...@gmail.com wrote: I would say you need to change the Run project action mapping in the ide not to use mvn exec:exec to execute java -cp classpath but to execute :java -jar jar name Regards Milos Kleint On Wed, Dec 2, 2009 at 5:46 PM, eppleton nab...@eppleton.de wrote: Hi, I've created a Maven Project in NetBeans. It writes an entry into the JARs manifest. That works fine. At runtime I'm reading that entry (which points to a configuration file) and use it for configuration. That works fine as well… The problem is, that when running the project from the IDE instead of the JAR, the class files in the target folder is used, so there's no manifest. When I copy my manifest there, it works fine. What would be the best approach to do that automatically? Thanks Toni -- View this message in context: http://old.nabble.com/Maven-Run---Manifest-entries-tp26612165p26612165.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Maven-Run---Manifest-entries-tp26612165p26612608.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Run Manifest entries
I would say you need to change the Run project action mapping in the ide not to use mvn exec:exec to execute java -cp classpath but to execute :java -jar jar name Regards Milos Kleint On Wed, Dec 2, 2009 at 5:46 PM, eppleton nab...@eppleton.de wrote: Hi, I've created a Maven Project in NetBeans. It writes an entry into the JARs manifest. That works fine. At runtime I'm reading that entry (which points to a configuration file) and use it for configuration. That works fine as well… The problem is, that when running the project from the IDE instead of the JAR, the class files in the target folder is used, so there's no manifest. When I copy my manifest there, it works fine. What would be the best approach to do that automatically? Thanks Toni -- View this message in context: http://old.nabble.com/Maven-Run---Manifest-entries-tp26612165p26612165.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Run Manifest entries
or somehow generate the manifest file in the target area. Milos On Wed, Dec 2, 2009 at 6:02 PM, Milos Kleint mkle...@gmail.com wrote: I would say you need to change the Run project action mapping in the ide not to use mvn exec:exec to execute java -cp classpath but to execute :java -jar jar name Regards Milos Kleint On Wed, Dec 2, 2009 at 5:46 PM, eppleton nab...@eppleton.de wrote: Hi, I've created a Maven Project in NetBeans. It writes an entry into the JARs manifest. That works fine. At runtime I'm reading that entry (which points to a configuration file) and use it for configuration. That works fine as well… The problem is, that when running the project from the IDE instead of the JAR, the class files in the target folder is used, so there's no manifest. When I copy my manifest there, it works fine. What would be the best approach to do that automatically? Thanks Toni -- View this message in context: http://old.nabble.com/Maven-Run---Manifest-entries-tp26612165p26612165.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven+netbeans+cpp newbie question
On Thu, Nov 26, 2009 at 9:53 AM, stephane ancelot sance...@free.fr wrote: Hi, I have got a problem ! I have to use netbeans in multiproject environment. multiproject means I have to generate a package that is composed of many C/C++ applications executable. however, it looks like netbeans does not support well multiproject environment. So, may be using maven will solve this problem ? depends. check first whether after using maven you still get most/all of the c++ editor features you get in the C++ projects. The support could be bound exclusively to these and be absent in maven projects.. I would like to know if I can use maven with netbeans in this context, my project structure would be similar to : project1/ project2/ somelib1/ somelibx/ What are necessary customisations in order doing this ? I tried making a pom.xml with native settings, importing it in netbeans but it creates some java files. you will need to find maven plugins specific to c++ developement and see from there how the maven project is to be customized. Inside the IDE , when I add new files to the project, I would like it to be transparent for the user. I do not want him to hack some pom files ...Is it working ? It should as far as I can tell. Milos Best Regards Steph - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Defining NetBeans 6.7 Actions Externally In Maven2 2.2.1
http://wiki.netbeans.org/MavenBestPractices#Binding_Maven_goals_to_IDE_actions http://wiki.netbeans.org/MavenBestPractices#Binding_Maven_goals_to_IDE_actions Milos On Wed, Nov 18, 2009 at 7:37 PM, rickbryant rick.bry...@gxs.com wrote: All: We just upgraded from Maven1 1.0.2 to Maven2 2.2.1 and from NetBeans 5.5 to NetBeans 6.7. With our previous setup we could specify NetBeans 5.5 actions in the Maven1 1.0.2 build.properties file as follows: maven.netbeans.exec.debug.single=-Dmaven.mevenide.run.classname=%CLASS% java:compile mevenide:debug-class maven.netbeans.exec.run.single=-Dmaven.mevenide.run.classname=%CLASS% java:compile mevenide:run-class maven.netbeans.exec.rebuild=clean web-deploy-nowar maven.netbeans.exec.build=web-deploy-nowar and the corresponding menu selections in NetBeans 5.5 would use these actions instead of the built in actions. Is it possible to also specify NetBeans 6.7 actions externally in the Maven2 2.2.1 profiles.xml (or pom.xml or settings.xml) file? If so, which specific NetBeans 6.7 action attributes are available and how are these declared? Thanks, Rick -- View this message in context: http://old.nabble.com/Defining-NetBeans-6.7-Actions-Externally-In-Maven2-2.2.1-tp26413299p26413299.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Defining NetBeans 6.7 Actions Externally In Maven2 2.2.1
sorry, there is no such way, not an supported one. You can surely configure a project to have something executed with a given configuration via profiles, but I suppose that is not what you are looking for. Maven2 is different from m1 and also the ide integration became more elaborate. Some properties you can set, like IDE's deployment server, JDK platform to use or similar, but it became unpractical for action bindings.. Milos On Wed, Nov 18, 2009 at 9:05 PM, rickbryant rick.bry...@gxs.com wrote: Milos, Thanks for your reply and we are already aware of how to bind NetBeans/Maven actions within the NetBeans application. However, instead of configuring NetBeans for this we want to be able to do the same thing declaratively using properties in the external Maven profiles.xml file. We have done this successfully in the past with NetBeans 5.5/Maven 1.0.2 and just need to know if it can be done with the latest version of these applications. Thanks, Rick Bugzilla from mkle...@gmail.com wrote: http://wiki.netbeans.org/MavenBestPractices#Binding_Maven_goals_to_IDE_actions http://wiki.netbeans.org/MavenBestPractices#Binding_Maven_goals_to_IDE_actions Milos On Wed, Nov 18, 2009 at 7:37 PM, rickbryant rick.bry...@gxs.com wrote: All: We just upgraded from Maven1 1.0.2 to Maven2 2.2.1 and from NetBeans 5.5 to NetBeans 6.7. With our previous setup we could specify NetBeans 5.5 actions in the Maven1 1.0.2 build.properties file as follows: maven.netbeans.exec.debug.single=-Dmaven.mevenide.run.classname=%CLASS% java:compile mevenide:debug-class maven.netbeans.exec.run.single=-Dmaven.mevenide.run.classname=%CLASS% java:compile mevenide:run-class maven.netbeans.exec.rebuild=clean web-deploy-nowar maven.netbeans.exec.build=web-deploy-nowar and the corresponding menu selections in NetBeans 5.5 would use these actions instead of the built in actions. Is it possible to also specify NetBeans 6.7 actions externally in the Maven2 2.2.1 profiles.xml (or pom.xml or settings.xml) file? If so, which specific NetBeans 6.7 action attributes are available and how are these declared? Thanks, Rick -- View this message in context: http://old.nabble.com/Defining-NetBeans-6.7-Actions-Externally-In-Maven2-2.2.1-tp26413299p26413299.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Defining-NetBeans-6.7-Actions-Externally-In-Maven2-2.2.1-tp26413299p26414750.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: problem using archetype create-from-project to process files under resources folders.
check the sources of the generic nbm archetype at codehaus. http://svn.codehaus.org/mojo/trunk/mojo/mojo-archetypes/nbm-archetype/ Milos On Thu, Oct 1, 2009 at 5:03 PM, Djohannot david.johan...@heig-vd.ch wrote: Hi all, I have exactly the same problem. I use the Netbeans platform and the layer.xml, Bundle.properties, etc are in resources folder, and the archetype:generate-from-project keep the original folder hierarchy. dou you have found a way to tell Maven to modif the resources folders too? regards, David J. Trent Rosenbaum-2 wrote: Hi there, I am having a problem with the 'main/resources' and the 'test/resources' folders when trying to generate an archetype from an example project. Both folders are preserving the original folder structures from the project used to generate the archetype. The 'main/java' and the 'test/java' are modified to allow them to be placed into a new package structure when the archetype is used for future projects. Are the folders 'main/resources' and 'test/resources' meant to work in this way? I would expect the 'resources' folders within the archetype to generate the new files in the same manner as the java folders. I have a situation where junit test classes are locating Spring configuration files in the same package. I have the test class under the 'test/java' folder and the configuration files under 'test/resources'. When I run the 'maven-archetype-plugin' over the example project, (a project that builds and tests as expected) I get the java classes modified to except new project values, but the configuration files under resources folders are left under the old package/folder structure. After generation of the new project the build fails because the tests cannot locate the appropriate configuration files. Is it expected that I should modify the generated archetype files by hand to place the configuration files in the correct location? I have been using archetypes of a while, but have never noticed this before because I always placed my configuration files at the route of 'main/resources' and 'test/resources'. What are the plans for the archetype plugin going forward? I get a sense that things on the archetype front have gone quiet? Are there any other options and what is everyone else doing? Any feedback would be a great help. Many thanks Trent -- View this message in context: http://www.nabble.com/problem-using-archetype-create-from-project-to-process-files-under--resources-folders.-tp24772317p25696921.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven is taking 103 minutes for each build in NB 6.7. Why?
check the command line build? does it take the same amount of time? Do you have the command line maven setup for use? (in tools/Options/Misc) does any of the repositories defined timeout? maybe some http proxy setup in netbeans? Milos On Thu, Jul 16, 2009 at 12:33 AM, Doug Graham dugg...@gmail.com wrote: Twice I've tried to build a small maven persistence app in netbeans 6.7. Each time maven takes over and starts downloading pom files at a ridiculously slow rate (i.e. 2k file in 5 minutes). It takes an hour and 43 minutes to download all the pom files. I have a fast connection. If the other end is cooperating I can download 200 mb in a few minutes. My question is why does maven need to re-download all these pom files each time I rebuild? What do I have set wrong? Thank you, Doug
Re: Required goal not found: nbm:directory in org.codehaus.mojo:nbm-maven-plugin:3.0
greetings, the message could be some overlooked residue from the 3.0 rewrite. for the netbeans platform applications, you should have an assembly project with nbm-application packaging and should be able to run mvn clean install nbm:run-platform nbm:run-ide is a sub-optimal way of running a one more more netbeans module within the existing IDE/platform installation. The preferred way to use the nbm-packaging project in conjunction with run:platform which assembles the complete application from maven repository(ies) Milos PS: please file an issue at http://jira.codehaus.org/browse/MNBMODULE, so that the message you encountered is cleaned up. On Wed, Jun 10, 2009 at 11:08 AM, Sik, Winston winston@my.experian.comwrote: Hi, I'm building NetBeans Platform and Module using Maven. When I ran the following on the command line: *mvn nbm:cluster nbm:run-ide* I get the following information: *Since 2.7, the nbm:nbm goal is not part of the lifecycle. **... Please execute 'mvn install nbm:directory nbm:cluster' to get the same results as in earlier versions.* ** http://www.experian.com/ *Winston Sik * Senior Java Developer | Experian Decision Analytics | Malaysia DL: +603 8321 5660 | GL: +603 8321 5600 | Fax: +603 8321 5698 | E-mail: winston@my.experian.com
Re: Adding org.apache.log4j.logger to a Java project
Not sure I completely nderstand, buyt the hint that appears in Netbeans editor is searching the nexus repository index of the central repository and any other repository defined in the IDE. Milos On Wed, Apr 22, 2009 at 12:20 PM, JaimeCarmonaLoeches jaimecarmonaloec...@gmail.com wrote: Good Morning, I want to add org.apache.log4j.logger to a Java Netbeans Project, using the codehaus plugin. In the line: private static final Logger LOG = Logger.getLogger(DivisionUtil.class); I use the right button, and select the option: Search Dependency at Maven Repository for Loggers, and it appears a lot of actions, not the one I am looking for. I have two answers: 1) Where is the file where specifies where is maven looking for? 2) How can I solve this problem? Thanks in advance, Jaime. -- View this message in context: http://www.nabble.com/Adding-org.apache.log4j.logger-to-a-Java-project-tp23173514p23173514.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dependency on local web project war (netbeans)
On Tue, Apr 21, 2009 at 4:23 PM, Siegfried Goeschl siegfried.goes...@it20one.at wrote: Hi Pieter, you could use a project layout like this +--project +--shared +--client +--server A few quick remarks +) the server part should not depend on the client or the other way round - therefore a common subproject +) sharing in Maven speak means installing the shared component library into the local repository and reference it from the dependent project +) with a little bit of tinkering you can also upload the sources into your local repository Cheers, Siegfried Goeschl PS: Not sure if NetBeans is a good choice considering that Oracle buys Sun that's FUD. If you use maven, you can use any IDE out there. and netbeans is unlikely to disappear from one hour to the next. Even now there are people still using 5.5 which came out 2+ years ago.. Milos pieter claassen wrote: I am trying to move to netbeans for dev so it is a good question whether I need the source or just the compiled code. Not finding the symbols I assume is a failure to access the .class files? Or does netbeans need access to the source? How do I share the project between the client and the server? You mean unify them into 1 project? I am a bit stumped here because I imagine that this is such a normal requirement. People write project that import classes from other local projects all the time. The problem is just how to do this with maven? Thanks for the feedback. P On Mon, Apr 20, 2009 at 6:58 PM, Siegfried Goeschl siegfried.goes...@it20one.at wrote: Hi Pieter, you would like to use transitive dependencies using a WAR - this did not work in the past and I doubt that it works now. Having said that I would help if you have shared project between client and server. And do really need the source or only the class files?! If yes that approach would not work either ... Cheers, Siegfried Goeschl pieter claassen wrote: ok, I have narrowed the problem down as probably a maven issue. I have parent.pom and two modules client and server. Client is a war and server is a jar. server needs to get hold of client's source because db4o needs the source for both the client and server (to configure it for each java.class it will store). I have the following dep in server.pom dependency groupIdcom.musmato/groupId artifactIdclient.war/artifactId version1.0/version typewar/type scopecompile/scope /dependency But when I run mvn clean install on the parent, I can see it build the client.war, pop it in the local mvn repo and then the server build fails to find any of the depedency code. Any ideas? Should this work? I assume it is pretty normal to share code between different maven projects?? Even if one of them is a war? Cheers, P On Mon, Apr 20, 2009 at 2:55 PM, pieter claassen pie...@claassen.co.uk wrote: I have a netbeans project that requires to access sourcecode and compiled code from a web project. If I set the dependency on the war file, it just doesn't work (it works on a jar file). How do I access code produced by a war project in netbeans? Regards, Pieter - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: JavaFX Support - Discussion
I have created one, let see what happens. Feel free to vote for it and/or watch it. http://javafx-jira.kenai.com/browse/JFXC-3041 Milos On Wed, Apr 8, 2009 at 8:15 AM, Andrew Hughes ahhug...@gmail.com wrote: On the JavaFX side... http://javafx-jira.kenai.com/secure/Dashboard.jspa there's no mention of maven support. There are a few on the Maven's Jira, but certainly nothing substantial... there's definately limited support out there and certainly none on the Sun radar. Although this is difficult I would still like to try.
Re: JavaFX Support - Discussion
do you konw if there are any issues filed against javafx development tools with regard to maven support? Milos On Wed, Apr 8, 2009 at 7:09 AM, Andrew Hughes ahhug...@gmail.com wrote: Hi All, I'll openly admit that I'm stumped with the best way to implement support for JavaFX in maven. However all existing support seems to be quite old ~13months (i.e. not based on the latest final releases of javafx, or a little heavy to work with). In the hope of putting a few things on the table perhaps I can get some of the brains trust to help me get a start. JavaFX ship's with an ant taskdef for compilation only (does not include javafxdoc). I have managed to get this to work without the installation of an instance of JavaFX installed by keeping a local copy of the jar's in the ant project. Maven could do just the same (although installing all these jar's in the maven repo could be a problem (might be cause for an install:javafx goal to be created). Beyond getting all the required jar's for the classpath, there's also the issue of the compilation itself from a maven plugin. Could we just embed an ant task runner? do we use and exec wrapper? should we attempt to directly interface like the (closed sourced) task def does? I'm not sure what the best solution is here, especially when you want to take into consideration consistency between developers and the JavaFX SDK version. Really keen to get this going!
[ANNOUNCEMENT] - NBM Maven Plugin 3.0 released
I'm proud to announce new release of nbm-maven-plugin. The plugin helps with creation and building of NetBeans module projects and NetBeans platform based applications. = New in this release = o Support for full lifecycle of the NetBeans platform based applications. o Improved runtime dependency generation, now transitive with class usage checks. o Better repository content generation for NetBeans.org artifacts, now located at http://bits.netbeans.org/maven2 Please note that the 3.0 version is not compatible with previous 2.6.x releases or 2.7 alphas. Please read the upgrade notes at http://mojo.codehaus.org/nbm-maven-plugin/2630upgrade.html Complete list of issues fixed: http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truepid=11293fixfor=14603 There are new archetypes released that work with this version of nbm-maven-plugin: org.codehaus.mojo.archetypes:nbm-archetype:1.1 org.codehaus.mojo.archetypes:netbeans-platform-application-archetype:1.1 Best Regards Milos Kleint - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Uneditable parameter: filters upgrading to 2.1-SNAPSHOT
use netbeans 6.5 and use the command line execution within netbeans. The embedded builds are broken on many levels and since 6.5 they are only used as backup if no maven binaries are found on your PATH. Milos On Thu, Feb 12, 2009 at 10:50 AM, Madeye m...@madeye.com wrote: I have a Maven project (pom.xml below) that builds fine from the command line using Maven 2.0.9. However, when I try to build it with Maven 2.1-SNAPSHOT from Netbeans 6.1 using I get an error. The problem seems to centre around the way I have configured filtering, which is http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html as per the docs . Googling the error didn't return much useful information. Any tips or pointers gratefully accepted. Error: [ERROR]The following mojo parameter cannot be configured: [ERROR]Uneditable parameter: [ERROR]Name: filters [ERROR]Alias: null [ERROR]in mojo: [ERROR]Group-Id: org.apache.maven.plugins [ERROR]Artifact-Id: maven-assembly-plugin [ERROR]Version: 2.2-beta-1 [ERROR]Mojo: single [ERROR]brought in via: POM [ERROR]While building project: [ERROR]Group-Id: com.somecompany.product.final.generic [ERROR]Artifact-Id: generic [ERROR]Version: 3.1.0.3-SNAPSHOT [ERROR]From file: /home/matt/development/someproduct/maven/someproduct-unified/someproduct-final/generic/pom.xml [ERROR]Instead of configuring this parameter directly, try configuring your POM or settings.xml file. [ERROR]Using the default-value and expression annotations built into the mojo itself, these values were found in your build: [ERROR]Value: null [ERROR]Using the expression:null [ERROR]Value: null [ERROR]Using the expression:null [ERROR]If one of the above expressions rendered a valid value, it may give some indication of which part of the POM or settings.xml you can modify in order to change this parameter's value. pom.xml: lt;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.xsdgt; lt;modelVersiongt;4.0.0lt;/modelVersiongt; lt;groupIdgt;com.somecompany.product.final.genericlt;/groupIdgt; lt;artifactIdgt;genericlt;/artifactIdgt; lt;packaginggt;pomlt;/packaginggt; lt;namegt;Generic Final Buildlt;/namegt; lt;urlgt;http://www.somecompany.comlt;/urlgt; lt;parentgt; lt;groupIdgt;com.somecompany.product.finallt;/groupIdgt; lt;artifactIdgt;someproduct-finallt;/artifactIdgt; lt;versiongt;3.1.0.3-SNAPSHOTlt;/versiongt; lt;/parentgt; lt;dependenciesgt; lt;dependencygt; lt;artifactIdgt;someproduct-weblt;/artifactIdgt; lt;groupIdgt;com.somecompany.productlt;/groupIdgt; lt;typegt;warlt;/typegt; lt;versiongt;3.1.0.3-SNAPSHOTlt;/versiongt; lt;/dependencygt; lt;dependencygt; lt;artifactIdgt;blacklt;/artifactIdgt; lt;groupIdgt;com.somecompany.product.guilt;/groupIdgt; lt;versiongt;3.1.0.3-SNAPSHOTlt;/versiongt; lt;typegt;ziplt;/typegt; lt;classifiergt;guilt;/classifiergt; lt;/dependencygt; lt;dependencygt; lt;artifactIdgt;genericlt;/artifactIdgt; lt;groupIdgt;com.somecompany.product.customerlt;/groupIdgt; lt;versiongt;3.1.0.3-SNAPSHOTlt;/versiongt; lt;typegt;ziplt;/typegt; lt;classifiergt;customerlt;/classifiergt; lt;/dependencygt; lt;/dependenciesgt; lt;buildgt; lt;pluginsgt; lt;plugingt; lt;artifactIdgt;maven-assembly-pluginlt;/artifactIdgt; lt;configurationgt; lt;filtersgt; lt;filtergt;${basedir}/config.propertieslt;/filtergt; lt;/filtersgt; lt;descriptorRefsgt; lt;descriptorRefgt;finallt;/descriptorRefgt; lt;/descriptorRefsgt; lt;/configurationgt; lt;dependenciesgt; lt;dependencygt; lt;groupIdgt;com.somecompany.mavenlt;/groupIdgt; lt;artifactIdgt;someproduct-assemblieslt;/artifactIdgt; lt;versiongt;3.1.0.2-SNAPSHOTlt;/versiongt; lt;/dependencygt; lt;/dependenciesgt; lt;executionsgt; lt;executiongt; lt;idgt;assemblelt;/idgt; lt;phasegt;packagelt;/phasegt; lt;goalsgt; lt;goalgt;singlelt;/goalgt; lt;/goalsgt; lt;/executiongt; lt;/executionsgt; lt;/plugingt; lt;/pluginsgt; lt;/buildgt; lt;/projectgt; -- View this message in context: http://www.nabble.com/Uneditable-parameter%3A-filters-upgrading-to-2.1-SNAPSHOT-tp21972856p21972856.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing my Maven repository
when you think of local repository, think of it as a cache of various remote repositories only. you should probably install a repository manager and start uploading artifacts there that are necessary for your projects. In the way that the repository manager supports.. not sure what that is exactly, I've always got away with existing public repositories. Milos HHB wrote: I want to copy/upload/transfer (not sure what is right) my local Maven repository to our Continuous Integration server (Hudson). Not sure what is the best practice for this? Do I have to use a tool like Apache Archiva? Sorry, I'm new to Maven Thanks again. Baptiste MATHUS-4 wrote: Well, yes you could copy it to other development machine. But it's not the best way to do it. You should install and configure a maven repository manager (See http://maven.apache.org/repository-management.html). Some of those tools have even the ability to scan a local repository like the one you have to transform it (i.e. add the right metadata) to make it a remote repository. Cheers. 2009/1/26 HHB hubaghd...@yahoo.ca Hey, My laptop is loaded with a respectful local Maven repository, is it possible to share it with my friends? I mean does copy and past the folder serve the purpose? Thanks. -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: debugging netbeans modules configured as maven projects
I'm not really clear on your setup. is the 3rd party platform app in your repository, or you only have the installation somewhere? if you have the 3.0-SNAPSHOT version of the plugin, the the only meaningful project to start debugging is the one with nbm-application packaging, using the http://codehaus.org/~mkleint/run-platform-mojo.html goal. an obvious fallback solution is to start the 3rd party application with our modules from command line (with the correct debugging params) and then Attach Debugger.. from the IDE. Milos Nathan Rice wrote: The version of the plug-in I have was built on 11/10/08. I am trying to debug modules that plug into a 3rd party platform application. I specified the netbeans.installation parameter, however I was unsure of what to use for the clusterbuilddir and userbuilddir parameters, so I did not specify them. I had issues with the maven actions dialogue in the project properties stripping quotation marks and removing backslashes if not enclosed in quotes or escaped as well. When properly formed, with only the netbeans.installation parameter for the run-ide action, I get the following error: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:770) at java.lang.StringBuffer.deleteCharAt(StringBuffer.java:382) at org.codehaus.mojo.nbm.RunNetBeansMojo.execute(RunNetBeansMojo.java:118) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) Is this related to the fact that several parameters that were specified as required but were listed as having a default value were not passed? Nathan On Tue, Jan 20, 2009 at 12:05 PM, Milos Kleint mkle...@gmail.com wrote: what version of the nbm-maven-plugin are you using? there's nbm:run-ide goal that should allow debugging as well. http://mojo.codehaus.org/nbm-maven-plugin/run-ide-mojo.html Milos On Tue, Jan 20, 2009 at 7:49 PM, Nathan Rice exnihiloadnih...@gmail.com wrote: Hello, I would like to debug a maven netbeans module which plugs into a custom platform application. Can someone provide the action configuration to accomplish this? Nathan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: debugging netbeans modules configured as maven projects
what version of the nbm-maven-plugin are you using? there's nbm:run-ide goal that should allow debugging as well. http://mojo.codehaus.org/nbm-maven-plugin/run-ide-mojo.html Milos On Tue, Jan 20, 2009 at 7:49 PM, Nathan Rice exnihiloadnih...@gmail.com wrote: Hello, I would like to debug a maven netbeans module which plugs into a custom platform application. Can someone provide the action configuration to accomplish this? Nathan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: jaxws-maven-plugin : Failed to execute wsgen
Not sure about eclipse, but the netbeans issue could be caused by the fact that the default build execution means in 6.1 was internal embedded maven. You had to explicitly mark that you want the project (or all projects) build with external maven. the embedded maven used is not 100% compatible with the 2.0.9 bits and many plugins don't cope with embedded builds well. Therefore in netbeans 6.5, we strive to find the default command line maven and use it if found on PATH. That shall reduce the likelihood of using the embedded maven for building (still used for project loading in the IDE) Regards Milos On Tue, Nov 18, 2008 at 10:34 AM, bakann [EMAIL PROTECTED] wrote: I have got the same problem when trying to execute wsgen from Netbeans 6.1 with maven. Here is the stack trace from maven : [jaxws:wsgen] [ERROR]The following mojo encountered an error while executing: [ERROR]Group-Id: org.codehaus.mojo [ERROR]Artifact-Id: jaxws-maven-plugin [ERROR]Version: 1.10 [ERROR]Mojo: wsgen [ERROR]brought in via: POM [ERROR]While building project: [ERROR]Group-Id: com.example.maven.jaxws [ERROR]Artifact-Id: helloservice [ERROR]Version: 1.0-SNAPSHOT [ERROR]From file: D:\...\jaxws-maven-sample\helloservice\pom.xml [ERROR]Reason: Failed to execute wsgen I was doing the tutorial from http://java.sun.com/mailers/techtips/enterprise/2008/TechTips_Jan08.html Using JAX-WS with Maven thomas2004 wrote: Hi all, I use Eclipse 3.4 and has maven2 plugin installed. As I run mvn package in Eclipse with following pom.xml, I got following error: [ERROR] The following mojo encountered an error while executing: Group-Id: org.codehaus.mojo Artifact-Id: jaxws-maven-plugin Version: 1.10 Mojo: wsgen brought in via: POM While building project: Group-Id: com.test.jax.ws Artifact-Id: TestJaxWs Version: 1.0-SNAPSHOT From file: C:\Project\TestJaxWs\pom.xml Reason: Failed to execute wsgen But as I run in cmd-console, it is successful. Why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: toolchains in maven 2.1
Hello, please see http://www.netbeans.org/issues/show_bug.cgi?id=104974 for the current workaround in netbeans. please note that the future 7.0 release will include UI to set the JDK platform for the project (or set of projects) Regards Milos On Tue, Oct 7, 2008 at 9:33 PM, Michal Hlavac [EMAIL PROTECTED] wrote: Hello, is this feature planned to be fixed in version 2.1? In my opinion Netbeans really needs to choose JDK platform for maven project... http://jira.codehaus.org/browse/MNG-468 thanks, m. -- [ michal hlavac ][ [EMAIL PROTECTED] ][ http://www.hlavki.eu ] [ icq:94900232 ][ [EMAIL PROTECTED] ][ callto://hlavki ] - 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 plugin for netbeans
what version did you actually install. It should be 3.1.4 (or 3.1.5) in 6.1 and 4.0.x in netbeans 6.5 The error message you mention suggests you could have installed 3.0.x version or even older. Milos On Fri, Oct 31, 2008 at 3:22 PM, hordine [EMAIL PROTECTED] wrote: Hi everyone, I tried installing the maven plugin but got an error saying that the server could be unavailable. So I downloaded the plugin from http://mevenide.codehaus.org/m2-site/mevenide2-netbeans/installation.html and tried installing them from the downloaded plugins tab, and this time I got this error: Missing required modules for Plugin Mevenide Netbeans project support: Project UI API [module org.netbeans.modules.projectuiapi/0 1.0] I'm using netbeans 6.1 by the way. could anyone help please? -- View this message in context: http://www.nabble.com/Maven-plugin-for-netbeans-tp20266952p20266952.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: Netbeans plugin: how to configure repository location?
the Tools/Options shall have a panel where you can set the local repository. That will write in your ~/.m2/settings.xml file the appropriate settings entry.. Milos On Mon, Oct 20, 2008 at 5:33 PM, Dmitry S. Kravchenko [EMAIL PROTECTED] wrote: Hi! I'm a Maven newbie. I found a way to configure repository location in standalone version of Maven. Is it a way to do the same with Maven plugin for Netbeans? It is still placing repository in .m2 folder within %HOME%. Thanks. Dims. - 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: Re[2]: Netbeans plugin: how to configure repository location?
Under miscelaneous is maven. Alternatively you can edit the settings.xml file manually. Milos On Mon, Oct 20, 2008 at 6:18 PM, Dmitry S. Kravchenko [EMAIL PROTECTED] wrote: Hi, Milos! I can't locate it. Tools/Options has the common buttons at the top: General, Editor, Java Code, Fonts Colors, Keymap, C/C++, Miscelaneous. the Tools/Options shall have a panel where you can set the local repository. That will write in your ~/.m2/settings.xml file the appropriate settings entry.. I found a way to configure repository location in standalone version of Maven. Is it a way to do the same with Maven plugin for Netbeans? It is still placing repository in .m2 folder within %HOME%. Dims. - 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: Issue with netbeans and maven2
hmmm.. too bad. I suppose it's either something with different local metadata in .m2/repository or the binaries for maven module were not exactly the same. (or both) Milos On Mon, Oct 13, 2008 at 2:21 PM, Julien Stern [EMAIL PROTECTED] wrote: Milos, when trying to reproduce the issue with a basic project, I created a new user account and reinstalled _everything_ from scratch (netbeans, maven-integration, and also I did not start with any value in the ${HOME}/.netbeans*, nor any value in the ${HOME}/.m2/, and ... it worked... Considering I can still reproduce the issue by reinstalling everything (NB + maven-integration) but keeping old ${HOME}/.netbeans* and old ${HOME}/.m2, I assume there is some kind of weird issue related to old settings or a bogus repo. I've looked around a bit, but unfortunately was unable to pinpoint the reason for failure. At any rate, it now works. Thank you very much for your kind support. Best regards, -- Julien Milos Kleint wrote: I assume your plugin is not in central repository. I recall there is/was an issue with extensions beling looked for in wrong repository (typically just repo1) instead of the declared ones. But that all shall start working once you've built the project once, so I assume it's not your case. If you can reproduce on a sample project setup, please file it as bug, I'll look into it. There must be something special about your setup as I've been developing the maven support itself using nbm-maven-plugin which defines artifact handler + lifecycle. I had the version declared in the parent pom's pluginManagement section and used in child modules (with additional configuration or without). Which sounds exactly like what you have except that these projects can be opened without problems. Milos On Fri, Oct 10, 2008 at 6:01 PM, Julien Stern [EMAIL PROTECTED] wrote: Milos, we use ONLY explicits versions in ALL poms. We want reproducible builds at all times ;) We do use dependencyManagement and pluginManagement a lot though. Specifically, the simplest project that fails is like this: - We have the top-level pom and the actual project pom. - The plugin that causes the problem in the project pom has one configuration section and the extensionstrue/extensions that triggers the issue (see previous mail below). - The parent pom only defines the version of this plugin in its pluginManagement section Note that the plugin defines a new type of artifact (with a new ArtifactHandler) and a new LifecycleMapping (this is why we need extensions to be true actually). -- Julien Milos Kleint wrote: do you explicitly declare a version or you stick with RELEASE, LATEST or not defined? The workaround mentioned in the issues suggests to put explicit versions there. If your's is different, it's probably not a duplicate but something related only. It might also be important where the plugin is defined.. is it in the project's pom, it's parent, it's parent parent? is it defined in pluginManagement section in one of the parents? Milos On Fri, Oct 10, 2008 at 5:09 PM, Julien Stern [EMAIL PROTECTED] wrote: Milos, oh well, we just tested with the daily NB snapshot and maven-integration 4.0.5. We still have the same issue. The crux of the issue is really the extensionstrue/extensions within a plugin configuration e.g.: build plugins plugin groupIdour.group.id/groupId artifactIdour.artifact.id/artifactId configuration our config here... /configuration extensionstrue/extensions /plugin /plugins /build - if we _remove_ the line extensionstrue/extensions, it's fine - if we put extensionsfalse/extensions, it's fine So, it is not a syntax error, but really a error condition triggered when the value of extensions is set to true. Regards, -- Julien Milos Kleint wrote: what version of maven support in netbeans you have? I suggest you try the 6.5 development builds (we're close to RC1, so the stability is pretty good), and instal the 4.0.x version of maven support from the update center. I recall I've done some fixes in this area, but still usecases still fails. Primarily an issue with the maven embedder being used in netbeans. http://www.netbeans.org/issues/show_bug.cgi?id=135043 could be relevant. http://www.netbeans.org/issues/show_bug.cgi?id=143185 If you issue is different, please file it in netbeans.org issuezilla, preferably with a sample project or at least the relevant plugin configuration. Regards Milos On Fri, Oct 10, 2008 at 12:46 PM, Julien Stern [EMAIL PROTECTED] wrote: Hi list, I hope this is the right place to query about this issue. We have a Maven2 project that is displayed as Badly formed maven project (unknown). After a (lot) of trial and errors, we manage to locate the source of the problem. We have one plugin (homemade) that uses extensionstrue/extensions. If we comment this line
Re: Issue with netbeans and maven2
what version of maven support in netbeans you have? I suggest you try the 6.5 development builds (we're close to RC1, so the stability is pretty good), and instal the 4.0.x version of maven support from the update center. I recall I've done some fixes in this area, but still usecases still fails. Primarily an issue with the maven embedder being used in netbeans. http://www.netbeans.org/issues/show_bug.cgi?id=135043 could be relevant. http://www.netbeans.org/issues/show_bug.cgi?id=143185 If you issue is different, please file it in netbeans.org issuezilla, preferably with a sample project or at least the relevant plugin configuration. Regards Milos On Fri, Oct 10, 2008 at 12:46 PM, Julien Stern [EMAIL PROTECTED] wrote: Hi list, I hope this is the right place to query about this issue. We have a Maven2 project that is displayed as Badly formed maven project (unknown). After a (lot) of trial and errors, we manage to locate the source of the problem. We have one plugin (homemade) that uses extensionstrue/extensions. If we comment this line, netbeans is happy (but we cannot compile any more). If we keep this line, we have the above error. Would anyone have an idea on what the issue could be? (And how to solve it?) Regards, -- Julien - 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: Issue with netbeans and maven2
do you explicitly declare a version or you stick with RELEASE, LATEST or not defined? The workaround mentioned in the issues suggests to put explicit versions there. If your's is different, it's probably not a duplicate but something related only. It might also be important where the plugin is defined.. is it in the project's pom, it's parent, it's parent parent? is it defined in pluginManagement section in one of the parents? Milos On Fri, Oct 10, 2008 at 5:09 PM, Julien Stern [EMAIL PROTECTED] wrote: Milos, oh well, we just tested with the daily NB snapshot and maven-integration 4.0.5. We still have the same issue. The crux of the issue is really the extensionstrue/extensions within a plugin configuration e.g.: build plugins plugin groupIdour.group.id/groupId artifactIdour.artifact.id/artifactId configuration our config here... /configuration extensionstrue/extensions /plugin /plugins /build - if we _remove_ the line extensionstrue/extensions, it's fine - if we put extensionsfalse/extensions, it's fine So, it is not a syntax error, but really a error condition triggered when the value of extensions is set to true. Regards, -- Julien Milos Kleint wrote: what version of maven support in netbeans you have? I suggest you try the 6.5 development builds (we're close to RC1, so the stability is pretty good), and instal the 4.0.x version of maven support from the update center. I recall I've done some fixes in this area, but still usecases still fails. Primarily an issue with the maven embedder being used in netbeans. http://www.netbeans.org/issues/show_bug.cgi?id=135043 could be relevant. http://www.netbeans.org/issues/show_bug.cgi?id=143185 If you issue is different, please file it in netbeans.org issuezilla, preferably with a sample project or at least the relevant plugin configuration. Regards Milos On Fri, Oct 10, 2008 at 12:46 PM, Julien Stern [EMAIL PROTECTED] wrote: Hi list, I hope this is the right place to query about this issue. We have a Maven2 project that is displayed as Badly formed maven project (unknown). After a (lot) of trial and errors, we manage to locate the source of the problem. We have one plugin (homemade) that uses extensionstrue/extensions. If we comment this line, netbeans is happy (but we cannot compile any more). If we keep this line, we have the above error. Would anyone have an idea on what the issue could be? (And how to solve it?) Regards, -- Julien - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issue with netbeans and maven2
I assume your plugin is not in central repository. I recall there is/was an issue with extensions beling looked for in wrong repository (typically just repo1) instead of the declared ones. But that all shall start working once you've built the project once, so I assume it's not your case. If you can reproduce on a sample project setup, please file it as bug, I'll look into it. There must be something special about your setup as I've been developing the maven support itself using nbm-maven-plugin which defines artifact handler + lifecycle. I had the version declared in the parent pom's pluginManagement section and used in child modules (with additional configuration or without). Which sounds exactly like what you have except that these projects can be opened without problems. Milos On Fri, Oct 10, 2008 at 6:01 PM, Julien Stern [EMAIL PROTECTED] wrote: Milos, we use ONLY explicits versions in ALL poms. We want reproducible builds at all times ;) We do use dependencyManagement and pluginManagement a lot though. Specifically, the simplest project that fails is like this: - We have the top-level pom and the actual project pom. - The plugin that causes the problem in the project pom has one configuration section and the extensionstrue/extensions that triggers the issue (see previous mail below). - The parent pom only defines the version of this plugin in its pluginManagement section Note that the plugin defines a new type of artifact (with a new ArtifactHandler) and a new LifecycleMapping (this is why we need extensions to be true actually). -- Julien Milos Kleint wrote: do you explicitly declare a version or you stick with RELEASE, LATEST or not defined? The workaround mentioned in the issues suggests to put explicit versions there. If your's is different, it's probably not a duplicate but something related only. It might also be important where the plugin is defined.. is it in the project's pom, it's parent, it's parent parent? is it defined in pluginManagement section in one of the parents? Milos On Fri, Oct 10, 2008 at 5:09 PM, Julien Stern [EMAIL PROTECTED] wrote: Milos, oh well, we just tested with the daily NB snapshot and maven-integration 4.0.5. We still have the same issue. The crux of the issue is really the extensionstrue/extensions within a plugin configuration e.g.: build plugins plugin groupIdour.group.id/groupId artifactIdour.artifact.id/artifactId configuration our config here... /configuration extensionstrue/extensions /plugin /plugins /build - if we _remove_ the line extensionstrue/extensions, it's fine - if we put extensionsfalse/extensions, it's fine So, it is not a syntax error, but really a error condition triggered when the value of extensions is set to true. Regards, -- Julien Milos Kleint wrote: what version of maven support in netbeans you have? I suggest you try the 6.5 development builds (we're close to RC1, so the stability is pretty good), and instal the 4.0.x version of maven support from the update center. I recall I've done some fixes in this area, but still usecases still fails. Primarily an issue with the maven embedder being used in netbeans. http://www.netbeans.org/issues/show_bug.cgi?id=135043 could be relevant. http://www.netbeans.org/issues/show_bug.cgi?id=143185 If you issue is different, please file it in netbeans.org issuezilla, preferably with a sample project or at least the relevant plugin configuration. Regards Milos On Fri, Oct 10, 2008 at 12:46 PM, Julien Stern [EMAIL PROTECTED] wrote: Hi list, I hope this is the right place to query about this issue. We have a Maven2 project that is displayed as Badly formed maven project (unknown). After a (lot) of trial and errors, we manage to locate the source of the problem. We have one plugin (homemade) that uses extensionstrue/extensions. If we comment this line, netbeans is happy (but we cannot compile any more). If we keep this line, we have the above error. Would anyone have an idea on what the issue could be? (And how to solve it?) Regards, -- Julien - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: YUICompressor plugin going ape
additionally I would try running the build with command line maven (is settable in project's properties) In fact the command line maven execution will be default in netbeans 6.5 as the embedded build is encountering many problems. Incompatibility with the latest released bits, bugs, not having plugins ready for embedded use. Milos On Thu, Sep 11, 2008 at 6:56 PM, nicolas de loof [EMAIL PROTECTED] wrote: This plugin is not part of standard maven plugins. Please report your issue to alchim.sf.net 2008/9/11 John Coleman [EMAIL PROTECTED] Hi, The YUICompressor plugin gives the dump below. Anyone have any ideas why this should suddenly go wrong? We already tried to get a fresh update from the central repo. Is this maybe a mvn version issue given that it is a core mvn plugin class missing? TIA, John Using default encoding to copy filtered resources. [yuicompressor:compress] [FATAL]net.sf.alchim.mojo.yuicompressor.YuiCompressorMojo#execute() caused a linkage error (java.lang.NoClassDefFoundError). Check the realms: [FATAL]NOTE: [FATAL]Plugin realm is: /plugins/net.sf.alchim:yuicompressor-maven-plugin:[EMAIL PROTECTED]/thread:exec_B uild eTraderII_17 [FATAL]Container realm is: plexus.core [FATAL]Realm ID: /plugins/net.sf.alchim:yuicompressor-maven-plugin:[EMAIL PROTECTED]/thread:exec_B uild eTraderII_17 [FATAL]urls[0] = file:/C:/Documents%20and%20Settings/user/.m2/repository/net/sf/alchim/yu icompressor-maven-plugin/0.6.3/yuicompressor-maven-plugin-0.6.3.jar [FATAL]urls[1] = file:/C:/Documents%20and%20Settings/user/.m2/repository/rhino/js/1.6R7/j s-1.6R7.jar [FATAL]urls[2] = file:/C:/Documents%20and%20Settings/user/.m2/repository/net/sf/retrotran slator/retrotranslator-runtime/1.2.1/retrotranslator-runtime-1.2.1.jar [FATAL]urls[3] = file:/C:/Documents%20and%20Settings/user/.m2/repository/backport-util-co ncurrent/backport-util-concurrent/3.0/backport-util-concurrent-3.0.jar [FATAL]Realm ID: plexus.core [FATAL]urls[0] = file:/C:/Documents%20and%20Settings/user/.netbeans/6.1/maven2/rootpackag e/ java.lang.NoClassDefFoundError: org/codehaus/plexus/util/DirectoryScanner at net.sf.alchim.mojo.yuicompressor.MojoSupport.processDir(MojoSupport.java :133) at net.sf.alchim.mojo.yuicompressor.MojoSupport.execute(MojoSupport.java:10 3) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:579) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentFo rProject(DefaultLifecycleExecutor.java:265) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:191) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:149) at org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute (MyLifecycleExecutor.java:72) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223) at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.ja va:304) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedde r.java:904) at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(Maven Embedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) at org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaEx ecutor.java:215) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151) Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan
Re: mvn --reactor option
on a related note, is there a way to give maven a list of project directories/poms and let it build the stuff together? Milos Brett Porter wrote: It finds all the POMs in the subdirectories and runs a reactor based on them. 2008/8/14 Dan Fabulich [EMAIL PROTECTED]: What does --reactor do on the mvn command line? The --help doc just says Execute goals for project found in the reactor which doesn't make much sense to me. -Dan - 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: mvn --reactor option
Cool, thanks. It assumes a common directory root, but better than nothing.. Milos On Thu, Aug 14, 2008 at 9:35 AM, Brett Porter [EMAIL PROTECTED] wrote: mvn -r -Dmaven.reactor.includes=maven-eclipse-plugin/pom.xml,maven-idea-plugin/pom.xml clean install (the default value of includes is **/pom.xml) Cheers, Brett 2008/8/14 Milos Kleint [EMAIL PROTECTED]: on a related note, is there a way to give maven a list of project directories/poms and let it build the stuff together? Milos Brett Porter wrote: It finds all the POMs in the subdirectories and runs a reactor based on them. 2008/8/14 Dan Fabulich [EMAIL PROTECTED]: What does --reactor do on the mvn command line? The --help doc just says Execute goals for project found in the reactor which doesn't make much sense to me. -Dan - 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] -- Brett Porter Blog: http://blogs.exist.com/bporter/ - 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: Replacement of WAR lifecycle
FYI in netbeans you can let the IDE know that your custom packaging is basically a 'war' http://mevenide.codehaus.org/m2-site/mevenide2-netbeans/customizations.html no UI, but possible to set. Milos On 6/24/08, Piotr Oktaba [EMAIL PROTECTED] wrote: Hi, I have following problem. I would like to write my own maven2 war plugin with my own lifecycle. Currently available maven-war-plugin does not fit my requirements. I have chosen war packaging instead of my own (for example portal) because I do not want to lose support from other tools (for example maven plugin for netbeans or maven-eclipse-plugin - the last one doesn't generate project if packaging is non standard). However, only way of replacement war lifecycle which I have found is commenting part of components.xml file in uberjar file in maven2 installation and provide my own component definition in plugin. Is there any more ellegant solution than commenting that file? Cheers, Piotr Oktaba - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tip about Skinny Wars
i'm wondering if the solution would render the war-path plugin obsolete? it's causing trouble in embedded use. http://issues.appfuse.org/browse/APF-645 Milos On 6/3/08, Arnaud HERITIER [EMAIL PROTECTED] wrote: Hi all, I would like to share with you a workaround I found for the problem of transitive dependencies in skinny wars. In the documentation it is said that : Now the painful part. Your EAR's pom.xml needs to list every dependency that the WAR has. This is because Maven assumes fat WARs and does not include transitive dependencies of WARs within the EAR. A workaround of this is to define for each war 2 dependencies. One for the war itself and another for the war's pom to retrieve transitive dependencies. With that you'll have something like that in your ear dependencies : dependencies dependency groupIdcom.acme/groupId artifactIdwar1/artifactId version1.0.0/version typewar/type /dependency dependency groupIdcom.acme/groupId artifactIdwar1/artifactId version1.0.0/version typepom/type /dependency /dependencies I'm using maven 2.0.9. I'll do more tests tomorrow and I'll update the doc : http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html Cheers arnaud - 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
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
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
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
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: Warnings and bugs
mojo is a maven plugin i think. The warning and messages are issued by maven embedder 2.1-SNAPSHOT as a sort of deprecation warnings (for 2.1) however they still should work fine. if not I would consider it a bug in maven. the netbeans integration needs to use the embedder version 2.1-SNAPSHOT as th 2.0.x versions are not embeddable. You can configure netbeans in tools/options to always use a command line maven instance for building Milos On 5/28/08, Peter Nabbefeld [EMAIL PROTECTED] wrote: Hello, I'm trying to use Maven with NetBeans, getting the following messages: Scanning for projects... project-execute Attempting to resolve a version for plugin: org.apache.maven.plugins:maven-project-info-reports-plugin using meta-version: LATEST Using version: 2.0.1 of plugin: org.apache.maven.plugins:maven-project-info-reports-plugin [statemgmt:start-fork] Starting forked execution [fork id: 779687168] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. Setting property: velocimacro.messages.on = 'false'. Setting property: resource.loader = 'classpath'. Setting property: resource.manager.logwhenfound = 'false'. [project-info-reports:cim] [ERROR]VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR]VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [project-info-reports:dependencies] [WARN]DEPRECATED: Binding aggregator mojos to lifecycle phases in the POM is considered dangerous. [WARN]This feature has been deprecated. Please adjust your POM files accordingly. [WARN]Offending mojo: [WARN]org.apache.maven.plugins:maven-project-info-reports-plugin:2.0.1:depen dency-convergence Seems to me, some of the plugins are not working correctly - what can I do with it? Do I have to change my POM, or should I just ignore the messages? The ERROR messages seem to be issued by 'cim' - can I replace the plugin with sth. bette? BTW: I'm not a native english speaker, so could You probably explain me, what's a 'mojo' in this case? The translation says it's sth. like 'talisman', but in this case it seems to mean rather the opposite ;-) Kind regards Peter Nabbefeld - 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: NetBeans6.0 mavenide plugin 3.1.1
On 5/21/08, John Coleman [EMAIL PROTECTED] wrote: Hi, One of our developers just reinstalled Netbeans6.0 and as a consequence pickud up the latest Maven plugin 3.1.1. Now his builds don't work because the active profile set in his settings.xml is ignored in preference to the active profile in the profiles.xml. Previously the settings in settings.xml always took priority. you mean the settings.xml profiles are not active when loading the project or when building? that would be a bug. However I'm not sure what the comments about priorities mean, I would assume both locations would be checked and their active profiles activated. So what has changed, and how do we rectify this problem? the major change was an upgrade of the maven embedder (which solved a bunch of issues, but created a pile of it's own) best steps to proceed would be to file a bug report against mevenide and provide a sample project demonstrating the problem. Milos TIA, John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - 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: NetBeans6.0 mavenide plugin 3.1.1
On 5/21/08, John Coleman [EMAIL PROTECTED] wrote: Hi Milos, In profiles.xml we have an active profile called DEVTST that has a property buildNumber.check as true, but in settings.xml we have activate a profile called MYPROFILE that has buildNumber.check false. We do this so that the buildnumber plugin doesn't check for developers, but does in continuum. I'm not sure if something changed here, but it would be in maven itself, not the maven integration in netbeans. However I'd say your setup is somewhat non-standard in a way. I've always assumed profiles.xml files are private in a sense they don't get commited to svn. With that in mind it seems natural to me that the global private settings in settings.xml are overriden by project specific settings from profiles.xml. I'd say if you want to have continuum to build it with checks on, that should be the default in the sense it's in a profile that is activated by default or is not in the profile at all, but in pom.xml in non-profile section. then your settings.xml settings would kick in and skip the checks and continuum (or anyone else for that matter) would by default include the check in the process. It used to be the case that the property value in the settings.xml was applied, but now it seems the profiles.xml value takes precedence. I even used the new configuration dialog to activate the MYPROFILE, yet the property gets its value from DEVTST. I hope that is clear. We also seem to of found that a load of the artifacts in the repositories could not be accessed until the configuration dialog was used to choose a profile, even artifacts from previously reliable external repos don't get found? hmm.. that's strange. Not sure if it's a problem in maven, mevenide or your setup. if you have a sample application that documents the problem, please file an issue, i'll look into it. Milos Regards, John -Original Message- From: Milos Kleint [mailto:[EMAIL PROTECTED] Sent: 21 May 2008 10:02 To: Maven Users List Subject: Re: NetBeans6.0 mavenide plugin 3.1.1 On 5/21/08, John Coleman [EMAIL PROTECTED] wrote: Hi, One of our developers just reinstalled Netbeans6.0 and as a consequence pickud up the latest Maven plugin 3.1.1. Now his builds don't work because the active profile set in his settings.xml is ignored in preference to the active profile in the profiles.xml. Previously the settings in settings.xml always took priority. you mean the settings.xml profiles are not active when loading the project or when building? that would be a bug. However I'm not sure what the comments about priorities mean, I would assume both locations would be checked and their active profiles activated. So what has changed, and how do we rectify this problem? the major change was an upgrade of the maven embedder (which solved a bunch of issues, but created a pile of it's own) best steps to proceed would be to file a bug report against mevenide and provide a sample project demonstrating the problem. Milos TIA, John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Problem with exec mojo after update
in netbeans in project's properties dialog, go to the Actions panel and for run/debug project actions, correct the version of exec plugin to 1.1 Milos PS: an update to the maven support (version 3.1.2) wil be released in a week or two and will contain the new default value On 5/15/08, alex.g [EMAIL PROTECTED] wrote: Thanks for your prompt reply. NB says I have the latest version of mevenide and I don't know how to put another version, but what I did is that I reinstalled the jdk to a path without spaces and that worked for me. In retrospect, it's a simple fix that I should have thought of yesterday! alex Jerome Lacoste-2 wrote: On Wed, May 14, 2008 at 4:37 PM, alex.g [EMAIL PROTECTED] wrote: I am using netbeans ide 6.1 and this morning I upgraded my maven plugin to 3.1.1. version 3.1.1 doesn't exist. [...] [ERROR] The following mojo encountered an error while executing: Group-Id: org.codehaus.mojo Artifact-Id: exec-maven-plugin Version: 1.1-beta-1 Mojo: exec It looks like you are using 1.1-beta-1. Can you try version 1.1 (released earlier this week). There were some known issues with spaces already fixed since 1.1-beta-1. E.g. http://jira.codehaus.org/browse/MEXEC-44 Thanks, Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-exec-mojo-after-update-tp17232659p17247601.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]
[ANN] New version (3.1) of Maven support for NetBeans IDE
The Mevenide team is proud to present new version (3.1) of Maven support for NetBeans 6.0 and 6.1. This new major release includes: * Updated maven embedder binaries * Local and remote repository indexing, including browsing and searching your artifacts. * Web frameworks support * Profiles support (aka configurations) for project loading and executing * Improved pom xml editor features Check the project website [1] and article at NetBeans.org [2] for description of these and more features in detail. The easiest way to install the new version is to start up NetBeans and the use Plugins dialog to download and install the binaries from NetBeans Update Center. Enjoy. The Mevenide team [1] http://mevenide.codehaus.org/m2-site [2] http://wiki.netbeans.org/MavenBestPractices - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Netbeans Rich Client Platform
BTW The IDE maven integration will recognize your maven projects are of nbm packaging and will offer netbeans platform specific file templates and other goodies. in the 3.1 version (coming real soon) the netbeans module and netbeans platform app archetype are listed in the archetype list when you create new modules. Milos On Fri, May 2, 2008 at 1:52 PM, Johannes Schneider [EMAIL PROTECTED] wrote: Hey, that looks great. I'll take a closer look. Thanks, Johannes On Wed, 2008-04-30 at 22:19 +0200, Milos Kleint wrote: groupId: org.codehaus.mojo.archetypes, one for single module, one for a platform app skeleton. The currently released version will only guide you up to the point where you create a module cluster. The svn trunk has additional goals to create webstart app and a zip of platform applicatio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Netbeans Rich Client Platform
Well, I develop a bunch of modules for netbeans using maven. Not the same as platform app but similar, but I know companies which indeed develop platform apps. I've created and maintain the nbm-maven-plugin. http://mojo.codehaus.org/nbm-maven-plugin repository: http://deadlock.netbeans.org/maven2/ archetypeas are at groupId: org.codehaus.mojo.archetypes, one for single module, one for a platform app skeleton. The currently released version will only guide you up to the point where you create a module cluster. The svn trunk has additional goals to create webstart app and a zip of platform application. Milos On Wed, Apr 30, 2008 at 8:22 PM, Johannes Schneider [EMAIL PROTECTED] wrote: Hi, did anyone of you every try to develop a Netbeans Rich Client Platform application based on Maven? Are there any repositories where the Netbeans modules are contained in? Does anyone have a minimal pom / archetype? Regards, Johannes Schneider - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [POLL] Default Value for File Encoding
definitely a) I can't help myself I'm a backward compatibility guy. Just a note, both solution allow one to have a reproducible builds if one cares. Benjamin and Herve (and others) have done a great job on making sure that when you set the encoding for the project it gets applied consistently across plugins. However option b. can potentially break existing builds that relied on existing behaviour. Milos On Tue, Apr 29, 2008 at 1:37 PM, Jörg Schaible [EMAIL PROTECTED] wrote: Definitely b) Reproducable builds are an absolute requirement for a build tool. Benjamin Bentmann wrote: Dear community, the Maven team is currently discussing a proposal about the future handling of source file encoding by the various plugins, please see our wiki article [0] for all details. A controversial aspect of this proposal is which file encoding should be assumed in case the user did not specify this in the POM. This poll should help us to come to a well-founded decision. These are the two possible directions to go: a) Use the current platform encoding, aka the system property file.encoding. b) Use a static/fixed value that is defined by convention, i.e. is notplatform-dependent. Approach a) matches the current behavior of most plugins and is as such backwards-compatible. Approach b) on the other hand can potentially break builds when users update to a newer version of an affected plugin if: - the build relies on an encoding other than ASCII/Latin-1 and - this encoding is not explicitly stated in the plugin configuration The reason why b) was suggested is its positive effect on build reproducibility: Unlike approach a), a build will out-of-the-box deliver the same output for all team members regardless of their OS or locale. It is now to balance if this improvement is worth the potential breaks as illustrated above. So, please let us know: [a] Use platform default encoding, keep backward-compat [b] Use fixed default encoding, be platform-independent Regards, Benjamin Bentmann [0] http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Sou rce+File+Encoding - 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: continuous integration server
+1 on hudson netbeans.org is using it as well at http://deadlock.netbeans.org/hudson Milos On Sun, Apr 13, 2008 at 2:21 PM, Tom Huybrechts [EMAIL PROTECTED] wrote: Hudson, without a doubt. See https://hudson.dev.java.net/ or a live instance at http://hudson.jboss.org/hudson/ On Sun, Apr 13, 2008 at 1:36 PM, Peter Horlock [EMAIL PROTECTED] wrote: Hi, Which continuous integration server would you recommend me? Continuum? Or is there also a version by sonatype in the making?! :-) Thanks in advance, Peter - 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: Best practices for java version?
On Tue, Apr 1, 2008 at 1:54 AM, Dirk Olmes [EMAIL PROTECTED] wrote: Milos Kleint wrote: On Mon, Mar 31, 2008 at 2:57 AM, Dirk Olmes [EMAIL PROTECTED] wrote: Milos Kleint wrote: check the toolchains proposal that is supposed to address this issue. http://docs.codehaus.org/display/MAVEN/Toolchains The way the toolchain proposal chooses is somewhat doable with Maven right now: define a set of VM specific properties in each developers' settings.xml and use that in the config of the various plugins. toolchains also ensures that any plugin that understands toochains will ue them, thus instead of configuring compiler-plugin, surefire-plugin, javadoc-plugin etc. you just configure the toolchain. But I would still have to tell the plugins which jdk to use from the toolchain config, would I? you only tell the toolchains-plugin, the rest of the plugins grabs the active toolchain from build context. What I don't like about the appraoch is that one has to hand-maintain the properties/toolchain.xml still. If I update my JDK, I still have to remember updating the settings or the build will break. oh well, what do you mean by update my jdk? the default jdk you run stuff with on your computer? No, it's about the various JDKs that are needed to do the build. Example: you need JDK 1.4 and JDK 5 for building, that's currently jdk-1.4.2.17 and jdk-1.5.0.15 on my machine. I use both JDKs to build the software, only one at a time. That would mean including profile(s) with different toolchain-plugin configuration. I have to update the PATH, JAVA_HOME etc each time a JDK is updated (ok I'm on Gentoo so that's all done for my by the distro but for the sake of the discussion let's image I would be on windows). With the toolchain I don't only have to update my environment but also update the toolchain.xml and maybe even some more config locations e.g. netbeans' JDK config comes to mind. yes, you have to include the your build environment setup in the toolchains file, however you can avoid any updates with smart use of symlinks I guess. Have ~/javatools/jdk15 and ~/javatools/jdk14 symlinked to the latest and greatest stuff you have. The netbeans JDK config will by automatically synchronized with toolchains (actually that's why I actually wrote the toolchains, to have a way to figure what jdk is used in the project.) Milos -dirk - 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: Best practices for java version?
check the toolchains proposal that is supposed to address this issue. http://docs.codehaus.org/display/MAVEN/Toolchains Milos Kleint On Sun, Mar 30, 2008 at 7:58 PM, Wayne Fay [EMAIL PROTECTED] wrote: On 3/30/08, delbd [EMAIL PROTECTED] wrote: Yeah, that's what i thought. So we can consider that maven is missing one important thing in dependency management: the jvm dependency. I Check JIRA, and if its not already posted, file it. Perhaps it can be incorporated in 2.1. Or, perhaps there's already a way to do it that I haven't considered... Wayne - 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: Best practices for java version?
On Mon, Mar 31, 2008 at 2:57 AM, Dirk Olmes [EMAIL PROTECTED] wrote: Milos Kleint wrote: check the toolchains proposal that is supposed to address this issue. http://docs.codehaus.org/display/MAVEN/Toolchains The way the toolchain proposal chooses is somewhat doable with Maven right now: define a set of VM specific properties in each developers' settings.xml and use that in the config of the various plugins. toolchains also ensures that any plugin that understands toochains will ue them, thus instead of configuring compiler-plugin, surefire-plugin, javadoc-plugin etc. you just configure the toolchain. What I don't like about the appraoch is that one has to hand-maintain the properties/toolchain.xml still. If I update my JDK, I still have to remember updating the settings or the build will break. oh well, what do you mean by update my jdk? the default jdk you run stuff with on your computer? that's a scenario that works even now. If you don't configure anything in maven but make sure you run with the jdk you want, you're safe. The toolchains proposal tries to separate the jdk you run maven build with and the jdk that shall be used to build your project. That's essential in embedded environment for example. Milos The great benefit of the toolchain approach is that it provides a standard definition of the JDK and that could also abstract from some platform specific difficulties (rt.jar on linux/win vs classes.jar on Mac). Still, I don't like the way how I have to manually distribute the path to the current JDK into various config files. -dirk Milos Kleint On Sun, Mar 30, 2008 at 7:58 PM, Wayne Fay [EMAIL PROTECTED] wrote: On 3/30/08, delbd [EMAIL PROTECTED] wrote: Yeah, that's what i thought. So we can consider that maven is missing one important thing in dependency management: the jvm dependency. I Check JIRA, and if its not already posted, file it. Perhaps it can be incorporated in 2.1. Or, perhaps there's already a way to do it that I haven't considered... Wayne - 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: netbeans 6.0.1 + maven plugin in debian etch
You are referring to the maven support plugin in the IDE from default netbeans update center? does the new project wizard start a maven build or it shows no UI at all? I've never seen it before, feel free to file under jira.codehaus.org/browse/MEVENIDE with steps to reproduce, screenshots or anything else that helps reproducing the issue. Milos On Thu, Feb 28, 2008 at 7:00 PM, Érico Teixeira [EMAIL PROTECTED] wrote: I'm testing netbeans 6.0.1 + maven plugin in debian etch I've installed the plugin without problems but when I try to create a maven project It does nothing ... It doesn´t create the project neither it´s folder, anything I've tried to create a project in several folders but nothing I believe that´s a linux configuration issue but I decided to post the message here in case that someone already lived through this ... thanks - Looking for last minute shopping deals? Find them fast with Yahoo! Search. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: netbeans 6.0.1 + maven plugin in debian etch
That's strange. After you click finish on the wizard, it should 1. start the archetype plugin to generate the project. 2. that in turn should open the output window with the maven execution output. I assume you are not getting that, right? Milos On Thu, Feb 28, 2008 at 7:21 PM, Érico Teixeira [EMAIL PROTECTED] wrote: Hi Milos Thanks for the reply yes, I´ve intalled maven plugin through netbeans update center the plugin is installed and it allows me to create a project but in the end when it should create the folder and everything else to the project nothing happens the are no errors messages in IDE. no log events ... Milos Kleint [EMAIL PROTECTED] wrote: You are referring to the maven support plugin in the IDE from default netbeans update center? does the new project wizard start a maven build or it shows no UI at all? I've never seen it before, feel free to file under jira.codehaus.org/browse/MEVENIDE with steps to reproduce, screenshots or anything else that helps reproducing the issue. Milos On Thu, Feb 28, 2008 at 7:00 PM, Érico Teixeira wrote: I'm testing netbeans 6.0.1 + maven plugin in debian etch I've installed the plugin without problems but when I try to create a maven project It does nothing ... It doesn´t create the project neither it´s folder, anything I've tried to create a project in several folders but nothing I believe that´s a linux configuration issue but I decided to post the message here in case that someone already lived through this ... thanks - Looking for last minute shopping deals? Find them fast with Yahoo! Search. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM
mevenide for eclipse is for maven 1 only. Milos On Sun, Feb 24, 2008 at 8:52 PM, Chris [EMAIL PROTECTED] wrote: How about mevenide? Has anyone used it, know how it compares? Carlos Sanchez wrote: i've added a list of Q4E features to the table On Sun, Feb 24, 2008 at 10:04 AM, [EMAIL PROTECTED] wrote: Since the question of choosing an Eclipse Integration is often asked, I just worked on the Eclipse Integration page from Maven Users Wiki: http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration I started a comparison matrix with basic project informations. This Wiki is public: feel free to improve the comparison. Selon Abel Muiño [EMAIL PROTECTED]: As for the comparison between maven integration solutions, I know none but it would be interesting if someone started one (like a google group and some pages on it). Since I'm involved with q4e, it would not be a fair comparison if I made it :-). I think it would be easy to have a feature matrix just if several users of the different solutions exchanged opinions on a list. As for cleaning the project from the shell... if you use eclipse, you'll need to refresh/rebuild the workspace. This is not a problem with the plug-ins, but something that goes deep in the eclipse architecture. Rodrigo Madera wrote: Since you are on the topic, do you know if any of these have trouble if you go to a shell and do a `mvn clean` on the project? I have a plugin (dont remember its name) that integrates Maven nicely, but is allergic to the (sometimes needed) cleaning. Thanks, Rodrigo On Sun, Feb 24, 2008 at 2:09 AM, Jason Chaffee [EMAIL PROTECTED] wrote: I found the following FAQ about Q4E: http://code.google.com/p/q4e/wiki/FAQ Features * running Maven goals from the IDE * dependency managing using the Maven POM, with automatic download of dependencies * keeping Eclipse classpath synchronized with Maven POM * dependency graphing http://code.google.com/p/q4e/wiki/DependencyGraphViewer * direct import of Maven 2 projects * wizard for creation of new projects using the archetype mechanism * modular approach to improve reusability by other Eclipse projects * ability to import parent projects (pom projects) http://code.google.com/p/q4e/wiki/ImportingMultiprojects (from 0.5.0) * ability to cancel maven builds (from 0.5.0) * dependency analysis tooling (from 0.5.0) What are the differences between this plugin and m2eclipse (aka Tycho)? The objective of this plugin is to be part of the Eclipse Foundation http://www.eclipse.org , for that reason the license is EPL and we are going to follow the foundation procedures. Thanks to the sponsorship of DevZuz http://www.devzuz.com , an Eclipse Strategic Developer Member http://www.eclipse.org/membership/showMember.php?member_id=824 we are in a good position to achieve this goal. Besides the objective, there are technical differences. While m2eclipse shows Maven output in a console, Q is based in events and will show them in an organized way that allows filtering by severity, search,... Functionality like the dependency graph, or creation of new projects using the archetype mechanism are only present in Q. Also it's implemented in several modules with reusability and extension in mind so other people can develop their own plugins taking advantage of the functionality they need (see for instance Candy for Appfuse http://ramblingabout.wordpress.com/2007/09/02/candy-for-appfuse-will-be -under-extreme-refactoring/http://ramblingabout.wordpress.com/2007/09/02/candy-for-appfuse-will-be-under-extreme-refactoring/ ). In any case the underlying Maven libraries used for both plugins are the same (the Maven Embedder) and both plugin developers collaborate in its development. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Chris Sent: Saturday, February 23, 2008 5:45 PM To: users@maven.apache.org Subject: Mevenide vs. M2Eclipse, Q for Eclipse/IAM I googled around to try to find a comparison between Mevenide and the alternatives, and didn't come up with much. Can someone tell me the differences? (I've spend some time with m2eclipse, and I'm *not* impressed).
Re: Mavenide NetBeans
I have filed it as bug against netbeans: http://www.netbeans.org/issues/show_bug.cgi?id=127716 a workaround for the time being is 1. uninstall and remove all maven modules from your installation (Tools/Plugins dialog should do) 2. download the http://deadlock.netbeans.org/hudson/job/mevenide/lastSuccessfulBuild/artifact/mevenide-SNAPSHOT.zip file and expand it into your netbeans installation. You should end up with a new folder named mevenide next to other folders with names like platform8, ide6, java1 and so on. 3. edit the etc/netbeans.clusters file in netbeans installation and add mevenide at the end of the file on a separate line. that should do it. That's how I'm working with the daily builds. The additional advantage is easy upgrade path as I just delete the old mevenide folder and replace it with a new copy from deadlock.netbeans.org's hudson and restart the IDE. Regards Milos On Feb 19, 2008 10:35 AM, John Coleman [EMAIL PROTECTED] wrote: I got this when I tried to install from the contents of the mavenide-AU-SNAPSHOT... Missing required modules for Plugin NetBeans Maven2 ArchetypeNG: Maven Embedder library [module org.codehaus.mevenide.nbmvnembedder/3 3.1] NetBeans Maven2 project support [module org.codehaus.mevenide.netbeans/3 3.1] Missing required modules for Plugin NetBeans Maven2 Web Frameworks: Maven Embedder library [module org.codehaus.mevenide.nbmvnembedder/3 3.1] NetBeans Maven2 J2EE bridge [module org.codehaus.mevenide.netbeans.j2ee/2 3.1] NetBeans Maven2 project support [module org.codehaus.mevenide.netbeans/3 3.1] Regards, John -Original Message- From: Milos Kleint [mailto:[EMAIL PROTECTED] Sent: 18 February 2008 17:58 To: Maven Users List Subject: Re: Mavenide NetBeans only by upgrading to the latest trunk (daily builds at http://deadlock.netbeans.org/hudson/job/mevenide/) that one use the latest (January/February) 2.1-SNAPSHOT. Unfurtunately there's no way to put pre-2.1 stable releases as embedded version (due to design problems on 2.0.x branch) Please not that the embedder user in current released version of mevenide uses a 1.5 years old 2.1-SNAPSHOT but labels it as 2.0.4. That's the released version of maven that is closest to that binary in terms of compatibility. Milos On Feb 18, 2008 6:09 PM, John Coleman [EMAIL PROTECTED] wrote: Hi, Our Mavenide seems to be maven 2.0.4, is there a way to put the latest stable into the NB plugin? TIA John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mavenide NetBeans
please check that the folder name created (mevenide) matches what you have in the written in the etc/netbeans.clusters file.. Milos On Feb 19, 2008 3:21 PM, John Coleman [EMAIL PROTECTED] wrote: I tried your script below, removed the Maven plugin and all related Maven category items. When I load NB6 up again it is not recognising Maven projects. Have I deleted too much perhaps? John -Original Message- From: Milos Kleint [mailto:[EMAIL PROTECTED] Sent: 19 February 2008 10:27 To: Maven Users List Subject: Re: Mavenide NetBeans I have filed it as bug against netbeans: http://www.netbeans.org/issues/show_bug.cgi?id=127716 a workaround for the time being is 1. uninstall and remove all maven modules from your installation (Tools/Plugins dialog should do) 2. download the http://deadlock.netbeans.org/hudson/job/mevenide/lastSuccessfu lBuild/artifact/mevenide-SNAPSHOT.zip file and expand it into your netbeans installation. You should end up with a new folder named mevenide next to other folders with names like platform8, ide6, java1 and so on. 3. edit the etc/netbeans.clusters file in netbeans installation and add mevenide at the end of the file on a separate line. that should do it. That's how I'm working with the daily builds. The additional advantage is easy upgrade path as I just delete the old mevenide folder and replace it with a new copy from deadlock.netbeans.org's hudson and restart the IDE. Regards Milos On Feb 19, 2008 10:35 AM, John Coleman [EMAIL PROTECTED] wrote: I got this when I tried to install from the contents of the mavenide-AU-SNAPSHOT... Missing required modules for Plugin NetBeans Maven2 ArchetypeNG: Maven Embedder library [module org.codehaus.mevenide.nbmvnembedder/3 3.1] NetBeans Maven2 project support [module org.codehaus.mevenide.netbeans/3 3.1] Missing required modules for Plugin NetBeans Maven2 Web Frameworks: Maven Embedder library [module org.codehaus.mevenide.nbmvnembedder/3 3.1] NetBeans Maven2 J2EE bridge [module org.codehaus.mevenide.netbeans.j2ee/2 3.1] NetBeans Maven2 project support [module org.codehaus.mevenide.netbeans/3 3.1] Regards, John -Original Message- From: Milos Kleint [mailto:[EMAIL PROTECTED] Sent: 18 February 2008 17:58 To: Maven Users List Subject: Re: Mavenide NetBeans only by upgrading to the latest trunk (daily builds at http://deadlock.netbeans.org/hudson/job/mevenide/) that one use the latest (January/February) 2.1-SNAPSHOT. Unfurtunately there's no way to put pre-2.1 stable releases as embedded version (due to design problems on 2.0.x branch) Please not that the embedder user in current released version of mevenide uses a 1.5 years old 2.1-SNAPSHOT but labels it as 2.0.4. That's the released version of maven that is closest to that binary in terms of compatibility. Milos On Feb 18, 2008 6:09 PM, John Coleman [EMAIL PROTECTED] wrote: Hi, Our Mavenide seems to be maven 2.0.4, is there a way to put the latest stable into the NB plugin? TIA John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Mavenide NetBeans
only by upgrading to the latest trunk (daily builds at http://deadlock.netbeans.org/hudson/job/mevenide/) that one use the latest (January/February) 2.1-SNAPSHOT. Unfurtunately there's no way to put pre-2.1 stable releases as embedded version (due to design problems on 2.0.x branch) Please not that the embedder user in current released version of mevenide uses a 1.5 years old 2.1-SNAPSHOT but labels it as 2.0.4. That's the released version of maven that is closest to that binary in terms of compatibility. Milos On Feb 18, 2008 6:09 PM, John Coleman [EMAIL PROTECTED] wrote: Hi, Our Mavenide seems to be maven 2.0.4, is there a way to put the latest stable into the NB plugin? TIA John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately, and then delete this E-mail. Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments. Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK. - 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: [ANN] Maven Archetype Plugin 2.0-alpha-1 for Maven 2 Released
this could help. http://svn.codehaus.org/mojo/trunk/mojo/mojo-archetypes/netbeans-platform-app-archetype/ That's an archetype with module written to work with the archetype-plugin 2.0.x Milos On Fri, Feb 15, 2008 at 11:28 AM, Bohtvaroh [EMAIL PROTECTED] wrote: Raphaël Piéroni - 24/Jul/07 12:06 PM says This issue will be fixed by NG-alpha-1 and now alpha-1 is out. This is why I asked that. I really need this feature but cannot find any examples or docs about using it. Without it maven archetyping for multimodule projects looks ugly and non trivial. -- View this message in context: http://www.nabble.com/-ANN--Maven-Archetype-Plugin-2.0-alpha-1-for-Maven-2-Released-tp15368261s177p15497829.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: Best way to CI multi-module projects
I have the whole multimodule setup built together in one job (in hudson). Additionally I have a separate local repository for the job.. That turned out to work best for me.. Milos On Feb 12, 2008 2:14 PM, Chris Schmidt [EMAIL PROTECTED] wrote: I don't normally cross-post messages, but I'm not certain which list is the best for this question. If this breaks an etiquette rule, I apologize. I have a handful of maven2 multi-module projects that I have configured to continuously integrate within CruiseControl. Currently I have each submodule being built as a separate project within the CC configuration file. Is this the proper way to configure submodules? I don't want to rebuild every submodule if only one changes. However, I've found that breaking the modules up tends to cause many failed builds if I've made changes to different areas of the code base at the same time. For example, if I change code in a submodule within project A, and modify code that depends on it in project B, CC will sometimes try to rebuild project B first. I'm using the maven snapshot dependency plugin to cascade changes, but I'd really like for CC to be able to trace up the dependency hierarchy to know that the module in project A has changes as well and build it before the module in project B. Thanks, Chris Schmidt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: generated sources convention
The convention is useful for the IDE integration that can check that target/generated-sources subfolders and add them to source path without actually requiring to build the project. Milos On Dec 20, 2007 2:43 PM, Kallin Nagelberg [EMAIL PROTECTED] wrote: Thanks guys. I've already got it working with the build helper plugin, but was hoping there was some convention i could use to avoid it. Hopefully the maven guys move to add one eventually. On Dec 20, 2007 8:15 AM, Rémy Sanlaville [EMAIL PROTECTED] wrote: Hi, Use the *build* *helper* *plugin* to add additional source paths http://mojo.codehaus.org/*build*-*helper*-maven-*plugin*/ http://mojo.codehaus.org/build-helper-maven-plugin/ cf. http://www.nabble.com/Second-source-directory-for-generated-code-to6446457s177.html#a6446995 Rémy
Re: generated sources convention
at least the netbeans ide plugin will not run any phases when opening a project. it relies solely on the convention. Ideally the plugin description would include a marker on mojo parameters that make a generated source root directory. That way one can check the actual location without running the build. Milos On Dec 20, 2007 3:14 PM, nicolas de loof [EMAIL PROTECTED] wrote: The eclipse plugin (not sure other IDE-plugins do same) will run a pre-build (generate-resources phase) to let all code-generator declare compileSourceRoots. This also aplies to maven-helper-plugin. Based on this you MAY use whatever generate folder you like. The convention is to use target/generated-sources/generator-name, as it was required with maven1 IDE plugins to detect generated source folders. Nico. 2007/12/20, Milos Kleint [EMAIL PROTECTED]: The convention is useful for the IDE integration that can check that target/generated-sources subfolders and add them to source path without actually requiring to build the project. Milos On Dec 20, 2007 2:43 PM, Kallin Nagelberg [EMAIL PROTECTED] wrote: Thanks guys. I've already got it working with the build helper plugin, but was hoping there was some convention i could use to avoid it. Hopefully the maven guys move to add one eventually. On Dec 20, 2007 8:15 AM, Rémy Sanlaville [EMAIL PROTECTED] wrote: Hi, Use the *build* *helper* *plugin* to add additional source paths http://mojo.codehaus.org/*build*-*helper*-maven-*plugin*/ http://mojo.codehaus.org/build-helper-maven-plugin/ cf. http://www.nabble.com/Second-source-directory-for-generated-code-to6446457s177.html#a6446995 Rémy
Re: Where should I place UML-models in a Maven2 structure..
Hello, src/main/uml is fin I guess. Please be aware of the fact that the netbeans UML integration creates an UML project there. Then for example when you commit your changes to the maven project to svn, the uml part won't be picked up automatically (as it belongs to another project). It would be much better if UML were just an additional aspect of any project type in Netbeans but it's not that way. I haven't used UML+maven extensibly, there used to some problems back in 5.0/5.5 times I think but everything seems to work without problems in 6.0. Milos Kleint On Nov 30, 2007 2:43 PM, Arne Styve [EMAIL PROTECTED] wrote: Hi, I want to use the UML-editor in Netbeans 6.0RC2 to model my application. I use the Mevenide-plugin, and have created my Java-project according to the Maven2 directory structure. My question is then, where should the UML-model files be placed in the Maven2 Structure ? Under src/main/uml for instance ? Anyone having used the UML-editor in Netbeans together with a Maven2 project ?? And just for the record: I am talking about real UML-modelling, as part of Roundtrip Engineering, not the generation of UML-diagrams as part of the Javadoc, just so that is clear :-) Looking forward to here some ecxperiences :-) Kind regards Arne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JUnit, NetBeans 6
a picture speak thousand words. I've tried to build my own project externally (maven 2.0.7) and everything seems to work as expected. I get the test error hyperlinked in output, I get the test failure stacktrace hyperlinked, I even get the JUnit window output if I trigger the Test project action. So there must be something different about your setup in comparison to mine. Please file a bug at jira.codehaus.org/browse/MEVENIDE with a sample project demonstating the problem attached or with detailed description of your setup. Milos Kleint On Nov 29, 2007 10:39 AM, Stephen Connolly [EMAIL PROTECTED] wrote: have a look in target/surefire-reports/*.txt On Nov 28, 2007 8:02 PM, Lally Singh [EMAIL PROTECTED] wrote: That fixes my pom problem, but it leaves me in the same state as before: no JUnit results. The JUnit integration doesn't work with an external maven. I just get a pass/fail result, but nothing to tell me why the test failed (e.g. stack traces). Is there a way to tell maven to give me more output about what failed in my tests? Thanks, -ls On 11/28/07, Milos Kleint [EMAIL PROTECTED] wrote: project.basedir might have been introduced after 2.0.4 (which is what the embedded maven version is). http://mevenide.codehaus.org/m2-site/faq.html#question4 or perhaps something to do with groovy plugin? not sure, never tried myself. please try setting the project to use command line maven for building, that should make the problem go away. Project/Properties to mark the project as buildable by command line and Tools/Options for setting the path to maven itself. If it's not working then, please file a bug report at jira.codehaus.org/browse/MEVENIDE Milos On Nov 28, 2007 8:00 PM, Lally Singh [EMAIL PROTECTED] wrote: I've got this little snippet in my POM: executions execution idtestdata_upload_vto/id phasetest-compile/phase goalsgoaloperation/goal/goals configuration typeCLEAN_INSERT/type src${project.basedir}/src/test/data/db_vto.xml/src urljdbc:mysql://testsql.iddl.vt.edu/vto/url /configuration /execution execution I get this bit from running my tests in NB: [groovy:execute {execution: default}] [ERROR]BUILD ERROR src/test/data/db_vto.xml (No such file or directory) For more information, run Maven with the -e switch I change the file name to db_vtoF.xml in my POM, save the POM, reloaded the project, and hit test again. The error message referred to db_vto.xml, not db_vtoF.xml. Btw, the file's there, and this part of the test process runs fine from the command line. But in NB, the error shows up. When the right POM loads, I'll figure out what to put between those ${}. Thanks, -ls On 11/28/07, Milos Kleint [EMAIL PROTECTED] wrote: what do you mean by old version of POM? netbeans will update the project definition if you changed the project's own pom, it will not currently do automatically when changing something in the chain of parent poms. Use the Reload action on project's popup. However for build execution there is no caching, what is on disk is always used. are you using netbeans 5.5 or 6.0? if 6.0, are you using the maven support from default update center? that one shall open the regular JUnit window if you run the Test project action. If you use just Build/Rebuild, it shall underline the errors in output and create a hyperlink to the stacktraces. Could be a bug. Milos On Nov 28, 2007 7:45 PM, Lally Singh [EMAIL PROTECTED] wrote: Hey all, I've got a testcase that I'm trying to get working, but I've got a little dilemma: - In Netbeans, I can usually get a stacktrace for JUnit errors. But NB's using a bad (old?) version of my POM. E.g. I changed my pom and I continue to get an error mesage from the old version. NB's using some ancient version of my POM (probably from the initial project import), and I can't get it to use the new version. - Maven will (obviously) use the latest pom, but I don't know how to get any sort of failure report from my junit tests. Just a count a list of the failed tests, but no stack traces or other diagnostics. Any idea how to fix either/both problems? Thanks in advance, -ls -- H. Lally Singh Ph.D. Candidate, Computer Science Virginia Tech
Re: JUnit, NetBeans 6
project.basedir might have been introduced after 2.0.4 (which is what the embedded maven version is). http://mevenide.codehaus.org/m2-site/faq.html#question4 or perhaps something to do with groovy plugin? not sure, never tried myself. please try setting the project to use command line maven for building, that should make the problem go away. Project/Properties to mark the project as buildable by command line and Tools/Options for setting the path to maven itself. If it's not working then, please file a bug report at jira.codehaus.org/browse/MEVENIDE Milos On Nov 28, 2007 8:00 PM, Lally Singh [EMAIL PROTECTED] wrote: I've got this little snippet in my POM: executions execution idtestdata_upload_vto/id phasetest-compile/phase goalsgoaloperation/goal/goals configuration typeCLEAN_INSERT/type src${project.basedir}/src/test/data/db_vto.xml/src urljdbc:mysql://testsql.iddl.vt.edu/vto/url /configuration /execution execution I get this bit from running my tests in NB: [groovy:execute {execution: default}] [ERROR]BUILD ERROR src/test/data/db_vto.xml (No such file or directory) For more information, run Maven with the -e switch I change the file name to db_vtoF.xml in my POM, save the POM, reloaded the project, and hit test again. The error message referred to db_vto.xml, not db_vtoF.xml. Btw, the file's there, and this part of the test process runs fine from the command line. But in NB, the error shows up. When the right POM loads, I'll figure out what to put between those ${}. Thanks, -ls On 11/28/07, Milos Kleint [EMAIL PROTECTED] wrote: what do you mean by old version of POM? netbeans will update the project definition if you changed the project's own pom, it will not currently do automatically when changing something in the chain of parent poms. Use the Reload action on project's popup. However for build execution there is no caching, what is on disk is always used. are you using netbeans 5.5 or 6.0? if 6.0, are you using the maven support from default update center? that one shall open the regular JUnit window if you run the Test project action. If you use just Build/Rebuild, it shall underline the errors in output and create a hyperlink to the stacktraces. Could be a bug. Milos On Nov 28, 2007 7:45 PM, Lally Singh [EMAIL PROTECTED] wrote: Hey all, I've got a testcase that I'm trying to get working, but I've got a little dilemma: - In Netbeans, I can usually get a stacktrace for JUnit errors. But NB's using a bad (old?) version of my POM. E.g. I changed my pom and I continue to get an error mesage from the old version. NB's using some ancient version of my POM (probably from the initial project import), and I can't get it to use the new version. - Maven will (obviously) use the latest pom, but I don't know how to get any sort of failure report from my junit tests. Just a count a list of the failed tests, but no stack traces or other diagnostics. Any idea how to fix either/both problems? Thanks in advance, -ls -- H. Lally Singh Ph.D. Candidate, Computer Science Virginia Tech - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- H. Lally Singh Ph.D. Candidate, Computer Science Virginia Tech - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JUnit, NetBeans 6
what do you mean by old version of POM? netbeans will update the project definition if you changed the project's own pom, it will not currently do automatically when changing something in the chain of parent poms. Use the Reload action on project's popup. However for build execution there is no caching, what is on disk is always used. are you using netbeans 5.5 or 6.0? if 6.0, are you using the maven support from default update center? that one shall open the regular JUnit window if you run the Test project action. If you use just Build/Rebuild, it shall underline the errors in output and create a hyperlink to the stacktraces. Could be a bug. Milos On Nov 28, 2007 7:45 PM, Lally Singh [EMAIL PROTECTED] wrote: Hey all, I've got a testcase that I'm trying to get working, but I've got a little dilemma: - In Netbeans, I can usually get a stacktrace for JUnit errors. But NB's using a bad (old?) version of my POM. E.g. I changed my pom and I continue to get an error mesage from the old version. NB's using some ancient version of my POM (probably from the initial project import), and I can't get it to use the new version. - Maven will (obviously) use the latest pom, but I don't know how to get any sort of failure report from my junit tests. Just a count a list of the failed tests, but no stack traces or other diagnostics. Any idea how to fix either/both problems? Thanks in advance, -ls -- H. Lally Singh Ph.D. Candidate, Computer Science Virginia Tech - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The Maven team needs help from translators
it's in mojo's sandbox https://svn.codehaus.org/mojo/trunk/sandbox/l10n-maven-plugin/ Milos On 11/26/07, Wim Deblauwe [EMAIL PROTECTED] wrote: Nice plugin report. Is this plugin freely available? regards, Wim 2007/11/25, Dennis Lundberg [EMAIL PROTECTED]: Lukas Theussl has updated the German resource bundle. I have uploaded an updated localization status report: http://people.apache.org/~dennisl/maven-project-info-reports-plugin/l10n-status.html Dennis Lundberg wrote: Hi all We are preparing the next release of the maven-project-info-reports-plugin. The current localizations are lacking translations for lots of resources. We need your help improving this. Have a look at this report, and see if you are skilled in any of the listed languages: http://people.apache.org/~dennisl/maven-project-info-reports-plugin/l10n-status.html If so please create a patch and attach it to this issue in JIRA: http://jira.codehaus.org/browse/MPIR-34 Make sure you use unicode escape sequences for non-ascii characters. You can see how this is done in the current localizations. For more info on internationalization/localization in Maven plugins, see this page: http://maven.apache.org/plugins/maven-site-plugin/i18n.html If you have any questions about this, please don't hesitate to ask here on the list. Thanks for your cooperation -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vigilog - an open source log file viewer: http://vigilog.sourceforge.net Blog: http://www.jroller.com/page/Fester
Re: How to pass different options to javac during compile and testCompile goals?
Sahoo wrote: (Resending as I am on the users alias now. I have also put a reference to a similar unsolved question from the past) Hi, I want to pass different options to maven-compiler-plugin during compile and testCompile goals. Let's say, I want to set source level as 1.4 for all my src/main/java code and set source level as 1.5 for my test sources. How do I do it? I found someone having similar requirements in the past [1], but there is no mention of a working solution yet. Thanks, Sahoo [1] http://mail-archives.apache.org/mod_mbox/maven-users/200609.mbox/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] what about something like this? build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler -plugin/artifactId configuration compilerVersion${sourceLevel}/compilerVersion source${sourceLevel}/source target${sourceLevel}/target /configuration executions execution idcompile-tests/id phaseprocess-test-sources/phase goals goaltestCompile/goal /goals configuration source${testSourceLevel}/source target${testSourceLevel}/target /configuration /execution /executions /plugin /plugins /build properties sourceLevel1.4/sourceLevel testSourceLevel1.5/testSourceLevel /properties Regards Milos Kleint - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with maven embebed in netbeans 5.5.1
I didn't hear a problem description similar to yours so far. So it's probably a still-to-be-fixed issue. Milos On 11/19/07, logancillo [EMAIL PROTECTED] wrote: Milos, is this a resolved problem? i dont know if there is an open task on jira.codehauss... -- View this message in context: http://www.nabble.com/problem-with-maven-embebed-in-netbeans-5.5.1-tf4805705s177.html#a13830305 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: Mavenide and NetBeans 6 RC1
check the faq (http://mevenide.codehaus.org/m2-site/faq.html) for answer. Unfurtunately for 6.0 fcs, we're stuck with the current embedder version. I'll be upgrading to latest 2.1-SNAPSHOT embedder binaries soon for trunk, then you will be able to get the bits from http://deadlock.netbeans.org/hudson/job/mevenide/ and install in 6.0. Of course these can have other unexpected sideeffects. The RC2 update center will feature a new version of maven support on Update Center, which has a bug with wrong compile error parsing on command-line invokation fixed, but the embedded version stays the same. Regards Milos Kleint On Nov 16, 2007 5:29 PM, johne [EMAIL PROTECTED] wrote: Mavenide is failing for me on Netbeans 6.0 RC1. I am using a piece of AppFuse (warpath plugin) that has a dependency requirement of Maven 2.0.6, but Mavenide in NB 6.0 RC1 is currently giving a failure for dependencies of Maven 2.0.6 and over. As a result, I am having to set the additional Maven options and run an external Maven 2.0.7 compiler to have the build work. This does compile my many projects together, but unlike with how the warpath plugin worked previously in NB 5.5, it fails to find my compilation paths for one of my WAR compiles. Also I believe having it being external, NB loses some abilities to understand what is going on. I am obviously very limited in my knowledge of all of this. I am wondering what the state is for Mavenide and NB6. Is there something in the works to have it working with NB6? Is there something I can download to make some of this work better? My project is very complicated and I would not get it working in Eclipse, so I am hoping. If there is anything I can do, let me know. - john -- View this message in context: http://www.nabble.com/Mavenide-and-NetBeans-6-RC1-tf4822409s177.html#a13796488 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 with maven embebed in netbeans 5.5.1
does the same happen when invoking on the command line? worth filing as issue at http://jira.codehaus.org/browse/MEVENIDE Milos On Nov 14, 2007 4:06 PM, logancillo [EMAIL PROTECTED] wrote: hi everybody, i`using netbeans 5.5.1 with jdk 1.6. App server is embebed tomcat 5.5.17 and i `m having some troubles when i build the war file. It seems that WEB-INF/classes dir is not updated! i´ll try to explain better! my workspace is C:\trabajo\ws\AFEL\sources, where i have pom.xml, profiles.xml, nbactions.xml and src directory with my web project. If i run build goal on netbeans, it extracts to screen something like this: [compiler:compile] [INFO]Compiling 28 source files to C:\trabajo\ws\AFEL\sources\target\classes [resources:testResources] [INFO]Using default encoding to copy filtered resources. [compiler:testCompile] [INFO]No sources to compile [surefire:test] [INFO]No tests to run. [war:war] [INFO]Packaging webapp [INFO]Assembling webapp[frontal] in [C:\trabajo\ws\AFEL\sources\target\frontal-1.0-SNAPSHOT] [INFO]Processing war project [INFO]Webapp assembled in[6484 msecs] [INFO]Building war: C:\trabajo\ws\AFEL\sources\target\frontal-1.0-SNAPSHOT.war [install:install] [INFO]Installing C:\trabajo\ws\AFEL\sources\target\frontal- 1.0-SNAPSHOT.war to C:\Documents and Settings\operador\.m2\repository\es\yell\frontlite\frontal\1.0-SNAPSHOT\frontal- 1.0-SNAPSHOT.war [INFO] [INFO]BUILD SUCCESSFUL [INFO] [INFO]Total time: 14 seconds [INFO]Finished at: Wed Nov 14 15:58:51 CET 2007 [INFO]Final Memory: 47M/87M [INFO] the content of C:\trabajo\ws\AFEL\sources\target\classes is diferent with regard to WEB-INF/classes contained in the generated war! pls help, how can i fix this strange behavior? PD i already tried unistalling and purging netbeans files -- View this message in context: http://www.nabble.com/problem-with-maven-embebed-in-netbeans-5.5.1-tf4805705s177.html#a13748536 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: How to create a Mojo that controls an ANT task
i've done something along those lines with the mojo's nbm-maven-plugin. I call a bunch of ant tasks for building netbeans modules. https://svn.codehaus.org/mojo/trunk/mojo/nbm-maven-plugin/ Milos On 11/12/07, Pedro Viegas [EMAIL PROTECTED] wrote: Hi there guys, I am trying to create a Maven plugin that executes a given ANT task inside it. My real case is to call the Hibernate Tools task to generate a bunch of ORM classes and Hibernate mappings. But I need to make some decisions and have to pass some parameters to the several Hibernate Tools tasks I need to call depending on some conditions that I need to analize in a Java Mojo. Basically I need to: 1. Create a Mojo with some parameters and do some processing and file generation of my own 2. Call the ANT Hibernate Tools tasks a bunch of times to generate all my classes/mapings on several packages for several database schemas 3. Try to keep it as simple as possible to the end programmer user, simply call a Maven plugin and state some configuration files and destination package and let the conventioned behavior take charge. I have created the first part easily by creating a Java Maven Plugin. The second part I have configured like a maven-ant-plugin addition to the POM and got it working, but this has to be copied into each of the projects that need this goal and all the configuration I could pragmatically do have to be typed repeatedly. So 1 and 2 are go, 3 is what I can't find any documentation or sample to help me. I have seen the example from: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html But this is how to build a maven plugin with ANT. What I need is to build a maven plugin in Java that can call an ant task, like antrun plugin does but adding a few more java actions and decisions before and after. So, how can I use the already running maven java plugin to call the ANT tasks? Can I call a plugin inside another plugin? How? Should I try to extend the maven-antrun-plugin to try to accomplish this? Thanks in advance, -- Pedro Viegas Walking on water and developing software from a specification are easy if both are frozen. - Edward V. Berard