Antwort: eclipse plugin has a POM of its own
Hi, build sourceDirectoryC:\RSA75Workspace\workspace\finAppWeb\src/sourceDirectory scriptSourceDirectoryC:\RSA75Workspace\workspace\finAppWeb\src\main \scripts/scriptSourceDirectory testSourceDirectoryC:\RSA75Workspace\workspace\finAppWeb\src\test \java/testSourceDirectory outputDirectoryC:\RSA75Workspace\workspace\finAppWeb\target\build \classes/outputDirectory testOutputDirectoryC:\RSA75Workspace\workspace\finAppWeb\target\test- classes/testOutputDirectory *snip* Just a side note: I have made the experience that backslashes in files are treated by Java more or less often as a quoting character. To prevent strange errors I'd recommend either using forward slashes ('/'; should also work as directory separator under Java in Windows environments), or a double backslash '\\'. HTH Thorsten
Re: Added source directory still allows for compile errors
Hello, Yes, there are lots of source files in this generated directory. They were generated with the command wsdl2java -- View this message in context: http://maven.40175.n5.nabble.com/Added-source-directory-still-allows-for-compile-errors-tp5501630p5536890.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
mvn install (Access is denied) problem
Dear All I am using windows 7, when installing a library using command *mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs -Dversion=3.0 -Dpackaging=jar -Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib -DgeneratePom=true* then getting following error [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] [INFO] Building Maven Default Project [INFO] task-segment: [install:install-file] (aggregator-style) [INFO] [INFO] [install:install-file {execution: default-cli}] [INFO] Installing C:\Users\admin\rsmart-gdoc\gdata\java\lib to C:\Users\admin\.m2\repository\com\google\gdata\gdata-docs\3.0\gdata-docs-3.0.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error installing artifact 'com.google.gdata:gdata-docs:jar': Error installing artifact: C:\Users\admin\rsmart-gdoc\gdata\java\lib (Access is denied) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Mar 05 13:31:25 PKT 2012 [INFO] Final Memory: 3M/15M [INFO] I think it is permission problem, but I checked current user have full right over folder .m repository please resolve it Regards Jehan Badshah | Sr. Software Engineer FAST - National University of Computer and Emerging Sciences A.K. Brohi Road, H-11/4, Islamabad UAN: +92 (0)51 - 111 128 128 ext 344
Re: eclipse plugin has a POM of its own
Thanks Anders, Yes you are right the plugin that installed with eclipse was different than the one i installed with netbeans(thats what i was using outside the IDE as well) but here is the thing now, whihc is ticking me off with eclipse plugin for maven. I dont know why but now when I am running the goals clean install it is doing everything as per my wishes with one exception when i was doing it outside the IDES, (using the maven installed with netbeans) the classes folder only had classes but now the java classes are also added within them. the maven with netbeans didnt had to be configured SO much, this eclipse one needs to be baby feed every configuration hence making my POM more absurdly verbose than the previous one. AND its accomplishing the same things I was achieving before. this is just uselessly wasting my time, my POM was good enough to complete the build, I even changed the maven run time (going into Run As.. Run Configurations changing the maven runtime to Maven inside Netbeans ) Do you think that becuase i changed the source directory and listed the webapp directory that it is now ADDing the java files as well with the classes. I dont think they should be related in any way. Thanks for the comments and hints and suggestions. Syed... -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-plugin-has-a-POM-of-its-own-tp5535417p5537027.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: Antwort: eclipse plugin has a POM of its own
Thanks Thorsten, Yeah thats a good suggestion. Also can you tell me how to remove the C:\RSA75Workspace\workspace/ blah blah to some thing relative to workspace?? so that the POM is portable to another workspace. Thanks Syed... -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-plugin-has-a-POM-of-its-own-tp5535417p5537029.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: Antwort: eclipse plugin has a POM of its own
Thanks Thorsten, Yeah thats a good suggestion. Also can you tell me how to remove the C:\RSA75Workspace\workspace/ blah blah to some thing relative to workspace?? so that the POM is portable to another workspace. Thanks Syed... -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-plugin-has-a-POM-of-its-own-tp5535417p5537030.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: Antwort: eclipse plugin has a POM of its own
Thanks Thorsten, Yeah thats a good suggestion. Also can you tell me how to remove the C:\RSA75Workspace\workspace/ blah blah to some thing relative to workspace?? so that the POM is portable to another workspace. Thanks Syed... -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-plugin-has-a-POM-of-its-own-tp5535417p5537031.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
mvn install (Access is denied) problem
Dear All I am using windows 7, when installing a library using command *mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs -Dversion=3.0 -Dpackaging=jar -Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib -DgeneratePom=true* then getting following error [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [install:install-file] (aggregator-style) [INFO] [INFO] [install:install-file {execution: default-cli}] [INFO] Installing C:\Users\admin\rsmart-gdoc\gdata\java\lib to C:\Users\admin\.m2\repository\com\google\gdata\gdata-docs\3.0\gdata-docs-3.0.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error installing artifact 'com.google.gdata:gdata-docs:jar': Error installing artifact: C:\Users\admin\rsmart-gdoc\gdata\java\lib (Access is denied) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Mar 05 13:31:25 PKT 2012 [INFO] Final Memory: 3M/15M [INFO] I think it is permission problem, but I checked current user have full right on .m repository please resolve it -- View this message in context: http://maven.40175.n5.nabble.com/mvn-install-Access-is-denied-problem-tp5536889p5536889.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: mvn install (Access is denied) problem
Looks like a client side issue with your local environment. Double check the -Dfile option as it looks like your referring to a directory, instead of a file. Can you confirm the following is what you are executing: mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs -Dversion=3.0 -Dpackaging=jar -Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib -DgeneratePom=true John On 5 March 2012 08:32, jehan jehan.bads...@nu.edu.pk wrote: Dear All I am using windows 7, when installing a library using command *mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs -Dversion=3.0 -Dpackaging=jar -Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib -DgeneratePom=true* then getting following error [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] [INFO] Building Maven Default Project [INFO] task-segment: [install:install-file] (aggregator-style) [INFO] [INFO] [install:install-file {execution: default-cli}] [INFO] Installing C:\Users\admin\rsmart-gdoc\gdata\java\lib to C:\Users\admin\.m2\repository\com\google\gdata\gdata-docs\3.0\gdata-docs-3.0.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error installing artifact 'com.google.gdata:gdata-docs:jar': Error installing artifact: C:\Users\admin\rsmart-gdoc\gdata\java\lib (Access is denied) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Mar 05 13:31:25 PKT 2012 [INFO] Final Memory: 3M/15M [INFO] I think it is permission problem, but I checked current user have full right on .m repository please resolve it -- View this message in context: http://maven.40175.n5.nabble.com/mvn-install-Access-is-denied-problem-tp5536889p5536889.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: mvn install (Access is denied) problem
Thanks and resolved On Mon, Mar 5, 2012 at 3:20 PM, John Patrick [via Maven] ml-node+s40175n5537110...@n5.nabble.com wrote: Looks like a client side issue with your local environment. Double check the -Dfile option as it looks like your referring to a directory, instead of a file. Can you confirm the following is what you are executing: mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs -Dversion=3.0 -Dpackaging=jar -Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib -DgeneratePom=true John On 5 March 2012 08:32, jehan [hidden email]http://user/SendEmail.jtp?type=nodenode=5537110i=0 wrote: Dear All I am using windows 7, when installing a library using command *mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs -Dversion=3.0 -Dpackaging=jar -Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib -DgeneratePom=true* then getting following error [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [install:install-file] (aggregator-style) [INFO] [INFO] [install:install-file {execution: default-cli}] [INFO] Installing C:\Users\admin\rsmart-gdoc\gdata\java\lib to C:\Users\admin\.m2\repository\com\google\gdata\gdata-docs\3.0\gdata-docs-3.0.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error installing artifact 'com.google.gdata:gdata-docs:jar': Error installing artifact: C:\Users\admin\rsmart-gdoc\gdata\java\lib (Access is denied) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Mar 05 13:31:25 PKT 2012 [INFO] Final Memory: 3M/15M [INFO] I think it is permission problem, but I checked current user have full right on .m repository please resolve it -- View this message in context: http://maven.40175.n5.nabble.com/mvn-install-Access-is-denied-problem-tp5536889p5536889.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5537110i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5537110i=2 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/mvn-install-Access-is-denied-problem-tp5536889p5537110.html To unsubscribe from mvn install (Access is denied) problem, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5536889code=amVoYW4uYmFkc2hhaEBudS5lZHUucGt8NTUzNjg4OXwxNTY0NzU0MzI1 . NAMLhttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- Regards Jehan Badshah | Sr. Software Engineer FAST - National University of Computer and Emerging Sciences A.K. Brohi Road, H-11/4, Islamabad UAN: +92 (0)51 - 111 128 128 ext 344 -- View this message in context: http://maven.40175.n5.nabble.com/mvn-install-Access-is-denied-problem-tp5536889p5537119.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Re: Antwort: eclipse plugin has a POM of its own
Hi Syed, Yeah thats a good suggestion. Also can you tell me how to remove the C:\RSA75Workspace\workspace/ blah blah to some thing relative to workspace?? so that the POM is portable to another workspace. According to your initial post the effective pom lets me guess that you're using the standard directory layout. The absolute paths are the ones Maven resolves from your pom. As long as you don't have hardcoded entries in that file, your project should be perfectly portable to other workspaces/machines/users. You only have to take care if you're using relative paths, but as long as they are relative to your project, that shouldn't matter. If you have to use a different directory layout, I suggest you have a look at the documentation ([1]), especially [2]. Depending on the plugins you're using you should also have a look at their documentation ([3]); perhaps their configuration has to be adapted to fit your project layout. [1] http://maven.apache.org/guides/index.html [2] http://maven.apache.org/guides/mini/guide-using-one-source-directory.html [3] http://maven.apache.org/plugins/index.html Regards Thorsten
Re: webappsource location in POM
I added the location in the war plugin :D plugins plugin artifactIdmaven-war-plugin/artifactId version2.2/version executions execution iddefault-war/id phasepackage/phase goals goalwar/goal /goals configuration packagingExcludesWEB-INF/lib/*.jar/packagingExcludes // to exclude libs normally u dont need that archive manifest addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix /manifest /archive failOnMissingWebXmlfalse/failOnMissingWebXml webappDirectoryC:\RSA75Workspace\workspace\Corpweb\WebContent/webappDirectory /configuration /execution /executions configuration packagingExcludesWEB-INF/lib/*.jar/packagingExcludes// to exclude libs normally u dont need that archive manifest addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix /manifest /archive failOnMissingWebXmlfalse/failOnMissingWebXml * webappDirectoryC:\RSA75Workspace\workspace\Corpweb\WebContent/webappDirectory* /configuration /plugin -- View this message in context: http://maven.40175.n5.nabble.com/webappsource-location-in-POM-tp5536805p5537186.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: webappsource location in POM
Hi, Two suggestions: - remove the executions-section, since you've already configured it in the (global-)plugin configuration - don't use absolute paths. Now it is bound to your system. Either use webappDirectoryWebContentwebappDirectory or webappDirectory${basedir}/WebContentwebappDirectory -Robert Op Mon, 05 Mar 2012 12:00:45 +0100 schreef sarmahdi sarma...@hotmail.com: I added the location in the war plugin :D plugins plugin artifactIdmaven-war-plugin/artifactId version2.2/version executions execution iddefault-war/id phasepackage/phase goals goalwar/goal /goals configuration packagingExcludesWEB-INF/lib/*.jar/packagingExcludes // to exclude libs normally u dont need that archive manifest addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix /manifest /archive failOnMissingWebXmlfalse/failOnMissingWebXml webappDirectoryC:\RSA75Workspace\workspace\Corpweb\WebContent/webappDirectory /configuration /execution /executions configuration packagingExcludesWEB-INF/lib/*.jar/packagingExcludes// to exclude libs normally u dont need that archive manifest addClasspathtrue/addClasspath classpathPrefixlib//classpathPrefix /manifest /archive failOnMissingWebXmlfalse/failOnMissingWebXml * webappDirectoryC:\RSA75Workspace\workspace\Corpweb\WebContent/webappDirectory* /configuration /plugin -- View this message in context: http://maven.40175.n5.nabble.com/webappsource-location-in-POM-tp5536805p5537186.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: Added source directory still allows for compile errors
Yes, there are lots of source files in this generated directory. They were generated with the command wsdl2java Is there no plugin for wsdl2java that you could leverage? Generally Maven plugins tell Maven about new source files to be compiled once they are created, such that your usage of the build-helper would be eliminated. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: multi module checkout
Hi fellow developers, I have a web application that relies on several modules. So to build it, I have a master pom.xml file. What I want this pom file to do is to checkout out all the modules. below is my pom file. project define modelVersion4.0.0/modelVersion groupIdnet.srirangan.packt.maven/groupId artifactIdTestModularApp/artifactId version1.0-SNAPSHOT/version packagingpom/packaging nameMyLargeModularApp/name /define build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.1/version executions execution idcheck-out-project1/id phasegenerate-sources/phase goals goalcheckout/goal /goals configuration checkoutDirectory${project.build.directory}/module1/checkoutDirectory connectionUrlscm:svn:svn://svnserver/svn/module1/trunk/connectionUrl connectionTypeconnection/connectionType developerConnectionscm:svn:svn://svnserver/svn/module1/trunk/developerConnection usernameusername/username passwordpassword/password /configuration /execution execution idcheck-out-project2/id phasegenerate-sources/phase goals goalcheckout/goal /goals configuration checkoutDirectory${project.build.directory}/module1/checkoutDirectory connectionUrlscm:svn:svn://svnserver/svn/module1/trunk/connectionUrl connectionTypeconnection/connectionType usernameusername/username passwordpassword/password /configuration /execution /executions /plugin /plugins /build /project I have tried **mvn scm:checkout** and **mvn scm:checkout -check-out-project1** but it give me the error: **Cannot run checkout command : Can't load the scm provider. You need to define a connectionUrl parameter.** I don't understand why this is happening since I have the connectionUrl parameters defined inside the pom file already,the ideas point that I want to get to is having the pom file configured to be able to checkout multiple projects at the same time. Please let me know what I am doing wrong here, Thanks in Advance. Also, how would you set up a master pom.xml file so that you could checkout all the modules all at once and istall them all? Please help a lost developer!!! Thank you very much. -- View this message in context: http://maven.40175.n5.nabble.com/multi-module-checkout-tp396061p5538934.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
Master pom file to checkout all modules of a project
Hi fellow developers, I have a web application that relies on several modules. So to build it, I have a master pom.xml file. What I want this pom file to do is to checkout out all the modules. below is my pom file. scm configuration connectionscm:svn:svn:///svn/module1/trunk/connection tagHEAD/tag /configuration /scm The above code will only checkout just one project, I spends days and cannot get it to checkout multiple projects. Please help if anyone knows how I could checkout multiple projects using one pom.xml file. Thanks. -- View this message in context: http://maven.40175.n5.nabble.com/Master-pom-file-to-checkout-all-modules-of-a-project-tp5539024p5539024.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: EventSpy not registered?
Did you add you jar in $M2_HOME/lib/ext/ ? 2012/3/5 Tim Drury tdr...@gmail.com: I wrote a class that extends maven 3.0.4 AbstractEventSpy and simply writes to a java.util.logging.Logger at info level (and System.out) when each method is called. I run it via: mvn -Dmaven.ext.class.path=/Users/tdrury/.m2/.../mavenspy-0.1-SNAPSHOT.jar -X clean install yet I get nothing in the output indicating my EventSpy is being called. Any clues? -tim -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: EventSpy not registered?
No, I hadn't but I just did and same result - nothing in the output logs. -tim On Mon, Mar 5, 2012 at 5:56 PM, Olivier Lamy ol...@apache.org wrote: Did you add you jar in $M2_HOME/lib/ext/ ? 2012/3/5 Tim Drury tdr...@gmail.com: I wrote a class that extends maven 3.0.4 AbstractEventSpy and simply writes to a java.util.logging.Logger at info level (and System.out) when each method is called. I run it via: mvn -Dmaven.ext.class.path=/Users/tdrury/.m2/.../mavenspy-0.1-SNAPSHOT.jar -X clean install yet I get nothing in the output indicating my EventSpy is being called. Any clues? -tim -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: EventSpy not registered?
On 5 Mar 2012, at 23:04, Tim Drury wrote: No, I hadn't but I just did and same result - nothing in the output logs. Did you mark your spy implementation as a @Component? Does your jar contain a META-INF/plexus/components.xml generated by the plexus-component-metadata plugin? -tim On Mon, Mar 5, 2012 at 5:56 PM, Olivier Lamy ol...@apache.org wrote: Did you add you jar in $M2_HOME/lib/ext/ ? 2012/3/5 Tim Drury tdr...@gmail.com: I wrote a class that extends maven 3.0.4 AbstractEventSpy and simply writes to a java.util.logging.Logger at info level (and System.out) when each method is called. I run it via: mvn -Dmaven.ext.class.path=/Users/tdrury/.m2/.../mavenspy-0.1-SNAPSHOT.jar -X clean install yet I get nothing in the output indicating my EventSpy is being called. Any clues? -tim -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - 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: EventSpy not registered?
Here's a working example of an event spy. You can build it and drop it into the ${m2_home}/lib/ext directory: https://github.com/etesla/tesla-profiler On Mar 5, 2012, at 6:04 PM, Tim Drury wrote: No, I hadn't but I just did and same result - nothing in the output logs. -tim On Mon, Mar 5, 2012 at 5:56 PM, Olivier Lamy ol...@apache.org wrote: Did you add you jar in $M2_HOME/lib/ext/ ? 2012/3/5 Tim Drury tdr...@gmail.com: I wrote a class that extends maven 3.0.4 AbstractEventSpy and simply writes to a java.util.logging.Logger at info level (and System.out) when each method is called. I run it via: mvn -Dmaven.ext.class.path=/Users/tdrury/.m2/.../mavenspy-0.1-SNAPSHOT.jar -X clean install yet I get nothing in the output indicating my EventSpy is being called. Any clues? -tim -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - Three people can keep a secret provided two of them are dead. -- Unknown
Re: EventSpy not registered?
I was missing plexus/components.xml. Got it working now. Thanks, all. -tim On Mon, Mar 5, 2012 at 6:47 PM, Jason van Zyl ja...@tesla.io wrote: Here's a working example of an event spy. You can build it and drop it into the ${m2_home}/lib/ext directory: https://github.com/etesla/tesla-profiler On Mar 5, 2012, at 6:04 PM, Tim Drury wrote: No, I hadn't but I just did and same result - nothing in the output logs. -tim On Mon, Mar 5, 2012 at 5:56 PM, Olivier Lamy ol...@apache.org wrote: Did you add you jar in $M2_HOME/lib/ext/ ? 2012/3/5 Tim Drury tdr...@gmail.com: I wrote a class that extends maven 3.0.4 AbstractEventSpy and simply writes to a java.util.logging.Logger at info level (and System.out) when each method is called. I run it via: mvn -Dmaven.ext.class.path=/Users/tdrury/.m2/.../mavenspy-0.1-SNAPSHOT.jar -X clean install yet I get nothing in the output indicating my EventSpy is being called. Any clues? -tim -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Thanks, Jason -- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl - Three people can keep a secret provided two of them are dead. -- Unknown
Re: Master pom file to checkout all modules of a project
Hi, Hi fellow developers, I have a web application that relies on several modules. So to build it, I have a master pom.xml file. What I want this pom file to do is to checkout out all the modules. below is my pom file. scm configuration connectionscm:svn:svn:///svn/module1/trunk/connection tagHEAD/tag /configuration /scm The above code will only checkout just one project, I spends days and cannot get it to checkout multiple projects. Please help if anyone knows how I could checkout multiple projects using one pom.xml file. Thanks. That sounds like a misuse/misunderstanding of Maven... If you have a web application which relies on several modules the best way to handle this is to use a multi-module build: +-- root +--- web (war; depends on lib1 and lib2) +--- lib1 +--- lib2 so you have to checkout only the root directory which contains everything you need... If you have only dependencies which are needed than you should solve it by using dependencies in your pom of your web-app project: dependencies dependency groupId.../groupId artifactIdlib1/artifactId version1.0.0/version /dependency ... dependencies This will result in a build which will get the dependencies out of your maven repository. This means in other words you need to install/release the lib1 artifact before you can build/release your web-app... If you try to work with a continous integration solution like Jenkins/Hudson you can configure in Jenkins/Hudson to checkout from serveral URL's in SVN so you don't need to try that via Maven... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Master pom file to checkout all modules of a project
On Tue, Mar 6, 2012 at 2:32 PM, Karl Heinz Marbaise khmarba...@gmx.de wrote: [del] That sounds like a misuse/misunderstanding of Maven... [del] Kind regards Karl Heinz Marbaise Good advice Karl, I normally also include the links to the freely available books at http://maven.apache.org/articles.html xiubinzheng, you should read those documents, you will save yourself countless hours. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org