Grails, Maven and system properties?
I'm using Grails 1.3.3 and I have externalized certain configuration options to properties files in such a way that I can specify the location of those properties files on the command line when I start up my application: Thanks to this line in Config.groovy: grails.config.locations file: + System.properties[config.location] All I have to do to load my configuration file is start up my grails application using: grails -Dconfig.location=../config.properties run-app This all works fine with Grails itself. But now I'm trying to integrate Maven for enterprize build and the application builds OK, but when it comes to functional testing, it fails because it tries to execute run-app but I don't know where to specify my config.location System property. I've tried to put it simply in the active profile, but it doesn't seem to work (grails.config.locations remains empty). I could add it to my Maven command line but I need it to be environment dependent so that I can specify the location of my config files in environment-specific profiles. Is there a place in the POM where I could put this? Best regards, Sébastien Arbogast
Issue with maven-changes-plugin and JIRA 3.12.3
I'm trying to configure my project in order to include a JIRA report in my site but I've tried several configuration options and the JIRA report remains desperately empty. Here is my reporting plugin configuration plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changes-plugin/artifactId reportSets reportSet reports reportjira-report/report /reports /reportSet /reportSets configuration resolutionIdsClosed/resolutionIds statusIdsResolved, Closed/statusIds typeIdsBug, New Feature, Improvement, Wish/typeIds /configuration /plugin And my issueManagement configuration (pointing to a public JIRA instance) issueManagement systemJIRA/system url http://bugs.epseelon.org/jira/secure/BrowseProject.jspa?id=10001/url /issueManagement Did I miss something? -- Sébastien Arbogast http://sebastien-arbogast.com
project.build.directory is not resolved correctly anymore
I have at least one of my project which was defining a resource like: resources resource directory${project.build.directory}/generated-resources/directory /resource /resources And the files inside target/generated-resources could not be found by Maven plugin. Is it a known bug? -- Sébastien Arbogast http://sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!!
On one of my projects, I have the following property: model.urifile:${project.build.sourceDirectory}/myapp.xmi/model.uri Knowing that in the same POM, sourceDirectory is configured that way: sourceDirectory${project.basedir}/src/main/uml/sourceDirectory With Maven 2.0.8, model.uri was correctly mapped to /Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi But with Maven 2.0.9, now it's mapped to /Users/sarbogast/dev/myapp/Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi, which is not good at all. Is it a known bug? What has changed in Maven 2.0.9 that makes it work differently on that? -- Sébastien Arbogast http://sebastien-arbogast.com
Re: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!!
Removing file: does not work. I have the same error.I created issue http://jira.codehaus.org/browse/MNG-3536 and attached a test project to the issue. 2008/4/21, Brian E. Fox [EMAIL PROTECTED]: As I recall, there were several changes that broke and then put this back. I suspect your use of file: before the property could be causing the replication. Try using just the property and see if this works. Either way, please write an issue with a sample project and we'll fix it in .10 and include the IT to make sure it doesn't break again. -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 11:23 AM To: Maven Users List Subject: Re: pom.build.sourceDirectory in Maven 2.0.9: it doesn't work anymore!!! It's a shame that you didn't try one of the 9 RCs that we released over a period of two weeks which helps us validate there are no regressions. Please give us a representative build which expresses the problem, and we'll fix it if it's a regression. On 21-Apr-08, at 7:46 AM, Sebastien ARBOGAST wrote: On one of my projects, I have the following property: model.urifile:${project.build.sourceDirectory}/myapp.xmi/model.uri Knowing that in the same POM, sourceDirectory is configured that way: sourceDirectory${project.basedir}/src/main/uml/sourceDirectory With Maven 2.0.8, model.uri was correctly mapped to /Users/sarbogast/dev/myapp/src/main/uml/myapp.xmi But with Maven 2.0.9, now it's mapped to /Users/sarbogast/dev/myapp/Users/sarbogast/dev/myapp/src/main/uml/ myapp.xmi, which is not good at all. Is it a known bug? What has changed in Maven 2.0.9 that makes it work differently on that? -- Sébastien Arbogast http://sebastien-arbogast.com Thanks, Jason -- Jason van Zyl Founder, Apache Maven jason at sonatype dot com -- Three people can keep a secret provided two of them are dead. -- Unknown - 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] -- Sébastien Arbogast http://sebastien-arbogast.com
Bug with maven-dependency-plugin?
I have a problem using maven-dependency-plugin. One of my modules configures this plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version executions execution idcopy-flex-resources/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory }/flex-resources/outputDirectory includeTypesswf,swc/includeTypes stripVersiontrue/stripVersion /configuration /execution /executions /plugin And I get the following error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies': Unable to find the mojo ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies' in the plugin 'org.apache.maven.plugins:maven-dependency-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies . What does 2.0-alpha-4 do here? Does anybody have an idea? -- Sébastien Arbogast http://sebastien-arbogast.com
Re: Bug with maven-dependency-plugin?
I don't have any other explicit dependency on it in other modules.Is there a way to know if another plugin uses it implicitly? 2008/3/2, Olivier Lamy [EMAIL PROTECTED]: An other module use the plugin with the version 2.0-alpha-4 ? -- Olivier 2008/3/2, Sebastien ARBOGAST [EMAIL PROTECTED]: I have a problem using maven-dependency-plugin. One of my modules configures this plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version executions execution idcopy-flex-resources/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory }/flex-resources/outputDirectory includeTypesswf,swc/includeTypes stripVersiontrue/stripVersion /configuration /execution /executions /plugin And I get the following error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies ': Unable to find the mojo ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies ' in the plugin 'org.apache.maven.plugins:maven-dependency-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies . What does 2.0-alpha-4 do here? Does anybody have an idea? -- Sébastien Arbogast http://sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://sebastien-arbogast.com
Re: Bug with maven-dependency-plugin?
I finally found the plugin that is using 2.0-alpha-4 version of maven-dependency-plugin. One of my modules is using maven-flex2-plugin from net.israfil.mojo which depends explicitly on maven-dependency-plugin: 2.0-alpha-4So I fixed the problem by changing the version of the plugin configuration to 2.0-alpha-4. Now it works great. 2008/3/2, Dennis Lundberg [EMAIL PROTECTED]: Perhaps there is something wrong with the meta data in your local repository. You could try removing the following directory and have Maven download the artifact again: ~/.m2/repository/org/apache/maven/plugins/maven-dependency-plugin/ Sebastien ARBOGAST wrote: I have a problem using maven-dependency-plugin. One of my modules configures this plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version executions execution idcopy-flex-resources/id phasecompile/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory }/flex-resources/outputDirectory includeTypesswf,swc/includeTypes stripVersiontrue/stripVersion /configuration /execution /executions /plugin And I get the following error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies ': Unable to find the mojo ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies ' in the plugin 'org.apache.maven.plugins:maven-dependency-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4:copy-dependencies . What does 2.0-alpha-4 do here? Does anybody have an idea? -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://sebastien-arbogast.com
Re: Building Eclipse plugins with Maven 2
I definitely miss something here, that is how to create a product configuration from an existing source-plugin module (that builds fine by the way). I don't know enough about Eclipse RCP and product configuration to be able to adapt the process to this particular maven setup. Has anyone already managed to do that? 2007/11/19, Sebastien ARBOGAST [EMAIL PROTECTED]: Thanks a lot for all your help Michal. I was afraid of renaming of renaming the name of those projects without changing the name of tha packages inside them (which I cannot do), but it worked. Well at least it compiles and tests pass. Now I would like to check that it runs. In the original project, the one I'm mavenizing, I have a .product file that I could run directly inside Eclipse to launch my RCP application. Should I keep this file? And if yes, where is it best to put it? root of the main plugin or src/main/resources? 2007/11/16, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: I managed to get through the previous issue by creating artificial SNAPSHOT versions of the dependencies Maven asked for. But now I'm facing yet another strange issue. The build fails on a message saying that org.eclipse.test_3.2.0 plugin is missing in eclipse/plugins, but just before that, it does a cleanup on the eclipse installation and deletes a lot of plugins, including org.eclipse.test_3.2.0. I'm afraid your artificial module solution won't work here. psteclipse does the testing by copying your plugins into the Eclipse directory and deleting them after testing has been done. It finds the plugins to delete by the prefix, so if your own plugins start with org.eclipse it's very likely that psteclipse will delete some of Eclipse;s internals, hence the missing dependencies. The only solution I see for you here is changing the naming of your plugins. It's not that big of a problem, since Eclipse offers very decent refactoring features to do that across different projects. -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13802852 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
Thanks a lot for all your help Michal. I was afraid of renaming of renaming the name of those projects without changing the name of tha packages inside them (which I cannot do), but it worked. Well at least it compiles and tests pass. Now I would like to check that it runs. In the original project, the one I'm mavenizing, I have a .product file that I could run directly inside Eclipse to launch my RCP application. Should I keep this file? And if yes, where is it best to put it? root of the main plugin or src/main/resources? 2007/11/16, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: I managed to get through the previous issue by creating artificial SNAPSHOT versions of the dependencies Maven asked for. But now I'm facing yet another strange issue. The build fails on a message saying that org.eclipse.test_3.2.0 plugin is missing in eclipse/plugins, but just before that, it does a cleanup on the eclipse installation and deletes a lot of plugins, including org.eclipse.test_3.2.0. I'm afraid your artificial module solution won't work here. psteclipse does the testing by copying your plugins into the Eclipse directory and deleting them after testing has been done. It finds the plugins to delete by the prefix, so if your own plugins start with org.eclipse it's very likely that psteclipse will delete some of Eclipse;s internals, hence the missing dependencies. The only solution I see for you here is changing the naming of your plugins. It's not that big of a problem, since Eclipse offers very decent refactoring features to do that across different projects. -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13802852 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [psteclipse:update {execution: update}] [INFO] Defaulting prefixes to the single prefix 'org.eclipse.'. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [psteclipse:testPackage {execution: test-package}] [INFO] Building jar: C:\dev\myapp-maven\eclipse\org.eclipse.core.databinding\target\pde-test\org.eclipse.core.databinding-1.0.0-SNAPSHOT.jar [INFO] [psteclipse:test] [INFO] Defaulting Eclipse home directory to 'C:\Documents and Settings\e027723\eclipse'. [INFO] Defaulting prefixes to the single prefix 'org.eclipse.'. [INFO] Validating target Eclipse environment in 'C:\Documents and Settings\e027723\eclipse'... [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The required Eclipse test framework plugin 'org.eclipse.test_3.2.0' was not found in 'C:\Documents and Settings\e027723\eclipse\plugins' [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 9 seconds [INFO] Finished at: Fri Nov 16 16:28:38 CET 2007 [INFO] Final Memory: 8M/16M [INFO] Why the heck does psteclipse remove what it needs later? 2007/11/16, Sebastien ARBOGAST [EMAIL PROTECTED]: Ok, that's what I feared. Then I'm pretty much stuck here. The thing is that this plugin was extracted from a pre-release of Eclipse 3.3, its source was modified and now the code can't use the final version that is bundled with Eclipse 3.3 because it depends on modifications. So the only solution that I see for the moment is to try to get rid of this plugin. Thanks for your insight on psteclipse. 2007/11/16, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: Yes, that's what I did and once again, I stepped further and stalled. Now the issue is that I have a source-plugin depending on org.eclipse.core.runtime. The dependecy is specified in the manifest and I've specified the version I'm depending on (3.3.100), the one that has been scraped and deployed to my local repository. Yet when I try to build this source-plugin, it's looking for version 3.3.100-SNAPSHOT instead of 3.3.100. Any idea? Could this be linked to the fact that my source-plugin's name is something like org.eclipse... ? This almost certainly is the cause of the problem. In terms of psteclipse, your plugin's prefix should be distinct from org.eclipse., otherwise psteclipse cannot tell which dependencies are from Eclipse and which are your modules under development. The assumption here (and the usual convention) is that the prefix for plugins is the reverse domain name of the company or organization, ie. mine could be: com.buggybrain.plugin1 com.buggybrain.plugin2 -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13793981 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
Ok, that's what I feared. Then I'm pretty much stuck here. The thing is that this plugin was extracted from a pre-release of Eclipse 3.3, its source was modified and now the code can't use the final version that is bundled with Eclipse 3.3 because it depends on modifications. So the only solution that I see for the moment is to try to get rid of this plugin. Thanks for your insight on psteclipse. 2007/11/16, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: Yes, that's what I did and once again, I stepped further and stalled. Now the issue is that I have a source-plugin depending on org.eclipse.core.runtime. The dependecy is specified in the manifest and I've specified the version I'm depending on (3.3.100), the one that has been scraped and deployed to my local repository. Yet when I try to build this source-plugin, it's looking for version 3.3.100-SNAPSHOT instead of 3.3.100. Any idea? Could this be linked to the fact that my source-plugin's name is something like org.eclipse... ? This almost certainly is the cause of the problem. In terms of psteclipse, your plugin's prefix should be distinct from org.eclipse., otherwise psteclipse cannot tell which dependencies are from Eclipse and which are your modules under development. The assumption here (and the usual convention) is that the prefix for plugins is the reverse domain name of the company or organization, ie. mine could be: com.buggybrain.plugin1 com.buggybrain.plugin2 -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13793981 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
Thanks a lot. It works great and I'm progressing. Now the code compiles and when Maven tries to run the test, I get the following message: [ERROR] BUILD ERROR [INFO] [INFO] The required startup jar file was not found in 'C:\Documents and Settings\e027723\eclipse' Apparently psteclipse is looking for a startup.jar file in eclipse home directory but I'm using Eclipse 3.1.1 and there is no such file in there. Is psteclipse incompatible with Eclipse 3.3? 2007/11/16, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: Obviously, I'm missing something with version numbers here, as: - the version in the POM for com.mycompany.framework.common is 1.0-SNAPSHOT - the resulting version in the manifest after running psteclipse:eclipse-plugin is 1.0 - the version com.mycompany.framework.eclipse.rcp is looking for is 1.0.0-SNAPSHOT Well, I had trouble with versions initially as well. Here's the way to handle your issue: 1. The binary plugin that is being depended on should be added to the MANIFEST.MF file through Eclipse (in the dependent plugin) and NOT in the dependent's POM file, ie. A - is binary B - depends on A so A is added as a plugin dependency in B's MANIFEST.MF. 2. When adding A to B's MANIFEST supply a version - Eclipse expects here a 3-part number (ie. x.x.x, like 1.0.0), so even if you write 1.0 it WILL CHANGE IT to 1.0.0. 3. psteclipse will parse the MANIFEST of B at compile time, find the dependency on A and add the -SNAPSHOT suffix, so... 4. A's version as declared in the POM should actually be: version1.0.0-SNAPSHOT/version -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13789763 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
I think I found my answer: http://eclipsenuggets.blogspot.com/2007/04/starting-eclipse-3.html It seems like I'm gonna have to modify psteclipse a little bit. 2007/11/16, Sebastien ARBOGAST [EMAIL PROTECTED]: Thanks a lot. It works great and I'm progressing. Now the code compiles and when Maven tries to run the test, I get the following message: [ERROR] BUILD ERROR [INFO] [INFO] The required startup jar file was not found in 'C:\Documents and Settings\e027723\eclipse' Apparently psteclipse is looking for a startup.jar file in eclipse home directory but I'm using Eclipse 3.1.1 and there is no such file in there. Is psteclipse incompatible with Eclipse 3.3? 2007/11/16, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: Obviously, I'm missing something with version numbers here, as: - the version in the POM for com.mycompany.framework.common is 1.0-SNAPSHOT - the resulting version in the manifest after running psteclipse:eclipse-plugin is 1.0 - the version com.mycompany.framework.eclipse.rcp is looking for is 1.0.0-SNAPSHOT Well, I had trouble with versions initially as well. Here's the way to handle your issue: 1. The binary plugin that is being depended on should be added to the MANIFEST.MF file through Eclipse (in the dependent plugin) and NOT in the dependent's POM file, ie. A - is binary B - depends on A so A is added as a plugin dependency in B's MANIFEST.MF. 2. When adding A to B's MANIFEST supply a version - Eclipse expects here a 3-part number (ie. x.x.x, like 1.0.0), so even if you write 1.0 it WILL CHANGE IT to 1.0.0. 3. psteclipse will parse the MANIFEST of B at compile time, find the dependency on A and add the -SNAPSHOT suffix, so... 4. A's version as declared in the POM should actually be: version1.0.0-SNAPSHOT/version -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13789763 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
I still have an important issue: in fact I'm trying to mavenize an existing Eclipse RCP project. I have a source-plugin with a few dependencies, as shown in the manifest below: Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Rcp Plug-in Bundle-SymbolicName: com.mycompany.framework.eclipse.rcp Bundle-Version: 1.0.0 Bundle-Vendor: mycompany Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, org.eclipse.core.databinding.beans, org.eclipse.jface.databinding, org.eclipse.draw2d, org.eclipse.ui.ide, org.eclipse.core.runtime, org.apache.log4j, com.mycompany.framework.common, org.springframework.spring, org.eclipse.core.databinding, com.mycompany.security.crypto.smartcard Eclipse-RegisterBuddy: org.apache.commons, org.apache.log4j, org.spring, com.mycompany.framework.common Export-Package: ... Eclipse-BuddyPolicy: registered Eclipse-LazyStart: false And when I run mvn install in the root directory for all eclipse plugins, I get the following message (and others like it): [INFO] Failed to resolve artifact. Missing: -- 1) com.mycompany:com.mycompany.framework.common:pom:1.0.0-SNAPSHOT Path to dependency: 1) com.mycompany:com.mycompany.framework.eclipse.rcp:source-plugin:1.0-SNAPSHOT 2) com.mycompany:com.mycompany.framework.common:pom:1.0.0-SNAPSHOT Yet in the same directory, I've got a binary plugin with the following manifest: Export-Package: ... Bundle-Vendor: Princeton Softech Inc. Bundle-ClassPath: lib\mycompany-framework-common-1.0-SNAPSHOT.jar, lib\org.eclipse.swt.win32.win32.x86-3.3.0.jar Bundle-Version: 1.0 Eclipse-BuddyPolicy: registered Bundle-Localization: plugin Bundle-Name: com.mycompany.framework.common Bundle-ManifestVersion: 2 Bundle-SymbolicName: com.mycompany.framework.common And the following POM: Manifest-Version: 1.0 ?xml version=1.0? project parent artifactIdcom.mycompany.eclipse.plugin/artifactId groupIdcom.mycompany.eclipse/groupId version1.0.0/version /parent modelVersion4.0.0/modelVersion groupIdcom.mycompany/groupId artifactIdcom.mycompany.framework.common/artifactId namecom.mycompany.framework.common/name version1.0-SNAPSHOT/version packagingbinary-plugin/packaging dependencies dependency groupIdcom.mycompany/groupId artifactIdmycompany-framework-common/artifactId version1.0-SNAPSHOT/version /dependency /dependencies /project Obviously, I'm missing something with version numbers here, as: - the version in the POM for com.mycompany.framework.common is 1.0-SNAPSHOT - the resulting version in the manifest after running psteclipse:eclipse-plugin is 1.0 - the version com.mycompany.framework.eclipse.rcp is looking for is 1.0.0-SNAPSHOT I have trouble figuring out what's the logic behind all this. Can you help me? 2007/11/15, Sebastien ARBOGAST [EMAIL PROTECTED]: Yes, I confirm that it works. Thanks a lot 2007/11/14, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu gins:maven-psteclipse-plugin:1.1.0:testPackage': Unable to find the mojo 'org.ap ache.maven.plugins:maven-psteclipse-plugin:1.1.0:testPackage' in the plugin 'org .apache.maven.plugins:maven-psteclipse-plugin' org/codehaus/plexus/archiver/ArchiverException Hmm, I might have the step to help. Go to your local Maven repository, the directory where the psteclipse plugin stays (org/apache/maven/plugins/maven-psteclipse-plugin/version/), open the file with the .pom extension and add these: dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-project/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-archiver/artifactId version2.2/version /dependency /dependencies I might have been too optimistic when writing how to install the psteclipse plugin and I thinkg the automatic pom generation doesn't create these by default. Let me know if this works and I'll update the article. -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13749166 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Building Eclipse plugins with Maven 2
Yes, that's what I did and once again, I stepped further and stalled. Now the issue is that I have a source-plugin depending on org.eclipse.core.runtime. The dependecy is specified in the manifest and I've specified the version I'm depending on (3.3.100), the one that has been scraped and deployed to my local repository. Yet when I try to build this source-plugin, it's looking for version 3.3.100-SNAPSHOT instead of 3.3.100. Any idea? Could this be linked to the fact that my source-plugin's name is something like org.eclipse... ? 2007/11/16, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: It seems like I'm gonna have to modify psteclipse a little bit. Not really. It's enough to do what the link you provided suggests - copy the jar from the plugins directory into Eclipse's main directory as startup.jar and psteclipse will work just fine. I already wrote to Peter asking to work on the issue and have psteclipse support the new jar placement in some near version of the plugin. -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13793438 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
Yes, I confirm that it works. Thanks a lot 2007/11/14, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu gins:maven-psteclipse-plugin:1.1.0:testPackage': Unable to find the mojo 'org.ap ache.maven.plugins:maven-psteclipse-plugin:1.1.0:testPackage' in the plugin 'org .apache.maven.plugins:maven-psteclipse-plugin' org/codehaus/plexus/archiver/ArchiverException Hmm, I might have the step to help. Go to your local Maven repository, the directory where the psteclipse plugin stays (org/apache/maven/plugins/maven-psteclipse-plugin/version/), open the file with the .pom extension and add these: dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-project/artifactId version2.0/version /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-archiver/artifactId version2.2/version /dependency /dependencies I might have been too optimistic when writing how to install the psteclipse plugin and I thinkg the automatic pom generation doesn't create these by default. Let me know if this works and I'll update the article. -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13749166 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.newInstance0(Class.java:326) at java.lang.Class.newInstance(Class.java:308) at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn stance(JavaComponentFactory.java:44) ... 24 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Nov 14 15:34:20 CET 2007 [INFO] Final Memory: 3M/7M [INFO] Any idea of what this could be? 2007/11/13, eSonic [EMAIL PROTECTED]: Sebastien Arbogast wrote: Obviously some bits and pieces are missing. I actually made it work after some serious fighting. Here are the remaining pieces, which were missing from the article: http://www.buggybrain.com/2007/10/building-eclipse-plugins-with-maven-2.html -- Michal -- View this message in context: http://www.nabble.com/Building-Eclipse-plugins-with-Maven-2-tf4675721s177.html#a13726555 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building Eclipse plugins with Maven 2
OK, I really need this to work because I'm fed up with ant maintenance and manual dependency management. I've tried to start all over again. I think the problem might have come from the fact that I was not using the original version of the mojos described by the author of the article, but one that I found on m2eclipse repository. Do I downloaded the original version linked in the article, but when I tried to build it, it failed because it doesn't find maven-pst parent project. Does anyone know where I can fin that project? 2007/10/23, Sebastien ARBOGAST [EMAIL PROTECTED]: I checked out the last version I could find in the m2eclipse project: http://svn.codehaus.org/m2eclipse/maven-pst That's the one I'm using with a few modifications to the POM in order to build against Maven 2.0.7 and Eclipse 3.3.1 Now here are the error messages that I get: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) com.myapp.eclipse:org.springframework.spring:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.springframework.spring:pom:1.0 2) com.myapp.eclipse:org.eclipse.core.databinding:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.core.databinding:pom:1.0 3) com.myapp.eclipse:org.apache.log4j:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.apache.log4j:pom:1.0 4) com.myapp.eclipse:com.myapp.framework.common:pom:1.0-SNAPSHOT Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:com.myapp.framework.common:pom:1.0-SNAPSH OT 5) com.myapp.eclipse:org.eclipse.ui:jar:1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.myapp.eclipse-DartifactId=org .eclipse.ui \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.ui:jar:1.0 6) com.myapp.eclipse:org.eclipse.core.runtime:jar:1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.myapp.eclipse-DartifactId=org .eclipse.core.runtime \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.core.runtime:jar:1.0 7) com.myapp.eclipse:org.eclipse.jface.databinding:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.jface.databinding:pom:1.0 8) com.myapp.eclipse:com.myapp.security.crypto.smartcard:pom:1.0-SNAPS HOT Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:com.myapp.security.crypto.smartcard:pom:1 .0-SNAPSHOT 9) com.myapp.eclipse:org.eclipse.ui.ide:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.ui.ide:pom:1.0 10) com.myapp.eclipse:org.eclipse.draw2d:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.draw2d:pom:1.0 11) com.myapp.eclipse:org.eclipse.core.databinding.beans:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.core.databinding.beans:pom:1.0 -- 11 required artifacts are missing. for artifact: com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-plugin:1.0- SNAPSHOT from the specified remote repositories: central ( http://repo1.maven.org/maven2), eclipse (http://repo1.maven.org/eclipse) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 37 seconds [INFO] Finished at: Tue Oct 23 10:16:38 CEST 2007 [INFO] Final Memory: 10M/19M [INFO] 2007/10/23, Torsten Schlabach [EMAIL PROTECTED
Re: Building Eclipse plugins with Maven 2
I finally found some lead to progress. I managed to build and install the original version of the mojos. Then I found something: it's all a problem of dependency versions. In my source-plugin module manifest dependencies, I did not specify any version for the plugins on which I depend, which caused the modified pom to reference 1.0 version by default. Now I added a version for the plugins that are in my workspace (source-plugin et binary-plugin) and it's looking for the right versions. But I still have a problem for plugins that are supposed to be provided by Eclipse itself. It seems that they are not deployed to my local repository or it's looking in the wrong directories: 1) com.mycompany.eclipse:org.eclipse.ui.ide:pom:1.0 Path to dependency: 1) com.mycompany.eclipse:com.mycompany.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.mycompany.eclipse:org.eclipse.ui.ide:pom:1.0 Obviously some bits and pieces are missing. 2007/10/26, Sebastien ARBOGAST [EMAIL PROTECTED] : OK, I really need this to work because I'm fed up with ant maintenance and manual dependency management. I've tried to start all over again. I think the problem might have come from the fact that I was not using the original version of the mojos described by the author of the article, but one that I found on m2eclipse repository. Do I downloaded the original version linked in the article, but when I tried to build it, it failed because it doesn't find maven-pst parent project. Does anyone know where I can fin that project? 2007/10/23, Sebastien ARBOGAST [EMAIL PROTECTED] : I checked out the last version I could find in the m2eclipse project: http://svn.codehaus.org/m2eclipse/maven-pst That's the one I'm using with a few modifications to the POM in order to build against Maven 2.0.7 and Eclipse 3.3.1 Now here are the error messages that I get: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) com.myapp.eclipse:org.springframework.spring:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.springframework.spring:pom:1.0 2) com.myapp.eclipse:org.eclipse.core.databinding:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.core.databinding:pom:1.0 3) com.myapp.eclipse:org.apache.log4j:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.apache.log4j:pom:1.0 4) com.myapp.eclipse:com.myapp.framework.common:pom:1.0-SNAPSHOT Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:com.myapp.framework.common:pom:1.0-SNAPSH OT 5) com.myapp.eclipse:org.eclipse.ui:jar:1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.myapp.eclipse-DartifactId=org .eclipse.ui \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.ui:jar:1.0 6) com.myapp.eclipse:org.eclipse.core.runtime:jar:1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.myapp.eclipse-DartifactId=org .eclipse.core.runtime \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.core.runtime:jar:1.0 7) com.myapp.eclipse:org.eclipse.jface.databinding:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.jface.databinding:pom:1.0 8) com.myapp.eclipse:com.myapp.security.crypto.smartcard:pom:1.0-SNAPS HOT Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:com.myapp.security.crypto.smartcard:pom:1 .0-SNAPSHOT 9) com.myapp.eclipse:org.eclipse.ui.ide:pom:1.0 Path to dependency: 1) com.myapp.eclipse:com.myapp.framework.eclipse.rcp:source-pl ugin:1.0-SNAPSHOT 2) com.myapp.eclipse:org.eclipse.ui.ide:pom:1.0 10) com.myapp.eclipse:org.eclipse.draw2d:pom:1.0 Path to dependency: 1
Building Eclipse plugins with Maven 2
I'm trying to apply the instructions given in the Eclipse Corner article ( http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html) in order to build several Eclipse plugins using Maven 2.0.4. In the first part of the article there is something about a Deploy Mojo that would scrape my Eclipse installation and deploy all the jars to my local repository. But when I try to run mvn install at the level of my super POM, I get error messages because Eclipse jar dependencies are missing. Has anyone managed to build Eclipse plugins with this article? Any idea of what I might have forgotten? BTW, I've attached my super POM. -- Sébastien Arbogast http://www.sebastien-arbogast.com ?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 groupIdcom.myapp.eclipse/groupId artifactIdcom.myapp.eclipse.plugin/artifactId packagingpom/packaging version1.0.0/version nameEclipse Plug-ins/name descriptionThis is the Supe POM for all eclipse plugins inside myapp/description build resources resource directorysrc/main/java/directory includes include**/*.properties/include include**/*.xml/include /includes /resource resource directory./directory includes includeplugin.xml/include includeplugin.properties/include includemodel/**/include includeicons/**/include /includes /resource /resources plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId configuration instrumentation excludes excludecom/myapp/**/model/**/impl/*.class/exclude excludecom/myapp/**/model/**/util/*.class/exclude excludecom/myapp/**/pojo/*.class/exclude excludecom/myapp/**/Messages.class/exclude excludecom/myapp/**/wizard/*.class/exclude excludecom/myapp/**/actions/*.class/exclude excludecom/cloudgarden/resource/**/*.class/exclude /excludes /instrumentation /configuration executions execution goals goalclean/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-psteclipse-plugin/artifactId version1.0.0-SNAPSHOT/version extensionstrue/extensions configuration logModificationstrue/logModifications testFrameworkVersion3.3.1/testFrameworkVersion /configuration executions execution idtest-package/id phasetest-compile/phase goals goaltestPackage/goal /goals /execution execution idupdate/id phaseprocess-resources/phase goals goalupdate/goal /goals /execution execution idupdate-site-classpath/id phasepre-site/phase goals goalupdate/goal /goals /execution /executions /plugin plugin artifactIdmaven-eclipse-plugin/artifactId configuration projectnatures projectnatureorg.eclipse.jdt.core.javanature/projectnature projectnatureorg.eclipse.pde.PluginNature/projectnature /projectnatures buildcommands buildcommandorg.eclipse.jdt.core.javabuilder/buildcommand buildcommandorg.eclipse.pde.ManifestBuilder/buildcommand buildcommandorg.eclipse.pde.SchemaBuilder/buildcommand /buildcommands classpathContainers classpathContainerorg.eclipse.pde.core.requiredPlugins/classpathContainer /classpathContainers /configuration /plugin /plugins /build profiles profile idorg.eclipse.swt.win32/id activation os namewindows xp/name archx86/arch /os /activation dependencies dependency groupIdorg.eclipse.swt.win32.win32/groupId artifactIdx86/artifactId version3.3.0-v3346/version typejar/type /dependency /dependencies /profile profile idorg.eclipse.swt.linux/id activation os namelinux/name archi386/arch /os /activation dependencies dependency groupIdcom.princetonsoftech.eclipse/groupId artifactIdorg.eclipse.swt.gtk.linux.x86/artifactId version3.3.1/version typejar/type /dependency /dependencies /profile /profiles properties org.eclipse.core.runtimejar/org.eclipse.core.runtime org.eclipse.jfacejar/org.eclipse.jface org.eclipse.uijar/org.eclipse.ui org.eclipse.datatools.connectivitypom/org.eclipse.datatools.connectivity org.eclipse.datatools.modelbase.dbdefinitionpom/org.eclipse.datatools.modelbase.dbdefinition org.eclipse.datatools.modelbase.sqlpom/org.eclipse.datatools.modelbase.sql org.eclipse.datatools.connectivity.sqm.corejar/org.eclipse.datatools.connectivity.sqm.core org.eclipse.datatools.connectivity.sqm.core.uipom/org.eclipse.datatools.connectivity.sqm.core.ui
Re: Building Eclipse plugins with Maven 2
be. What section of the article to you refer to? Can you post an error message you're getting? Regards, Torsten Sebastien ARBOGAST schrieb: I'm trying to apply the instructions given in the Eclipse Corner article ( http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html ) in order to build several Eclipse plugins using Maven 2.0.4. In the first part of the article there is something about a Deploy Mojo that would scrape my Eclipse installation and deploy all the jars to my local repository. But when I try to run mvn install at the level of my super POM, I get error messages because Eclipse jar dependencies are missing. Has anyone managed to build Eclipse plugins with this article? Any idea of what I might have forgotten? BTW, I've attached my super POM. -- Sébastien Arbogast http://www.sebastien-arbogast.com ?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 groupIdcom.myapp.eclipse/groupId artifactIdcom.myapp.eclipse.plugin/artifactId packagingpom/packaging version1.0.0/version nameEclipse Plug-ins/name descriptionThis is the Supe POM for all eclipse plugins inside myapp/description build resources resource directorysrc/main/java/directory includes include**/*.properties/include include**/*.xml/include /includes /resource resource directory./directory includes includeplugin.xml/include includeplugin.properties /include includemodel/**/include includeicons/**/include /includes /resource /resources plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId configuration instrumentation excludes excludecom/myapp/**/model/**/impl/*.class/exclude excludecom/myapp/**/model/**/util/*.class/exclude excludecom/myapp/**/pojo/*.class/exclude excludecom/myapp/**/Messages.class/exclude excludecom/myapp/**/wizard/*.class/exclude excludecom/myapp/**/actions/*.class/exclude excludecom/cloudgarden/resource/**/*.class/exclude /excludes /instrumentation /configuration executions execution goals goalclean/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins /groupId artifactIdmaven-psteclipse-plugin/artifactId version1.0.0-SNAPSHOT/version extensionstrue/extensions configuration logModificationstrue/logModifications testFrameworkVersion3.3.1 /testFrameworkVersion /configuration executions execution idtest-package/id phasetest-compile/phase goals goaltestPackage/goal /goals /execution execution idupdate/id phaseprocess-resources/phase goals goalupdate/goal /goals /execution execution idupdate-site
Re: WSDL2Code Axis2 javax/wsdl/WSDLException NoClassDefFoundError
Stupid question on my side. It's just that it's the first time I have to specify a dependency for a plugin. Now it works... well, actually it doesn't work, but for another reason. Thanks Jörg 2007/8/13, Sebastien ARBOGAST [EMAIL PROTECTED]: Does this mean there is a bug in the plugin's own POM? Can I do something to fix it locally? 2007/8/13, Jörg Schaible [EMAIL PROTECTED]: It's the *plugin* that needs this dep, not your artifact ... ;-) Sebastien Arbogast wrote on Sunday, August 12, 2007 2:13 PM: I have exactly the same problem. I've tried many versions of the wsdl4j dependency, but I still get that exception. PeteTh wrote: I'm trying to use axis2-wsdl2code-maven-plugin with wsdl2code goal. However I'm getting inconsistencies with class versions, can anyone help? Has anyone got a working version that has the correct dependencies required to get plugin to work? . Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl -3.0.1.pom [INFO] [axis2-wsdl2code:wsdl2code {execution: default}] [INFO] -- -- [ERROR] FATAL ERROR [INFO] -- -- [INFO] javax/wsdl/WSDLException [INFO] -- -- [INFO] Trace java.lang.NoClassDefFoundError: javax/wsdl/WSDLException at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2C odeMojo.java:396) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(Defau ltPluginManager.java :443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa ls(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lWithLifecycle(DefaultLifecycleExecutor.java:480) my pom.xml dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.1/version scopeprovided/scope /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version 0.4/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-kernel/artifactId version1.2/version scopecompile/scope exclusions exclusion groupIdjunit/groupId artifactIdjunit/artifactId /exclusion /exclusions /dependency dependency groupIdwsdl4j/groupId artifactIdwsdl4j/artifactId version1.6.2/version /dependency /dependencies build plugins plugin !-- see http://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2 code-plugin.html -- groupId org.apache.axis2.maven2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId configuration packageName com.au.marj.wsdl.evant.dprj.intf/packageName generateTestcasetrue/generateTestcase wsdlFilesrc/main/resources/WebInterface.wsdl/wsdlFile /configuration executions execution goals goalwsdl2code/goal /goals /execution /executions /plugin /plugins /build javax/wsdl/WSDLException seems to reside in wsdl4j-1.6.2.jar however, have tried many versions of this jar with no luck yet. I have tried many versions of wsdl4j - 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] -- Sébastien Arbogast http://www.sebastien-arbogast.com -- Sébastien Arbogast http://www.sebastien-arbogast.com
Re: WSDL2Code Axis2 javax/wsdl/WSDLException NoClassDefFoundError
Does this mean there is a bug in the plugin's own POM? Can I do something to fix it locally? 2007/8/13, Jörg Schaible [EMAIL PROTECTED]: It's the *plugin* that needs this dep, not your artifact ... ;-) Sebastien Arbogast wrote on Sunday, August 12, 2007 2:13 PM: I have exactly the same problem. I've tried many versions of the wsdl4j dependency, but I still get that exception. PeteTh wrote: I'm trying to use axis2-wsdl2code-maven-plugin with wsdl2code goal. However I'm getting inconsistencies with class versions, can anyone help? Has anyone got a working version that has the correct dependencies required to get plugin to work? . Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl -3.0.1.pom [INFO] [axis2-wsdl2code:wsdl2code {execution: default}] [INFO] -- -- [ERROR] FATAL ERROR [INFO] -- -- [INFO] javax/wsdl/WSDLException [INFO] -- -- [INFO] Trace java.lang.NoClassDefFoundError: javax/wsdl/WSDLException at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2C odeMojo.java:396) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(Defau ltPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa ls(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lWithLifecycle(DefaultLifecycleExecutor.java:480) my pom.xml dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.1/version scopeprovided/scope /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.4/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-kernel/artifactId version1.2/version scopecompile/scope exclusions exclusion groupIdjunit/groupId artifactIdjunit/artifactId /exclusion /exclusions /dependency dependency groupIdwsdl4j/groupId artifactIdwsdl4j/artifactId version1.6.2/version /dependency /dependencies build plugins plugin !-- see http://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2 code-plugin.html -- groupIdorg.apache.axis2.maven2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId configuration packageNamecom.au.marj.wsdl.evant.dprj.intf/packageName generateTestcasetrue/generateTestcase wsdlFilesrc/main/resources/WebInterface.wsdl/wsdlFile /configuration executions execution goals goalwsdl2code/goal /goals /execution /executions /plugin /plugins /build javax/wsdl/WSDLException seems to reside in wsdl4j-1.6.2.jar however, have tried many versions of this jar with no luck yet. I have tried many versions of wsdl4j - 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] -- Sébastien Arbogast http://www.sebastien-arbogast.com
Re: WSDL2Code Axis2 javax/wsdl/WSDLException NoClassDefFoundError
I have exactly the same problem. I've tried many versions of the wsdl4j dependency, but I still get that exception. PeteTh wrote: I'm trying to use axis2-wsdl2code-maven-plugin with wsdl2code goal. However I'm getting inconsistencies with class versions, can anyone help? Has anyone got a working version that has the correct dependencies required to get plugin to work? . Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.0.1/wstx-asl-3.0.1.pom [INFO] [axis2-wsdl2code:wsdl2code {execution: default}] [INFO] [ERROR] FATAL ERROR [INFO] [INFO] javax/wsdl/WSDLException [INFO] [INFO] Trace java.lang.NoClassDefFoundError: javax/wsdl/WSDLException at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:396) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) my pom.xml dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.1/version scopeprovided/scope /dependency dependency groupIdcommons-discovery/groupId artifactIdcommons-discovery/artifactId version0.4/version /dependency dependency groupIdorg.apache.axis2/groupId artifactIdaxis2-kernel/artifactId version1.2/version scopecompile/scope exclusions exclusion groupIdjunit/groupId artifactIdjunit/artifactId /exclusion /exclusions /dependency dependency groupIdwsdl4j/groupId artifactIdwsdl4j/artifactId version1.6.2/version /dependency /dependencies build plugins plugin !-- see http://ws.apache.org/axis2/tools/1_2/maven-plugins/maven-wsdl2code-plugin.html -- groupIdorg.apache.axis2.maven2/groupId artifactIdaxis2-wsdl2code-maven-plugin/artifactId configuration packageNamecom.au.marj.wsdl.evant.dprj.intf/packageName generateTestcasetrue/generateTestcase wsdlFilesrc/main/resources/WebInterface.wsdl/wsdlFile /configuration executions execution goals goalwsdl2code/goal /goals /execution /executions /plugin /plugins /build javax/wsdl/WSDLException seems to reside in wsdl4j-1.6.2.jar however, have tried many versions of this jar with no luck yet. I have tried many versions of wsdl4j - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/WSDL2Code-Axis2-javax-wsdl-WSDLException-NoClassDefFoundError-tf3965534s177.html#a12113629 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-assembly-plugin and signed jars
I'm using maven-assembly-plugin and jar-with-dependencies descriptor to generate an executable jar for my desktop application. But when I try to execute this jar, I have the following exception: Exception in thread main java.lang.SecurityException: no manifiest section for signature file entry javax/activation/DataContentHandlerFactory.class at sun.security.util.SignatureFileVerifier.verifySection( SignatureFileVerifier.java:377) at sun.security.util.SignatureFileVerifier.processImpl( SignatureFileVerifier.java:231) at sun.security.util.SignatureFileVerifier.process( SignatureFileVerifier.java:176) at java.util.jar.JarVerifier.processEntry(JarVerifier.java:233) at java.util.jar.JarVerifier.update(JarVerifier.java:188) at java.util.jar.JarFile.initializeVerifier(JarFile.java:325) at java.util.jar.JarFile.getInputStream(JarFile.java:390) at sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:620) at sun.misc.Resource.cachedInputStream(Resource.java:58) at sun.misc.Resource.getByteBuffer(Resource.java:113) at java.net.URLClassLoader.defineClass(URLClassLoader.java:249) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) And as a matter of fact, as explained in JIRA issues MASSEMBLY-64, RSA and other signature files for activation jar are still in the resulting jar. Is it normal? Is it a known bug? How can I fix this? -- Sébastien Arbogast http://www.sebastien-arbogast.com
Module builds individually but not inside the project
I'm using Maven 2.0.6. I've got a multi-module project as follows: - the flex module produces a swf artifact - the web module depends on the flew module and produces a war - the app module depends on the war module and produces an ear Because the swf artifact type is not handled natively by maven war plugin, I've added the following section to my web/pom.xml plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy-flex-resources/id phaseprocess-classes/phase goals goalcopy-dependencies/goal /goals configuration outputDirectory${project.build.directory }/flex-resources/outputDirectory includeTypesswf,swc/includeTypes stripVersiontrue/stripVersion /configuration /execution /executions /plugin When I run mvn install on the web module everything works fine, the build is successful. But when I run mvn install on the root project, which is supposed to build the app module, I get the following error: [INFO] [INFO] Building MyApp JEE Web [INFO]task-segment: [install] [INFO] [INFO] [andromda-multi-source:add-source {execution: default}] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [WARNING] While downloading itext:itext:0.99 This artifact has been relocated to com.lowagie:itext:0.99. [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [copy] Warning: /Users/sarbogast/dev/opalys-jee/web/src/main/jsp not found. [INFO] Executed tasks [INFO] [compiler:compile] [INFO] Compiling 3 source files to /Users/sarbogast/dev/opalys-jee/web/target/classes [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-1:copy-dependencies': Unable to find the mojo ' org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-1:copy-dependencies' in the plugin 'org.apache.maven.plugins:maven-dependency-plugin' Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-1:copy-dependencies . [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 31 seconds [INFO] Finished at: Wed Jun 20 14:45:03 CEST 2007 [INFO] Final Memory: 32M/58M [INFO] That's really weird. Any idea? -- Sébastien Arbogast http://www.sebastien-arbogast.com
Setting up a productive environment for web development
Hi all, I'm trying to migrate an EAR Maven2 project to a more productive setup. More precisely, we had a multi-module project with a WAR subproject and every time we updated a JSP or something, we had to compile and redeploy the whole EAR. So now I have extracted the war module out of the project with the proper dependencies, and I am trying to set up an exploded deployment set up so that I don't have to redeploy the whole thing. I set up a Jetty environment as explained in the Better Builds With Maven book but now I can't figure out how to set up a JNDI datasource so that the application can connect to the database. And the Jetty website is not very precise about how to do that, and about the necessary environment to make it work. Can anyone help me with that? Is there another simple solution than using Jetty? Thanks in advance. -- Sébastien Arbogast http://www.sebastien-arbogast.com
Re: Error in running mvn
I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8380081 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: Error in running mvn
My mistake. I just realized that I installed maven in /usr/local/maven-2.0.4and my M2_HOME variable is /usr/local/lib/maven- 2.0.4. That should be the problem. Sorry about that and thanks for your time. 2007/1/16, franz see [EMAIL PROTECTED]: Good day, Kindly verify that you have $M2_HOME\core\boot\classworlds-1.1.jar. Cheers, Franz Sebastien Arbogast wrote: I have exactly the same Exception popping up and my environment variables are correctly set: [EMAIL PROTECTED]:~# mvn --version Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher [EMAIL PROTECTED]:~# echo $M2_HOME /usr/local/lib/maven-2.0.4 [EMAIL PROTECTED]:~# echo $JAVA_HOME /usr/lib/jvm/java-1.5.0-sun What else could it be? Neeraj Bisht wrote: you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj -- View this message in context: http://www.nabble.com/Error-in-running-mvn-tf2764641s177.html#a8384398 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com
Accessing profile properties from unit test
I'm using TestNG to test a few Spring services and I would need to clean up a few tables before running each test. For that, the most simple way I'm thinking of is to execute a bunch of TRUNCATE statements from inside my unit test via JDBC. But for that I need my database information which is in properties in the active profile. Is there a way to access such properties from inside my test class? -- Sébastien Arbogast http://www.sebastien-arbogast.com
Maven 2 for desktop applications
I know that this question has been asked many many times and still I cannot find one single valid answer with a simple google request like Maven2 desktop. Actually, everytime the answer seems to be about the same, Maven can allow that, but it can't do it by default: you have to tinker a bit, use a bit of assembly plugin here, a few ant scripts behind the scenes, and in the end, you get something working. The problem is that it's incredibly fragile and it relies upon a default lifecycle that is clearly server-oriented. IMHO, developing a desktop application with Swing for example, is sufficiently different from a JEE application to define: - a specialized set of lifecycle phases for it, with other default targets - a new artifact to ease the creation of new projects What do you think? Is someone using only Maven 2 for building pure desktop applications? How do you do it? What are best practices and conventions in that matter? Is there any work in progress related to Maven 2 for desktop applications? Because I'm kind of frustrated to be forced to use old low-level ant scripts or IDE-specific builders to do the job while having my server components nicely built with Maven. Of course if nothing exists, I'll try to do something myself, but I want to be sure that I won't reinvent the wheel first, and have some feedback about this. Cheers. -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven rant
But you won't solve the main issue of a wiki system: information replacement. I still think that a comment system would be more reliable on the long term. 2006/11/2, Sebastien Brunot [EMAIL PROTECTED]: I'm just joining, but what about creating a wiki with the entire free maven book content so that the (user) community can update it ? I agree to the fact that you need some predefined structure to ensure effective documentation by users / developers. Adding a snipet of documentation should be a no cost operation, and having a predefined structure may help to achieve this goal. Sebastien -Original Message- From: Sebastien Arbogast [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 2:45 PM To: Maven Users List Subject: Re: Maven rant 2 thoughts about what you wrote Vincent: I totally agree on the fact that a few people have to write the core of the documentation before any community effort can be considered. But at some point, a PDF and an errata page is not the best way to create a community effort in order to keep this book up-to-date and more accessible. This leads me to the second point: Maven's wiki doesn't work for the very same reason Cocoon one didn't, for the very same reason I've never seen one good documentation effort based solely on a WIKI: no structure! And that's exactly what your book could be useful as: some sort of a spinal cord on which other content can be aggregated and accumulated over time, and sometimes assimilated on a rewrite. Moreover, I don't believe in Wikis at all because instead of adding some information, it just replaces it, even if it keeps some kind of version tracking behind the scenes. IMHO, Maven documentation should look like that: http://drupal.org/handbooks 2006/10/31, Vincent Massol [EMAIL PROTECTED]: -Original Message- From: Sebastien Arbogast [mailto:[EMAIL PROTECTED] Sent: mardi 31 octobre 2006 14:18 To: Maven Users List Subject: Re: Maven rant I totally agree but I think that the problem is very difficult to solve, especially with all the incredible amount of undeocumented features that Maven has. Moreover, the problem is amplified by the fact that Maven allows the generation of most of the documentation: but if you don't write it, it won't write itself, so you will endup with dead links everywhere. As I see it, the problem in most Open Source projects is that developers do that on their free time, and developers aren't writers: those are two completely different tasks and the second one is not the most enjoyable. And last but not least: Open Source software is highly evolutive: why bother write some documentation for a feature that can be replaced by something more interesting in no-time and without any possible anticipation. The thing is that Maven is not the first Maven project I work with which faces that very issue. I had exactly the same problems a few months ago with Cocoon guys, and my remark is still the same: why do project leaders keep on considering documentation as a static thing. Think of Hibernate or PHP documentation: one base reference book with DYNAMIC comments in which people can share their thoughts and experiences about each feature/chapter, remarks that can be later integrated when the reference is rewritten. The problem is that, whereas development itself is a highly-collaborative and efficient process, nothing is really done so that documentation writing is collaborative enough: no workflow, no direct input, no dynamic comments, etc. Think of it: Better Builds With Maven is the most comprehensive documentation about Maven2. But was it written collaboratively? No. And I'm convinced that if it had been, it would be much higher quality and much more accessible today. Sebastien, I don't believe this is true. This is the same as any open source project. It's not the community that creates an open source project. It's one or two guys (possibly 3 ;-)). Then once there is a strong kernel developed by these few guys then others will join and help. The same is true for documentation. You need one or 2 leaders to first write the core of it. This is what we've done with BBWM. Now I agree that a good idea could be to build on it by opening it up to the community. But don't believe a single instant that the community will write a good quality book by itself. BTW there's already a Maven wiki which is opened to anyone interested. It's been there for more than a year but I wouldn't call the result comprehensive documentation. Thanks -Vincent 2006/10/31, dhoffer [EMAIL PROTECTED]: Jeff, I use maven and I really like it and I don't want this to sound like negative criticism but you are right, the learning curve for maven newbie's is huge and there just isn't much good docs available. I have wound up getting bits of pieces of info from here and there...it just takes so long
Re: Maven rant
2 thoughts about what you wrote Vincent: I totally agree on the fact that a few people have to write the core of the documentation before any community effort can be considered. But at some point, a PDF and an errata page is not the best way to create a community effort in order to keep this book up-to-date and more accessible. This leads me to the second point: Maven's wiki doesn't work for the very same reason Cocoon one didn't, for the very same reason I've never seen one good documentation effort based solely on a WIKI: no structure! And that's exactly what your book could be useful as: some sort of a spinal cord on which other content can be aggregated and accumulated over time, and sometimes assimilated on a rewrite. Moreover, I don't believe in Wikis at all because instead of adding some information, it just replaces it, even if it keeps some kind of version tracking behind the scenes. IMHO, Maven documentation should look like that: http://drupal.org/handbooks 2006/10/31, Vincent Massol [EMAIL PROTECTED]: -Original Message- From: Sebastien Arbogast [mailto:[EMAIL PROTECTED] Sent: mardi 31 octobre 2006 14:18 To: Maven Users List Subject: Re: Maven rant I totally agree but I think that the problem is very difficult to solve, especially with all the incredible amount of undeocumented features that Maven has. Moreover, the problem is amplified by the fact that Maven allows the generation of most of the documentation: but if you don't write it, it won't write itself, so you will endup with dead links everywhere. As I see it, the problem in most Open Source projects is that developers do that on their free time, and developers aren't writers: those are two completely different tasks and the second one is not the most enjoyable. And last but not least: Open Source software is highly evolutive: why bother write some documentation for a feature that can be replaced by something more interesting in no-time and without any possible anticipation. The thing is that Maven is not the first Maven project I work with which faces that very issue. I had exactly the same problems a few months ago with Cocoon guys, and my remark is still the same: why do project leaders keep on considering documentation as a static thing. Think of Hibernate or PHP documentation: one base reference book with DYNAMIC comments in which people can share their thoughts and experiences about each feature/chapter, remarks that can be later integrated when the reference is rewritten. The problem is that, whereas development itself is a highly-collaborative and efficient process, nothing is really done so that documentation writing is collaborative enough: no workflow, no direct input, no dynamic comments, etc. Think of it: Better Builds With Maven is the most comprehensive documentation about Maven2. But was it written collaboratively? No. And I'm convinced that if it had been, it would be much higher quality and much more accessible today. Sebastien, I don't believe this is true. This is the same as any open source project. It's not the community that creates an open source project. It's one or two guys (possibly 3 ;-)). Then once there is a strong kernel developed by these few guys then others will join and help. The same is true for documentation. You need one or 2 leaders to first write the core of it. This is what we've done with BBWM. Now I agree that a good idea could be to build on it by opening it up to the community. But don't believe a single instant that the community will write a good quality book by itself. BTW there's already a Maven wiki which is opened to anyone interested. It's been there for more than a year but I wouldn't call the result comprehensive documentation. Thanks -Vincent 2006/10/31, dhoffer [EMAIL PROTECTED]: Jeff, I use maven and I really like it and I don't want this to sound like negative criticism but you are right, the learning curve for maven newbie's is huge and there just isn't much good docs available. I have wound up getting bits of pieces of info from here and there...it just takes so long. It would be great if some maven gurus could solve this problem and make maven more accessible. Jeff Mutonho wrote: Is maven in the process of unintentionally killing itself due to poor support and documentation?I may be wrong but I strongly feel that the poor support and documentation is hampering adoption of an otherwise brilliant tool.It always seems like the participation of plugin developers in answering questions from mere users like myself is non-existent.Then lets not forget the poor documentation.The BB book was an excellent idea ,but sometimes it just does not address problems users face on the setup battle field and the configuration trenches we're all familiar with.I'll give an example that relates to my experience.I posted questions relating to problems with the Maven Wagon
Re: [M2] Ant-based plugin and target classpath
Great news!!! I was a bit disappointed to see that launch4j only generates .exe launchers for Windows so I'm not sure it will be suitable for my project but I'll have a look. I hope it gets to official repositories soon. 2006/10/23, pjungwir [EMAIL PROTECTED]: Hello, I just finished a launch4j plugin. You can find info on it here: http://9stmaryrd.com/tools/launch4j-maven-plugin/ Paul -- View this message in context: http://www.nabble.com/-M2--Ant-based-plugin-and-target-classpath-tf2485665.html#a6960634 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Ant-based plugin and target classpath
I'm trying to develop a Launch4j Maven2 plugin by reading this tutorial: http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html Now I have a problem because launch4j uses a custom ant task so I need to specify a classpath that indicates where to find launch4j.jar (which I have manually installed into my local repository in net/sf/launch4j/launch4j/3.0.0-pre1/launch4j-3.0.0-pre1.jar) and xstream. How can I specify this classpath in the following ant build.xml: project ... target name=exe taskdef name=launch4j classname=net.sf.launch4j.ant.Launch4jTask classpath=[WHAT DO I WRITE HERE?] / launch4j configFile=${configurationFile} / /target ... /project Cheers, -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Equivalent of One-Jar as Maven2 plugin
I was trying to deliver my Maven2-built desktop application as a single executable JAR with all dependencies included (using Assembly plugin) when I realized that the default classloading mechanism doesn't allow it. I had a look à One-Jar (http://one-jar.sourceforge.net/) and I was told that UberJar did that for Maven1. Is there an equivalent for this kind of use with Maven2? -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Customizing MANIFEST.MF with assembly plugin
Hi, I'm currently investigating the use of Maven Assembly Plugin and I'd like the generated jar archive to be executable. For that I need the manifest to include a Main-Class attribute. The problem is that I don't manage to get a customized Manifest into the generated assembly. I've tried to add configuration for JAR plugin in my POM, and I added META-INF/MANIFEST.MF to src/main/resources, but none of these worked. Does someone have a solution? -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Mojo and access to another plugin's configuration
Is it possible to access a configuration option of another plugin? I'm currently developing a plugin that needs to get a reference to the path where the WAR plugin writes the exploded web application. More specifically, my mojo is linked to the generate-resources phase and needs to have a File parameter corresponding to the webappDirectory parameter of the war plugin. Is it possible? If yes, how can I do that? FYI, I tried the following but webappDirectory is null: /** * WAR plugin target directory * @parameter default-value=${war.webappDirectory} * @readonly */ private File webappDirectory; -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Mojo development: access to resources inside the plugin
In the plugin I'm working on, I have a src/main/resources/foo directory and as a result, when the plugin is packaged, I get a foo directory at the root of the plugin jar, and that's fine. But now I want to get a java.io.File reference to this foo directory from inside the code of one of my mojos. How can I do that? -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven book: feedback
Why not trying to innovate then? Why not getting the source code of the book available to the community and make its improvement a community effort? It could be an interesting experiment: using the current version as a working basis, you could allow people to pinpoint parts that could be improved, and others could propose rewritten sections. Technically, you could use a CMS, with one page for each subsection of the book, and people could leave comments about each section. Sometimes people could gather several remarks and rewrite the section to take them into account, thus creating a new version of the section. And that way, the book would be more dynamic andit would be easier to update it as Maven evolves. I've already done that kind of things with Drupal and it gave quite good results. What do you think ? Open Source documentation ? 2006/7/16, Vincent Massol [EMAIL PROTECTED]: Hi Sebastien, I'm glad that you liked the m1 book ;-) but I'm sorry that you don't like the new m2 one... There are probably several reasons. One of them may be that it's hard to write with a consistent voice and consistent progression when several authors write at the same time. OTOH this has allowed us to cover an important variety of topics and to release the book when it was needed. I guess the other hard part when we wrote the m2 book is that m2 was and still is evolving. This is one reason why an online format is a good choice. So I guess that in order to improve in the next release of the m2 book we should get someone to review/reorder/rewrite the junctions between the different chapters to get a more seamless flow between them and so that the progression remains constant. What would make this even easier would be to get help from the community to tell us precisely where things should be improved. AFAIK there's no Maven2 Developer's Notebook in the pipeline and I think we should be able to improve this one over time. It's an online book and thus has the power of being modified more easily. Thanks for your feedback. -Vincent -Original Message- From: Sebastien Arbogast [mailto:[EMAIL PROTECTED] Sent: samedi 15 juillet 2006 18:11 To: Maven users list Subject: Maven book: feedback Hi, I'm currently in the process of reading Better builds with Maven and to be honnest... I'm quite disappointed. I found Maven Developer's notebook for Maven 1 excellent, and I said it a few times on this list. It's even one of the books I used the most often for some time. And when Vincent Massol announced at JavaPolis in last december that a free Maven2 book was on its way, I was very excited, because I dreamt of such a good book combined with all the marvels of Maven2 that he demonstrated. When I started reading Better Builds with Maven for the first time, just after it was released, I was quickly annoyed by the number of errors and the inconsistence of sample source code with what was reproduced in the book. So I waited for the updated version with corrected errata and I'm reading it right now... and I'm somewhat disappointed because it puzzles me more than anything. It starts off with a very basic introduction to what is Maven, how it was designed... and suddenly, it jumps straight up to web services and very elaborated samples that have nothing to do with a progressive and pragmatic approach. Even worse: samples are full of noise concerning exotic plugins and their configuration and the structure is very... weird. I'm not into free criticism, but I think feedback is important, even when it's negative. And based on that, I would like to know if there is a Maven2 Developer's Notebook in the pipeline, something more pragmatic, something simpler, something that would give justice to the beauty of Maven2. Because I'm afraid this one could frighten new users more than encourage them to abandon their old Ant scripts. Because I would even be ready to pay a few tens of bucks just to get the same experience I had with the first O'Reilly volume. And because obviously, I miss a lot of knowledge to write it myself. Once again, don't take me wrong: this is not free criticism, this is just my humble yet negative feedback as a user who's been using Maven1 for about a year and a half on personal and professional projects, and who's looking for an efficient and comprehensive reference book to migrate to Maven 2 and understand its changes pragmatically and progressively. -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL
Re: [M2] Mojo development: access to resources inside the plugin
That's exactly what I'm trying to achieve: the foo directory contains a tree of directories and files that I'd like to copy over to some target directory. 2006/7/16, Dennis Lundberg [EMAIL PROTECTED]: It depends on what you want to do with the resource. I used it with FileUtils.copyURLToFile( url, new File( outputDirectory, filename ) ); to copy a resource from within the jar file to the target directory. -- Dennis Lundberg dan tran wrote: Dennis, would you suggestion work? since the resource is in a jar, and therefore obtaining a File object is not possible. am I missing something? -D On 7/16/06, Dennis Lundberg [EMAIL PROTECTED] wrote: Sebastien Arbogast wrote: In the plugin I'm working on, I have a src/main/resources/foo directory and as a result, when the plugin is packaged, I get a foo directory at the root of the plugin jar, and that's fine. But now I want to get a java.io.File reference to this foo directory from inside the code of one of my mojos. How can I do that? You can get a URL which can then be used to create a file like this: URL url = this.getClass().getClassLoader().getResource( /foo ); -- Dennis Lundberg - 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] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Mojo development: access to resources inside the plugin
I tried that, based on Dennis' proposition: URL url = this.getClass().getClassLoader().getResource( /foo ); try { File servlet = new File(url.toURI()); getLog().info(servlet.getAbsolutePath()); } catch (URISyntaxException e) { throw new MojoExecutionException(e.getMessage(),e); } But then I got an exception on the first line of the try block: java.lang.IllegalArgumentException: URI is not hierarchical I was thinking of using IOUtils to copy the content of foo to another directory but it seems to be harder than I thought. 2006/7/16, dan tran [EMAIL PROTECTED]: Thanks On 7/16/06, Dennis Lundberg [EMAIL PROTECTED] wrote: It depends on what you want to do with the resource. I used it with FileUtils.copyURLToFile( url, new File( outputDirectory, filename ) ); to copy a resource from within the jar file to the target directory. -- Dennis Lundberg dan tran wrote: Dennis, would you suggestion work? since the resource is in a jar, and therefore obtaining a File object is not possible. am I missing something? -D On 7/16/06, Dennis Lundberg [EMAIL PROTECTED] wrote: Sebastien Arbogast wrote: In the plugin I'm working on, I have a src/main/resources/foo directory and as a result, when the plugin is packaged, I get a foo directory at the root of the plugin jar, and that's fine. But now I want to get a java.io.File reference to this foo directory from inside the code of one of my mojos. How can I do that? You can get a URL which can then be used to create a file like this: URL url = this.getClass().getClassLoader().getResource( /foo ); -- Dennis Lundberg - 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] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Mojo development: access to resources inside the plugin
And would you do that? I mean, foo is a directory, it contains a whole file tree. I don't quite get it. 2006/7/16, dan tran [EMAIL PROTECTED]: Denis suggests to copy contents of URL to a file first before accessing it. -D On 7/16/06, Sebastien Arbogast [EMAIL PROTECTED] wrote: I tried that, based on Dennis' proposition: URL url = this.getClass().getClassLoader().getResource( /foo ); try { File servlet = new File(url.toURI()); getLog().info(servlet.getAbsolutePath()); } catch (URISyntaxException e) { throw new MojoExecutionException(e.getMessage(),e); } But then I got an exception on the first line of the try block: java.lang.IllegalArgumentException: URI is not hierarchical I was thinking of using IOUtils to copy the content of foo to another directory but it seems to be harder than I thought. 2006/7/16, dan tran [EMAIL PROTECTED]: Thanks On 7/16/06, Dennis Lundberg [EMAIL PROTECTED] wrote: It depends on what you want to do with the resource. I used it with FileUtils.copyURLToFile( url, new File( outputDirectory, filename ) ); to copy a resource from within the jar file to the target directory. -- Dennis Lundberg dan tran wrote: Dennis, would you suggestion work? since the resource is in a jar, and therefore obtaining a File object is not possible. am I missing something? -D On 7/16/06, Dennis Lundberg [EMAIL PROTECTED] wrote: Sebastien Arbogast wrote: In the plugin I'm working on, I have a src/main/resources/foo directory and as a result, when the plugin is packaged, I get a foo directory at the root of the plugin jar, and that's fine. But now I want to get a java.io.File reference to this foo directory from inside the code of one of my mojos. How can I do that? You can get a URL which can then be used to create a file like this: URL url = this.getClass().getClassLoader().getResource( /foo ); -- Dennis Lundberg - 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] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven book: feedback
OTOH there's already open documentation on the Maven wiki and in Maven's svn. It's not because it's open that people contribute more or that the quality is better... IMHO, Wiki is too open, SVN is not open enough. A CMS would be a middle-alternative allowing people to add remarks without modifying the original content. And only committers could decide to synthetize a few remarks and create a new version of the content. I totally agree with you: it's not because it's open that people contribute more or that the quality is better... but with the right tools and methods, it's exactly what happens. Think of how Open Source software works: anybody can propose patches, only committers can apply them. With such an open documentation effort, everybody could submit comments, only committers could rewrite sections to integrate those remarks. PHP project has been doing that for years and their documentation is wonderful: even non-committed comments are useful because they offer very pragmatic and issue-driven answers to specific problems. We had exactly the same discussion last year with Cocoon community when Mark Leicester and I tried to start an open documentation effort for Cocoon (http://www.planetcocoon.com). I've always thought that Apache's projects documentation could greatly benefit from such an open approach for documentation. -Original Message- From: Sebastien Arbogast [mailto:[EMAIL PROTECTED] Sent: dimanche 16 juillet 2006 21:39 To: Maven Users List Subject: Re: Maven book: feedback Why not trying to innovate then? Why not getting the source code of the book available to the community and make its improvement a community effort? It could be an interesting experiment: using the current version as a working basis, you could allow people to pinpoint parts that could be improved, and others could propose rewritten sections. Technically, you could use a CMS, with one page for each subsection of the book, and people could leave comments about each section. Sometimes people could gather several remarks and rewrite the section to take them into account, thus creating a new version of the section. And that way, the book would be more dynamic andit would be easier to update it as Maven evolves. I've already done that kind of things with Drupal and it gave quite good results. What do you think ? Open Source documentation ? 2006/7/16, Vincent Massol [EMAIL PROTECTED]: Hi Sebastien, I'm glad that you liked the m1 book ;-) but I'm sorry that you don't like the new m2 one... There are probably several reasons. One of them may be that it's hard to write with a consistent voice and consistent progression when several authors write at the same time. OTOH this has allowed us to cover an important variety of topics and to release the book when it was needed. I guess the other hard part when we wrote the m2 book is that m2 was and still is evolving. This is one reason why an online format is a good choice. So I guess that in order to improve in the next release of the m2 book we should get someone to review/reorder/rewrite the junctions between the different chapters to get a more seamless flow between them and so that the progression remains constant. What would make this even easier would be to get help from the community to tell us precisely where things should be improved. AFAIK there's no Maven2 Developer's Notebook in the pipeline and I think we should be able to improve this one over time. It's an online book and thus has the power of being modified more easily. Thanks for your feedback. -Vincent -Original Message- From: Sebastien Arbogast [mailto:[EMAIL PROTECTED] Sent: samedi 15 juillet 2006 18:11 To: Maven users list Subject: Maven book: feedback Hi, I'm currently in the process of reading Better builds with Maven and to be honnest... I'm quite disappointed. I found Maven Developer's notebook for Maven 1 excellent, and I said it a few times on this list. It's even one of the books I used the most often for some time. And when Vincent Massol announced at JavaPolis in last december that a free Maven2 book was on its way, I was very excited, because I dreamt of such a good book combined with all the marvels of Maven2 that he demonstrated. When I started reading Better Builds with Maven for the first time, just after it was released, I was quickly annoyed by the number of errors and the inconsistence of sample source code with what was reproduced in the book. So I waited for the updated version with corrected errata and I'm reading it right now... and I'm somewhat disappointed because it puzzles me more than anything. It starts off with a very basic introduction to what is Maven, how it was designed... and suddenly, it jumps straight up to web services and very elaborated samples that have nothing to do with a progressive
Re: [M2] Mojo development: access to resources inside the plugin
Yeah that's what I had thought of eventually. But the content of the foo directory was already the unzipped version of a war archive. And I just discovered that when you add a war as a dependency for a webapp project, the dependency gets unzipped and repackaged with your resources and other files. I don't understand why and how I can get the most out of it but it's exactly what I'm trying to achieve: I have a war containing a basing presentation server (OpenLaszlo to be more precise), and I want to unpackage it, add my own resources and files from the src directory and repackage the thing. I just have to figure out how to cake my plugin collaborate with war plugin now to get what I want. 2006/7/17, Mark Hewett [EMAIL PROTECTED]: Maybe you can pack your foo directory structure into a JAR that gets put into your plugin JAR. You can then try something like: InputStream is = this.getClass().getClassLoader().getResourceAsStream( /foo.jar ); JarInputStream jis = new JarInputStream(is); JarEntry je = null; while ((je = jis.getNextJarEntry()) != null) { // write jar entry to file system } Note that this is completely untested (not even compiled!), and you will have to write code to extract each file from the JAR (or google it), but hopefully it's something that might work for you. Mark On 7/16/06, Sebastien Arbogast [EMAIL PROTECTED] wrote: I tried that, based on Dennis' proposition: URL url = this.getClass().getClassLoader().getResource( /foo ); try { File servlet = new File(url.toURI()); getLog().info(servlet.getAbsolutePath()); } catch (URISyntaxException e) { throw new MojoExecutionException(e.getMessage(),e); } But then I got an exception on the first line of the try block: java.lang.IllegalArgumentException: URI is not hierarchical I was thinking of using IOUtils to copy the content of foo to another directory but it seems to be harder than I thought. 2006/7/16, dan tran [EMAIL PROTECTED]: Thanks On 7/16/06, Dennis Lundberg [EMAIL PROTECTED] wrote: It depends on what you want to do with the resource. I used it with FileUtils.copyURLToFile( url, new File( outputDirectory, filename ) ); to copy a resource from within the jar file to the target directory. -- Dennis Lundberg dan tran wrote: Dennis, would you suggestion work? since the resource is in a jar, and therefore obtaining a File object is not possible. am I missing something? -D On 7/16/06, Dennis Lundberg [EMAIL PROTECTED] wrote: Sebastien Arbogast wrote: In the plugin I'm working on, I have a src/main/resources/foo directory and as a result, when the plugin is packaged, I get a foo directory at the root of the plugin jar, and that's fine. But now I want to get a java.io.File reference to this foo directory from inside the code of one of my mojos. How can I do that? You can get a URL which can then be used to create a file like this: URL url = this.getClass().getClassLoader().getResource( /foo ); -- Dennis Lundberg - 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] -- Sébastien Arbogast http://www.sebastien-arbogast.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] -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven book: feedback
Hi, I'm currently in the process of reading Better builds with Maven and to be honnest... I'm quite disappointed. I found Maven Developer's notebook for Maven 1 excellent, and I said it a few times on this list. It's even one of the books I used the most often for some time. And when Vincent Massol announced at JavaPolis in last december that a free Maven2 book was on its way, I was very excited, because I dreamt of such a good book combined with all the marvels of Maven2 that he demonstrated. When I started reading Better Builds with Maven for the first time, just after it was released, I was quickly annoyed by the number of errors and the inconsistence of sample source code with what was reproduced in the book. So I waited for the updated version with corrected errata and I'm reading it right now... and I'm somewhat disappointed because it puzzles me more than anything. It starts off with a very basic introduction to what is Maven, how it was designed... and suddenly, it jumps straight up to web services and very elaborated samples that have nothing to do with a progressive and pragmatic approach. Even worse: samples are full of noise concerning exotic plugins and their configuration and the structure is very... weird. I'm not into free criticism, but I think feedback is important, even when it's negative. And based on that, I would like to know if there is a Maven2 Developer's Notebook in the pipeline, something more pragmatic, something simpler, something that would give justice to the beauty of Maven2. Because I'm afraid this one could frighten new users more than encourage them to abandon their old Ant scripts. Because I would even be ready to pay a few tens of bucks just to get the same experience I had with the first O'Reilly volume. And because obviously, I miss a lot of knowledge to write it myself. Once again, don't take me wrong: this is not free criticism, this is just my humble yet negative feedback as a user who's been using Maven1 for about a year and a half on personal and professional projects, and who's looking for an efficient and comprehensive reference book to migrate to Maven 2 and understand its changes pragmatically and progressively. -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Any news about the update of Maven2 book with corrected errata ?
Sorry to be late on the answer but I was very busy lately... and very off too :P Yes I am voluteering as a technical reviewer. Not as an author because I'm still a newbie with Maven2, but technical reviewer, that I can do it. -- Sébastien Arbogast http://www.sebastien-arbogast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Apache as a proxy for Continuum
2006/6/23, Trygve Laugstøl [EMAIL PROTECTED]: Sebastien Arbogast wrote: I've just got Continuum up and running for one of my projects and the last build ran successfully. Now I want to improve the visibility of continuum: so far, it's accessible on http://myhost.com:8080/continuum and I'd like it to be visible at http://continuum.myhost.com, without the port number. I guess I have to create a VirtualHost in my Apache2 configuration and I guess that has something to do with mod_proxy. But I'm still far from an Apache wizard and this page ((http://maven.apache.org/continuum/guides/mini/guide-configuration.html) doesn't help me much because I don't even know where to put things. Does anyone have an example of a working configuration ? A tutorial or something ? The page that you linked to contains working examples for Continuum and Apache Httpd. The Continuum part goes into application.xml and the two httpd lines goes into the apache configuration. For debian the default is /etc/apache2/httpd.conf, for OpenSolaris it is /etc/apache/httpd.conf. -- Trygve I've copy/pasted the application.xml section and added the following virtual host to my Apache configuration but I keep getting a Forbidden message when trying to access http://continuum.myhost.com. VirtualHost *:80 ServerName continuum.myhost.com ServerAdmin [EMAIL PROTECTED] Location / Options FollowSymLinks AllowOverride All /Location ProxyPass / http://localhost:8090/continuum/ ProxyPassReverse / http://localhost:8090/continuum/ /VirtualHost I know that this question is more related to Apache configuration but I was hoping that someone would have a working example. -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Using Apache as a proxy for Continuum
I've just got Continuum up and running for one of my projects and the last build ran successfully. Now I want to improve the visibility of continuum: so far, it's accessible on http://myhost.com:8080/continuum and I'd like it to be visible at http://continuum.myhost.com, without the port number. I guess I have to create a VirtualHost in my Apache2 configuration and I guess that has something to do with mod_proxy. But I'm still far from an Apache wizard and this page ((http://maven.apache.org/continuum/guides/mini/guide-configuration.html) doesn't help me much because I don't even know where to put things. Does anyone have an example of a working configuration ? A tutorial or something ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Any news about the update of Maven2 book with corrected errata ?
Any news about the updated version of Maven2 book ? If you need help, I'm volunteer :oP -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status on mavenide (maven2) IDEA plugin?
I don't know exactly where you guys are on this initiative, but I can tell you that I'm waiting for it. As a matter of fact, there is one feature that I'd like to see: project goal shortcuts. When working with maven one, I could combine a sequence of goals into one by simply adding a custom goal to the maven.xml file. Now this is not possible anymore and I'd like to be able to run complex Maven 2 goals with options and so on by simply pressing a button or double-clicking an item in my favourite IDE. And why not adding the possibility to elaborate these shortcuts via a GUI form? As of now, I'm using External tools to do that but it's very poor and it's IDE-level whereas a project-level setting would be more appropriate. What do you think ? 2006/5/29, Trygve Laugstøl [EMAIL PROTECTED]: Arik Kfir wrote: well, about a month ago me, milos and jason chatted on irc and mapped the features and (rough) outline/scope of the plugin(s). jason is to publish a docu of that as a summary when he will find the time, and then we can start plan the technical details of the idea plugin to make things worse, I left the mevenide-idea cvs head in a bit of a flux, cause I was in the middle of restructuring it when I started working on a project which took all of my time (and more...). but there's a tag for the 0.1 release which is stable. my gut feeling, though, is that we should start from scratch and not use the mevenide code (or atleast do very selective copying) because the mevenide plugin is very m1-oriented Ok, but I hope to be able to share a few bits with the netbeans and eclipse plugins. we can schedule a meeting on irc and start planning the technical details if you wish... That would be a good idea. I already have a good amount of source code that I would like to put in a repository ASAP so that the rest of you can take a look too. -- Trygve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Ghost dependencies
2.1-SNAPSHOT of the war plugin only includes dependencies with a runtime scope for exploded,inplace and war goals. I think by default an artifact has a compile scope unless you modify the default scope then it shouldn't be included in the war. I don't know which version of the war plugin I'm using but what disturbs me is that, for all the other dependencies in my root pom, a runtime scope is enough to have them included in the WAR, sometimes I don't even mention them in the dependencies section of my web module pom. But you're right: I just added it to my web module pom and it works great. Thank you very much! -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2 book version 1.1?
When I started reading the new Maven2 book, I noticed quite a few mistakes here and there and I tried to mark them in the PDF in order to report them later... until I noticed that the Errata section on Mergere's site was already quite complete. My question is, do you plan to release an updated version of the book with errata corrected? Because reading the book on a screen is already not very comfortable, but reading it in parallel with the errata page can be a real pain. -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Ghost dependencies
I have trouble understanding the new dependency mechanism. I added a dependency like this in my root pom dependencyManagament section: dependency groupIdjakarta-regexp/groupId artifactIdjakarta-regexp/artifactId version1.4/version scoperuntime/scope /dependency It's not the only one, I've added several ones like that and they all appear in the resulting webapp WEB-INF/lib directory, except for this one. There is no exclude on jakarta-regexp in other dependencies, and I can't find what's wrong. Any idea? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Continuum or CruiseControl as a CI server ?
It's fine for Subversion and mail notifications. But are these the only limitations of this development version ? In particular, is it safe to use it on a multi-module project ? 2006/5/4, Kaare Nilsen [EMAIL PROTECTED]: There is one(cruisecontrol config generation) started at the mojo project. http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/cruisecontrol-maven-plugin/ You can download this and install it manually and give it a go (though very early in the dev process, and only supports subversion and mail notifs), it will generate a cruisecontrol setup which will act the same way as an add m2 project in continuum. Also a mvn site:site on it will provide you with some documentation on use. /Kaare On 04/05/06, Sebastien Arbogast [EMAIL PROTECTED] wrote: Honestly, intuitively I have a small preference for CruiseControl. The only thing that bothers me is the redundancy of information between the POM and CC configuration file. So if there was a Maven2 plugin to generate the latter from the former, as there was one for Maven1, that would be great. 2006/5/4, Kieran Brady [EMAIL PROTECTED]: We're using the latest CruiseControl with Maven 2 successfully - no problem configuring it. At the time I neeeded to implement a CI system back in October, Continuum wasn't mature enough and I couldn't realistically put it forward as an option as I couldn't get it to work :) I haven't tried Continuum since as CruiseControl has been happily doing multi-module builds, single projects, profiled builds, nightly builds running all reports, on demand builds and so on and so I've no reason to migrate. A couple of links: http://cruisecontrol.sourceforge.net/main/configxml.html http://jira.public.thoughtworks.org/browse/CC-363 http://confluence.public.thoughtworks.org/display/CC/Home - Original Message - From: Alexandre Poitras [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, May 04, 2006 3:52 AM Subject: Re: [m2] Continuum or CruiseControl as a CI server ? Well Continuum does the job for me, never thought about switching. What I like about continuum is that you can customize the goals invoked during a build (for instance, clean site:deploy deploy). I have never used cruise control but I heard it's hard to configure. On 5/3/06, Sebastien Arbogast [EMAIL PROTECTED] wrote: I'm trying to find the best CI tool for a brand new Maven2-built project and I'd like to have your experience feedback about which one to choose between Continuum and CruiseControl. I know that, as Continuum is a spin-off of Maven project it should be better integrated with it. But on the other hand, CruiseControl seems more mature to me, even if, to be honnest, I haven't tried any of them in a real situation yet. That's why I need something more concrete. Is there any Maven 2 cruisecontrol plugin somewhere as there was one for Maven 1 ? What do you think ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - 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] -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2] Continuum or CruiseControl as a CI server ?
I've checked it out, and when I tried to run mvn install on it, I got the following exception: W:\data\dev\cruisecontrol-maven-pluginmvn install [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.codehaus.mojo ArtifactId: mojo-sandbox Version: 2-SNAPSHOT Reason: Unable to download the artifact from any repository org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.codeha us.mojo:mojo-sandbox for project: null:cruisecontrol-maven-plugin:maven-plugin:1 .0-SNAPSHOT at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent : org.codehaus.mojo:mojo-sandbox for project: null:cruisecontrol-maven-plugin:ma ven-plugin:1.0-SNAPSHOT at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D efaultMavenProjectBuilder.java:1161) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal (Def aultMavenProjectBuilder.java:674) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:416) at org.apache.maven.project.DefaultMavenProjectBuilder.build (DefaultMave nProjectBuilder.java:192) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java :447) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM ' org.codehaus. mojo:mojo-sandbox' not found in repository: Unable to download the artifact from any repository org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:513) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D efaultMavenProjectBuilder.java:1157) ... 17 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.codehaus.mojo:mojo-sandbox:pom:2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:136) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:63) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:467) ... 18 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl oad the artifact from any repository at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact (Def aultWagonManager.java:260) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:124) ... 20 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Thu May 04 11:55:23 CEST 2006 [INFO] Final Memory: 1M/2M [INFO] I guess I must configure codehaus repository somewhere but I don't know how. 2006/5/4, Sebastien Arbogast [EMAIL PROTECTED]: It's fine for Subversion and mail notifications. But are these the only limitations of this development version ? In particular, is it safe to use it on a multi-module project ? 2006/5/4, Kaare Nilsen [EMAIL PROTECTED]: There is one(cruisecontrol config generation) started at the mojo project. http
[m2] Site deploy tries to create a directory
I'm trying to deploy my site to sourceforge using either SCP or SFTP and I keep getting an error because it tries to create a root directory, which it shouldn't do because of sourceforge security policy. Here is my distributionManagement section: distributionManagement site idsourceforge/id nameSourceForge server/name urlscp://shell.sourceforge.net/tagspot/htdocs/dev/url /site downloadUrl http://sourceforge.net/project/showfiles.php?group_id=${maven.sourceforge.project.groupId} /downloadUrl /distributionManagement And here is the error message I get: W:\data\dev\tagspot-project\trunkmvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] - --- [INFO] Building TagSpot [INFO]task-segment: [site:deploy] [INFO] - --- [INFO] [site:deploy] The authenticity of host 'shell.sourceforge.net' can't be established. DSA key fingerprint is 4c:68:03:d4:5c:58:a6:1d:9d:17:13:24:14:48:ba:99. Are you sure you want to continue connecting? (yes/no): yes Password for [EMAIL PROTECTED]: b8m6ckz7 scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Opened Executing command: mkdir -p /tagspot/htdocs/dev/. scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Disconnecting scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/tagspot': Permission denied [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 15 seconds [INFO] Finished at: Thu May 04 12:47:49 CEST 2006 [INFO] Final Memory: 3M/6M [INFO] I've created the tagspot/htdocs/dev directory myself so I'm sure it exists. Is there a way to tell site plugin to to try to create parent directory ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2] Site deploy tries to create a directory
Bingo! You got it right! I was using the wrong URL. Now it's fine, the site has been successfully deployed. Thanks a lot. 2006/5/4, Julien Henry [EMAIL PROTECTED]: Are you sure your url is correct ? I work on a project on sourceforge, and the url is : scp://shell.sourceforge.net/home/groups/j/jw/jwebunit/htdocs ++ Sebastien Arbogast a écrit : I'm trying to deploy my site to sourceforge using either SCP or SFTP and I keep getting an error because it tries to create a root directory, which it shouldn't do because of sourceforge security policy. Here is my distributionManagement section: distributionManagement site idsourceforge/id nameSourceForge server/name urlscp://shell.sourceforge.net/tagspot/htdocs/dev/url /site downloadUrl http://sourceforge.net/project/showfiles.php?group_id=${maven.sourceforge.project.groupId} /downloadUrl /distributionManagement And here is the error message I get: W:\data\dev\tagspot-project\trunkmvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] - --- [INFO] Building TagSpot [INFO] task-segment: [site:deploy] [INFO] - --- [INFO] [site:deploy] The authenticity of host 'shell.sourceforge.net' can't be established. DSA key fingerprint is 4c:68:03:d4:5c:58:a6:1d:9d:17:13:24:14:48:ba:99. Are you sure you want to continue connecting? (yes/no): yes Password for [EMAIL PROTECTED]: b8m6ckz7 scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Opened Executing command: mkdir -p /tagspot/htdocs/dev/. scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Disconnecting scp://shell.sourceforge.net/tagspot/htdocs/dev - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/tagspot': Permission denied [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 15 seconds [INFO] Finished at: Thu May 04 12:47:49 CEST 2006 [INFO] Final Memory: 3M/6M [INFO] I've created the tagspot/htdocs/dev directory myself so I'm sure it exists. Is there a way to tell site plugin to to try to create parent directory ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- _ Julien HENRY | **Capgemini Sud **| Nice www.fr.capgemini.com http://www.capgemini.com/ Porte de l'Arénas – Entrée B | 455 Promenade des Anglais | 06200 Nice **Join the Collaborative Business Experience ** _ This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2] Maven idea plugin and project layout
I did an update and everything works fine now. The new plugin is great. Thanks. Has there been any work on Mevenide/IntelliJ for Maven2 yet ? Would you need help on that ? 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED]: I did what you suggested and I got a problem with another dependency: Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting-api/2.0/maven-reporting-api-2.0.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.apache.maven.reporting:maven-reporting-api:jar:2.0 from the specified remote repositories: central ( http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots ( http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-idea-plugin:maven-plugin:2.0-beta-2-SN APSHOT 2) org.apache.maven:maven-plugin-testing-harness:jar:1.0-SNAPSHOT 3) org.apache.maven:maven-core:jar:2.0 4) org.apache.maven.reporting:maven-reporting-api:jar:2.0 Caused by I/O exception: Connection timed out: connect [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 minutes 24 seconds [INFO] Finished at: Tue May 02 17:28:14 CEST 2006 [INFO] Final Memory: 5M/18M [INFO] 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: Are you using maven 2.0.4? I 've had an issue with maven 2.0.1 and the idea snapshot not working for it. But it doesn't look like the same issue. You're says Error transferring file. Try mvn install again or remove the plexus-util from your local repo and try mvn install again. Sebastien Arbogast wrote: OK. I managed to checkout sources, but when I ran mvn install, I got the following error: W:\data\dev\maven-idea-pluginmvn install [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven IDEA Plugin [INFO]task-segment: [install] [INFO] - --- [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] Extractor for language: java found 5 mojo descriptors. [INFO] Applying extractor for language: bsh [INFO] Extractor for language: bsh found 0 mojo descriptors. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/ plexus-utils-1.1.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.plexus:plexus-utils Reason: Error getting POM for 'org.codehaus.plexus:plexus-utils' from the reposi tory: Error transferring file org.codehaus.plexus:plexus-utils:pom:1.1 from the specified remote repositories: central (http://repo1.maven.org/maven2 ), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2 ) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 31 seconds [INFO] Finished at: Tue May 02 16:23:42 CEST 2006 [INFO] Final Memory: 5M/9M [INFO] W:\data\dev\maven-idea-plugin I must have missed something. 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: svn co ???/maven-idea-plugin mvn install Sebastien Arbogast wrote: Good to know. How do I install it ? 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: The latest snapshot idea plugin is far superiour to the latest release idea plugin. It does a lot more, like root module configuration etc. Sebastien Arbogast wrote: I'm going through the Maven 2 book and trying to open proficio project from chapter 3 inside Intellij. So I ran mvn idea:idea to generate project files, I opened the root project in IntelliJ but then there is no root module generated so I can't access project global files, like site files or root pom.xml. I could create this module myself, but then the next time I'm gonna run idea:idea
[m2-book] Where to actually configure report generation and display ?
In chapter 3, page 71, it's written: Even though the standard reports are very useful, often you will want to customize the projects reports that are created and displayed in your web site. The reports created and displayed are controlled in the build/reports element in the POM. You may want to be more selective about the reports that you generate and to do so you need to list each report that you want to include as part of the site generation. You do so by configuring the plugin as follows: And the example actually shows a modification of the plugin. So is it in the plugin or in build/reports, or in both ? And if it is in build/reports, what should I put there ? I'm a little bit lost. -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2 book] I don't get the same result when generating site.
I found the problem: The site descriptor code shown as an example in the book and the one provided with the downloaded archive are different. In the downloaded one there are menu ref=.../ tags that the site generator doesn't seem to understand. I've replaced them with what is in the PDF, and it works fine now. 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED]: At the end of chapter 3, when I generate the proficio's site, I get $menu.getAttribute( name ) references in the side menu instead of About proficio and Project documentation menus. Is that normal ? Does anyone know what may have gone wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2 book] I don't get the same result when generating site.
Actually, there's even another error in the code shown as an example, because there is no proficio-features page in the downloaded archive. So you have to create it. 2006/5/3, Sebastien Arbogast [EMAIL PROTECTED]: I found the problem: The site descriptor code shown as an example in the book and the one provided with the downloaded archive are different. In the downloaded one there are menu ref=.../ tags that the site generator doesn't seem to understand. I've replaced them with what is in the PDF, and it works fine now. 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED]: At the end of chapter 3, when I generate the proficio's site, I get $menu.getAttribute( name ) references in the side menu instead of About proficio and Project documentation menus. Is that normal ? Does anyone know what may have gone wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2 book] I don't get the same result when generating site.
Oh and sorry, the two menu items refer to Maven stuff instead of proficio: menu name=Quick Links item name=Features href=/maven-features.html/ /menu menu name=About Proficio item name=What is Proficio? href=/what-is-maven.html/ /menu instead of menu name=Quick Links item name=Features href=/proficio-features.html/ /menu menu name=About Proficio item name=What is Proficio? href=/what-is-proficio.html/ /menu 2006/5/3, Sebastien Arbogast [EMAIL PROTECTED]: Actually, there's even another error in the code shown as an example, because there is no proficio-features page in the downloaded archive. So you have to create it. 2006/5/3, Sebastien Arbogast [EMAIL PROTECTED]: I found the problem: The site descriptor code shown as an example in the book and the one provided with the downloaded archive are different. In the downloaded one there are menu ref=.../ tags that the site generator doesn't seem to understand. I've replaced them with what is in the PDF, and it works fine now. 2006/5/2, Sebastien Arbogast [EMAIL PROTECTED] : At the end of chapter 3, when I generate the proficio's site, I get $menu.getAttribute( name ) references in the side menu instead of About proficio and Project documentation menus. Is that normal ? Does anyone know what may have gone wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2-book] Where to actually configure report generation and display ?
OK. I've tried that and it works fine. So there's nothing to configure in build/reports element right? Maybe it's a reminiscence from the old Maven1 fashion report configuration that the author of this part will have forgotten to update... 2006/5/3, Dennis Lundberg [EMAIL PROTECTED]: Sebastien Arbogast wrote: In chapter 3, page 71, it's written: Even though the standard reports are very useful, often you will want to customize the projects reports that are created and displayed in your web site. The reports created and displayed are controlled in the build/reports element in the POM. You may want to be more selective about the reports that you generate and to do so you need to list each report that you want to include as part of the site generation. You do so by configuring the plugin as follows: And the example actually shows a modification of the plugin. So is it in the plugin or in build/reports, or in both ? And if it is in build/reports, what should I put there ? I'm a little bit lost. Actually it's sort of both. It is in reporting/plugins. The book has gotten the indentation a bit wrong. Check out this page instead: http://maven.apache.org/plugins/maven-project-info-reports-plugin/howto.html -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
[m2] Continuum or CruiseControl as a CI server ?
I'm trying to find the best CI tool for a brand new Maven2-built project and I'd like to have your experience feedback about which one to choose between Continuum and CruiseControl. I know that, as Continuum is a spin-off of Maven project it should be better integrated with it. But on the other hand, CruiseControl seems more mature to me, even if, to be honnest, I haven't tried any of them in a real situation yet. That's why I need something more concrete. Is there any Maven 2 cruisecontrol plugin somewhere as there was one for Maven 1 ? What do you think ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [m2] Maven idea plugin and project layout
I did what you suggested and I got a problem with another dependency: Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo rting-api/2.0/maven-reporting-api-2.0.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Error transferring file org.apache.maven.reporting:maven-reporting-api:jar:2.0 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) Path to dependency: 1) org.apache.maven.plugins:maven-idea-plugin:maven-plugin:2.0-beta-2-SN APSHOT 2) org.apache.maven:maven-plugin-testing-harness:jar:1.0-SNAPSHOT 3) org.apache.maven:maven-core:jar:2.0 4) org.apache.maven.reporting:maven-reporting-api:jar:2.0 Caused by I/O exception: Connection timed out: connect [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 minutes 24 seconds [INFO] Finished at: Tue May 02 17:28:14 CEST 2006 [INFO] Final Memory: 5M/18M [INFO] 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: Are you using maven 2.0.4? I 've had an issue with maven 2.0.1 and the idea snapshot not working for it. But it doesn't look like the same issue. You're says Error transferring file. Try mvn install again or remove the plexus-util from your local repo and try mvn install again. Sebastien Arbogast wrote: OK. I managed to checkout sources, but when I ran mvn install, I got the following error: W:\data\dev\maven-idea-pluginmvn install [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven IDEA Plugin [INFO]task-segment: [install] [INFO] - --- [INFO] [plugin:descriptor] [INFO] Using 2 extractors. [INFO] Applying extractor for language: java [INFO] Extractor for language: java found 5 mojo descriptors. [INFO] Applying extractor for language: bsh [INFO] Extractor for language: bsh found 0 mojo descriptors. [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/ plexus-utils-1.1.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.plexus:plexus-utils Reason: Error getting POM for 'org.codehaus.plexus:plexus-utils' from the reposi tory: Error transferring file org.codehaus.plexus:plexus-utils:pom:1.1 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://svn.apache.org/maven-snapshot-repository), snapshots (http://snapshots.maven.codehaus.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 31 seconds [INFO] Finished at: Tue May 02 16:23:42 CEST 2006 [INFO] Final Memory: 5M/9M [INFO] W:\data\dev\maven-idea-plugin I must have missed something. 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: svn co ???/maven-idea-plugin mvn install Sebastien Arbogast wrote: Good to know. How do I install it ? 2006/5/2, Geoffrey De Smet [EMAIL PROTECTED]: The latest snapshot idea plugin is far superiour to the latest release idea plugin. It does a lot more, like root module configuration etc. Sebastien Arbogast wrote: I'm going through the Maven 2 book and trying to open proficio project from chapter 3 inside Intellij. So I ran mvn idea:idea to generate project files, I opened the root project in IntelliJ but then there is no root module generated so I can't access project global files, like site files or root pom.xml. I could create this module myself, but then the next time I'm gonna run idea:idea again to update dependencies for example, then this root module will disappear. Did I do something wrong ? Is it a known bug ? Is there something wrong with this approach ? And by the way, does anyone know where IntelliJ is getting with Maven 2 support ? Because I can't see any mention of it in their roadmap
[m2] Maven idea plugin and project layout
I'm going through the Maven 2 book and trying to open proficio project from chapter 3 inside Intellij. So I ran mvn idea:idea to generate project files, I opened the root project in IntelliJ but then there is no root module generated so I can't access project global files, like site files or root pom.xml. I could create this module myself, but then the next time I'm gonna run idea:idea again to update dependencies for example, then this root module will disappear. Did I do something wrong ? Is it a known bug ? Is there something wrong with this approach ? And by the way, does anyone know where IntelliJ is getting with Maven 2 support ? Because I can't see any mention of it in their roadmap, and it kind of pisses me off to be forced to use Eclipse again for the excellent maven2 plugin that is available there. Is there any plan in the community to integrate the same kind of features into a Mevenide for Maven2/IntelliJ ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
[m2 book] I don't get the same result when generating site.
At the end of chapter 3, when I generate the proficio's site, I get $menu.getAttribute( name ) references in the side menu instead of About proficio and Project documentation menus. Is that normal ? Does anyone know what may have gone wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
[M2-book]
I'm just going through Better Builds With Maven book and once again, I can't help being amazed by the quality of it ! Nevertheless, there are a few small errata here and there and for I'm tagging them as I'm reading so that I can provide feedback when I've them all. But here I'm stuck on some more important issue: in page 49, just before section 2.6.3, it's said that Filtering resources can also retrieve values from system properties; either the system properties built into Java (like java.version or user.home), or properties defined on the command line using the standard Java -D parameter. To continue the example, change the application.properties file to look like the following: # application.properties java.version=${java.version} command.line.prop=${command.line.prop} Now, when you execute the following command (note the definition of the command.line.prop property on the command line), the application.propertiesfile will contain the values from the system properties. mvn process-resources -Dcommand.line.prop=hello again Unfortunately, here is what I get in my generated application.propertiesfile: # application.properties java.version=1.0-SNAPSHOT command.line.prop=${command.line.prop} So the problem is that: - system property java.version is actually replaced by my project's version - command.line.prop is not taken into account on the command line. I tried a different syntax, putting the double quotes around hello again only, but it didn't work either. Has anyone got an idea of what I may have done wrong ? -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
Re: [M2-book]
I confirm ! I just added a filter file and it worked fine. That's precisely the kind of situation where I love Open Source! Maven rocks! And huge thanks to all the people who participated in the redaction of this excellent book. And to all the Maven community as well! 2006/4/30, Kenney Westerhof [EMAIL PROTECTED]: On Sun, 30 Apr 2006, Eric Redmond wrote: I've just confirmed this. It's a bug in maven. When you specify filtering on resources, you NEED to have a filter file. The filter file may be empty, but it has to be defined and has to exist for maven to filter resources - even system properties (${user.home}) and commandline properties (-Dx=y) won't get filtered unless you have a filter file. So, it's not a bug in the book, but in maven. It might have worked in pre-2.0.4 releases, though. I'll file a JIRA issue. -- Kenney Are you running Windows? If you're running *nix, the quote syntax probably won't work (shell dependant, of course). Try it with only one word, hello, and no quotes. -Dcommand.line.prop=hello If that does not work, did you type the values into the file, and also into the command line (rather than copy-and-paste)? I can't see why it wouldn't work if you tried the above property argument, short of a character encoding difference. Eric On 4/30/06, Sebastien Arbogast [EMAIL PROTECTED] wrote: I'm just going through Better Builds With Maven book and once again, I can't help being amazed by the quality of it ! Nevertheless, there are a few small errata here and there and for I'm tagging them as I'm reading so that I can provide feedback when I've them all. But here I'm stuck on some more important issue: in page 49, just before section 2.6.3, it's said that Filtering resources can also retrieve values from system properties; either the system properties built into Java (like java.version or user.home), or properties defined on the command line using the standard Java -D parameter. To continue the example, change the application.properties file to look like the following: # application.properties java.version=${java.version} command.line.prop=${command.line.prop} Now, when you execute the following command (note the definition of the command.line.prop property on the command line), the application.propertiesfile will contain the values from the system properties. mvn process-resources -Dcommand.line.prop=hello again Unfortunately, here is what I get in my generated application.propertiesfile: # application.properties java.version=1.0-SNAPSHOT command.line.prop=${command.line.prop} So the problem is that: - system property java.version is actually replaced by my project's version - command.line.prop is not taken into account on the command line. I tried a different syntax, putting the double quotes around hello again only, but it didn't work either. Has anyone got an idea of what I may have done wrong ? -- S�bastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast The Epseelon Project : http://www.epseelon.net Blog : http://sebastien-arbogast.epseelon.net TagSpot : http://www.tagspot.org
[M1] Multiple test source directories ?
Hi, I'm using Maven 1.0.2 in combination with AndroMDA 3.1. I've managed to tune AndroMDA in order to generate test skeletons and mock DAO's from my UML model. That part works fine but then I have a problem with Maven. For current classes, AndroMDA generates 2 kinds of files : - those that don't need any edition are generated in a subdirectory of target/src directory - those that do need to be edited (because the developer has to add custom code) are generated in src/java and never overwritten. And to make Maven understand that there is not only src/java that contains source files, but also target/src, they use this little jelly trick : j:set var=generatedSourceDir value=${maven.build.dir}/ ant:available file=${maven.build.src} type=dir property=generatedSrcAvailable/ !-- Adds the generated source to the compile path for each subproject (if any exists) -- preGoal name=java:compile !-- only attempt to add the generated source to the classpath if we have a source directory -- j:set var=sourceDirectory value=${pom.build.sourceDirectory}/ j:if test=${!empty sourceDirectory} j:if test=${generatedSrcAvailable} ant:available file=${sourceDirectory} type=dir property=srcAvailable/ j:choose j:when test=${srcAvailable} !-- add the paths of the generated source to the maven compile path -- ant:path id=andromda.java.gen.src location=${generatedSourceDir}/ maven:addPath id=maven.compile.src.set refid=andromda.java.gen.src/ /j:when j:otherwise ant:path id=maven.compile.src.set !-- need to set sources present to true since maven thinks no source exist if the directory specified by pom.build.sourceDirectorydoesn't exist -- j:set var=sourcesPresent value=true/ ant:pathelement location=${generatedSourceDir}/ /ant:path /j:otherwise /j:choose /j:if /j:if /preGoal So I tried to apply the same trick for generated tests, knowing that : - non-editable test sources are generated in target/test-src - editable test sources are generated in src/test j:set var=generatedTestSourceDir value=${maven.build.dir}/ ant:available file=${maven.build.dir}/test-src type=dir property=generatedTestSrcAvailable/ !-- Adds the generated test source to the test compile path for each subproject (if any exists) -- preGoal name=test:compile !-- only attempt to add the generated test source to the classpath if we have a source directory -- j:set var=testSourceDirectory value=${ pom.build.unitTestSourceDirectory}/ j:if test=${!empty testSourceDirectory} j:if test=${generatedTestSrcAvailable} ant:available file=${testSourceDirectory} type=dir property=testSrcAvailable/ j:choose j:when test=${testSrcAvailable} !-- add the paths of the generated source to the maven compile path -- ant:path id=andromda.java.gen.test.src location=${generatedTestSourceDir}/ maven:addPath id=maven.test.source refid=andromda.java.gen.test.src/ /j:when j:otherwise ant:path id=maven.test.source !-- need to set sources present to true since maven thinks no source exist if the directory specified by pom.build.sourceDirectorydoesn't exist -- j:set var=testSourcesPresent value=true/ ant:pathelement location=${generatedTestSourceDir}/ /ant:path /j:otherwise /j:choose /j:if /j:if /preGoal But then, when I try to run maven, I get the following error message : Unable to obtain goal
Re: Maven2 Book...when
You haven't heard ?!!! Of course, they are working on it, Vincent announced it at JavaPolis. And the most wonderful : it's gonna be free ! 2006/1/8, Robert Taylor [EMAIL PROTECTED]: Greetings, just wondering if anyone is working on a comprehensive book on Maven 2.0? If so, when its due out? /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr Lens : http://www.squidoo.com/useful-computers/
Re: IDE build and debugging
Well actually, it was the JBoss developer's notebook I had in my hands but it could have been yours ;o) Lol Don't be sad Vincent ;o) I already have you book for quite some time : http://www.mail-archive.com/users@maven.apache.org/msg22132.html M2 is brilliant at generating and updating IntelliJ multi-module projects (caveat w.r.t. jdk5 setting) but I've not managed to get any of the Maven GUI pluggins working with Idea v5.02. I'd be very grateful if someone can provide step by step instructions or perhaps links to pluggins. The maven pluggin http://www.intellij.org/twiki/bin/view/Main/MavenPlugin The problem is that no current IDE (at least not that I know of) really integrates Maven as much as it would really be useful. The integration seems to be forced to stop at the running level. Let's hope that the new modular architecture of M2 will make IDE editors think of integrating it with their debugger. All the power of Maven automation and dependency management, with the developer-friendly interface of an advanced debugger : that would be great ! At least it reassures me : it's not that I did something wrong :oP -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr Lens : http://www.squidoo.com/useful-computers/
IDE build and debugging
Is there a way to integrate Maven (1 or 2) into an IDE (IntelliJ or Eclipse) so that I can use the debugging capacities of my IDE : breakpoints, line-by-line execution, watchpoints, etc. ? -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr Lens : http://www.squidoo.com/useful-computers/
Re: IDE build and debugging
Yes, I know Mevenide, but I've never managed to make it work worrectly under Eclipse. I can't run Maven goals from the maven console (I always get error during build messages), so integration with Eclipse debugging capabilities is even harder. As for the IntelliJ plugin, I use it for running goals inside IntelliJ console, but I have never managed to use debugging there either. And I read the whole documentation of those plugins, and it didn't help me that much. For Maven2, I saw Vincent's introduction for the plugin at JavaPolis (yes Vincent ! you remember ? the guy in the front who bought your book just one hour before you gave some away :P Well actually, it was the JBoss developer's notebook I had in my hands but it could have been yours ;o) and it seemed much more integrated into Eclipse. But I'm waiting for one of the plugin I use (AndroMDA) to switch to M2 before I can do it myself so... right now I'm rather on M1. And as I've never managed to use debugging with Maven, I was just wondering whether it's because I'm doing something wrong or because it's just not possible for now. 2005/12/20, Henry Isidro [EMAIL PROTECTED]: Sebastien Arbogast wrote: Is there a way to integrate Maven (1 or 2) into an IDE (IntelliJ or Eclipse) so that I can use the debugging capacities of my IDE : breakpoints, line-by-line execution, watchpoints, etc. ? -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr Lens : http://www.squidoo.com/useful-computers/ No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 12/16/2005 Hi Sebastien, For M1, take a look at http://mevenide.codehaus.org/. For M2, http://maven.apache.org/plugins/maven-eclipse-plugin/. HTH, Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr Lens : http://www.squidoo.com/useful-computers/
[Idea-plugin]
I ran maven idea:multiproject at the root of my multiproject structure, and when I opened the project in IDEA, I got an error message saying the core module was corrupted. Then I deleted the corresponding module file (all the other modules are fine) and ran idea:module in this specific module subdirectory. Then there was a build error with the following message : File.. C:\Documents and Settings\daneel\.maven\cache\maven- idea-plugin-1.6\p lugin.jelly Element... j:import Line.. 78 Column 79 file:/C:/Documents and Settings/daneel/.maven/cache/maven-idea-plugin-1.6 /plugin -resources/templates/v4/module.jelly:41:106: maven:makeRelativePath You must d efine an attribute called 'path' for this tag. Total time: 5 seconds Finished at: Sat Dec 10 19:24:42 CET 2005 Is it a known bug in idea plugin ? -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr Lens : http://www.squidoo.com/useful-computers/
System properties and project.properties
I need to send an e-mail from one of my classes (using commons-email) and I'd like to be able to configure my SMTP server data through properties in project.properties. I think I remember from MDN that there is a mean to do so thanks to System properties, but I don't have the book right now and I really need that. For example I want to write that in my project.properties : stmp.server=relay.chello.be And that in my emailing class : SimpleEmail email = new SimpleEmail(); email.setHostName(System.getProperties(smtp.server)); How can I do that ? -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr
Starting HSQL server from a custom goal
I'm still trying to start a test database server just before my Spring+Hibernate unit tests are run. I applied the trick referenced in the FAQ, using j:thread to start the server in another thread. But now I have troubles with what I should put inside my custom start_test_server goal. Here is the excerpt from my maven.xml file : preGoal name=test:test j:thread attainGoal name=start_test_server/ /j:thread sleep seconds=10/ /preGoal goal name=start_test_server description=Starts the HSQL server for testing ant:java classname=org.hsqldb.Server fork=true ant:arg value=-port 1701/ ant:arg value=-database.0 tagspotdb/ ant:arg value=-dbname.0 tagspotdb/ ant:classpath ant:path refid=maven.dependency.classpath/ /ant:classpath /ant:java /goal But when I run maven start_test_server to check if everything's OK, I get this exception : start_test_server: [java] java.lang.ArrayIndexOutOfBoundsException: 3 [java] at org.hsqldb.persist.HsqlProperties.argArrayToProps(Unknown Source) [java] at org.hsqldb.Server.main(Unknown Source) [java] Exception in thread main [java] [ERROR] Java Result: 1 Could anyone tell me what's wrong with my custom goal ? -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr
Re: [M1] Unforked java ant task
Thank you very much ! It's exactly what I was looking for. 2005/11/19, Brett Porter [EMAIL PROTECTED]: fork just menas it starts a new jvm, not that it is run simulataneously. In Maven 1.0 or 1.1, you can use j:thread - see the FAQ. This will spawn it for the life of the build. To have it live beyond the build will require Maven 1.1, and the spawn argument from Ant 1.6 (see ants docs). - Brett On 11/19/05, Sebastien Arbogast [EMAIL PROTECTED] wrote: I created a preGoal for test:test in order to start up a HSQLDB database before I run my Spring and Hibernate JUnit tests. So I would like the HSQL server to be started in another thread. Here is the preGoal I added to my maven.xml file : preGoal name=test:test ant:path id=hsql.classpath ant:path refid=maven.dependency.classpath/ /ant:path ant:java classname=org.hsqldb.Server fork=true ant:arg value=-database.0 tagspotdb/ ant:arg value=-dbname.0 tagspotdb/ ant:classpath refid=hsql.classpath/ /ant:java /preGoal From what I understood, fork=true should make it, but it doesn't. And when I run maven test, HSQL starts up and the maven process halts. Do you have any idea why that doesn't work and how I could solve that issue ? Thx in advance -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr
[M1] Unforked java ant task
I created a preGoal for test:test in order to start up a HSQLDB database before I run my Spring and Hibernate JUnit tests. So I would like the HSQL server to be started in another thread. Here is the preGoal I added to my maven.xml file : preGoal name=test:test ant:path id=hsql.classpath ant:path refid=maven.dependency.classpath/ /ant:path ant:java classname=org.hsqldb.Server fork=true ant:arg value=-database.0 tagspotdb/ ant:arg value=-dbname.0 tagspotdb/ ant:classpath refid=hsql.classpath/ /ant:java /preGoal From what I understood, fork=true should make it, but it doesn't. And when I run maven test, HSQL starts up and the maven process halts. Do you have any idea why that doesn't work and how I could solve that issue ? Thx in advance -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon Project : http://www.epseelon.org Projet Phénix : http://phenix.netbios.fr
Re: HSQLDB locking when using tomcat plugin
from http://hsqldb.sourceforge.net/doc/guide/ch01.html#N10190 All databases running in different modes can be closed with the SHUTDOWN command, issued as an SQL query. In 1.7.2, in-process databases are no longer closed when the last connection to the database is explicitly closed via JDBC, a SHUTDOWN is required. When SHUTDOWN is issued, all active transactions are rolled back. A special form of closing the database is via the SHUTDOWN COMPACT command. This command rewrites the .data file that contains the information stored in CACHED tables and compacts it to size. This command should be issued periodically, especially when lots of inserts, updates or deletes are performed on the cached tables. Changes to the structure of the database, such as dropping or modifying tables or indexes also create large amounts of unused space that can be reclaimed using this command. Having said that I'm not the HSQLDB expert - invoking stop() might solve the problem but I prefer the SHUTDOWN since it compacts the database on the fly. I agree with you... the cleaner way to do things is to issue that damn SQL SHUTDOWN but I don't know where I can configure something to issue it automatically when my application is stopped. Does anyone know where I can do this ? Can't you just set reload=true in your context.xml? That way when the new war (or exploded war) is deployed, tomcat will reload the webapp and there's no need to stop/start tomcat. Use only in dev-mode! Oh yes it would be great. Anyway my application won't leave dev-mode before a long time ;-). So I customized my context file to look like this ?xml version='1.0' encoding='utf-8'? Context docBase=C:/dev/myapp/target/webapp path=/myapp reload=true /Context But then the problem is that when I recompile a few files, it happens that as soon as the first file is being modified, a reload is initiated while the other files haven't been recompiled yet, which causes numerous exceptions since it breaks the integrity of my application. Where did you configure hsqldb to run? in server.xml or in the webapp? If you configure it in server.xml there should be no locking problems.. HSQLDB is configured to run inside my webapp in In-process mode. So it's configured thanks to this Spring bean configuration : bean id=dataSource class=org.apache.commons.dbcp.BasicDataSource destroy-method=close property name=driverClassNamevalueorg.hsqldb.jdbcDriver/value/property property name=usernamevaluesa/value/property property name=urlvaluejdbc:hsqldb:file:C:\dev\myapp/target/webapp/WEB-INF/db/myappdb/value/property /bean So the file protocol allows me to avoid configuring any database server. The database is a file accessed directly from within the main application process. I know that this is not optimal in terms of performance but I really don't care as my objective for now is to make the deployment process as simple as possible since I'm still in dev mode. I think I really have to find a way to initiate a SHUTDOWN. -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
2005/5/26, Siegfried Goeschl [EMAIL PROTECTED]: I'm also not a Spring expert - actually I never used it - but +) you might be able to derive from org.apache.commons.dbcp.BasicDataSource and overwrite the close() method I like this one but I can't figure out how I can access my database from there to send the SQL instruction (I'm not an expert with dbcp at all). +) add a custom HSQLDB shutdown bean for Spring +) or write a little servlet which does the magic Why not but haven't a clue about how to do that. Would it be a good approach to use an AOP approach : - you create an aspect that will add behaviour to the close() method of your dataSource bean. Technically that would be the most elegant solution even if I've never used AOP. But there is another problem here : all my Spring files are automatically generated through a MDA process (AndroMDA) and I'm quite sure I can't integrate AOP in the process. I think the most pragmatic solution right now would be to customize the close method of my BasicDataSource. But the question is : can I access my JDBC connection from there to issue my SHUTDOWN ? (Why did they introduce that SHUTDOWN thing anyway ?!!! grr...) -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
Actually I found out how to access my JDBC connection and I wrote the corresponding code but it appeared to be useless because my close() method was simply not called at all. So I'll give up with that as I have many other more important things to achieve on that project. For now I'll just restart the whole server every time and that's it... Anyway I sincerely thank you all for your help, despite the fact that this thread was not directly linked with maven. Bye -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
2005/5/26, Carlos Sanchez [EMAIL PROTECTED]: dependency groupIdhsqldb/groupId artifactIdhsqldb/artifactId version1.7.3.3/version typejar/type properties classloaderroot/classloader war.bundletrue/war.bundle /properties /dependency Please send replies to maven users list. Sorry ! Damn GMail answer... Unfortunately it didn't work. It happened exactly what I was afraid of : __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 [echo] Found context file C:\dev\myapp/target/webapp/META-INF/context. xml [echo] /myapp file:C:\dev\myapp/target/webapp/META-INF/context.xml BUILD FAILED File.. C:\dev\myapp\maven.xml Element... sql Line.. 128 Column 28 java.sql.SQLException: The database is already in use by another process: org.hs [EMAIL PROTECTED] =C:\dev\myapp\target\webapp\WEB-INF\db\scha mandb.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exceptio n: Le processus ne peut pas accÚder au fichier car un autre processus en a verro uillÚ une partie : C:\dev\myapp\target\webapp\WEB-INF\db\myappdb.lck Total time: 8 seconds Finished at: Thu May 26 18:57:09 CDT 2005 In fact, the problem is that this SHUTDOWN is called from another thread that the one who accesses the database in the first place. :-( -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
You can easily use AOP with MDA, I use aspectj with my AndroMDA apps all the time, because your system is generated does not mean you can't introduce aspects into the process. Ok thanks for the precision Chad, I didn't know that and I didn't mean to misinform people about AndroMDA. Use AndroMDA folks... AndroMDA is good ! ;-) The thing is I'm not ready to throw myself into some AOP I just don't know anything about, just to work around some annoying database restriction... -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HSQLDB locking when using tomcat plugin
Hi, I'm using Codeczar tomcat plugin to manipulate my tomcat server for my web application. So when I have to recompile some Java class while my Tomcat server is running I want to execute the following procedure : maven tomcat:stop maven war:webapp maven tomcat:start But then when I try to access my database (HSQLDB in file protocol, In-process mode) through my application, I get the following error message : The database is already in use by another process: [EMAIL PROTECTED] =C:\dev\pfe\schaman\target\webapp\WEB-INF\db\schamandb.lck, exists=true, locked=false, valid=false, fl =null]: The problem seems to be that when the application is stopped, the lock on schamandb.lck is not released. Does anyone know how to solve this situation or do I have to stop the server everytime I have something to recompile ? My configuration is the following : - HSQLDB 1.7.3.3 - Maven 1.0.2 - maven-tomcat-plugin version 1.1 Thx in advance. -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HSQLDB locking when using tomcat plugin
2005/5/25, dan tran [EMAIL PROTECTED]: When the appserver stop your app, i am sure it will give your webapp a chance to cleanup, by that time, you must issue sql SHUTDOWN. Yes that's also what I found out thanks to HSQLDB forums... so now I have to find a way to issue that damn SQL SHUTDOWN with a proper configuration of my Spring datasource bean... or just before the application is shutdown. It's not easy because there are so many technologies involved that I don't even know where to ask that question :-P -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scm svn cruisecontrol issue
BTW is there a good step-by-step tutorial somewhere to integrate Maven, Subversion and Cruisecontrol ? Because I already have an important codebase maintained by Subversion and built with Maven and I'd like to male the link between Maven and Subversion and if possible setup a continuous integration server to manage all of that. Is there such a resource somewhere or is anyone volunteer to make it :-P ? -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scm svn cruisecontrol issue
All the more so as everybody introduces those three tools as being the future of development and integration tools. And I confirm : I'll never use Ant or CVS again. But what would be wonderful would be to integrate those three together... with a good and exhaustive tutorial ;-) 2005/5/23, Arik Kfir [EMAIL PROTECTED]: A tutorial for integrating cruise control and maven (subversion/cvs) would definitly be a valuable resources. We're tackling this here too, and have run into some issues as well. - Original Message - From: Sebastien Arbogast [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, May 24, 2005 1:35 AM Subject: Re: scm svn cruisecontrol issue BTW is there a good step-by-step tutorial somewhere to integrate Maven, Subversion and Cruisecontrol ? Because I already have an important codebase maintained by Subversion and built with Maven and I'd like to male the link between Maven and Subversion and if possible setup a continuous integration server to manage all of that. Is there such a resource somewhere or is anyone volunteer to make it :-P ? -- Sebastien ARBOGAST - 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] -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scm svn cruisecontrol issue
2005/5/23, Arik Kfir [EMAIL PROTECTED]: now I *know* I'm gonna buy it :) - Original Message - From: Carlos Sanchez [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Tuesday, May 24, 2005 2:23 AM Subject: Re: scm svn cruisecontrol issue There's almost one full chapter about Maven and CruiseControl integration in Vincent's book. http://www.amazon.com/exec/obidos/ASIN/0596007507/ref=nosimRss/onfocus/103-3720349-9735866?dev-t=amznRss But does it deal with CVS or subversion as a version management system ? Because I found a few tutorials about Maven/CVS/Cruisecontrol but none with Subversion... -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 + Subversion + Continuum (was RE: scm svn cruisecontrol issue)
Similarly, are there any resources/examples out there on using the above combination? I've poked around the Maven 2 and Continuum websites and done a few Google searches, but haven't found anything. That would be amazing, since both Continuum and Maven 2.0 are still in technology preview ! -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using local dependencies
Hi, I'm building a project using SNAPSHOT dependencies. Those are downloaded at every build which is fine because I always want the last version. But the problem is that the remote server is often down so when it's the case I'd like to build my project using local copies of those dependencies, because when it tries to download them it slows down the build process. Is there a command line option to do so with Maven 1 ? Thx in advance -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using local dependencies
No I hadn't tried yet bu it's exactly what I was looking for. Thank you very much. On 4/26/05, John Casey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 have you tried offline mode? just use the '-o' (no quotes) command-line switch... - -john Sebastien Arbogast wrote: Hi, I'm building a project using SNAPSHOT dependencies. Those are downloaded at every build which is fine because I always want the last version. But the problem is that the remote server is often down so when it's the case I'd like to build my project using local copies of those dependencies, because when it tries to download them it slows down the build process. Is there a command line option to do so with Maven 1 ? Thx in advance -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFCboqkK3h2CZwO/4URAnM6AJwIpMr3wwBrzClbs6ZQL4NjKn0RzwCgmObp V5c7ud/L1MJOao6vH3eQdGk= =ULFg -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deprecated maven.src.dir and references
Hi, I'm a maven newbie and I have a little problem with property definitions. In maven documentation, it's said that the property maven.src.dir is deprecated and should be replaced by the sourceDir element of the pom. But I used maven.src.dir in project.properties to define other path properties that depend on maven.src.dir. So my question is : if I only use sourceDir element in POM to define my source dir, how can I refer to this definition in project.properties and other elements of project.xml and maven.xml ? I guess there is a way to do so with some jelly syntax but I don't know jelly that much... Thanks in advance. -- Sebastien ARBOGAST - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]