Release Plugin, ssh and svn Problem
Hi, i have a problem with release plugin , svn and ssh. We have changed from cvs to svn. With cvs has it work fine, but with svn i have a problem: [ERROR] BUILD FAILURE [INFO] [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Übertragen schlug fehl (Details folgen): svn: Quell URL »svn+ssh://local/work/data/svn/commons/trunk/root-project« is from different repository. But I have a only one repository and is the svn+ssh://local/work/data/svn/commons/. What is wrong? Alexander Vaysberg tetralog systems AG - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release Plugin, ssh and svn Problem
This is a known problem with the SVN 1.5 client and maven's release plugin. Workaround: type svn update mvn release:prepare and it will continue from where it left off correctly. There are also some rumors that upgrading to the very latest version of the SVN client (1.5.5 i think) will fix this too. -Stephen 2008/12/19 Alexander Vaysberg w...@vaisberg.de Hi, i have a problem with release plugin , svn and ssh. We have changed from cvs to svn. With cvs has it work fine, but with svn i have a problem: [ERROR] BUILD FAILURE [INFO] [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Übertragen schlug fehl (Details folgen): svn: Quell URL »svn+ssh://local/work/data/svn/commons/trunk/root-project« is from different repository. But I have a only one repository and is the svn+ssh://local/work/data/svn/commons/. What is wrong? Alexander Vaysberg tetralog systems AG - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Test plugin
Thanks Justin, it turns out I was looking at Maven 1 docs. I can run the test I want with test:single. John -Original Message- From: Edelson, Justin [mailto:justin.edel...@mtvstaff.com] Sent: 18 December 2008 14:07 To: Maven Users List Subject: RE: Test plugin This error is accurate. There's no maven-test-plugin. test is a lifecycle phase, not a plugin. From: John Coleman [mailto:john.cole...@eurobase.com] Sent: Thu 12/18/2008 4:54 AM To: Maven Users List Subject: Test plugin When I try to run a test plugin goal I get: The plugin 'org.apache.maven.plugins:maven-test-plugin' does not exist or no valid version could be found In the repo I can only find a maven groupid with the maven-test-plugin. Is there really a org.apache.maven.plugins maven-test-plugin? I'm confused. Regards, John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
questions about profiles?
hi i've been searching for a way to override the version of an Artifact using profiles, is that possible? the idea is to change the version of framework when compiling a project, for instance, the project is compiled using spring 2.5 and i want to write a profile to compile it with the version 2.0 -- View this message in context: http://www.nabble.com/questions-about-profiles--tp21088457p21088457.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release Plugin, ssh and svn Problem
also, i must a subversion on 1.5.5 update if i it with continuum use. It is right? Stephen Connolly schrieb: This is a known problem with the SVN 1.5 client and maven's release plugin. Workaround: type svn update mvn release:prepare and it will continue from where it left off correctly. There are also some rumors that upgrading to the very latest version of the SVN client (1.5.5 i think) will fix this too. -Stephen 2008/12/19 Alexander Vaysberg w...@vaisberg.de Hi, i have a problem with release plugin , svn and ssh. We have changed from cvs to svn. With cvs has it work fine, but with svn i have a problem: [ERROR] BUILD FAILURE [INFO] [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Übertragen schlug fehl (Details folgen): svn: Quell URL »svn+ssh://local/work/data/svn/commons/trunk/root-project« is from different repository. But I have a only one repository and is the svn+ssh://local/work/data/svn/commons/. What is wrong? Alexander Vaysberg tetralog systems AG - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release Plugin, ssh and svn Problem
I am sorry, it is since 18 years I German gelearnt, und my grasp of German grammar applied to English cannot decode your question. I do not know if Subversion 1.5.5 fixes the issue... only that it it a rumor... another solution is to downgrade to Subversion 1.4.x I do not that at least some versions of Subversion 1.5.x do not work all the time. -Stephen 2008/12/19 Alexander Vaysberg w...@vaisberg.de also, i must a subversion on 1.5.5 update if i it with continuum use. It is right? Stephen Connolly schrieb: This is a known problem with the SVN 1.5 client and maven's release plugin. Workaround: type svn update mvn release:prepare and it will continue from where it left off correctly. There are also some rumors that upgrading to the very latest version of the SVN client (1.5.5 i think) will fix this too. -Stephen 2008/12/19 Alexander Vaysberg w...@vaisberg.de Hi, i have a problem with release plugin , svn and ssh. We have changed from cvs to svn. With cvs has it work fine, but with svn i have a problem: [ERROR] BUILD FAILURE [INFO] [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Übertragen schlug fehl (Details folgen): svn: Quell URL »svn+ssh://local/work/data/svn/commons/trunk/root-project« is from different repository. But I have a only one repository and is the svn+ssh://local/work/data/svn/commons/. What is wrong? Alexander Vaysberg tetralog systems AG - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release Plugin, ssh and svn Problem
On Friday 19 December 2008 Stephen Connolly wrote: I am sorry, it is since 18 years I German gelearnt, und my grasp of German grammar applied to English cannot decode your question. I'm a German native speaker and still cannot decode the question :) I do not know if Subversion 1.5.5 fixes the issue... only that it it a rumor... another solution is to downgrade to Subversion 1.4.x To give my post at least some value, here is the link to the JIRA issue and to some recent conversation on the subversion list: http://jira.codehaus.org/browse/SCM-406 http://www.nabble.com/Maven-scm-tag-does-not-work-with-Subversion-1.5.x-to20930592.html hth, - martin signature.asc Description: This is a digitally signed message part.
Error compiling hello world maven plugin
Hello, I'm not able to compile the following hello world maven plugin (composed by two files): pom.xml: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdsample.plugin/groupId artifactIdmaven-hello-plugin/artifactId packagingmaven-plugin/packaging version1.0-SNAPSHOT/version nameSample Parameter-less Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-tools-api/artifactId version2.0/version /dependency /dependencies /project src/main/java/sample/plugin/GreetingMojo.java: package sample.plugin; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; /** * @goal sayhi * @description Says Hi to the user */ public class GreetingMojo extends AbstractMojo { public void execute() throws MojoExecutionException { getLog().info(Hello, world.); } } The error is: boldr...@ade:~/workspace/maven-hello-plugin$ mvn compile [INFO] Scanning for projects... [INFO] [INFO] Building Sample Parameter-less Maven Plugin [INFO]task-segment: [compile] [INFO] - this realm = app0.child-container[org.apache.maven.plugins:maven-plugin-plugin] urls[0] = file:/home/boldrini/.m2/repository/org/apache/maven/plugins/maven-plugin-plugin/2.4.1/maven-plugin-plugin-2.4.1.jar urls[1] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-10/doxia-site-renderer-1.0-alpha-10.jar urls[2] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-10/doxia-core-1.0-alpha-10.jar urls[3] = file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar urls[4] = file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar urls[5] = file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar urls[6] = file:/home/boldrini/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar urls[7] = file:/home/boldrini/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar urls[8] = file:/home/boldrini/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar urls[9] = file:/home/boldrini/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[10] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-10/doxia-decoration-model-1.0-alpha-10.jar urls[11] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0-alpha-10/doxia-module-apt-1.0-alpha-10.jar urls[12] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0-alpha-10/doxia-module-fml-1.0-alpha-10.jar urls[13] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0-alpha-10/doxia-module-xdoc-1.0-alpha-10.jar urls[14] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0-alpha-10/doxia-module-xhtml-1.0-alpha-10.jar urls[15] = file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.4.1/maven-plugin-tools-api-2.4.1.jar urls[16] = file:/home/boldrini/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar urls[17] = file:/home/boldrini/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4.1/maven-reporting-impl-2.0.4.1.jar urls[18] = file:/home/boldrini/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar urls[19] = file:/home/boldrini/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[20] = file:/home/boldrini/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[21] = file:/home/boldrini/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar urls[22] = file:/home/boldrini/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[23] = file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-java/2.4.1/maven-plugin-tools-java-2.4.1.jar urls[24] = file:/home/boldrini/.m2/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar urls[25] = file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-beanshell/2.4.1/maven-plugin-tools-beanshell-2.4.1.jar urls[26] = file:/home/boldrini/.m2/repository/bsh/bsh/1.3.0/bsh-1.3.0.jar Number of imports: 6 import: org.codehaus.classworlds.en...@4891bb28 import: org.codehaus.classworlds.en...@f8e44ca4 import: org.codehaus.classworlds.en...@c51bc9e7 import:
Re: Release Plugin, ssh and svn Problem
thanks! Martin Höller schrieb: On Friday 19 December 2008 Stephen Connolly wrote: I am sorry, it is since 18 years I German gelearnt, und my grasp of German grammar applied to English cannot decode your question. I'm a German native speaker and still cannot decode the question :) I do not know if Subversion 1.5.5 fixes the issue... only that it it a rumor... another solution is to downgrade to Subversion 1.4.x To give my post at least some value, here is the link to the JIRA issue and to some recent conversation on the subversion list: http://jira.codehaus.org/browse/SCM-406 http://www.nabble.com/Maven-scm-tag-does-not-work-with-Subversion-1.5.x-to20930592.html hth, - martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: custuminsing profile
Have I missed something, or is 'custuminsing' a new techy word? ;) On 17 Dec 2008, at 14:00, aymen83 wrote: hi all, i have a question: profiles are done to provide a specific environment of building a project, so what i wanna do is: - i wanna provide a profile for building my project using a différent version of framework such as spring, to do this i changed the settings.xml of maven and added another profile but i don't know how to proceed to change the version of the framework for the given profile which i want to call from shell? -- View this message in context: http://www.nabble.com/custuminsing- profile-tp21052704p21052704.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: custuminsing profile
sorry for this spelling error. Any way i searched in order to find something about the subject but there was no result Mark Jackson-8 wrote: Have I missed something, or is 'custuminsing' a new techy word? ;) On 17 Dec 2008, at 14:00, aymen83 wrote: hi all, i have a question: profiles are done to provide a specific environment of building a project, so what i wanna do is: - i wanna provide a profile for building my project using a différent version of framework such as spring, to do this i changed the settings.xml of maven and added another profile but i don't know how to proceed to change the version of the framework for the given profile which i want to call from shell? -- View this message in context: http://www.nabble.com/custuminsing- profile-tp21052704p21052704.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/how-do-maven-profiles-work-in-this-case--tp21052704p21090373.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error compiling hello world maven plugin
I just resolved the error cleaning my local repository! Enrico - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error compiling hello world maven plugin
hi; org.apache.maven i think this must be declared as plugin not a dependency. Every thing related to maven as well Enrico Boldrini wrote: Hello, I'm not able to compile the following hello world maven plugin (composed by two files): pom.xml: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdsample.plugin/groupId artifactIdmaven-hello-plugin/artifactId packagingmaven-plugin/packaging version1.0-SNAPSHOT/version nameSample Parameter-less Maven Plugin/name dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-tools-api/artifactId version2.0/version /dependency /dependencies /project src/main/java/sample/plugin/GreetingMojo.java: package sample.plugin; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; /** * @goal sayhi * @description Says Hi to the user */ public class GreetingMojo extends AbstractMojo { public void execute() throws MojoExecutionException { getLog().info(Hello, world.); } } The error is: boldr...@ade:~/workspace/maven-hello-plugin$ mvn compile [INFO] Scanning for projects... [INFO] [INFO] Building Sample Parameter-less Maven Plugin [INFO]task-segment: [compile] [INFO] - this realm = app0.child-container[org.apache.maven.plugins:maven-plugin-plugin] urls[0] = file:/home/boldrini/.m2/repository/org/apache/maven/plugins/maven-plugin-plugin/2.4.1/maven-plugin-plugin-2.4.1.jar urls[1] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-10/doxia-site-renderer-1.0-alpha-10.jar urls[2] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-10/doxia-core-1.0-alpha-10.jar urls[3] = file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar urls[4] = file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar urls[5] = file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar urls[6] = file:/home/boldrini/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar urls[7] = file:/home/boldrini/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar urls[8] = file:/home/boldrini/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar urls[9] = file:/home/boldrini/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[10] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-10/doxia-decoration-model-1.0-alpha-10.jar urls[11] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0-alpha-10/doxia-module-apt-1.0-alpha-10.jar urls[12] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0-alpha-10/doxia-module-fml-1.0-alpha-10.jar urls[13] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0-alpha-10/doxia-module-xdoc-1.0-alpha-10.jar urls[14] = file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0-alpha-10/doxia-module-xhtml-1.0-alpha-10.jar urls[15] = file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.4.1/maven-plugin-tools-api-2.4.1.jar urls[16] = file:/home/boldrini/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar urls[17] = file:/home/boldrini/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4.1/maven-reporting-impl-2.0.4.1.jar urls[18] = file:/home/boldrini/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar urls[19] = file:/home/boldrini/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar urls[20] = file:/home/boldrini/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar urls[21] = file:/home/boldrini/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar urls[22] = file:/home/boldrini/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar urls[23] = file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-java/2.4.1/maven-plugin-tools-java-2.4.1.jar urls[24] = file:/home/boldrini/.m2/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar urls[25] = file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-beanshell/2.4.1/maven-plugin-tools-beanshell-2.4.1.jar
Antwort: Re: maven-eclipse-plugin generates bad source-folders in combination with relative folders
Hi, I have raised a JIRA : http://jira.codehaus.org/browse/MECLIPSE-515 Thank you! Barrie Treloar baerr...@gmail.com 17.12.2008 21:53 Bitte antworten an Maven Users List users@maven.apache.org An Maven Users List users@maven.apache.org Kopie Thema Re: maven-eclipse-plugin generates bad source-folders in combination with relative folders Can you raise a JIRA with a test case please? On Wed, Dec 17, 2008 at 10:04 PM, thomas.rosend...@bg-phoenics.de wrote: Hi, I want to migrate some existing projects to maven. My Directory-Stucture looks following: D:\ - Projekte - Maven -maven-user-list - maven-project-dir - existing-src-dir I need to add the Sources in existing-src-dir to the pom in maven-project-dir. In my pom.xml I have only added the sourceDirectory: build sourceDirectory../existing-src-dir/sourceDirectory /build the goal eclipse:eclipse generates a wrong .classpath -File. .classpath-File classpath classpathentry kind=src path=src/test/java output= target/test-classes/ classpathentry kind=src path= D:/Projekte/Maven/maven-user-list/existing-src-dir/ classpathentry kind=output path=target/classes/ classpathentry kind=con path= org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=var path= M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar sourcepath= M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar/ /classpath Eclipse showes following Error: Project 'maven-project-dir' is missing required source folder: 'D:/Projekte/Maven/maven-user-list/existing-src-dir' maven-project-dir Build path 1229511521041 2372324 Can anybody help me? Thomas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Bug with maven-dependency-plugin?
I'll point out that I seem to have had the same issue after modifying the israfil maven-flex template from http://ancientprogramming.blogspot.com/2007/11/quickstart-flex-development-with-this.html to use the ServeBox flex plugin (http://maven.servebox.org/sites/maven-flex-plugin/flex-plugin/). I think I have worked around this issue but I thought posting my information might help another googler out there somewhere. Philip Brian E Fox wrote: Huh? The flex2 plugin depends on the dependency plugin? That's not right...plugins shouldn't be used as dependencies of other plugins and now you can see why. You might wanna ping the flex2 author and have him/her fix that. -Original Message- From: Sebastien ARBOGAST [mailto:sebastien.arbog...@gmail.com] Sent: Sunday, March 02, 2008 12:48 PM To: Maven Users List Subject: 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 denn...@apache.org: 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: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Sébastien Arbogast http://sebastien-arbogast.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Bug-with-maven-dependency-plugin--tp15789785p21092054.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: questions about profiles?
On Fri, Dec 19, 2008 at 10:43 AM, aymen83 aymen.bhm...@yahoo.fr wrote: hi i've been searching for a way to override the version of an Artifact using profiles, is that possible? the idea is to change the version of framework when compiling a project, for instance, the project is compiled using spring 2.5 and i want to write a profile to compile it with the version 2.0 You will need two profiles, one for version 2.5 (make it active by default) and one for version 2.0. Within the profiles, you can either declare the the whole dependency or just a property with the version number. In the particular case from spring 2.0 to spring 2.5 it may be slightly more complicated because the packaging into spring modules was changed between the versions. This means you may need other dependencies unless you use the full spring.jar. - Henry - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: questions about profiles?
two profiles this is what i have done and this the profile for spring 2.0.8 profile idlegacy/id activation activeByDefaultfalse/activeByDefault jdk1.5/jdk /activation properties Spring.Version2.0.8/Spring.Version /properties build resources resource directorysrc\main\resources\ressourcesDev/directory /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directoryWsService\ressources2/directory /resource /webResources /configuration /plugin /plugins /build /profile but this seems not working since when i tape mvn dependency:resolve i only have spring2.5.6 thanks for helping aymen83 wrote: hi i've been searching for a way to override the version of an Artifact using profiles, is that possible? the idea is to change the version of framework when compiling a project, for instance, the project is compiled using spring 2.5 and i want to write a profile to compile it with the version 2.0 -- View this message in context: http://www.nabble.com/questions-about-profiles--tp21088457p21093168.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn dependency:analyse
Maybe try: mvn dependency:analyze Using a z instead of s? From: aymen83 aymen.bhm...@yahoo.fr To: users@maven.apache.org Sent: Friday, December 19, 2008 10:23:02 AM Subject: mvn dependency:analyse hi, when i tape mvn dependency:analyse i got this error [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Ws Parent POM [INFO] WsCommon [INFO] WsSchema [INFO] WsService Webapp [INFO] Web Services Platform [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:analyse in org.apache.maven.plugins:maven-dependency-plugin:2.0 [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Dec 19 16:19:39 CET 2008 [INFO] Final Memory: 3M/6M [INFO] first i thought that the plugin is messing so i addes it in my pom and compiled the projet which was susccessfully compiled but it seems that there's no change. how can i add this goal in my pom? -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093087.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mvn dependency:analyse
thanks John sometimes i do silly things? John Prystash wrote: Maybe try: mvn dependency:analyze Using a z instead of s? From: aymen83 aymen.bhm...@yahoo.fr To: users@maven.apache.org Sent: Friday, December 19, 2008 10:23:02 AM Subject: mvn dependency:analyse hi, when i tape mvn dependency:analyse i got this error [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Ws Parent POM [INFO] WsCommon [INFO] WsSchema [INFO] WsService Webapp [INFO] Web Services Platform [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:analyse in org.apache.maven.plugins:maven-dependency-plugin:2.0 [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Dec 19 16:19:39 CET 2008 [INFO] Final Memory: 3M/6M [INFO] first i thought that the plugin is messing so i addes it in my pom and compiled the projet which was susccessfully compiled but it seems that there's no change. how can i add this goal in my pom? -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093087.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093440.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn dependency:analyse
Don't feel too bad. I did something similar when I thought I typed the command in correctly but didn't and got an error until much later on. There is a fail fast option to Maven and this might help to avoid this kind of confusion. I haven't really played with it myself but I thought I would mention that it is there. --- Todd Thiessen -Original Message- From: aymen83 [mailto:aymen.bhm...@yahoo.fr] Sent: Friday, December 19, 2008 10:46 AM To: users@maven.apache.org Subject: Re: mvn dependency:analyse thanks John sometimes i do silly things? John Prystash wrote: Maybe try: mvn dependency:analyze Using a z instead of s? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn dependency:analyse
so after doing the analyZe i get this erro invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused: which i ignore totally the significance. since i'm not an expert in maven would someone tell me how to deal with this: [WARNING] Used undeclared dependencies found: [WARNING]javax.xml.bind:jaxb-api:jar:2.1:provided [WARNING]org.springframework.ws:spring-xml:jar:1.5.0:compile [WARNING]org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile [WARNING]org.aspectj:aspectjweaver:jar:1.5.4:compile [WARNING]com.sun.jmx:jmxri:jar:1.2.1:runtime [WARNING] Unused declared dependencies found: [WARNING]org.springframework:spring-web:jar:2.5.6:compile [WARNING]com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided [WARNING] org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile [WARNING]org.aspectj:aspectjrt:jar:1.5.4:compile [WARNING]org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile%-| Todd Thiessen wrote: Don't feel too bad. I did something similar when I thought I typed the command in correctly but didn't and got an error until much later on. There is a fail fast option to Maven and this might help to avoid this kind of confusion. I haven't really played with it myself but I thought I would mention that it is there. --- Todd Thiessen -Original Message- From: aymen83 [mailto:aymen.bhm...@yahoo.fr] Sent: Friday, December 19, 2008 10:46 AM To: users@maven.apache.org Subject: Re: mvn dependency:analyse thanks John sometimes i do silly things? John Prystash wrote: Maybe try: mvn dependency:analyze Using a z instead of s? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093963.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn dependency:analyse
so after doing the analyZe i get this erro invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused: which i ignore totally the significance. since i'm not an expert in maven would someone tell me how to deal with this: [WARNING] Used undeclared dependencies found: [WARNING]javax.xml.bind:jaxb-api:jar:2.1:provided [WARNING]org.springframework.ws:spring-xml:jar:1.5.0:compile [WARNING]org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile [WARNING]org.aspectj:aspectjweaver:jar:1.5.4:compile [WARNING]com.sun.jmx:jmxri:jar:1.2.1:runtime [WARNING] Unused declared dependencies found: [WARNING]org.springframework:spring-web:jar:2.5.6:compile [WARNING]com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided [WARNING] org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile [WARNING]org.aspectj:aspectjrt:jar:1.5.4:compile [WARNING]org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile%-| Todd Thiessen wrote: Don't feel too bad. I did something similar when I thought I typed the command in correctly but didn't and got an error until much later on. There is a fail fast option to Maven and this might help to avoid this kind of confusion. I haven't really played with it myself but I thought I would mention that it is there. --- Todd Thiessen -Original Message- From: aymen83 [mailto:aymen.bhm...@yahoo.fr] Sent: Friday, December 19, 2008 10:46 AM To: users@maven.apache.org Subject: Re: mvn dependency:analyse thanks John sometimes i do silly things? John Prystash wrote: Maybe try: mvn dependency:analyze Using a z instead of s? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093965.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn dependency:analyse
so after doing the analyZe i get this erro invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused: which i ignore totally the significance. since i'm not an expert in maven would someone tell me how to deal with this: [WARNING] Used undeclared dependencies found: [WARNING]javax.xml.bind:jaxb-api:jar:2.1:provided [WARNING]org.springframework.ws:spring-xml:jar:1.5.0:compile [WARNING]org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile [WARNING]org.aspectj:aspectjweaver:jar:1.5.4:compile [WARNING]com.sun.jmx:jmxri:jar:1.2.1:runtime [WARNING] Unused declared dependencies found: [WARNING]org.springframework:spring-web:jar:2.5.6:compile [WARNING]com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided [WARNING] org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile [WARNING]org.aspectj:aspectjrt:jar:1.5.4:compile [WARNING]org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile%-| Todd Thiessen wrote: Don't feel too bad. I did something similar when I thought I typed the command in correctly but didn't and got an error until much later on. There is a fail fast option to Maven and this might help to avoid this kind of confusion. I haven't really played with it myself but I thought I would mention that it is there. --- Todd Thiessen -Original Message- From: aymen83 [mailto:aymen.bhm...@yahoo.fr] Sent: Friday, December 19, 2008 10:46 AM To: users@maven.apache.org Subject: Re: mvn dependency:analyse thanks John sometimes i do silly things? John Prystash wrote: Maybe try: mvn dependency:analyze Using a z instead of s? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093969.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn dependency:analyse
so after doing the analyZe i get this erro invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused: which i ignore totally the significance. since i'm not an expert in maven would someone tell me how to deal with this: [WARNING] Used undeclared dependencies found: [WARNING]javax.xml.bind:jaxb-api:jar:2.1:provided [WARNING]org.springframework.ws:spring-xml:jar:1.5.0:compile [WARNING]org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile [WARNING]org.aspectj:aspectjweaver:jar:1.5.4:compile [WARNING]com.sun.jmx:jmxri:jar:1.2.1:runtime [WARNING] Unused declared dependencies found: [WARNING]org.springframework:spring-web:jar:2.5.6:compile [WARNING]com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided [WARNING] org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile [WARNING]org.aspectj:aspectjrt:jar:1.5.4:compile [WARNING]org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile Todd Thiessen wrote: Don't feel too bad. I did something similar when I thought I typed the command in correctly but didn't and got an error until much later on. There is a fail fast option to Maven and this might help to avoid this kind of confusion. I haven't really played with it myself but I thought I would mention that it is there. --- Todd Thiessen -Original Message- From: aymen83 [mailto:aymen.bhm...@yahoo.fr] Sent: Friday, December 19, 2008 10:46 AM To: users@maven.apache.org Subject: Re: mvn dependency:analyse thanks John sometimes i do silly things? John Prystash wrote: Maybe try: mvn dependency:analyze Using a z instead of s? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093983.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANNOUNCEMENT] - UNIX Maven Plugin 1.0-alpha-1 released
I'm happy to announce the first alpha release of unix-maven-plugin. This is primarily a technology preview, but is fully functional. The unix-maven-plugin is a Maven plugin for producing installation packages for UNIX platforms. The current release is 1.0-alpha-1. This release is meant as a technology preview release. The plugin is useful but work is in progress to make sure it support even more use cases. The documentation is currently lacking, but the integration tests currently act as the documentation. See the TODO.txt[1] for the latest status on supported cases and planned features. See the README.txt[2] in the integration test directory for an explanation of the different integration tests. The plugin combines the work of the deb, solaris and rpm Maven plugins and also handles the aspect of assembling the packages without using the assembly plugin. Supported platforms: * Debian (.deb) * RedHat and Fedora (.rpm) * SysV packages for Solaris (.pkg) The development happens on the Codehaus Mojo project [3], if you want to try it out, have found an issue or just want your use case supported get in touch through the mailing lists [4]. [1]: http://svn.codehaus.org/mojo/trunk/mojo/unix/TODO.txt [2]: http://svn.codehaus.org/mojo/trunk/mojo/unix/unix-maven-plugin/src/it/README.txt [3]: http://mojo.codehaus.org/unix/ [4]: http://mojo.codehaus.org/unix/mail-lists.html -- Trygve - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Effective POM and RELEASE version
Hi, (sorry if i double posted, i 'm resending because i had a send error last time) Here is my question: Why is it that whenever I execute help:effective-pom and I got some dependency or parentPom defined with versionRELEASE/version in the effective-pom output i still see versionRELEASE/version and NOT the truly version number I 'm compiling against. hope sombody answers this one :) cheers!
Re: Re: maven-eclipse-plugin generates bad source-folders in combination with relative folders
My Directory-Stucture looks following: D:\ - Projekte - Maven -maven-user-list - maven-project-dir - existing-src-dir I need to add the Sources in existing-src-dir to the pom in maven-project-dir. I think you might want to move the maven-project-dir stuff up into maven-user-list. I believe Eclipse doesnt allow src dirs outside of the project. To test this, manually try to configure an Eclipse project. If you can get that to work, then attach the .classpath file Eclipse generates to the Jira. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Effective POM and RELEASE version
Which plugin or dependency is it? Is it one of yours of another? RELEASE is a special keyword that is designed to be resolved at runtime against the latest *non-snapshot* version. Cheers 2008/12/19 Nicolas Barrera nbarr...@gmail.com Hi, (sorry if i double posted, i 'm resending because i had a send error last time) Here is my question: Why is it that whenever I execute help:effective-pom and I got some dependency or parentPom defined with versionRELEASE/version in the effective-pom output i still see versionRELEASE/version and NOT the truly version number I 'm compiling against. hope sombody answers this one :) cheers! -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Are Maven profiles like Ant targets?
2008/12/18 Martin Höller mar...@xss.co.at Yes, that's what I've been doing, but you said I was doing it wrong. In your original mail you tried to use profiles like you would use tasks in ant. That's not the maven way and that's what I meant when I was saying you are doing it wrong. I never said using profiles is wrong. And btw, the subject was Are Maven profiles like ant targets ? The answer was clearly no. I guess it also started with this :-). And I'm also really wondering why you try to use maven in what seems to me an ant-ish way. If you need more specific and totally unrelated tasks, and you don't want a predefined packaging lifecycle like maven provides you with, why don't you simply use ant alone? Imo, Ant can turn your head upside down to configure a whole project packaging/testing/site generation/etc. (I mean without things like Ivy or so, I guess). But it seems almost better than maven to execute a specific task in the way we sometimes do with specific plugin goal (still in my opinion). Cheers. -- Baptiste Batmat MATHUS - http://batmat.net Save a tree, Eat a beaver!
Re: questions about profiles?
I might have missed something, but where did you use this property somewhere else in your pom? And how do you run maven? What did you put after -P? Cheers 2008/12/19 aymen83 aymen.bhm...@yahoo.fr two profiles this is what i have done and this the profile for spring 2.0.8 profile idlegacy/id activation activeByDefaultfalse/activeByDefault jdk1.5/jdk /activation properties Spring.Version2.0.8/Spring.Version /properties build resources resource directorysrc\main\resources\ressourcesDev/directory /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration webResources resource directoryWsService\ressources2/directory /resource /webResources /configuration /plugin /plugins /build /profile but this seems not working since when i tape mvn dependency:resolve i only have spring2.5.6 thanks for helping aymen83 wrote: hi i've been searching for a way to override the version of an Artifact using profiles, is that possible? the idea is to change the version of framework when compiling a project, for instance, the project is compiled using spring 2.5 and i want to write a profile to compile it with the version 2.0 -- View this message in context: http://www.nabble.com/questions-about-profiles--tp21088457p21093168.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Effective POM and RELEASE version
Hi, Why is it that whenever I execute help:effective-pom and I got some dependency or parentPom defined with versionRELEASE/version in the effective-pom output i still see versionRELEASE/version and NOT the truly version number I 'm compiling against. hope sombody answers this one :) cheers!
Unable to successfully complete a mvn install on one of my apps
I have an application that I have been able to install successfully in the past until I upgraded its pom and added the following dependencies: dependency groupIdSAP/groupId artifactIdLOG/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdEXCEPTION/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdSAPCLIENT/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdJMS/artifactId version1.1/version scoperuntime/scope /dependency I use artifactory so I uploaded all the listed dependencies jar files to my artifactory repository. I verified that my settings.xml file have the right configuration on the url for artifactory as well. After I do a mvn install -Pacp command I get the following error message: [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) SAP:LOG:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:LOG:jar:7.0 2) SAP:EXCEPTION:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:EXCEPTION:jar:7.0 3) SAP:SAPCLIENT:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:SAPCLIENT:jar:7.0 4) SAP:JMS:jar:1.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:JMS:jar:1.1 -- 4 required artifacts are missing. for artifact: com.octanner.batchapplications:pdr:jar:8.12 from the specified remote repositories: central (http://repo1.maven.org/maven2) I don't understand why is trying to download these files from http://repo1 instead of my own repository. any help would be greatly appreciated. -Miguel -- View this message in context: http://www.nabble.com/Unable-to-successfully-complete-a-mvn-install-on-one-of-my-apps-tp21098689p21098689.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Unable to successfully complete a mvn install on one of my apps
You might want to try running mvn help:effective-settings. Justin -Original Message- From: edgarosy [mailto:edgar.l...@gmail.com] Sent: Friday, December 19, 2008 4:36 PM To: users@maven.apache.org Subject: Unable to successfully complete a mvn install on one of my apps I have an application that I have been able to install successfully in the past until I upgraded its pom and added the following dependencies: dependency groupIdSAP/groupId artifactIdLOG/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdEXCEPTION/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdSAPCLIENT/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdJMS/artifactId version1.1/version scoperuntime/scope /dependency I use artifactory so I uploaded all the listed dependencies jar files to my artifactory repository. I verified that my settings.xml file have the right configuration on the url for artifactory as well. After I do a mvn install -Pacp command I get the following error message: [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) SAP:LOG:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:LOG:jar:7.0 2) SAP:EXCEPTION:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:EXCEPTION:jar:7.0 3) SAP:SAPCLIENT:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:SAPCLIENT:jar:7.0 4) SAP:JMS:jar:1.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:JMS:jar:1.1 -- 4 required artifacts are missing. for artifact: com.octanner.batchapplications:pdr:jar:8.12 from the specified remote repositories: central (http://repo1.maven.org/maven2) I don't understand why is trying to download these files from http://repo1 instead of my own repository. any help would be greatly appreciated. -Miguel -- View this message in context: http://www.nabble.com/Unable-to-successfully-complete-a-mvn-install-on-o ne-of-my-apps-tp21098689p21098689.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Unable to successfully complete a mvn install on one of my apps
When I run the mvn help:effective-settings -Pacp command I get a successfull build. justinedelson wrote: You might want to try running mvn help:effective-settings. Justin -Original Message- From: edgarosy [mailto:edgar.l...@gmail.com] Sent: Friday, December 19, 2008 4:36 PM To: users@maven.apache.org Subject: Unable to successfully complete a mvn install on one of my apps I have an application that I have been able to install successfully in the past until I upgraded its pom and added the following dependencies: dependency groupIdSAP/groupId artifactIdLOG/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdEXCEPTION/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdSAPCLIENT/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdJMS/artifactId version1.1/version scoperuntime/scope /dependency I use artifactory so I uploaded all the listed dependencies jar files to my artifactory repository. I verified that my settings.xml file have the right configuration on the url for artifactory as well. After I do a mvn install -Pacp command I get the following error message: [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) SAP:LOG:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:LOG:jar:7.0 2) SAP:EXCEPTION:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:EXCEPTION:jar:7.0 3) SAP:SAPCLIENT:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:SAPCLIENT:jar:7.0 4) SAP:JMS:jar:1.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:JMS:jar:1.1 -- 4 required artifacts are missing. for artifact: com.octanner.batchapplications:pdr:jar:8.12 from the specified remote repositories: central (http://repo1.maven.org/maven2) I don't understand why is trying to download these files from http://repo1 instead of my own repository. any help would be greatly appreciated. -Miguel -- View this message in context: http://www.nabble.com/Unable-to-successfully-complete-a-mvn-install-on-o ne-of-my-apps-tp21098689p21098689.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context:
RE: Unable to successfully complete a mvn install on one of my apps
Right, but does it show your artifactory repository? -Original Message- From: edgarosy [mailto:edgar.l...@gmail.com] Sent: Friday, December 19, 2008 5:13 PM To: users@maven.apache.org Subject: RE: Unable to successfully complete a mvn install on one of my apps When I run the mvn help:effective-settings -Pacp command I get a successfull build. justinedelson wrote: You might want to try running mvn help:effective-settings. Justin -Original Message- From: edgarosy [mailto:edgar.l...@gmail.com] Sent: Friday, December 19, 2008 4:36 PM To: users@maven.apache.org Subject: Unable to successfully complete a mvn install on one of my apps I have an application that I have been able to install successfully in the past until I upgraded its pom and added the following dependencies: dependency groupIdSAP/groupId artifactIdLOG/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdEXCEPTION/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdSAPCLIENT/artifactId version7.0/version scoperuntime/scope /dependency dependency groupIdSAP/groupId artifactIdJMS/artifactId version1.1/version scoperuntime/scope /dependency I use artifactory so I uploaded all the listed dependencies jar files to my artifactory repository. I verified that my settings.xml file have the right configuration on the url for artifactory as well. After I do a mvn install -Pacp command I get the following error message: [ERROR] BUILD ERROR [INFO] -- -- [INFO] Failed to resolve artifact. Missing: -- 1) SAP:LOG:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=LOG -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:LOG:jar:7.0 2) SAP:EXCEPTION:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=EXCEPTION -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:EXCEPTION:jar:7.0 3) SAP:SAPCLIENT:jar:7.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=SAPCLIENT -Dversion=7.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:SAPCLIENT:jar:7.0 4) SAP:JMS:jar:1.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=SAP -DartifactId=JMS -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) com.octanner.batchapplications:pdr:jar:8.12 2) SAP:JMS:jar:1.1 -- 4 required artifacts are missing. for artifact: com.octanner.batchapplications:pdr:jar:8.12 from the specified remote repositories: central (http://repo1.maven.org/maven2) I don't understand why is trying to download these files from http://repo1 instead of my own repository. any help would be greatly appreciated. -Miguel -- View this message in context: http://www.nabble.com/Unable-to-successfully-complete-a-mvn-install-on -o ne-of-my-apps-tp21098689p21098689.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For
Inconsistent Cobertura Results
Sometimes cobertura reports zero percent coverage in info produced by site:site, and non-zero percentages are reported when run separately. I was thinking that this might be due to differences in the default values of the property maven.compiler.debug between the build and site lifecycles ... or in the ways the compile plugin might be run for compilation of tests across these uses. Has anyone seen this behavior? BTW, I've seen -Dmaven.compiler.debug=true in postings and ${maven.compiler.debug} in the plugin docs ... and also -Dmaven.compile.debug=on in postings. I'm assuming that the former is correct, and that the latter refers to Maven 1. Brad - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: mvn dependency:analyse
The used undeclared dependencies are dangerous. This means in your code you are using things from these dependencies but your pom doesn't declare them. It's working because they are on the compile classpath via a transitive dependency. The problem is that these transitives could change on you and it would take a long time to understand what changing a caused a compile/runtime error in c. The unused declared dependencies means that the plugin thinks you have declared a dependency you aren't using (like unused imports). This can sometimes be incorrect if the only thing in the dependency you have used is a constant or an interface because these are compiled away and the bytecode wouldn't have anything to tell us. Be carful removing these but fortunately it's easy to tell. Take them out and see if it still builds clean. -Original Message- From: aymen83 [mailto:aymen.bhm...@yahoo.fr] Sent: Friday, December 19, 2008 11:17 AM To: users@maven.apache.org Subject: RE: mvn dependency:analyse so after doing the analyZe i get this erro invalid entry CRC (expected 0x1edc57c0 but got 0x14bef4c8):confused: which i ignore totally the significance. since i'm not an expert in maven would someone tell me how to deal with this: [WARNING] Used undeclared dependencies found: [WARNING]javax.xml.bind:jaxb-api:jar:2.1:provided [WARNING]org.springframework.ws:spring-xml:jar:1.5.0:compile [WARNING]org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile [WARNING]org.aspectj:aspectjweaver:jar:1.5.4:compile [WARNING]com.sun.jmx:jmxri:jar:1.2.1:runtime [WARNING] Unused declared dependencies found: [WARNING]org.springframework:spring-web:jar:2.5.6:compile [WARNING]com.sun.xml.bind:jaxb-impl:jar:2.1.5:provided [WARNING] org.hibernate:hibernate-commons-annotations:jar:3.3.0.ga:compile [WARNING]org.aspectj:aspectjrt:jar:1.5.4:compile [WARNING]org.acegisecurity:acegi-security-tiger:jar:1.0.5:compile Todd Thiessen wrote: Don't feel too bad. I did something similar when I thought I typed the command in correctly but didn't and got an error until much later on. There is a fail fast option to Maven and this might help to avoid this kind of confusion. I haven't really played with it myself but I thought I would mention that it is there. --- Todd Thiessen -Original Message- From: aymen83 [mailto:aymen.bhm...@yahoo.fr] Sent: Friday, December 19, 2008 10:46 AM To: users@maven.apache.org Subject: Re: mvn dependency:analyse thanks John sometimes i do silly things? John Prystash wrote: Maybe try: mvn dependency:analyze Using a z instead of s? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/mvn-dependency%3Aanalyse-tp21093087p21093983.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[LOADING CLASS]
Hello Guys, I have a maven plugin that needs to load classes from the project, but when I try I get class not found exception, so I'm guessing I need to configure something to let maven know that the application class path should also include the existing java classes. This plugin will via reflection will extract some metadata via reflection from these classes to generate a couple of XML files. How can configure my mojo to include the classes from src/main/java (the actual compiled ones in target/classes/... )? -- Ivanir João Kreuzberg