Re: Character encoding for APT files
Le jeudi 22 janvier 2009, Trevor Harmon a écrit : On Jan 22, 2009, at 10:16 AM, Lukas Theussl wrote: yes please, a minimalistic test project that illustrates the problem will certainly help. http://jira.codehaus.org/browse/DOXIA-278 Trevor Sorry, I was working on other things and missed this discussion. I just commented (and closed as Not A Bug :) ) the issue. Regards, Hervé
Re: Passing system properties to JUnit tests using -D on Linux
Maven it is a problem from the mvn shell script not passing this infos the same way on Windows and Linux. Regards Jeff MAURY On Thu, Jan 22, 2009 at 7:56 AM, Jaikiran jai_forums2...@yahoo.co.inwrote: james_d wrote: However, I noticed that when I run my build on Linux that the properties are not available. Specifically, calling System.getProperty(key1) returns null. What's going on? I'm using maven 2.0.9 for both. The OS shouldn't matter, it should have worked. Please post the exact command that you are using and the piece of code where you using this property. Also post the output of mvn -version -- View this message in context: http://www.nabble.com/Passing-system-properties-to-JUnit-tests-using-%22-D%22-on-Linux-tp21593651p21598842.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 -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal Mes CDs à récupérer: http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en
site:deploy - unexpected end of data
Hi, when I using mvn site:deploy I will get an Embedded Error; Unexpected end of data I have no idea what is wrong and i cant find a log for more details. Anybody knows this problem and can help me please? POM distributionManagement site idsite-deploy-scp/id name${artifactId}/name url scp://Moba/reposmoba /url /site /distributionManagement /project settings.xml server idsite-deploy-scp/id usernameAdministrator/username passwordadmin/password /server C:\scp\my-scpmvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building my-scp [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] : scp://Moba/reposmoba - Session: Opened Executing command: mkdir -p /reposmoba/. Executing command: mkdir -p /reposmoba/. Executing command: scp -t /reposmoba/./wagon57947.zip scp://Moba/reposmoba - Session: Disconnecting scp://Moba/reposmoba - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Unexpected end of data [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Thu Jan 22 09:19:21 CET 2009 [INFO] Final Memory: 7M/15M [INFO] -- View this message in context: http://www.nabble.com/site%3Adeploy---unexpected-end-of-data-tp21600300p21600300.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: site:deploy - unexpected end of data
Does you shell dump lots stuff on stdout? It is a known cause of this type of issue -D On Thu, Jan 22, 2009 at 1:05 AM, DirkG dirk.grommi...@ricoh-europe.com wrote: Hi, when I using mvn site:deploy I will get an Embedded Error; Unexpected end of data I have no idea what is wrong and i cant find a log for more details. Anybody knows this problem and can help me please? POM distributionManagement site idsite-deploy-scp/id name${artifactId}/name url scp://Moba/reposmoba /url /site /distributionManagement /project settings.xml server idsite-deploy-scp/id usernameAdministrator/username passwordadmin/password /server C:\scp\my-scpmvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building my-scp [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] : scp://Moba/reposmoba - Session: Opened Executing command: mkdir -p /reposmoba/. Executing command: mkdir -p /reposmoba/. Executing command: scp -t /reposmoba/./wagon57947.zip scp://Moba/reposmoba - Session: Disconnecting scp://Moba/reposmoba - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Unexpected end of data [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Thu Jan 22 09:19:21 CET 2009 [INFO] Final Memory: 7M/15M [INFO] -- View this message in context: http://www.nabble.com/site%3Adeploy---unexpected-end-of-data-tp21600300p21600300.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: Passing system properties to JUnit tests using -D on Linux
http://jira.codehaus.org/browse/SUREFIRE-121 2009/1/22 Jeff MAURY jeffma...@jeffmaury.com: Maven it is a problem from the mvn shell script not passing this infos the same way on Windows and Linux. Regards Jeff MAURY On Thu, Jan 22, 2009 at 7:56 AM, Jaikiran jai_forums2...@yahoo.co.inwrote: james_d wrote: However, I noticed that when I run my build on Linux that the properties are not available. Specifically, calling System.getProperty(key1) returns null. What's going on? I'm using maven 2.0.9 for both. The OS shouldn't matter, it should have worked. Please post the exact command that you are using and the piece of code where you using this property. Also post the output of mvn -version -- View this message in context: http://www.nabble.com/Passing-system-properties-to-JUnit-tests-using-%22-D%22-on-Linux-tp21593651p21598842.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 -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal Mes CDs à récupérer: http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: site:deploy - unexpected end of data
I´m not sure if I understand your reply correct, but all i got on client side is the dump I have posted already Dan Tran wrote: Does you shell dump lots stuff on stdout? It is a known cause of this type of issue -D On Thu, Jan 22, 2009 at 1:05 AM, DirkG dirk.grommi...@ricoh-europe.com wrote: Hi, when I using mvn site:deploy I will get an Embedded Error; Unexpected end of data I have no idea what is wrong and i cant find a log for more details. Anybody knows this problem and can help me please? POM distributionManagement site idsite-deploy-scp/id name${artifactId}/name url scp://Moba/reposmoba /url /site /distributionManagement /project settings.xml server idsite-deploy-scp/id usernameAdministrator/username passwordadmin/password /server C:\scp\my-scpmvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building my-scp [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] : scp://Moba/reposmoba - Session: Opened Executing command: mkdir -p /reposmoba/. Executing command: mkdir -p /reposmoba/. Executing command: scp -t /reposmoba/./wagon57947.zip scp://Moba/reposmoba - Session: Disconnecting scp://Moba/reposmoba - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Unexpected end of data [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Thu Jan 22 09:19:21 CET 2009 [INFO] Final Memory: 7M/15M [INFO] -- View this message in context: http://www.nabble.com/site%3Adeploy---unexpected-end-of-data-tp21600300p21600300.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/site%3Adeploy---unexpected-end-of-data-tp21600300p21601712.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
Assembly plugin 2.2-beta-2 shows odd behavior regarding dependencies inclusion
Hello, we face a rather advanced requirement regarding creation of various assemblies in a multimodule project. What we are trying to achieve is as follows. Assume there is a root project P consisting of multiple module projects M1, ..., Mn (hierarchy depth max. 1). From the root POM we create various assemblies in the usual way (one descriptor file for each assembly; not attached to the build lifecycle). That works fine. Now, we also need to create yet another assembly just for one module, say M1. Whatever we have tried so far, we were not able to get it working without the overall build to fail, or at least without achieving exactly what we need. The only configuration where the overall build did not fail is to put the assembly descriptor for M1 to the root POM together with the other ones. Unfortunately, the file name of the packaged assembly will then always start with the artifactId and version number of P, rather than the artifactId and version of M1. Whenever we put the maven assembly plugin in the POM of M1, in addition to the assembly plugin in the root POM, the build does fail with various error messages. We tried both to attach execution to the package lifecycle, or to use standalone execution using assembly:assembly on the command line. We also tried almost every combination of single, attached, and assembly mojo when execution is attached to the package build lifecycle. All without success. The question is whether this constellation was taken into account at design time of the assembly plugin, thus, whether it is possible at all. If not, should I file a feature request. BTW, we use assembly plugin 2.2-beta-3 and Maven 2.0.9. Regards, Thorsten -- View this message in context: http://www.nabble.com/Assembly-plugin-2.2-beta-2-shows-odd-behavior-regarding-dependencies-inclusion-tp21602014p21602014.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
Assembly Plugin vs. Multimodule project and multiple assemblies
Hello, we face a rather advanced requirement regarding creation of various assemblies in a multimodule project. What we are trying to achieve is as follows. Assume there is a root project P consisting of multiple module projects M1, ..., Mn (hierarchy depth max. 1). From the root POM we create various assemblies in the usual way (one descriptor file for each assembly; not attached to the build lifecycle). That works fine. Now, we also need to create yet another assembly just for one module, say M1. Whatever we have tried so far, we were not able to get it working without the overall build to fail, or at least without achieving exactly what we need. The only configuration where the overall build did not fail is to put the assembly descriptor for M1 to the root POM together with the other ones. Unfortunately, the file name of the packaged assembly will then always start with the artifactId and version number of P, rather than the artifactId and version of M1. Whenever we put the maven assembly plugin in the POM of M1, in addition to the assembly plugin in the root POM, the build does fail with various error messages. We tried both to attach execution to the package lifecycle, or to use standalone execution using assembly:assembly on the command line. We also tried almost every combination of single, attached, and assembly mojo when execution is attached to the package build lifecycle. All without success. The question is whether this constellation was taken into account at design time of the assembly plugin, thus, whether it is possible at all. If not, should I file a feature request. BTW, we use assembly plugin 2.2-beta-3 and Maven 2.0.9. Regards, Thorsten - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assembly plugin 2.2-beta-2 shows odd behavior regarding dependencies inclusion
Sorry, the subject of this posting is false. I used Nabble to post that message and for some strange reason it used a subject from an earlier posting. I re-posted this message with the correct subject. -- Thorsten TM wrote: Hello, we face a rather advanced requirement regarding creation of various assemblies in a multimodule project. What we are trying to achieve is as follows. Assume there is a root project P consisting of multiple module projects M1, ..., Mn (hierarchy depth max. 1). From the root POM we create various assemblies in the usual way (one descriptor file for each assembly; not attached to the build lifecycle). That works fine. Now, we also need to create yet another assembly just for one module, say M1. Whatever we have tried so far, we were not able to get it working without the overall build to fail, or at least without achieving exactly what we need. The only configuration where the overall build did not fail is to put the assembly descriptor for M1 to the root POM together with the other ones. Unfortunately, the file name of the packaged assembly will then always start with the artifactId and version number of P, rather than the artifactId and version of M1. Whenever we put the maven assembly plugin in the POM of M1, in addition to the assembly plugin in the root POM, the build does fail with various error messages. We tried both to attach execution to the package lifecycle, or to use standalone execution using assembly:assembly on the command line. We also tried almost every combination of single, attached, and assembly mojo when execution is attached to the package build lifecycle. All without success. The question is whether this constellation was taken into account at design time of the assembly plugin, thus, whether it is possible at all. If not, should I file a feature request. BTW, we use assembly plugin 2.2-beta-3 and Maven 2.0.9. Regards, Thorsten -- View this message in context: http://www.nabble.com/Assembly-plugin-2.2-beta-2-shows-odd-behavior-regarding-dependencies-inclusion-tp21602014p21602133.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: Iterating through a files using maven plugin
hi, it should be possibel... but in the configuration data for the goal i have to iterate 100 pojo names? how shall i do that? Brett Randall-2 wrote: Would referencing it as a plugin in your POM and allowing it to bind by default to the generate-sources phase work, rather than running the individual mojo? Brett On Thu, Jan 22, 2009 at 4:49 PM, arve arunvenkates...@hotmail.com wrote: hi, I run a maven task mvn appfuse:gen -Dentity=Pojo name. if i have 100 pojos in a folder i have to run the same command 100 times. Instead is there some plugin/trick whcih could iterate the same command with different pojo names with a single command? -- View this message in context: http://www.nabble.com/Iterating-through-a-files-using-maven-plugin-tp21598334p21598334.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/Iterating-through-a-files-using-maven-plugin-tp21598334p21603359.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: Iterating through a files using maven plugin
On Thursday 22 January 2009 arve wrote: hi, I run a maven task mvn appfuse:gen -Dentity=Pojo name. if i have 100 pojos in a folder i have to run the same command 100 times. Instead is there some plugin/trick whcih could iterate the same command with different pojo names with a single command? Use the shell! For example in bash it would be something like for POJO in $ALL_POJOs; do mvn appfuse:gen -Dentity=$POJO; done hth, - martin signature.asc Description: This is a digitally signed message part.
Re: Iterating through a files using maven plugin
Isn't the appfuse maven plugin supposed to loop over all annotated POJOs when included in a POM ? Regards Jeff MAURY On Thu, Jan 22, 2009 at 1:55 PM, Martin Höller mar...@xss.co.at wrote: On Thursday 22 January 2009 arve wrote: hi, I run a maven task mvn appfuse:gen -Dentity=Pojo name. if i have 100 pojos in a folder i have to run the same command 100 times. Instead is there some plugin/trick whcih could iterate the same command with different pojo names with a single command? Use the shell! For example in bash it would be something like for POJO in $ALL_POJOs; do mvn appfuse:gen -Dentity=$POJO; done hth, - martin -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal Mes CDs à récupérer: http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en
Read pom properties from a custom location
I'd like to read POM properties from a custom file if it exists. ie: i'd like to read from pom.properties and pom-${user.name}.properties I can't see any examples on the web of how to do this. Cheers, Lance.
Re: How do I add all the jars in a directory in junit test exeicution classpath
On Wed, Jan 21, 2009 at 3:57 AM, peppinolusuraio uaschits...@libero.it wrote: I have created a directory %M2_REPO%/myNewGroup/myNewArtifacId/ and I have copied all my jar in the lib. It does not work. You need to use the install plugin to put the jars into your local repository. mvn install:install-file -Dfile=... -DgroupId=... ... http://maven.apache.org/plugins/maven-install-plugin/usage.html -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: site:deploy - unexpected end of data
i mean the remote ssh shell. -D On Thu, Jan 22, 2009 at 2:43 AM, DirkG dirk.grommi...@ricoh-europe.com wrote: I´m not sure if I understand your reply correct, but all i got on client side is the dump I have posted already Dan Tran wrote: Does you shell dump lots stuff on stdout? It is a known cause of this type of issue -D On Thu, Jan 22, 2009 at 1:05 AM, DirkG dirk.grommi...@ricoh-europe.com wrote: Hi, when I using mvn site:deploy I will get an Embedded Error; Unexpected end of data I have no idea what is wrong and i cant find a log for more details. Anybody knows this problem and can help me please? POM distributionManagement site idsite-deploy-scp/id name${artifactId}/name url scp://Moba/reposmoba /url /site /distributionManagement /project settings.xml server idsite-deploy-scp/id usernameAdministrator/username passwordadmin/password /server C:\scp\my-scpmvn site:deploy [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [INFO] Building my-scp [INFO]task-segment: [site:deploy] [INFO] [INFO] [site:deploy] : scp://Moba/reposmoba - Session: Opened Executing command: mkdir -p /reposmoba/. Executing command: mkdir -p /reposmoba/. Executing command: scp -t /reposmoba/./wagon57947.zip scp://Moba/reposmoba - Session: Disconnecting scp://Moba/reposmoba - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Unexpected end of data [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 8 seconds [INFO] Finished at: Thu Jan 22 09:19:21 CET 2009 [INFO] Final Memory: 7M/15M [INFO] -- View this message in context: http://www.nabble.com/site%3Adeploy---unexpected-end-of-data-tp21600300p21600300.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/site%3Adeploy---unexpected-end-of-data-tp21600300p21601712.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: Passing system properties to JUnit tests using -D on Linux
Thanks Dan! I switched to Surefire plugin version 2.4.2 on my Linux build machine and that solved my problem. Dan Tran wrote: http://jira.codehaus.org/browse/SUREFIRE-121 2009/1/22 Jeff MAURY jeffma...@jeffmaury.com: Maven it is a problem from the mvn shell script not passing this infos the same way on Windows and Linux. Regards Jeff MAURY On Thu, Jan 22, 2009 at 7:56 AM, Jaikiran jai_forums2...@yahoo.co.inwrote: james_d wrote: However, I noticed that when I run my build on Linux that the properties are not available. Specifically, calling System.getProperty(key1) returns null. What's going on? I'm using maven 2.0.9 for both. The OS shouldn't matter, it should have worked. Please post the exact command that you are using and the piece of code where you using this property. Also post the output of mvn -version -- View this message in context: http://www.nabble.com/Passing-system-properties-to-JUnit-tests-using-%22-D%22-on-Linux-tp21593651p21598842.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 -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal Mes CDs à récupérer: http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en - 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/Passing-system-properties-to-JUnit-tests-using-%22-D%22-on-Linux-tp21593651p21609247.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: Read pom properties from a custom location
I'd like to read POM properties from a custom file if it exists. ie: i'd like to read from pom.properties and pom-${user.name}.properties I can't see any examples on the web of how to do this. Maven is not Ant. Properties in Maven belong in the pom.xml file. There are no examples of this because it is not supported. There is a plugin (properties-maven-plugin, I think it is called) that may support some of this functionality. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Getting log4j output from ANT tasks to maven output
Well, I havn't.. So, i should just place log4j.properties file? how will i make it redirect all logs to maven output? Jaikiran wrote: ez wrote: instead i get this: log4j:WARN No appenders could be found for logger (com.i18n.Excel2Properties). log4j:WARN Please initialize the log4j system properly. The warning is because the log4j.properties or log4j.xml is not present in the classpath. Where have you placed it? -- View this message in context: http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21609797.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: Configuration by exception?
Let me clarify. I am using maven-ear-plugin, and all of my compile-time transitive dependencies are being dumped into the root of the ear. Do I have to declaratively exclude all of them like so: jarModule groupIdorg.apache.ant/groupId artifactIdant/artifactId excludedtrue/excluded /jarModule ...or does this signify a bug I've created in my build process? Thanks for any help monkeyden wrote: When I define a dependency do I really need to arduously and declaratively exclude each of it's dependencies? Naturally I'd rather just say don't include any dependencies except these... Thanks -- View this message in context: http://www.nabble.com/Configuration-by-exception--tp21592144p21610678.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
Problem with WTP,Maven2 and Eclipse
Hi all, I've just recently started using Maven2 and I there are still lots of things that I'm puzzled about. The scenario is that I have M2 project which has 2 modules (A B) which both build jar. Then there's a web application (C) which depends on other of those jars (A). So my directory structure looks like this; Parent - module A - module B - module C (web app) What I'm trying to do is to run and test web application with WTP. I've ran eclipse:eclipse with -Dwtpversion=2.0 on my project, but the problem is, that module A jar is not included in Tomcat in web app's WEB-INF/lib directory and that causes ClassNotFoundException when application runs. All third party jars that web app depends on are located where they should. In web app's properties module A is listed in Projects -tab in Required projects on the build path, but it has this yellow sign saying Build path entry is missing: module A. How can I fix this? Hope you get the idea what I'm trying to say, like I said, I'm not that experienced with Maven yet. Best regards, Janne
Re: Does the pluginGroup in the setting.xml work?
it does not work for me either, i am sure my files is setttings.xml -D On Thu, Jan 15, 2009 at 5:01 AM, Edelson, Justin justin.edel...@mtvstaff.com wrote: Yes, it works. The file is supposed to be called settings.xml. On Jan 15, 2009, at 6:05 AM, linchongsu sulinchong1...@gmail.com wrote: does the pluginGroups in the setting.xml work? anybody comes to this problem? On Mon, Nov 24, 2008 at 3:21 PM, 苏林冲 sulinchong1...@gmail.com wrote: Anybody konw this? 2008/11/21 苏林冲 sulinchong1...@gmail.com Hi, all I have set below in setting.xml pluginGroups pluginGroupcom.mycompany.maven.plugins/pluginGroup /pluginGroups when i run myplugin:exec , maven print these in the console [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'myplugin'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-myplugin-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Nov 21 13:05:34 CST 2008 [INFO] Final Memory: 1M/2M [INFO] why does maven define the groupId org.apache.maven.plugins rather than com.mycompany.maven.plugins? And below is also the log infomation with -X + Error stacktraces are turned on. Maven version: 2.0.9 Java version: 1.5.0_16 OS name: windows xp version: 5.1 arch: x86 Family: windows [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\sulinchong.pt\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'D:\Program Files\apache-maven-2.0.9\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'myplugin'. [DEBUG] Loading plugin prefixes from group: com.taobao.maven.plugins - does it work? [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [DEBUG] maven-myplugin-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-myplugin-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-myplugin-plugin:pom:LATEST [DEBUG] maven-myplugin-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-myplugin-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-myplugin-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-myplugin-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-myplugin-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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:
Re: Problem with WTP,Maven2 and Eclipse
Hi, install http://m2eclipse.codehaus.org/ and read http://docs.codehaus.org/display/M2ECLIPSE/Home and a chapter in http://books.sonatype.com/maven-book/index.html about this plugin. This project layout you are describing is very common (multimodule project) and is handled with ease with m2eclipse plugin. All you have too do is to import the project into eclipse. There are two possible views, as Eclipse does not suport hierarchical projects: one is separate projects and the other is one project which includes all your modules. I hope this will get you started. Cheers, Borut 2009/1/22 Janne Rantala janne.rant...@gmail.com Hi all, I've just recently started using Maven2 and I there are still lots of things that I'm puzzled about. The scenario is that I have M2 project which has 2 modules (A B) which both build jar. Then there's a web application (C) which depends on other of those jars (A). So my directory structure looks like this; Parent - module A - module B - module C (web app) What I'm trying to do is to run and test web application with WTP. I've ran eclipse:eclipse with -Dwtpversion=2.0 on my project, but the problem is, that module A jar is not included in Tomcat in web app's WEB-INF/lib directory and that causes ClassNotFoundException when application runs. All third party jars that web app depends on are located where they should. In web app's properties module A is listed in Projects -tab in Required projects on the build path, but it has this yellow sign saying Build path entry is missing: module A. How can I fix this? Hope you get the idea what I'm trying to say, like I said, I'm not that experienced with Maven yet. Best regards, Janne
Re: Does the pluginGroup in the setting.xml work?
How did you install your plugin? Did you build locally or downloaded from remote repository? Look at maven-metadata-local.xml or maven-metadata-repo.xml file under M2_REPO/com/mycompany/maven/plugins directory, repo is the repository name from where the plugin was installed. You should see someting like ?xml version=1.0 encoding=UTF-8?metadata plugins plugin nameyour plugin name/name prefixprefix/prefix artifactIdyour plugin artifactid/artifactId /plugin /metadata If you do not see anything means the plugin did not specify prefix properly. Look at http://books.sonatype.com/maven-book/reference/writing-plugins-sect-plugin-prefix.html specifically example 17.6 which uses maven-plugin-plugin to declare prefix notation. 苏林冲 wrote: Hi, all I have set below in setting.xml pluginGroups pluginGroupcom.mycompany.maven.plugins/pluginGroup /pluginGroups when i run myplugin:exec , maven print these in the console [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'myplugin'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-myplugin-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Nov 21 13:05:34 CST 2008 [INFO] Final Memory: 1M/2M [INFO] why does maven define the groupId org.apache.maven.plugins rather than com.mycompany.maven.plugins? And below is also the log infomation with -X + Error stacktraces are turned on. Maven version: 2.0.9 Java version: 1.5.0_16 OS name: windows xp version: 5.1 arch: x86 Family: windows [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\sulinchong.pt\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'D:\Program Files\apache-maven-2.0.9\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'myplugin'. [DEBUG] Loading plugin prefixes from group: com.taobao.maven.plugins - does it work? [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [DEBUG] maven-myplugin-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the latest version org.apache.maven.plugins:maven-myplugin-plugin:pom:LATEST [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-myplugin-plugin:pom:LATEST [DEBUG] maven-myplugin-plugin: using locally installed snapshot [DEBUG] Artifact not found - using stub model: Unable to determine the release version org.apache.maven.plugins:maven-myplugin-plugin:pom:RELEASE [DEBUG] Using defaults for missing POM org.apache.maven.plugins:maven-myplugin-plugin:pom:RELEASE [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-myplugin-plugin' does not exist or no valid version could be found [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-myplugin-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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
Re: Configuration by exception?
Let me clarify. I am using maven-ear-plugin, and all of my compile-time transitive dependencies are being dumped into the root of the ear. Do I have to declaratively exclude all of them like so: If your compile-time dependencies have dependencies of their own, how do you know that your app will function properly WITHOUT including in your ear? Thus, they MUST be included in your ear UNLESS you exclude them specifically. It sounds like Maven is doing EXACTLY what it should do. Help us understand why you think this is wrong. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Dependent jars not included in package
Hi All, I have a java project which has dependencies on few jars. I have included those jars as dependencies. It works fine till unit testing and it refers the dependent jars. But while creating package(jar) the dependent jars are not getting included. Please let me know how to include the dependent jars in the package. Regards Jude Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: Does the pluginGroup in the setting.xml work?
OK, it is my archiva issue, i could not pull down the metedata.xml HTTP ERROR: 500 Adding text to an XML document must not be null RequestURI=/archiva/repository/releases/com/./maven/plugins/maven-metadata.xml Caused by: java.lang.IllegalArgumentException: Adding text to an XML document must not be null at org.dom4j.DocumentFactory.createText(DocumentFactory.java:174) at org.dom4j.tree.AbstractElement.addText(AbstractElement.java:899) at org.dom4j.tree.AbstractElement.setText(AbstractElement.java:1120) at org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter.write(RepositoryMetadataWriter.java:77) at org.apache.maven.archiva.repository.metadata.RepositoryMetadataWriter.write(RepositoryMetadataWriter.java:55) at org.apache.maven.archiva.webdav.ArchivaDavResourceFactory.writeMergedMetadataToFile(ArchivaDavResourceFactory.java:987) at org.apache.maven.archiva.webdav.ArchivaDavResourceFactory.createResource(ArchivaDavResourceFactory.java:349) at org.apache.maven.archiva.webdav.RepositoryServlet.service(RepositoryServlet.java:118) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Powered by Jetty:// On Thu, Jan 22, 2009 at 12:45 PM, ksangani xkamle...@yahoo.com wrote: How did you install your plugin? Did you build locally or downloaded from remote repository? Look at maven-metadata-local.xml or maven-metadata-repo.xml file under M2_REPO/com/mycompany/maven/plugins directory, repo is the repository name from where the plugin was installed. You should see someting like ?xml version=1.0 encoding=UTF-8?metadata plugins plugin nameyour plugin name/name prefixprefix/prefix artifactIdyour plugin artifactid/artifactId /plugin /metadata If you do not see anything means the plugin did not specify prefix properly. Look at http://books.sonatype.com/maven-book/reference/writing-plugins-sect-plugin-prefix.html specifically example 17.6 which uses maven-plugin-plugin to declare prefix notation. 苏林冲 wrote: Hi, all I have set below in setting.xml pluginGroups pluginGroupcom.mycompany.maven.plugins/pluginGroup /pluginGroups when i run myplugin:exec , maven print these in the console [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'myplugin'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-myplugin-plugin' does not exist or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO]
[M2] maven-plugin-plugin does not compile with goal helpmojo
I've created a ant plugin on base of http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html. I updated the latest plugin version for usage with executions-goal = helpmojo: - maven-script-ant:2.1.0-M1 - maven-plugin-plugin:2.4.3 It compiles, but if I add: executions execution idgenerate-helpmojo/id goals goalhelpmojo/goal /goals /execution /executions I'm getting a compiler error: ..\target\generated-sources\plugin\m2-plugin-ant\build\HelpMojo.java:[1,7] identifier expected There is a wrong package defintion on line 1: package /m2-plugin-ant.build; Is ther a way to define the package-separator char '.' or want I'm doing wrong? see: http://www.nabble.com/file/p21615272/m2-plugin-ant.rar m2-plugin-ant.rar -- View this message in context: http://www.nabble.com/-M2--maven-plugin-plugin-does-not-compile-with-goal-helpmojo-tp21615272p21615272.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: Dependent jars not included in package
Would something like this work for you ? for plugin jar:jar configuration includes include[PATH_TO_JARS]/include /includes /configuration 2009/1/22 jude.prak...@wipro.com Hi All, I have a java project which has dependencies on few jars. I have included those jars as dependencies. It works fine till unit testing and it refers the dependent jars. But while creating package(jar) the dependent jars are not getting included. Please let me know how to include the dependent jars in the package. Regards Jude Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: Character encoding for APT files
On Jan 22, 2009, at 4:50 PM, Hervé BOUTEMY wrote: Sorry, I was working on other things and missed this discussion. I just commented (and closed as Not A Bug :) ) the issue. I agree that autodetecting is not a bullet-proof feature, but an absolute guarantee is not required in this case. I share Jason van Zyl's view: If it's right most of the time, and it saves the user from having to know or worry about it then yes I would use it. [1] Another issue is that without autodetection, supporting more than one type of character encoding for the APT files in a Maven project is impossible. That said, if autodetection is simply out of the question, let me suggest a different tack. Doxia appears to require ISO-8859-1 for APT files by default. This is a Western-centric encoding that lacks support for Asian languages. It is also deprecated. According to Wikipedia: The ISO/IEC working group responsible for maintaining eight-bit coded character sets disbanded and ceased all maintenance of ISO 8859, including ISO 8859-1, in order to concentrate on the Universal Character Set and Unicode. [2] I would also say that with the increasing popularity of UTF-8, the number of encoding problems encountered by users due to Doxia favoring ISO-8859-1 is already larger than any problems that might occur due to bad autodetection. In other words, autodetection might be wrong some of the time, but for many users, ISO-8859-1 is wrong all of the time. In light of this, I suggest changing Doxia's APT handling so that it defaults to UTF-8 rather than ISO-8859-1. Not only will this help UTF-8 users (who may be a majority), it will also help increase Maven's acceptance in the Asian world, a trend that is already happening [3]. I can work on a patch for this, if there's a chance it will be accepted. Trevor [1] http://www.nabble.com/Re%3A--VOTE--POM-Element-for-Source-File-Encoding-p16566779.html [2] http://en.wikipedia.org/wiki/ISO_8859-1 [3] http://blogs.sonatype.com/people/2008/07/apache-maven-the-definitive-chinese-guide/
Help with central repository sync dreamhost.
Hi Mavenites, I've gotten to the point where I am able to deploy my builds to a repository on my website, but in order to sync to the central repository (rsync or ssh_rsync)... I'm a little lost. Has anyone achieved this with dreamhost? It seems like I need to create a no-password user, so that rsync can take place. (Which I'm not sure is possible with how they have SSH configured.) I've read the documentation, but if anyone could help me with some nitty gritty details, I would be grateful: http://maven.apache.org/guides/mini/guide-central-repository-upload.html thanks! --Lincoln
Re: maven sftp issues.
[artifact:deploy] The authenticity of host 'chiadvsdap62' can't be established. [artifact:deploy] DSA key fingerprint is 6e:18:0c:a0:07:70:94:18:1e:af:10:e5:5a:35:94:96. [artifact:deploy] Are you sure you want to continue connecting? (yes/no): As this user, run sftp manually from the command line (or ssh) and accept the key (the yes/no prompt). Then you shouldn't get this prompt and the deploy should (hopefully) succeed. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: hibernate3-maven-plugin Error
Yep. That fixed it. Thanks On Wed, Jan 21, 2009 at 10:53 PM, Jaikiran jai_forums2...@yahoo.co.inwrote: Jean-Philippe Steinmetz-3 wrote: The odd thing about this is that I have a persistence.xml at the path src/main/java/META-INF/persistence.xml. I guess you should place it in src/main/resources/META-INF/persistence.xml -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-Error-tp21579183p21598817.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: Help with central repository sync dreamhost.
The repo-maintainers list is the best place for this. You should be able to setup ssh by allowing the maven public key: If you are using ssh in your own server you need to add the maven public key to the authorized ones to allow us to log in to the machine. http://www.ibiblio.org/maven/id_dsa.pub -Original Message- From: Lincoln Baxter, III [mailto:lincolnbax...@gmail.com] Sent: Thursday, January 22, 2009 6:09 PM To: users@maven.apache.org Subject: Help with central repository sync dreamhost. Hi Mavenites, I've gotten to the point where I am able to deploy my builds to a repository on my website, but in order to sync to the central repository (rsync or ssh_rsync)... I'm a little lost. Has anyone achieved this with dreamhost? It seems like I need to create a no-password user, so that rsync can take place. (Which I'm not sure is possible with how they have SSH configured.) I've read the documentation, but if anyone could help me with some nitty gritty details, I would be grateful: http://maven.apache.org/guides/mini/guide-central-repository-upload.html thanks! --Lincoln - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Iterating through a files using maven plugin
hi, thank you.I need some solution in maven itself...some plugin for maven or some trick in maven. matinh wrote: On Thursday 22 January 2009 arve wrote: hi, I run a maven task mvn appfuse:gen -Dentity=Pojo name. if i have 100 pojos in a folder i have to run the same command 100 times. Instead is there some plugin/trick whcih could iterate the same command with different pojo names with a single command? Use the shell! For example in bash it would be something like for POJO in $ALL_POJOs; do mvn appfuse:gen -Dentity=$POJO; done hth, - martin -- View this message in context: http://www.nabble.com/Iterating-through-a-files-using-maven-plugin-tp21598334p21617920.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: Iterating through a files using maven plugin
hi i use the archetye that maven provides.presently i'm using basic struts and modular struts archetypes. yes if we run mvn appguse:gen without any pojo name.it will ask us to enter the specific pojo name. it iterates and find the annotated pojos but does gun gen goal on it. correct me if i'm wrong... Jeff MAURY wrote: Isn't the appfuse maven plugin supposed to loop over all annotated POJOs when included in a POM ? Regards Jeff MAURY On Thu, Jan 22, 2009 at 1:55 PM, Martin Höller mar...@xss.co.at wrote: On Thursday 22 January 2009 arve wrote: hi, I run a maven task mvn appfuse:gen -Dentity=Pojo name. if i have 100 pojos in a folder i have to run the same command 100 times. Instead is there some plugin/trick whcih could iterate the same command with different pojo names with a single command? Use the shell! For example in bash it would be something like for POJO in $ALL_POJOs; do mvn appfuse:gen -Dentity=$POJO; done hth, - martin -- La mélancolie c'est communiste Tout le monde y a droit de temps en temps La mélancolie n'est pas capitaliste C'est même gratuit pour les perdants La mélancolie c'est pacifiste On ne lui rentre jamais dedans La mélancolie oh tu sais ça existe Elle se prend même avec des gants La mélancolie c'est pour les syndicalistes Il faut juste sa carte de permanent Miossec (2006) http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.lastfm.fr/listen/user/jeffmaury/personal Mes CDs à récupérer: http://spreadsheets.google.com/ccc?key=pNeg4Doa_oCsh7CepKPaPTAhl=en - http://riadiscuss.blogspot.com -- View this message in context: http://www.nabble.com/Iterating-through-a-files-using-maven-plugin-tp21598334p21617922.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: Iterating through a files using maven plugin
hi, i was able to bind the gen goal to generate-sources phase. But each time i run mvn (phase) gen goal is invoked but it asks the user to enter the pojo name and also if 100 pojos are there only one pojo is processed. i need gen to run iteratively on invocation of mvn generate-sources. i'm new to maven..so i only i have book-knowdledge. Brett Randall-2 wrote: Would referencing it as a plugin in your POM and allowing it to bind by default to the generate-sources phase work, rather than running the individual mojo? Brett On Thu, Jan 22, 2009 at 4:49 PM, arve arunvenkates...@hotmail.com wrote: hi, I run a maven task mvn appfuse:gen -Dentity=Pojo name. if i have 100 pojos in a folder i have to run the same command 100 times. Instead is there some plugin/trick whcih could iterate the same command with different pojo names with a single command? -- View this message in context: http://www.nabble.com/Iterating-through-a-files-using-maven-plugin-tp21598334p21598334.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/Iterating-through-a-files-using-maven-plugin-tp21598334p21617930.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
Attaching assemblies to regular lifecycle goals
Hello List - I've been trying to get the concept of attaching an assembly to the regular package phase of a particular project, but no matter what I try, I keep getting this: [ERROR] BUILD ERROR [INFO] [INFO] 'attached' was specified in an execution, but not found in the plugin [INFO] I've tried up to 2.2-beta-3 and still get a similar message. The plugin configuration is as follows: plugin artifactIdmaven-assembly-plugin/artifactId version2.2-beta-3/version executions execution idattached-assemblies/id phasepackage/phase goals goalattached/goal /goals configuration descriptors descriptorsrc/main/assembly/xml-data.xml/descriptor /descriptors /configuration /execution /executions /plugin What's crazy is this works fine in just about every other project - is there something I'm missing?
AW: Problem with WTP,Maven2 and Eclipse
Hi, you might have a better chance that get in working with m2eclipse plugin Get the development version.. Regards, Mehmet T-Mobile Deutschland GmbH Aufsichtsrat: Hamid Akhavan (Vorsitzender) Geschäftsführung: Dr. Georg Pölzl (Sprecher), Thomas Berlemann, Jiri Dvorjancansky, Philipp Humm, Dr. Peter Körner, Dr. Raphael Kübler, Günther Ottendorfer, Dr. Steffen Roehn Handelsregister: Amtsgericht Bonn, HRB 59 19 Sitz der Gesellschaft: Bonn WEEE-Reg.-Nr.: DE60800328 -Ursprüngliche Nachricht- Von: Janne Rantala [mailto:janne.rant...@gmail.com] Gesendet: Donnerstag, 22. Januar 2009 21:21 An: users@maven.apache.org Betreff: Problem with WTP,Maven2 and Eclipse Hi all, I've just recently started using Maven2 and I there are still lots of things that I'm puzzled about. The scenario is that I have M2 project which has 2 modules (A B) which both build jar. Then there's a web application (C) which depends on other of those jars (A). So my directory structure looks like this; Parent - module A - module B - module C (web app) What I'm trying to do is to run and test web application with WTP. I've ran eclipse:eclipse with -Dwtpversion=2.0 on my project, but the problem is, that module A jar is not included in Tomcat in web app's WEB-INF/lib directory and that causes ClassNotFoundException when application runs. All third party jars that web app depends on are located where they should. In web app's properties module A is listed in Projects -tab in Required projects on the build path, but it has this yellow sign saying Build path entry is missing: module A. How can I fix this? Hope you get the idea what I'm trying to say, like I said, I'm not that experienced with Maven yet. Best regards, Janne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org