classpath fileseparator problem in generated manifest file under winxp
Hello, I'm building a Java project using Maven 2.0.9 and JVM 1.5.0_14 on Windows XP. My project depends on runtime from some jar files that are resides in the same directory with my jar so I put this configuration to my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version configuration archive manifest addClasspathtrue/addClasspath classpathPrefix.\/classpathPrefix /manifest /archive /configuration /plugin After build the manifest file in my jar file contains all dependencies with prefix ./ Is this a bug or I missed something? Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repository download through FTP
I have to setup maven environment where cannot access central repository (only LAN) So, I'm tring download maven repository and configure mirror site for development team. I found some article like this. -- http://maven.apache.org/guides/mini/guide-mirror-settings.html FTP access The repository is available through FTP at * ftp://mirrors.ibiblio.org/pub/packages/maven2* -- According to avobe article, I try ftp access. But... -- D:\Documents and Settings\bomberftp mirrors.ibiblio.org Connected to mirrors.ibiblio.org. 220 FTP Server ready. User (mirrors.ibiblio.org:(none)): -- Do you know account and password? Is it possible to use maven on cannot access central? How can I get full repository (6GB)?
Re: Repository download through FTP
Sang-Jea, Use the anonymous user account with no password. James On Mon, 2008-05-19 at 16:34 +0900, Sang-Jea Shin wrote: I have to setup maven environment where cannot access central repository (only LAN) So, I'm tring download maven repository and configure mirror site for development team. I found some article like this. -- http://maven.apache.org/guides/mini/guide-mirror-settings.html FTP access The repository is available through FTP at * ftp://mirrors.ibiblio.org/pub/packages/maven2* -- According to avobe article, I try ftp access. But... -- D:\Documents and Settings\bomberftp mirrors.ibiblio.org Connected to mirrors.ibiblio.org. 220 FTP Server ready. User (mirrors.ibiblio.org:(none)): -- Do you know account and password? Is it possible to use maven on cannot access central? How can I get full repository (6GB)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 Dependency on java source folder rather than jar file
Thanks for all your answers, the only problem with this is that I am using other eclipse plugins as part of my iterative build. For instance I use the hibernate plugin in my POM file. This means that although eclipse will be aware of the source dependency, the POM file is not. So it is true that this solution is effective for compilation. However, any plugins defined in the POM file will not be aware of it and still build off the JAR file :-(. There is a workaround for this, which consists in using ant tasks as part of the development rather that using the maven plugins. However this means that for development I do not rely on maven at all, which defeats its purpose. Thanks, Thierry Lach-2 wrote: This may not work for you, but I use Eclipse with the Maven plugin ( http://m2eclipse.codehaus.org/) which will automatically do what you are asking with other dependent projects open in the workspace. On Fri, May 16, 2008 at 10:34 AM, BenDave [EMAIL PROTECTED] wrote: Hi, I am working on 2 projects, one is Dependant on the other. The usual way of dealing with this is to add a dependency to a jar file located in the repository. This works fine but the source project (on which the target project depends) is constantly evolving, as we are doing some iterative development. The source and target project are modified at the same time. Consequently i don't want to work off a jar file of the source project, because generating jar files and deploying them to the repository takes too long (only 20 seconds but it adds up when this is done dozens / hundreds of times per day ). I do not want to merge these two projects into one as the source is a common project and is being used by other projects too, I need these two projects to be distinct. So the solution is to indicate to maven a source folder which the target project depends on rather than a JAR file. Can this be achieved ? Thanks, -- View this message in context: http://www.nabble.com/Maven-2-Dependency-on-java-source-folder-rather-than-jar-file-tp17276237p17276237.html Sent from the Maven - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Maven-2-Dependency-on-java-source-folder-rather-than-jar-file-tp17276237p17313164.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath fileseparator problem in generated manifest file under winxp
Using the classpathPrefix.\/classpathPrefix tag, you're telling the Jar plugin to put that prefix - and it seems to behave correctly. always visit the plugin's doc pages for details: http://maven.apache.org/plugins/maven-jar-plugin/ Maven Jar Plugin http://maven.apache.org/shared/maven-archiver/examples/classpath.html Maven Archiver Regards, PC Thalmeiner Zsolt wrote: Hello, I'm building a Java project using Maven 2.0.9 and JVM 1.5.0_14 on Windows XP. My project depends on runtime from some jar files that are resides in the same directory with my jar so I put this configuration to my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version configuration archive manifest addClasspathtrue/addClasspath classpathPrefix.\/classpathPrefix /manifest /archive /configuration /plugin After build the manifest file in my jar file contains all dependencies with prefix ./ Is this a bug or I missed something? Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/classpath-fileseparator-problem-in-generated-manifest-file-under-winxp-tp17312374p17313594.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Priorities of properties
Hello, You're right - I've had this issue before too. IMO, the order of loading is this (higher numbers override lower) 1. System and command-line properties 2. Local pom.xml 3. Global settings.xml I guess the issue is that system and command-line properties cannot be distinguished at the moment, and it is desirable to have explicitly set pom properties override system ones. Yours, David -Original Message- From: Clifton [mailto:[EMAIL PROTECTED] Sent: 16 May 2008 15:12 To: users@maven.apache.org Subject: Priorities of properties AM I confused or does Maven override command line properties with profile properties in the pom and profiles.xml? Shouldn't command line properties always take precedence? Could somebody explain the priority order of properties in Maven? I've been trying to do things like have a switch in one profile activate another but this doesn't seem to work well. I've also run into issues where profiles.xml properties collide with or shadow pom.xml properties. Is there an in depth explanation of how all this is supposed to work? -- View this message in context: http://www.nabble.com/Priorities-of-properties-tp17274343p1727 4343.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory issues in 2.0.9
Do you think this is related to MCOMPILER-64 in any way? We've started experiencing a number of PermGen errors in our build. Most of the time setting PermSize to 128m helps, but not always. Asgeir On Thu, May 15, 2008 at 3:28 PM, Ryan Moquin [EMAIL PROTECTED] wrote: Hello, I'm not sure what all to submit informationwise about this issue, but I switched to Maven 2.0.9 and now my builds fail with PermGen errors and on my other build, it complains about being out of heapspace. When I switch back to 2.0.8, I do not get this memory errors during a full build Are there any known memory issues with 2.0.9? Or should I just be increasing my memory settings? It appears to me to be a bug, but I wanted to run it past you all. Has anyone else seen this problem? Thanks, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath fileseparator problem in generated manifest file under winxp
Using the classpathPrefix.\/classpathPrefix tag I want to get .\ (backslash) as prefix but the manifest file contains ./ (slash) prefixes. Unfortunatelly running the jar under WinXP doesn't recognizes paths with slashes :( I wrote to the list because I didn't found any information in doc pages to handle this problem. Regards, th Paolo Compieta írta: Using the classpathPrefix.\/classpathPrefix tag, you're telling the Jar plugin to put that prefix - and it seems to behave correctly. always visit the plugin's doc pages for details: http://maven.apache.org/plugins/maven-jar-plugin/ Maven Jar Plugin http://maven.apache.org/shared/maven-archiver/examples/classpath.html Maven Archiver Regards, PC Thalmeiner Zsolt wrote: Hello, I'm building a Java project using Maven 2.0.9 and JVM 1.5.0_14 on Windows XP. My project depends on runtime from some jar files that are resides in the same directory with my jar so I put this configuration to my pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId version2.2/version configuration archive manifest addClasspathtrue/addClasspath classpathPrefix.\/classpathPrefix /manifest /archive /configuration /plugin After build the manifest file in my jar file contains all dependencies with prefix ./ Is this a bug or I missed something? Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory issues in 2.0.9
2008/5/18 Asgeir S. Nilsen [EMAIL PROTECTED]: Do you think this is related to MCOMPILER-64 in any way? Perhaps - the comments do say 2.0.8 works? I filed this issue to track: MNG-3584 - Brett -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using maven-apt-plugin breaks maven-clover-plugin run with duplicate class compilation errors
Hi, Currently I am working on a project that makes use of the maven-apt-plugin. One of the configuration options for maven-apt-plugin is the generated tag which specifies the source directory containing the generated sources. Default value is src/main/gen. When using the maven-clover-plugin to do coverage reports, the forked build tries to compile files in its own workspace along with the src/main/gen directory. The generated property actually does not get cloverized. This results in the compiler seeing duplicate classes because it sees both files in the clover workspace and files in the original build's directory. In the generated tag, I have tried to use ${project.build.directory} to orient the build to use the current build directory but maven-apt-plugin flags this as an error in configuration. Has anyone seen this problem before? Thanks, Ngan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath fileseparator problem in generated manifest file under winxp
This is not a Maven problem. The classpath entry in the manifest file is platform independent, and all paths are relative to the containing jar - you shouldn't even need the ./ prefix. see http://mindprod.com/jgloss/jar.html#CLASSPATH Regards, PC Thalmeiner Zsolt wrote: Using the classpathPrefix.\/classpathPrefix tag I want to get .\ (backslash) as prefix but the manifest file contains ./ (slash) prefixes. Unfortunatelly running the jar under WinXP doesn't recognizes paths with slashes :( I wrote to the list because I didn't found any information in doc pages to handle this problem. Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/classpath-fileseparator-problem-in-generated-manifest-file-under-winxp-tp17312374p17314180.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
build.xml:141 Java Returned 1... Help me out to kill this error
Hi, I have downloaded MAVEN2.2 source. when i tried to build the source using ANT, i got an error build.xml:141 java returned 1. i could not recognize why this error occured.I have included my output below... Help me out to build the souce code successfully using ANT. [java] url = http://snapshots.repository.codehaus.org/ [java] Downloading: http://snapshots.repository.codehaus.org//org/apache/ma ven/maven-plugin-descriptor/2.0.5/maven-plugin-descriptor-2.0.5.jar [java] url = http://repo1.maven.org/maven2 [java] Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-pl ugin-descriptor/2.0.5/maven-plugin-descriptor-2.0.5.jar [java] url = http://snapshots.repository.codehaus.org/ [java] Downloading: http://snapshots.repository.codehaus.org//org/apache/ma ven/maven-monitor/2.0.5/maven-monitor-2.0.5.jar [java] url = http://repo1.maven.org/maven2 [java] Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-mo nitor/2.0.5/maven-monitor-2.0.5.jar [java] [ERROR] [java] Failed to construct build plan for: Apache Maven [java] Id: org.apache.maven:maven:pom:2.1-SNAPSHOT [java] task-segment: [clean, install]. Reason: Failed to load plugin descri ptor for: org.apache.maven.plugins:maven-remote-resources-plugin:1.0-beta-2:proc ess. Cannot discover it's default phase, specified in its plugin descriptor. [java] [java] While building project with id: org.apache.maven:maven:pom:2.1-SNAPS HOT [java] Project File: D:\Build\maven\pom.xml [java] [java] [java] [INFO] - --- [java] [INFO] For more information, run with the -e flag [java] [INFO] - --- [java] [INFO] BUILD FAILED [java] [INFO] - --- [java] [INFO] Total time: 10 minutes 7 seconds [java] [INFO] Finished at: Mon May 19 05:05:25 GMT 2008 [java] [INFO] Final Memory: 8M/15M [java] [INFO] - --- BUILD FAILED D:\Build\maven\build.xml:141: Java returned: 1 Total time: 11 minutes 12 seconds Please help me to remove this bug. I expect your valuable suggestions and ideas.. Thanks in advance... -- View this message in context: http://www.nabble.com/%22build.xml%3A141-Java-Returned-1%22...-Help-me-out-to-kill-this-error-tp17315162p17315162.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected element artifact:dependencies
Dennis, Thank you very much. My ant version was: Apache Ant version 1.5.3 compiled on August 13 2003 Eventhough I was having C:\apache-ant-1.6.5 in the path, system was taking ant from bea directory. I removed bea directory from path to correct ant to point to apache-ant-1.6.5 and it started working! --- Dennis Lundberg [EMAIL PROTECTED] wrote: Your build.xml works for me using Ant 1.6.5. Which version of Ant do you use? sudheshna iyer wrote: Thank you very much for your help. As per the instructions, I have downloaded maven-ant-tasks-2.0.9.jar and put it in the ant lib directory. I also can find it in the list of directories when I do ant -diagnostics. But when I run build.xml, I get the following error: build.xml:4: Unexpected attribute xmlns:artifact My build.xml: ?xml version=1.0? project name=Harnessing Hibernate 3 (Developer's Notebook Second Edition) default=db basedir=. xmlns:artifact=antlib:org.apache.maven.artifact.ant !-- Set up properties containing important project directories -- property name=source.root value=src/ property name=class.root value=classes/ property name=data.dir value=data/ artifact:dependencies pathId=dependency.class.path dependency groupId=hsqldb artifactId=hsqldb version=1.8.0.7/ dependency groupId=org.hibernate artifactId=hibernate version=3.2.5.ga exclusion groupId=javax.transaction artifactId=jta/ /dependency dependency groupId=org.hibernate artifactId=hibernate-tools version=3.2.0.beta9a/ dependency groupId=org.apache.geronimo.specs artifactId=geronimo-jta_1.1_spec version=1.1/ dependency groupId=log4j artifactId=log4j version=1.2.14/ /artifact:dependencies . --- Hervé BOUTEMY [EMAIL PROTECTED] wrote: yes, it seems like you are trying to use Maven Ant Tasks (maven-ant-tasks.jar) in an Ant build (build.xml) The doc is here: http://maven.apache.org/ant-tasks.html The tasks can be downloaded here: http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-ant-tasks-2.0.9.jar Regards, Hervé Le samedi 17 mai 2008, Wayne Fay a écrit : As Wendy told you on the Dev list, Maven2 does not use files named build.xml but rather files named pom.xml. Thus, it seems like you do not have a Maven project at all, but rather some Ant build script (I guess?). Where did this build.xml file come from -- you should probably ask that person how you should run it. Wayne On 5/16/08, sudheshna iyer [EMAIL PROTECTED] wrote: I have downloaded apache-maven-2.0.9-bin.tar.gz and extracted to dir: C:\apache-maven-2.0.9 I have added C:\apache-maven-2.0.9 to the path. When I run mvn --version at cmd prompt, I got the following results: C:\Work\GettingStartedWithHibernate3mvn --version Maven version: 2.0.9 Java version: 1.5.0_05 OS name: windows xp version: 5.1 arch: x86 Family: windows I have a build file with the following lines: artifact:dependencies pathId=dependency.classpath dependency groupId=hsqldb artifactId=hsqldb version=1.8.0.7/ dependency groupId=org.hibernate artifactId=hibernate version=3.2.5.ga exclusion groupId=javax.transaction artifactId=jta/ /dependency dependency groupId=org.hibernate artifactId=hibernate-tools version=3.2.0.beta9a/ dependency groupId=org.apache.geronimo.specs artifactId=geronimo-jta_1.1_spec version=1.1/ dependency groupId=log4j artifactId=log4j version=1.2.14/ /artifact:dependencies But when I run the above build.xml, I receive the following error: Buildfile: build.xml BUILD FAILED file:C:/Work/GettingStartedWithHibernate3/build.xml:11: Unexpected element artifact:dependencies What am I missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] === message truncated ===
duplicate war directory inside WEB-INF/classes
Hi, I'm trying to build a simple war using maven 2 the structure follows the standard directory layout: sja/src/main/resources contains a property file sja/src/main/webapp contains the webapp and has the following subdirs ./css ./WEB-INF/defs ./WEB-INF/beans ./WEB-INF/flows ./WEB-INF/jsps my pom is as follows: 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/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent artifactIdbase-project/artifactId groupIdcom.sms/groupId version1.0/version /parent groupIdcom.sms.iforms2.forms/groupId artifactIdsjawar/artifactId packagingwar/packaging nameSJA war/name dependencies /dependencies version1.0/version build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration /configuration /plugin /plugins /build /project base project just contains the pointer to a maven proxy repository - no actual application configuration. when i run the build (mvn clean package) I get a war file but within the WEB-INF/classes directory is another nested copy of the entire war so in effect i end with with: sjawar-1.0.war/web-inf/classes/sjawar-1.0/web-inf etc Could someone please help me with this as I'm totally stuck. Thanks! -- View this message in context: http://www.nabble.com/duplicate-war-directory-inside-WEB-INF-classes-tp17315650p17315650.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath fileseparator problem in generated manifest file under winxp
Can you send me a simple working example? Thank you in advance. th Paolo Compieta írta: This is not a Maven problem. The classpath entry in the manifest file is platform independent, and all paths are relative to the containing jar - you shouldn't even need the ./ prefix. see http://mindprod.com/jgloss/jar.html#CLASSPATH Regards, PC Thalmeiner Zsolt wrote: Using the classpathPrefix.\/classpathPrefix tag I want to get .\ (backslash) as prefix but the manifest file contains ./ (slash) prefixes. Unfortunatelly running the jar under WinXP doesn't recognizes paths with slashes :( I wrote to the list because I didn't found any information in doc pages to handle this problem. Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected element artifact:dependencies
I'm glad it worked out. We need to add a note on the site about the minimum Ant version required to use the Maven Ant tasks. sudheshna iyer wrote: Dennis, Thank you very much. My ant version was: Apache Ant version 1.5.3 compiled on August 13 2003 Eventhough I was having C:\apache-ant-1.6.5 in the path, system was taking ant from bea directory. I removed bea directory from path to correct ant to point to apache-ant-1.6.5 and it started working! --- Dennis Lundberg [EMAIL PROTECTED] wrote: Your build.xml works for me using Ant 1.6.5. Which version of Ant do you use? sudheshna iyer wrote: Thank you very much for your help. As per the instructions, I have downloaded maven-ant-tasks-2.0.9.jar and put it in the ant lib directory. I also can find it in the list of directories when I do ant -diagnostics. But when I run build.xml, I get the following error: build.xml:4: Unexpected attribute xmlns:artifact My build.xml: ?xml version=1.0? project name=Harnessing Hibernate 3 (Developer's Notebook Second Edition) default=db basedir=. xmlns:artifact=antlib:org.apache.maven.artifact.ant !-- Set up properties containing important project directories -- property name=source.root value=src/ property name=class.root value=classes/ property name=data.dir value=data/ artifact:dependencies pathId=dependency.class.path dependency groupId=hsqldb artifactId=hsqldb version=1.8.0.7/ dependency groupId=org.hibernate artifactId=hibernate version=3.2.5.ga exclusion groupId=javax.transaction artifactId=jta/ /dependency dependency groupId=org.hibernate artifactId=hibernate-tools version=3.2.0.beta9a/ dependency groupId=org.apache.geronimo.specs artifactId=geronimo-jta_1.1_spec version=1.1/ dependency groupId=log4j artifactId=log4j version=1.2.14/ /artifact:dependencies . --- Hervé BOUTEMY [EMAIL PROTECTED] wrote: yes, it seems like you are trying to use Maven Ant Tasks (maven-ant-tasks.jar) in an Ant build (build.xml) The doc is here: http://maven.apache.org/ant-tasks.html The tasks can be downloaded here: http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-ant-tasks-2.0.9.jar Regards, Hervé Le samedi 17 mai 2008, Wayne Fay a écrit : As Wendy told you on the Dev list, Maven2 does not use files named build.xml but rather files named pom.xml. Thus, it seems like you do not have a Maven project at all, but rather some Ant build script (I guess?). Where did this build.xml file come from -- you should probably ask that person how you should run it. Wayne On 5/16/08, sudheshna iyer [EMAIL PROTECTED] wrote: I have downloaded apache-maven-2.0.9-bin.tar.gz and extracted to dir: C:\apache-maven-2.0.9 I have added C:\apache-maven-2.0.9 to the path. When I run mvn --version at cmd prompt, I got the following results: C:\Work\GettingStartedWithHibernate3mvn --version Maven version: 2.0.9 Java version: 1.5.0_05 OS name: windows xp version: 5.1 arch: x86 Family: windows I have a build file with the following lines: artifact:dependencies pathId=dependency.classpath dependency groupId=hsqldb artifactId=hsqldb version=1.8.0.7/ dependency groupId=org.hibernate artifactId=hibernate version=3.2.5.ga exclusion groupId=javax.transaction artifactId=jta/ /dependency dependency groupId=org.hibernate artifactId=hibernate-tools version=3.2.0.beta9a/ dependency groupId=org.apache.geronimo.specs artifactId=geronimo-jta_1.1_spec version=1.1/ dependency groupId=log4j artifactId=log4j version=1.2.14/ /artifact:dependencies But when I run the above build.xml, I receive the following error: Buildfile: build.xml BUILD FAILED file:C:/Work/GettingStartedWithHibernate3/build.xml:11: Unexpected element artifact:dependencies What am I missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] === message truncated === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: duplicate war directory inside WEB-INF/classes
Hi, I just tried with your POM (obviously without parent) and a simple test project: . |-- pom.xml `-- src `-- main |-- resources | `-- test.properties `-- webapp |-- WEB-INF | |-- beans | |-- defs | |-- flows | |-- jsps | `-- web.xml |-- css `-- index.jsp and the war created by 'mvn package' (maven 2.0.9, war-plugin 2.1-alpha-1) looks just as it should, no duplicate entries: . |-- META-INF |-- WEB-INF | |-- beans | |-- classes | | `-- test.properties | |-- defs | |-- flows | |-- jsps | `-- web.xml |-- css `-- index.jsp It seems, there is something wrong on your side, not mavens. I would suggest that you just copy the project structure to a new directory iteratively, checking when the error starts happening. By the way, the war plugin definition with the empty configuration in your pom.xml is redundant, the war plugin is executed by default if you specify packaging 'war'. -Tim aidanb5 schrieb: Hi, I'm trying to build a simple war using maven 2 the structure follows the standard directory layout: sja/src/main/resources contains a property file sja/src/main/webapp contains the webapp and has the following subdirs ./css ./WEB-INF/defs ./WEB-INF/beans ./WEB-INF/flows ./WEB-INF/jsps my pom is as follows: 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/xsd/maven-4.0.0.xsd; modelVersion4.0.0/modelVersion parent artifactIdbase-project/artifactId groupIdcom.sms/groupId version1.0/version /parent groupIdcom.sms.iforms2.forms/groupId artifactIdsjawar/artifactId packagingwar/packaging nameSJA war/name dependencies /dependencies version1.0/version build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration /configuration /plugin /plugins /build /project base project just contains the pointer to a maven proxy repository - no actual application configuration. when i run the build (mvn clean package) I get a war file but within the WEB-INF/classes directory is another nested copy of the entire war so in effect i end with with: sjawar-1.0.war/web-inf/classes/sjawar-1.0/web-inf etc Could someone please help me with this as I'm totally stuck. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running mvn idea:idea
Hi, Though I'm not a maven expert, I've had this message when I've tried to run mvn idea:idea without having run mvn install first. I have a lot of autogenerated code, and if idea:idea is run before generating the code, even though the sub-module iml files are generated, no code (sources) is marked for that module. Therefore I get messages like the ones you've described. So, idea is expecting code, but doesn't get it. I get around it by just running mvn install (or whatever equivalent command you need) first. Hope this helps, Allyson On Wed, May 14, 2008 at 3:36 PM, kace [EMAIL PROTECTED] wrote: Hi, I am using maven 2.0.9 and running mvn idea:idea and I get the following message when I run IDEA Cannot load module file 'C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml': File C:\mobileanarchy\C:\mobileanarchy\data\common\common-core\mobileanarchy-data-common-core.iml does not exist Would you like to remove the module from the project? All the java files have a circle with a diagonal line across it. Anyone know how I can fix this? Regards, ..kace -- View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17232616.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Allyson :) Allyson Lister Research Associate Centre for Integrated Systems Biology for Ageing and Nutrition Newcastle University http://www.cisban.ac.uk School of Computing Science Newcastle University Newcastle upon Tyne, NE1 7RU
Re: unable to deploy site with webdav
Hi, I have since successfully deployed the site with scp, so the problem is definitely with webdav, or my configuration of it. My parent pom.xml contains a 'distributionManagement' element as below: distributionManagement site idourproject.website/id urldav:http://our.webserver.com/projects/ourproject/url /site /distributionManagement My settings.xml has an entry as below: server idourproject.website/id usernameouruser/username passwordourpassword/password /server I tried also adding to my build element: extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-2/version /extension /extensions I also tried changing the version of wagon-webdav to 1.0-beta-1. Thanks for your help, regards, Ross rossputin wrote: Hi, I am using maven 2.0.9, and everything is working great except for site deployment with webdav. I have not tried any other kind of deployment yet, as I do it manually, so it may not be just site deployment that is not working for me. I have an apache webdav setup in place, and can access it in a browser or in Cadaver via command line. When I execute my maven site:deploy command, I always get a '500 Internal Server Error' with wagon-webdav 1.0-beta-2, and with wagon-webdav 1.0-beta-1 nothing much seems to happen, the process executes successfully, but nothing is copied across. Has anyone successfully deployed with any recent version of maven over webdav? One of the books I have on it suggests using it. I have not seen much on the mailing list though. Thanks in advance for your help. Ross -- View this message in context: http://www.nabble.com/unable-to-deploy-site-with-webdav-tp17276670p17316639.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Small documentation improvement
Hi, I just started using Maven, and while trying to do so I got some problems finding the correct information. Here is a list of improvements that could help other people when learning Maven for the first time: * Eclipse guide (http://maven.apache.org/guides/mini/guide-ide-eclipse.html) - While it is included under the Documentation index, the average user will click on the Eclipse link under IDE Integration menu item. In this page (http://maven.apache.org/eclipse-plugin.html), you will be directed to external websites, probably missing the Eclipse guide, which contains vital information about setting the Maven repository in Eclipse. A link to the Eclipse guide in the Eclipse integration page is a must. - The Eclipse guide should mention that if you are using the M2Eclipse plugin, it is better to use mvn eclipse:m2eclipse when generating the project, as this will allow for correct dependency administration using the m2eclipse plugin. - The guide should also mention how you create the project files for Eclipse if you are working with a webapp, as in mvn -Dwtpversion=1.5 eclipse:m2eclipse. - Related to the two previous points, you need to activate the M2Eclipse dependency in Eclipse: Project Properties - J2EE Module dependencies for your webapp to see the m2eclipse dependencies. * Site documentation - How to generate pages in UTF-8? it may seem obvious, but it took a while on the search engines: ... plugins plugin artifactIdmaven-site-plugin/artifactId version2.0-beta-6/version configuration localesen/locales inputEncodingutf-8/inputEncoding outputEncodingutf-8/outputEncoding /configuration /plugin /plugins ... I Hope that someone can go over these simple things. It will really help new people get into Maven. See you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath fileseparator problem in generated manifest file under winxp
What do you mean by working example? you project build is behaving exactly as it should. Class-path entries in a jar manifest are ...relative URLS .. [1] and a file URL per definition [2] (section 3.10) contains forward slashes. If your library-jars are located in the same directory as the jar with the class-path entry you don't need a prefix at all. If the jars are located in a subdirectory called 'libs' you need to specify the prefix as 'libs/' -Tim [1] http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#Main%20Attributes [2] http://www.rfc.net/rfc1738.html Thalmeiner Zsolt schrieb: Can you send me a simple working example? Thank you in advance. th Paolo Compieta írta: This is not a Maven problem. The classpath entry in the manifest file is platform independent, and all paths are relative to the containing jar - you shouldn't even need the ./ prefix. see http://mindprod.com/jgloss/jar.html#CLASSPATH Regards, PC Thalmeiner Zsolt wrote: Using the classpathPrefix.\/classpathPrefix tag I want to get .\ (backslash) as prefix but the manifest file contains ./ (slash) prefixes. Unfortunatelly running the jar under WinXP doesn't recognizes paths with slashes :( I wrote to the list because I didn't found any information in doc pages to handle this problem. Regards, th - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: unable to deploy site with webdav
The Mojo project at Codehaus uses webdav for site deployment. Perhaps you can pick up a clue or two by looking at their parent POM: http://svn.codehaus.org/mojo/tags/mojo-17/pom.xml The users of that parent doesn't have to configure anything related to site deployment. The configuration that I have in my settings.xml for that server looks like the one you have shown below. rossputin wrote: Hi, I have since successfully deployed the site with scp, so the problem is definitely with webdav, or my configuration of it. My parent pom.xml contains a 'distributionManagement' element as below: distributionManagement site idourproject.website/id urldav:http://our.webserver.com/projects/ourproject/url /site /distributionManagement My settings.xml has an entry as below: server idourproject.website/id usernameouruser/username passwordourpassword/password /server I tried also adding to my build element: extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-webdav/artifactId version1.0-beta-2/version /extension /extensions I also tried changing the version of wagon-webdav to 1.0-beta-1. Thanks for your help, regards, Ross rossputin wrote: Hi, I am using maven 2.0.9, and everything is working great except for site deployment with webdav. I have not tried any other kind of deployment yet, as I do it manually, so it may not be just site deployment that is not working for me. I have an apache webdav setup in place, and can access it in a browser or in Cadaver via command line. When I execute my maven site:deploy command, I always get a '500 Internal Server Error' with wagon-webdav 1.0-beta-2, and with wagon-webdav 1.0-beta-1 nothing much seems to happen, the process executes successfully, but nothing is copied across. Has anyone successfully deployed with any recent version of maven over webdav? One of the books I have on it suggests using it. I have not seen much on the mailing list though. Thanks in advance for your help. Ross -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POM reference mistake - changing the reporting output directory
Hi, The POM reference at http://maven.apache.org/pom.html#Reporting seems to have a mistake... the example states reporting plugins plugin outputDirectory${basedir}/target/site/outputDirectory artifactIdmaven-project-info-reports-plugin/artifactId version2.0.1/version reportSets reportSet/reportSet /reportSets /plugin /plugins /reporting but this doesn't allow me to change the output directory for the 'site' goal. The following however, does: reporting outputDirectory/my/custom/site/directory/outputDirectory plugins plugin artifactIdmaven-project-info-reports-plugin/artifactId /plugin /plugins /reporting Found using mvn help:effective-pom, and trial-and-error. I tried searching the documentation for more info on this, but couldn't find it - perhaps http://maven.apache.org/plugins/maven-project-info-reports-plugin/ has potential for improvement? Thanks, Matthias -- Matthias Grünwalde
RE : Dependency licenses
Hi James, Your plugin is very interresting. Please, can you add the following features: - In the goal download, can you add a parameter to exclude all dependencies that are not in the final package (all dependencies where the scope is provided or test) - Can you add a new goal to check the dependency licences against the current project one. If a licence incompatibility exists, the build will fail. The licence compatibilities will be defined in a xml file available in the plugin classpath ? ___ Christophe DENEUX / Capgemini Sud / Méditerranée Integration Architect Tel: + 33 4 93 95 55 92 / www.capgemini.com http://www.capgemini.com/ Porte de l'Arénas - Entrée B / 455 Promenade des Anglais / 06200 Nice / FRANCE Join the Collaborative Business Experience ___ Please consider the environment and do not print this email unless absolutely necessary. Capgemini encourages environmental awareness. De: James William Dumay [mailto:[EMAIL PROTECTED] Date: dim. 04/05/2008 05:35 À: Maven Users List Objet : Re: Dependency licenses Keith, We are working on something like that at Atlassian right now. Checkout this plugin: https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven-licenses-plugin/trunk/ You would probably be interested in the following two goals: * List - This goal lists all of the licenses of all transitive dependencies of your project. * Download - This goal will download all of the transitive dependencies of your project. This plugin is still a work in progress but we hope to make it available on central shortly. Cheers James On 04/05/2008, at 8:39 AM, Keith Bonawitz wrote: Is there a way to create an assembly that includes a license file for each dependency (including transitive dependencies)? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Keith, We are working on something like that at Atlassian right now. Checkout this plugin: https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven-licenses-plugin/trunk/ You would probably be interested in the following two goals: * List - This goal lists all of the licenses of all transitive dependencies of your project. * Download - This goal will download all of the transitive dependencies of your project. This plugin is still a work in progress but we hope to make it available on central shortly. Cheers James On 04/05/2008, at 8:39 AM, Keith Bonawitz wrote: Is there a way to create an assembly that includes a license file for each dependency (including transitive dependencies)? Thanks, Keith - 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] 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.
Weird error using war overlays
Hello, We are running into a strange problem with the war plugin (v. 2.1-alpha-1). We are trying to use overlay between two webapps, both using jspc plugin to precompile jsps. To enable jspc, we need to add the following pom fragement: plugin !-- precompilation of JSPs -- groupIdorg.codehaus.mojo/groupId artifactIdjspc-maven-plugin/artifactId version1.4.6/version configuration target1.5/target source1.5/source encodingUTF-8/encoding /configuration executions execution idjspc/id goals goalcompile/goal /goals /execution /executions /plugin plugin !-- non standard definition of web xml (ie.generated) -- groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.1-alpha-1/version configuration webXml${basedir}/target/jspweb.xml/webXml /configuration /plugin Please note this is added to the pluginManagement of a toplevel pom. Help greatly appreciated, of course :) Here is the stack rtace from mvn -e -X: [DEBUG] net.courtanet.b2b2c:b2b2c-presentation-webapp:war:1.1-SNAPSHOT (selected for null) [DEBUG] active project artifact: artifact = net.courtanet.b2b2c:b2b2c-presentation-front:war:1.1-SNAPSHOT:compile; project: MavenProject: net.courtanet.b2b2c:b2b2c-presentation-front:1.1-SNAPSHOT @ W:\work\b2b2c\presentation\front\pom.xml (selected for compile) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-war-plugin:2.1-alpha-1:war' -- [DEBUG] (s) archiveClasses = false [DEBUG] (s) cacheFile = W:\work\b2b2c\presentation\webapp\target\war\work\webapp-cache.xml [DEBUG] (s) classesDirectory = W:\work\b2b2c\presentation\webapp\target\classes [DEBUG] (s) filters = [] [DEBUG] (f) outputDirectory = W:\work\b2b2c\presentation\webapp\target [DEBUG] (f) primaryArtifact = true [DEBUG] (s) project = MavenProject: net.courtanet.b2b2c:b2b2c-presentation-webapp:1.1-SNAPSHOT @ W:\work\b2b2c\presentation\webapp\pom.xml [DEBUG] (s) useCache = true [DEBUG] (f) warName = b2b2c-webapp [DEBUG] (s) warSourceDirectory = W:\work\b2b2c\presentation\webapp\src\main\webapp [DEBUG] (s) webXml = W:\work\b2b2c\presentation\webapp\target\jspweb.xml [DEBUG] (s) webappDirectory = W:\work\b2b2c\presentation\webapp\target\b2b2c-webapp [DEBUG] (s) workDirectory = W:\work\b2b2c\presentation\webapp\target\war\work [DEBUG] -- end configuration -- [INFO] [war:war] [INFO] Packaging webapp [INFO] Assembling webapp[b2b2c-presentation-webapp] in [W:\work\b2b2c\presentation\webapp\target\b2b2c-webapp] [INFO] Processing war project [DEBUG] + index.jsp has been copied. [DEBUG] + WEB-INF/web.xml has been copied. [DEBUG] + WEB-INF/classes/jsp/index_jsp.class has been copied. [DEBUG] Processing: b2b2c-presentation-front-1.1-SNAPSHOT.war OverlayPackagingTask performPackaging overlay.getTargetPath() null[INFO] Processing overlay[ id net.courtanet.b2b2c:b2b2c-presentation-front] [INFO] Unpacking overlay[ id net.courtanet.b2b2c:b2b2c-presentation-front] [INFO] Expanding: W:\work\b2b2c\presentation\front\target\b2b2c-front.war into W:\work\b2b2c\presentation\webapp\target\war\work\net.courtanet.b2b2c\b2b2c-presentation-front [DEBUG] expanding META-INF/maven/net.courtanet.b2b2c/b2b2c-presentation-front/pom.properties to W:\work\b2b2c\presentation\webapp\target\war\work\net.courtanet.b2b2c\b2b2c-presentation-front\META-INF\maven\net.courtanet.b2b2c\b2b2c-presentation-front\pom.properties [DEBUG] expanding META-INF/maven/net.courtanet.b2b2c/b2b2c-presentation-front/pom.xml to W:\work\b2b2c\presentation\webapp\target\war\work\net.courtanet.b2b2c\b2b2c-presentation-front\META-INF\maven\net.courtanet.b2b2c\b2b2c-presentation-front\pom.xml [DEBUG] expanding META-INF/maven/net.courtanet.b2b2c/b2b2c-presentation-front/ to
Re: jboss maven ear support documentation (as mentioned on the ear plugin page)?
On Sun, May 18, 2008 at 11:10 PM, Rick [EMAIL PROTECTED] wrote: Thanks wayne. They also have some other properties that are Jboss specific. It would just be nice to see some examples, although I can probably figure it out from the brief list they give (shown below.) You are always welcome to submit a bug/RFE in JIRA if you feel the documentation is lacking or simply incorrect. Of course, an attached patch with improved content is always better (and more quickly received and processed) than simply an issue report. ;-) Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: build.xml:141 Java Returned 1... Help me out to kill this error
Why are you trying to build Maven 2.1-SNAPSHOT? The code is not particularly stable which is why you are running into these problems. The expectation is that people who are working on 2.1 (currently) are developers and able to handle these kinds of problems. The root cause of this failure is in the lines below. As to how you should solve this problem to allow you to continue building 2.1, I couldn't tell you. Wayne On Mon, May 19, 2008 at 4:55 AM, SelvaKumar [EMAIL PROTECTED] wrote: [java] task-segment: [clean, install]. Reason: Failed to load plugin descri ptor for: org.apache.maven.plugins:maven-remote-resources-plugin:1.0-beta-2:proc ess. Cannot discover it's default phase, specified in its plugin descriptor. [java] [java] While building project with id: org.apache.maven:maven:pom:2.1-SNAPSHOT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Small documentation improvement
For all intents, you can generally assume that this email will be lost to the void unless you file issue(s) in JIRA. While these kinds of suggestions are certainly appreciated, no one will do the job of transferring your comments from email to JIRA, and it is possible that the various developers responsible for the documentation improvements you are suggesting will not even see this email. Wayne On Mon, May 19, 2008 at 6:25 AM, Manel Clos [EMAIL PROTECTED] wrote: Hi, I just started using Maven, and while trying to do so I got some problems finding the correct information. Here is a list of improvements that could help other people when learning Maven for the first time: * Eclipse guide (http://maven.apache.org/guides/mini/guide-ide-eclipse.html) - While it is included under the Documentation index, the average user will click on the Eclipse link under IDE Integration menu item. In this page (http://maven.apache.org/eclipse-plugin.html), you will be directed to external websites, probably missing the Eclipse guide, which contains vital information about setting the Maven repository in Eclipse. A link to the Eclipse guide in the Eclipse integration page is a must. - The Eclipse guide should mention that if you are using the M2Eclipse plugin, it is better to use mvn eclipse:m2eclipse when generating the project, as this will allow for correct dependency administration using the m2eclipse plugin. - The guide should also mention how you create the project files for Eclipse if you are working with a webapp, as in mvn -Dwtpversion=1.5 eclipse:m2eclipse. - Related to the two previous points, you need to activate the M2Eclipse dependency in Eclipse: Project Properties - J2EE Module dependencies for your webapp to see the m2eclipse dependencies. * Site documentation - How to generate pages in UTF-8? it may seem obvious, but it took a while on the search engines: ... plugins plugin artifactIdmaven-site-plugin/artifactId version2.0-beta-6/version configuration localesen/locales inputEncodingutf-8/inputEncoding outputEncodingutf-8/outputEncoding /configuration /plugin /plugins ... I Hope that someone can go over these simple things. It will really help new people get into Maven. See you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Small documentation improvement
These do sound like good suggestions, though. I *think* Wayne is suggesting that you create a JIRA issue with your comments attached. That certainly sounds like a good idea to me (though I am not a Maven developer). It's also worth noting that Maven does have a wiki (see link on main page) where people can add useful information for other maven users without waiting for someone with svn access to do it for them. Regards, Simon Wayne Fay schrieb: For all intents, you can generally assume that this email will be lost to the void unless you file issue(s) in JIRA. While these kinds of suggestions are certainly appreciated, no one will do the job of transferring your comments from email to JIRA, and it is possible that the various developers responsible for the documentation improvements you are suggesting will not even see this email. Wayne On Mon, May 19, 2008 at 6:25 AM, Manel Clos [EMAIL PROTECTED] wrote: Hi, I just started using Maven, and while trying to do so I got some problems finding the correct information. Here is a list of improvements that could help other people when learning Maven for the first time: * Eclipse guide (http://maven.apache.org/guides/mini/guide-ide-eclipse.html) - While it is included under the Documentation index, the average user will click on the Eclipse link under IDE Integration menu item. In this page (http://maven.apache.org/eclipse-plugin.html), you will be directed to external websites, probably missing the Eclipse guide, which contains vital information about setting the Maven repository in Eclipse. A link to the Eclipse guide in the Eclipse integration page is a must. - The Eclipse guide should mention that if you are using the M2Eclipse plugin, it is better to use mvn eclipse:m2eclipse when generating the project, as this will allow for correct dependency administration using the m2eclipse plugin. - The guide should also mention how you create the project files for Eclipse if you are working with a webapp, as in mvn -Dwtpversion=1.5 eclipse:m2eclipse. - Related to the two previous points, you need to activate the M2Eclipse dependency in Eclipse: Project Properties - J2EE Module dependencies for your webapp to see the m2eclipse dependencies. * Site documentation - How to generate pages in UTF-8? it may seem obvious, but it took a while on the search engines: ... plugins plugin artifactIdmaven-site-plugin/artifactId version2.0-beta-6/version configuration localesen/locales inputEncodingutf-8/inputEncoding outputEncodingutf-8/outputEncoding /configuration /plugin /plugins ... I Hope that someone can go over these simple things. It will really help new people get into Maven. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running mvn idea:idea
Thanks Allyson, unfortunately it didnt work for me - so had to go back to using IDEA's native maven support to generate the project. Running it through the command line did produce the project structure I am looking for but still same issue with the source files. The project structure I get when generating the project from IDEA is different - all the submodules are defined via there artifactId's instead of the directory they are under - would you happen to know how I can resolve this. Regards, ..kace -- View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17317595.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overriding parent's distribution management
I'm facing the same problem here at my client's. We have a team internal repository use and visible only to our team. We have a company-wide repository where we only put some of the internaly-released artefacts. This way we can filter which version is visible, usable, used by the other teams. Then we have a third repository when we need to share artefacts with a external company. This third repository exists because my client don't want this external company to see (and possibly steal) any artefact (with sources) produced internally. We have also have specific contractual rules for this third repository. What is maven best-practices for this ? - We want the first repo accessible with the default 'mvn deploy' command - The second repo accessible with profile activation : mvn -P deploy-internal deploy - The third repo accessible with profile activation : mvn -P deploy-public deploy The real problem is to have a default behavior on 'mvn deploy' command ... I've already look at the stage plugin but it does not fit our needs (and by the way don't work at all). Thanks ! Manuel -- http://blog.xebia.fr http://blog.xebia.com On Fri, May 16, 2008 at 6:36 PM, Clifton [EMAIL PROTECTED] wrote: Thank you for asking this question. I had the very same problem and I'd love to hear a best practices approach. My workaround, not the best, is to define them separately in profiles. Then you can use cmd line properties to activate one or the other in the activation section of the profile. It may not work in your case if you actually want certain pieces to deploy with different dist mgmt settings than others in a single build command. Krishnamurthi, Venkat wrote: Hi, I'm trying to override a parent pom's distribution management through the child's pom. (Deploy the artifacts in different directories). When I tried adding a distributionManagement element in the child pom, it is still picking up the details from the parent's pom. Please help me resolve this issue. Thanks and Regards, Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/running-mvn-idea%3Aidea-tp17232616p17279055.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat] configure hot redeploy
Hi. I am not able to find any information about configuring the tomcat plugin for maven 2 to perform class reloading like I do with jetty plugin with: configuration scanIntervalSeconds5/scanIntervalSeconds /configuration Anyone can help? Thanks. -- Daniele Dellafiore http://blog.ildella.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Repository download through FTP
Rather than download the _entire_ maven repository, why not use a repository manager? http://www.sonatype.com/book/reference/repository-manager.html# http://maven.apache.org/guides/introduction/introduction-to-repositories.html -Original Message- From: Sang-Jea Shin [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 3:34 AM To: Maven Users List Subject: Repository download through FTP I have to setup maven environment where cannot access central repository (only LAN) So, I'm tring download maven repository and configure mirror site for development team. I found some article like this. -- http://maven.apache.org/guides/mini/guide-mirror-settings.html FTP access The repository is available through FTP at * ftp://mirrors.ibiblio.org/pub/packages/maven2* -- According to avobe article, I try ftp access. But... -- D:\Documents and Settings\bomberftp mirrors.ibiblio.org Connected to mirrors.ibiblio.org. 220 FTP Server ready. User (mirrors.ibiblio.org:(none)): -- Do you know account and password? Is it possible to use maven on cannot access central? How can I get full repository (6GB)?
Re: What does this warning mean: [WARNING] Attempting to build MavenProject instance for Artifact of type jar; constructing POM artifact instead
Dennis, Thanks for reply. The report you filed is for when you run 'mvn site' to generate the plugin management report. However, we observe these warnings in the different contexts, namely, when we run 'mvn clean install' for our projects. So, I am trying to understand whether this is the same kind of problem and whether we can safely ignore it. Example 1: [INFO] [assembly:attached {execution: assemble-cli}] [INFO] Reading assembly descriptor: /home/marina/tva/packaging/packager/cli/src/main/assembly/cli.xml [INFO] Processing DependencySet (output=lib) [INFO] snapshot com.tvworks.tva.mac:mac-data-types:3.2.4-SNAPSHOT: checking for updates from tva.proxy [INFO] snapshot com.tvworks.tva.mac:mac-optimizer-api:3.2.4-SNAPSHOT: checking for updates from tva.proxy [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-lang:3.3-20080513.211757-62) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-logging:3.3-20080513.211757-62) of type: jar; constructing POM artifact instead. [INFO] Building tar : /home/marina/tva/packaging/packager/cli/target/packager-cli-3.3-SNAPSHOT .tar.gz [INFO] Processing DependencySet (output=lib) Example 2: [INFO] [enforcer:enforce {execution: enforce-versions}] [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven-license-plugin:3.3-20080508.052638- 16) of type: maven-plugin; constructing POM artifact instead. [INFO] snapshot com.tvworks.tva.maven:plugin-utils:3.3-SNAPSHOT: checking for updates from tva.ci [INFO] [tva-license:license {execution: default}] [INFO] Skipping license:license as this project is not of type: 'jar', 'war', 'component', or 'bundle' [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven-msgchk-plugin:3.3-20080508.052741-8 ) of type: maven-plugin; constructing POM artifact instead. [INFO] [tva-msgchk:check {execution: msgchk}] [INFO] Msgchk plugin is skipped for pom project. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven Thanks, Seva -Original Message- Dennis Lundberg Sat, 17 May 2008 03:30:19 -0700 This message comes from the Plugin Management report in maven-project-info-reports-plugin 2.1-SNAPSHOT. This has been report in JIRA at http://jira.codehaus.org/browse/MPIR-99 Seva Popov wrote: Hi, We switched from Maven 2.0.7 to Maven 2.0.9 and started observing the following warnings for our projects that we could not understand: [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type: jar; constructing POM artifact instead. Please, let me know. Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What does this warning mean: [WARNING] Attempting to build MavenProject instance for Artifact of type jar; constructing POM artifact instead
They don't appear to be the same. I'm using Maven 2.0.8, if that might matter. Seva Popov wrote: Dennis, Thanks for reply. The report you filed is for when you run 'mvn site' to generate the plugin management report. However, we observe these warnings in the different contexts, namely, when we run 'mvn clean install' for our projects. So, I am trying to understand whether this is the same kind of problem and whether we can safely ignore it. Example 1: [INFO] [assembly:attached {execution: assemble-cli}] [INFO] Reading assembly descriptor: /home/marina/tva/packaging/packager/cli/src/main/assembly/cli.xml [INFO] Processing DependencySet (output=lib) [INFO] snapshot com.tvworks.tva.mac:mac-data-types:3.2.4-SNAPSHOT: checking for updates from tva.proxy [INFO] snapshot com.tvworks.tva.mac:mac-optimizer-api:3.2.4-SNAPSHOT: checking for updates from tva.proxy [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-lang:3.3-20080513.211757-62) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-logging:3.3-20080513.211757-62) of type: jar; constructing POM artifact instead. [INFO] Building tar : /home/marina/tva/packaging/packager/cli/target/packager-cli-3.3-SNAPSHOT .tar.gz [INFO] Processing DependencySet (output=lib) Example 2: [INFO] [enforcer:enforce {execution: enforce-versions}] [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven-license-plugin:3.3-20080508.052638- 16) of type: maven-plugin; constructing POM artifact instead. [INFO] snapshot com.tvworks.tva.maven:plugin-utils:3.3-SNAPSHOT: checking for updates from tva.ci [INFO] [tva-license:license {execution: default}] [INFO] Skipping license:license as this project is not of type: 'jar', 'war', 'component', or 'bundle' [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven-msgchk-plugin:3.3-20080508.052741-8 ) of type: maven-plugin; constructing POM artifact instead. [INFO] [tva-msgchk:check {execution: msgchk}] [INFO] Msgchk plugin is skipped for pom project. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven Thanks, Seva -Original Message- Dennis Lundberg Sat, 17 May 2008 03:30:19 -0700 This message comes from the Plugin Management report in maven-project-info-reports-plugin 2.1-SNAPSHOT. This has been report in JIRA at http://jira.codehaus.org/browse/MPIR-99 Seva Popov wrote: Hi, We switched from Maven 2.0.7 to Maven 2.0.9 and started observing the following warnings for our projects that we could not understand: [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type: jar; constructing POM artifact instead. Please, let me know. Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What does this warning mean: [WARNING] Attempting to build MavenProject instance for Artifact of type jar; constructing POM artifact instead
For me they don't appear to be the same either. I am going to file a bug. Thanks. -Original Message- From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 11:33 AM To: Maven Users List Subject: Re: What does this warning mean: [WARNING] Attempting to build MavenProject instance for Artifact of type jar; constructing POM artifact instead They don't appear to be the same. I'm using Maven 2.0.8, if that might matter. Seva Popov wrote: Dennis, Thanks for reply. The report you filed is for when you run 'mvn site' to generate the plugin management report. However, we observe these warnings in the different contexts, namely, when we run 'mvn clean install' for our projects. So, I am trying to understand whether this is the same kind of problem and whether we can safely ignore it. Example 1: [INFO] [assembly:attached {execution: assemble-cli}] [INFO] Reading assembly descriptor: /home/marina/tva/packaging/packager/cli/src/main/assembly/cli.xml [INFO] Processing DependencySet (output=lib) [INFO] snapshot com.tvworks.tva.mac:mac-data-types:3.2.4-SNAPSHOT: checking for updates from tva.proxy [INFO] snapshot com.tvworks.tva.mac:mac-optimizer-api:3.2.4-SNAPSHOT: checking for updates from tva.proxy [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-lang:3.3-20080513.211757-62) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-logging:3.3-20080513.211757-62) of type: jar; constructing POM artifact instead. [INFO] Building tar : /home/marina/tva/packaging/packager/cli/target/packager-cli-3.3-SNAPSHOT .tar.gz [INFO] Processing DependencySet (output=lib) Example 2: [INFO] [enforcer:enforce {execution: enforce-versions}] [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven-license-plugin:3.3-20080508.052638- 16) of type: maven-plugin; constructing POM artifact instead. [INFO] snapshot com.tvworks.tva.maven:plugin-utils:3.3-SNAPSHOT: checking for updates from tva.ci [INFO] [tva-license:license {execution: default}] [INFO] Skipping license:license as this project is not of type: 'jar', 'war', 'component', or 'bundle' [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven-msgchk-plugin:3.3-20080508.052741-8 ) of type: maven-plugin; constructing POM artifact instead. [INFO] [tva-msgchk:check {execution: msgchk}] [INFO] Msgchk plugin is skipped for pom project. [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.maven.plugins:maven Thanks, Seva -Original Message- Dennis Lundberg Sat, 17 May 2008 03:30:19 -0700 This message comes from the Plugin Management report in maven-project-info-reports-plugin 2.1-SNAPSHOT. This has been report in JIRA at http://jira.codehaus.org/browse/MPIR-99 Seva Popov wrote: Hi, We switched from Maven 2.0.7 to Maven 2.0.9 and started observing the following warnings for our projects that we could not understand: [WARNING] Attempting to build MavenProject instance for Artifact (com.tvworks.tva.common:tva-common-util:3.3-20080513.211757-64) of type: jar; constructing POM artifact instead. Please, let me know. Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- 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]
Re: Memory issues in 2.0.9
If it at all helps, mine only fails a little over halfway though a multimodule build (there are probably 12 modules total) with 2.0.9, but makes it all the way with 2.0.8. Obviously that is very vague sine you know nothing about my projects, but what I'm hoping maybe helps a little is that it just doesn't quit on the first module, it does make it through quite a few of the modules before it quits. If that isn't helpful in anyway, just ignore me. :) On Mon, May 19, 2008 at 3:00 AM, Brett Porter [EMAIL PROTECTED] wrote: 2008/5/18 Asgeir S. Nilsen [EMAIL PROTECTED]: Do you think this is related to MCOMPILER-64 in any way? Perhaps - the comments do say 2.0.8 works? I filed this issue to track: MNG-3584 - Brett -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 1 classes in my plugin JAR not on ant:java runtime classpath?
Hi Lukas, Thanks very much for this information. I did run with -X and saw the classpath but expected that the plugin jar would be on the classpath within a goal defined by that plugin. I'll extract my stuff into a separate jar. Chris. 2008/5/16 Lukas Theussl [EMAIL PROTECTED]: IIRC artifacts of type plugin are not added to the runtime classpath (if you run with -X you should see a corresponding message). You have to deploy/install the plugin as a jar and declare a dependency of a jar type. HTH, -Lukas christo wrote: Hi All, I've read the docs, googled, read mailing list archives, asked in irc etc. but have been unable to find the answer to this. I'm writing a maven 1 plugin which adds a goal that calls ant:java running the main method of a class which is bundled in the plugin jar. There are jar deps in the plugin but my question is not about ensuring that the plugin's dependencies are on the runtime classpath of the jvm. I understand how to do this using the ${plugin.getDependencyPath()} call. The purpose of the plugin is to create a file for the distribution - essentially metadata for the app. Originally I tried to implement the whole thing in Jelly but after a few hours I gave up and wrote it in a dozen lines of Java. The plugin runs the goal in my project but when the jvm tries to load my class it can't find it. Why is the plugin jar not on the classpath of the project when the goal is sought? I have tried sprinkling magic fork=true spawn=true and this doesn't work. I've been assuming I need to put a classpath reference into the ant:java tag. But I can't do this because my plugin jar is not a dep of itself. Below you can see I've descended into cargo culting a bit in frustration and pasted ant path elements willy nilly. The only other plugins I can find that bundle classes are build reports which register themselves explicitly. Do I have to register for a non report plugin? My plugin id: maven-hash-registry-plugin Main class for plugin: com.atlassian.hashregistry.GenerateHashRegistry Goal name: hashregistry:generate project xmlns:ant=jelly:ant goal name=hashregistry:generate prereqs=java:compile description=Generate the hash registry ant:java classname=com.atlassian.hashregistry.GenerateHashRegistry ant:classpath ant:pathelement location=${maven.build.dest} / ant:path refid=maven.dependency.classpath / ant:path refid=maven.compile.src.set / ant:pathelement location=${plugin.getDependencyPath('commons-jelly:commons-jelly')}/ ant:pathelement location=${plugin.getDependencyPath('commons-codec:commons-codec')}/ ant:pathelement location=${plugin.getDependencyPath('commons-io:commons-io')}/ ant:pathelement location=${plugin.getDependencyPath('maven-hash-registry-plugin:maven-hash-registry-plugin')}/ ant:pathelement location=${plugin.getDependencyPath('maven-hash-registry-plugin')}/ !-- just in case this is correct -- /ant:classpath /ant:java /goal /project Any pointers or wisdom would help. I'm just about to check out the source to Maven! thanks in advance, Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Chris Mountford In theory, there is no difference between theory and practice. But, in practice, there is. -- Jan L. A. van de Snepscheut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rsync on cygwin
My platform is Windows XP Professional. After install cygwin, I'm trying rsync like this. - [EMAIL PROTECTED] /maven2 $ rsync -v -t -l -r mirrors.ibiblio.org::maven2 /maven2 - Welcome to the ibiblio.org mirrored software server! Note that the 'gnuwww' module was recently removed per discussion with the volunteers running gnu.org. Please go there if you wish to continue mirroring their web site. In its stead we are now offering the GNU Alpha archive. - receiving file list ... - But nothing changed, just waiting. Should I wait more? Or Is it impossible rsync on cygwin?
deploy: invalid private key
*I am issues with 'mvn deploy' as my private identity file is not 'id_rsa' but called 'identity'. I am using maven 2.0.7 on my MacBook 10.5.2. Instead of the default ~/.ssh/id_rsa, I have created a ~/.ssh/identity file (4096 bit DSA). There are no issues in using this private file for all other ssh communications. According to the Maven Documentation, following is my ~/.m2/settings.xml file: * servers server idremote_repository/id usernameremote_username/username privateKey~/.ssh/identity/privateKey passphrasemy_passphrase/passphrase /server /servers /settings * It seems that while doing mvn deploy, maven is not recognizing this configuration in the settings.xml. It gives out following errors (with -e switch): * [WARNING] repository metadata for: 'snapshot com:repository:1.0-SNAPSHOT' could not be retrieved from repository: due to an error: Exit code: 1 - Warning: Identity file /Users/local_username/.ssh/id_rsa not accessible: No such file or directory. Permission denied (publickey,gssapi-with-mic). [INFO] Repository will be blacklisted Uploading: scpexe://maven.remote_repository.com/var/ [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Error executing command for transfer Exit code 255 - Warning: Identity file /Users/local_username/.ssh/id_rsa not accessible: No such file or directory. Permission denied (publickey,gssapi-with-mic). [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Error executing command for transfer at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.plugin.MojoExecutionException: Error deploying artifact: Error executing command for transfer at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:174) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Error executing command for transfer at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:94) at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162) ... 18 more Caused by: org.apache.maven.wagon.TransferFailedException: Error executing command for transfer at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.put(ScpExternalWagon.java:290) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:237) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:153) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80) ... 19 more Caused by: org.apache.maven.wagon.CommandExecutionException: Exit code 255 - Warning: Identity file /Users/local_username/.ssh/id_rsa not accessible: No such file or directory. Permission denied (publickey,gssapi-with-mic). at org.apache.maven.wagon.providers.ssh.external.ScpExternalWagon.executeCommand(ScpExternalWagon.java:145)