Re: maven and ssh via jsch library?
dont know to much about this yet, but here it is http://svn.apache.org/repos/asf/maven/wagon/trunk/wagon-providers/wagon-ssh/ -D On 6/14/05, Alexandre Touret [EMAIL PROTECTED] wrote: phillip rhodes wrote: I need to do some ssh commands in maven. Has anyone ever used jsch in maven? I would expect to see it documented as a plugin, but numerous searches for ssh and maven did not return any information. Thanks. I tried to do this a few time ago with Maven 1.0.2.. I capitulated after a few hours. I did a ant script which I call by a goal in maven.xml Alexandre - 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: DJ Genapp Templates vs. DJ Maven site Docs vs. Paul Oakenfold
We discussed about this yesterday on the dev list and we'll fix it before maven 1.1 final. Arnaud Brett Porter wrote: Hi Mykel, The standard on the website is the one we all agreed on about a year ago. Unfortunately, the genapp plugin hasn't caught up yet :) http://maven.apache.org/reference/conventions.html I'm not sure about mevenide: you'd need to task on their lists I think. Cheers, Brett there's already an open issue for that : http://jira.codehaus.org/browse/MEVENIDE-216 -- gd - 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: multiproject:site problem (Intern)
I think you have come across a bug with Bug ID 4403166 in java.io.File. Another longtime bugaboo for many developers, the issue with paths with more than 255 characters on the Microsoft Windows operating system has finally been resolved. Seems to be fixed in b19 of Mustang :-) http://java.sun.com/developer/technicalArticles/J2SE/Desktop/Mustang_build39.html -- David Låås -Original Message- For some reason, and I've never gotten this before, I'm getting aggregate file copy errors.. ex: Failed to copy C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\BusinessProcessComponents\target\docs\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html due to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html (The system cannot find the path specified) The source file is there, and the destination directory is there... Any ideas? - 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]
Building a project and it's SNAPSHOT dependencies
Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} !--attainGoal name=build:withdeps /-- /j:if /j:forEach attainGoal name=jar:install/ /goal This works to find out what modules need to be build, but then I am stuck. I want to start my goal build:withdeps in the directory of the dependency so that one gets build (and if it also has snapshot dependencies, those get build first). Is there a way to do this? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building a project and it's SNAPSHOT dependencies
Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07 To: Maven Users List Subject: Building a project and it's SNAPSHOT dependencies Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} !--attainGoal name=build:withdeps /-- /j:if /j:forEach attainGoal name=jar:install/ /goal This works to find out what modules need to be build, but then I am stuck. I want to start my goal build:withdeps in the directory of the dependency so that one gets build (and if it also has snapshot dependencies, those get build first). Is there a way to do this? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building a project and it's SNAPSHOT dependencies
Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07 To: Maven Users List Subject: Building a project and it's SNAPSHOT dependencies Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} !--attainGoal name=build:withdeps /-- /j:if /j:forEach attainGoal name=jar:install/ /goal This works to find out what modules need to be build, but then I am stuck. I want to start my goal build:withdeps in the directory of the dependency so that one gets build (and if it also has snapshot dependencies, those get build first). Is there a way to do this? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building a project and it's SNAPSHOT dependencies
Well, I use the multiproject plugin, but this builds *all* modules. I can ofcourse tweak this to include or exclude as many as I want but this is not convenient for what I want. I want to build a project with all it's dependent (and only it's dependent modules, not others) snapshot dependencies. I want this to be sure I have the latest of everything when I build my project. Note that all my modules are at the same level: + modules | + -- module1 + -- module2 + -- module3 Suppose module3 only depends on module1. Using multiproject would build all 3. I want to have a system that when I am in the module3 directory, I tell maven to build with a special command and it would first do a jar:install of module1 and of module3. regards, Wim 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07 To: Maven Users List Subject: Building a project and it's SNAPSHOT dependencies Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} !--attainGoal name=build:withdeps /-- /j:if /j:forEach attainGoal name=jar:install/ /goal This works to find out what modules need to be build, but then I am stuck. I want to start my goal build:withdeps in the directory of the dependency so that one gets build (and if it also has snapshot dependencies, those get build first). Is there a way to do this? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.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: multiproject:site problem (Intern)
Hmm.. How can they solve that, windows itself does not support it? 2005/6/15, [EMAIL PROTECTED] [EMAIL PROTECTED]: I think you have come across a bug with Bug ID 4403166 in java.io.File. Another longtime bugaboo for many developers, the issue with paths with more than 255 characters on the Microsoft Windows operating system has finally been resolved. Seems to be fixed in b19 of Mustang :-) http://java.sun.com/developer/technicalArticles/J2SE/Desktop/Mustang_build39.html -- David Låås -Original Message- For some reason, and I've never gotten this before, I'm getting aggregate file copy errors.. ex: Failed to copy C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\BusinessProcessComponents\target\docs\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html due to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html (The system cannot find the path specified) The source file is there, and the destination directory is there... Any ideas? - 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: maven and ssh via jsch library?
dan tran wrote: dont know to much about this yet, but here it is http://svn.apache.org/repos/asf/maven/wagon/trunk/wagon-providers/wagon-ssh/ -D On 6/14/05, Alexandre Touret [EMAIL PROTECTED] wrote: phillip rhodes wrote: I need to do some ssh commands in maven. Has anyone ever used jsch in maven? I would expect to see it documented as a plugin, but numerous searches for ssh and maven did not return any information. Thanks. I tried to do this a few time ago with Maven 1.0.2.. I capitulated after a few hours. I did a ant script which I call by a goal in maven.xml Alexandre - 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] I saw it, but I didnt test it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Building a project and it's SNAPSHOT dependencies
Ok, I understand. Well, you can still use the maven:maven tag... -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 10:00 To: Maven Users List Subject: Re: Building a project and it's SNAPSHOT dependencies Well, I use the multiproject plugin, but this builds *all* modules. I can ofcourse tweak this to include or exclude as many as I want but this is not convenient for what I want. I want to build a project with all it's dependent (and only it's dependent modules, not others) snapshot dependencies. I want this to be sure I have the latest of everything when I build my project. Note that all my modules are at the same level: + modules | + -- module1 + -- module2 + -- module3 Suppose module3 only depends on module1. Using multiproject would build all 3. I want to have a system that when I am in the module3 directory, I tell maven to build with a special command and it would first do a jar:install of module1 and of module3. regards, Wim 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07 To: Maven Users List Subject: Building a project and it's SNAPSHOT dependencies Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} !--attainGoal name=build:withdeps /-- /j:if /j:forEach attainGoal name=jar:install/ /goal This works to find out what modules need to be build, but then I am stuck. I want to start my goal build:withdeps in the directory of the dependency so that one gets build (and if it also has snapshot dependencies, those get build first). Is there a way to do this? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ _ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.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] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven source code link from site
The maven.apache.org site does not provide a way to get the maven source code. The Project Info / Source Repository page only has the viewcvs link. The only way I could find of getting the real URL was to browse to project.xml in viewcvs. Could the SVN link http://svn.apache.org/repos/asf/maven/maven-1/core/trunk/ be included on the Source Repository page ? Maybe even with basic Subversion instructions (in the same way the CVS page does). On a related note the building-from-source page still mentions CVS instead of Subversion. Best Regards, Graham. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Declaring J2EE Dependencies
On Tue, 14 Jun 2005, McGarr, Joseph M. wrote: As of yet there's really no way to do that except declare a dependency on for instance an open source implementation like JBoss. It would be neat though, to actually only declare a dependency on an API, and leave it to the users of the project (if it's a lib) to provide an implementation.. It's been discussed before - check the archives. Btw, the SUN jars are not on ibiblio due to licensing, so you'd have to manually install them (but you can still declare a dependency on them, see http://maven.apache.org/reference/standard-sun-jar-names.html). -- EOF All: What is the best way to declare dependencies to packages like javax.*, that are part of J2EE? Are these packages made available at the ibiblio repository? I have not been able to find them as of yet. Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] JUnit test using files, with multiple modules
Hello all, I have a problem using m2, when I execute a JUnit test who loads a configuration file, in a multiple modules project. My project structure is : my-app +- pom.xml +- my-module1 +- pom.xml +- src +- config-test +- my-file.txt - This file is load by test classes, by name config-test/my-file.txt When I run the command m2 test from my-module1 directory, tests are OK. When I run the command m2 test from my-app directory, tests FAILED because test classes dont found config-test/my-file.txt. The base dir is my-app, not my-app/my-module1. How can I solve my problem? Thanks, Jean-Michel
RE: maven and ssh via jsch library?
Hi I am new to this maven framework, Can any one send me a sample small web application in Java build using maven framework or please send me the reference link from where I, can get this web project. Thanks Karthikeyan. -Original Message- From: Alexandre Touret [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 11:25 AM To: Maven Users List Subject: Re: maven and ssh via jsch library? phillip rhodes wrote: I need to do some ssh commands in maven. Has anyone ever used jsch in maven? I would expect to see it documented as a plugin, but numerous searches for ssh and maven did not return any information. Thanks. I tried to do this a few time ago with Maven 1.0.2.. I capitulated after a few hours. I did a ant script which I call by a goal in maven.xml Alexandre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] JUnit test using files, with multiple modules
2 solutions I think : 1/ use the resources in the pom to locate your file in the test classpath 2/ use the basedir system properties to find the test file. I did not use this solution but using maven 1 with multiproject I needed to add ${basedir}/myResources to don't have the same problem that's probably the same thing in m2 Nicolas 2005/6/15, Tournié Jean-Michel [EMAIL PROTECTED]: Hello all, I have a problem using m2, when I execute a JUnit test who loads a configuration file, in a multiple modules project. My project structure is : my-app +- pom.xml +- my-module1 +- pom.xml +- src +- config-test +- my-file.txt - This file is load by test classes, by name config-test/my-file.txt When I run the command m2 test from my-module1 directory, tests are OK. When I run the command m2 test from my-app directory, tests FAILED because test classes don't found config-test/my-file.txt. The base dir is my-app, not my-app/my-module1. How can I solve my problem? Thanks, Jean-Michel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] [ANN] Maven2 XDoclet / AntRun plugin
Hi there, I've taken a first stab at implementing an XDoclet (version 1) plugin for Maven 2. As a sideeffect an AntRun plugin was also created - you can add Ant script to the POM or call build.xml files. It only works on non-released versions of m2 - details on the site. So if you're using bleeding edge maven2 and you want to try out these plugins, be my guest! But beware: documentation is thin and it's just a preliminary version, to see if it's something the community wants. So don't expect too much! Feedback is welcome! Maven2 XDoclet plugin: http://www.neonics.com/projects/maven-xdoclet-plugin/ Maven2 AntRun plugin: http://www.neonics.com/projects/maven-antrun-plugin/ (Don't let the .com fool you - i'm hoping this stuff will somehow make it into maven or XDoclet). Thank's for trying it! Kenney Westerhof - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] [ANN] Maven2 XDoclet / AntRun plugin
On Tue, 14 Jun 2005, Kenney Westerhof wrote: I posted this yesterday evening and this morning didn't see it on the list, so I reposted. I guess the post made it after all (more than 12 hours later!). Sorry for the double post! -- Kenney - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building a project and it's SNAPSHOT dependencies
ok, thanks got it working now. 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Ok, I understand. Well, you can still use the maven:maven tag... -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 10:00 To: Maven Users List Subject: Re: Building a project and it's SNAPSHOT dependencies Well, I use the multiproject plugin, but this builds *all* modules. I can ofcourse tweak this to include or exclude as many as I want but this is not convenient for what I want. I want to build a project with all it's dependent (and only it's dependent modules, not others) snapshot dependencies. I want this to be sure I have the latest of everything when I build my project. Note that all my modules are at the same level: + modules | + -- module1 + -- module2 + -- module3 Suppose module3 only depends on module1. Using multiproject would build all 3. I want to have a system that when I am in the module3 directory, I tell maven to build with a special command and it would first do a jar:install of module1 and of module3. regards, Wim 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07 To: Maven Users List Subject: Building a project and it's SNAPSHOT dependencies Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} !--attainGoal name=build:withdeps /-- /j:if /j:forEach attainGoal name=jar:install/ /goal This works to find out what modules need to be build, but then I am stuck. I want to start my goal build:withdeps in the directory of the dependency so that one gets build (and if it also has snapshot dependencies, those get build first). Is there a way to do this? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ _ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.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] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.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: multiproject:site problem (Intern)
Seems to be a windows problem. You could move your workspace folder and all subfolders to c:\workspace, and run maven multiproject:site from that location. Hope this helps. -- David Låås Hmm.. How can they solve that, windows itself does not support it? I think you have come across a bug with Bug ID 4403166 in java.io.File. Another longtime bugaboo for many developers, the issue with paths with more than 255 characters on the Microsoft Windows operating system has finally been resolved. Seems to be fixed in b19 of Mustang :-) http://java.sun.com/developer/technicalArticles/J2SE/Desktop/Mustang_build39.html -- David Låås -Original Message- For some reason, and I've never gotten this before, I'm getting aggregate file copy errors.. ex: Failed to copy C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\BusinessProcessComponents\target\docs\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html due to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html (The system cannot find the path specified) The source file is there, and the destination directory is there... Any ideas? - 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]
RE: maven and ssh via jsch library?
Hi Karthikeyan, Not sure we can attach files to posts, but with Maven 2, you can build a little sample web app on your own (found on http://maven.apache.org/maven2/getting-started.html) : m2 archetype:create \ -DgroupId=com.mycompany.app -DartifactId=my-webapp \ -DarchetypeArtifactId=maven-archetype-webapp Regards, Yann -- Mail d'origine --- De : quot;Lakshmanaswamy, Karthikeyan (Cognizant)quot; [EMAIL PROTECTED] A : quot;Maven Users Listquot; users@maven.apache.org Cc : Date : Wed, 15 Jun 2005 14:59:10 +0530 Objet : RE: maven and ssh via jsch library? - -Hi - - I am new to this maven framework, Can any one send me a sample -small web application in Java build using maven framework or please send -me the reference link from where I, can get this web project. - -Thanks -Karthikeyan. - --Original Message- -From: Alexandre Touret [mailto:[EMAIL PROTECTED] -Sent: Wednesday, June 15, 2005 11:25 AM -To: Maven Users List -Subject: Re: maven and ssh via jsch library? - -phillip rhodes wrote: - -I need to do some ssh commands in maven. - -Has anyone ever used jsch in maven? I would expect -to see it documented as a plugin, but numerous -searches for ssh and maven did not return any -information. - -Thanks. - - -I tried to do this a few time ago with Maven 1.0.2.. I capitulated after - -a few hours. I did a ant script which I call by a goal in maven.xml - -Alexandre - -- -To unsubscribe, e-mail: [EMAIL PROTECTED] -For additional commands, e-mail: [EMAIL PROTECTED] - - - -This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. -If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly -prohibited and may be unlawful. - - Visit us at http://www.cognizant.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]
[ANN] Maven Changelog Plugin 1.8.2 released
The maven team is pleased to announce the Maven Changelog Plugin 1.8.2 release! http://maven.apache.org/reference/plugins/changelog/ Changes in this version include: Fixed bugs: o Avoid NullPointerException when no type is given Issue: MPCHANGELOG-66. o Corrected parsing of VSS results Issue: MPCHANGELOG-65. Thanks to Fuad Efendi. o Corrected parsing of .cvspass Issue: MPCHANGELOG-64. To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-changelog-plugin -Dversion=1.8.2 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-changelog-plugin-1.8.2.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven Changelog Plugin 1.8.2 released
The maven team is pleased to announce the Maven Changelog Plugin 1.8.2 release! http://maven.apache.org/reference/plugins/changelog/ Changes in this version include: Fixed bugs: o Avoid NullPointerException when no type is given Issue: MPCHANGELOG-66. o Corrected parsing of VSS results Issue: MPCHANGELOG-65. Thanks to Fuad Efendi. o Corrected parsing of .cvspass Issue: MPCHANGELOG-64. To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-changelog-plugin -Dversion=1.8.2 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-changelog-plugin-1.8.2.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven IDEA Plug-in 1.6 released
The maven team is pleased to announce the Maven IDEA Plug-in 1.6 release! http://maven.apache.org/reference/plugins/idea/ IDEA Plugin for Maven. Changes in this version include: New Features: o Add a property for specifying generated source directories to include in the module Issue: MPIDEA-10. Thanks to David Jencks. o Add maven.idea.jdkproperty so that the JDK can be explicitly specified if it does not use the IDEA default Issue: MPIDEA-19. Thanks to Jose Peleteiro. o Generate a module for the multiproject itself Issue: MPIDEA-28. Thanks to Geoffrey De Smet. o include maven project resources in module library Issue: MPIDEA-11. Thanks to Geoffrey De Smet. o Add output path for libraries in web modules Issue: MPIDEA-18. Thanks to Johann Reyes. Fixed bugs: o v4/module.jelly generates incorrect references to $MODULE_DIR$ Issue: MPIDEA-15. Thanks to Geoffrey De Smet. o set module to JAVA_MODULE for compatibility with both 4.5 and Irida. Issue: MPIDEA-17. Changes: o Use relative paths for projects and modules for projects easier to check into SCM Issue: MPIDEA-25. o Make projects within the reactor set IDEA module dependencies, but keep all others as JAR dependencies Issue: MPIDEA-7. Thanks to David Jencks. o Set source level properties based on the compile source level Issue: MPIDEA-19. o Deployment descriptor for ejb.jar hard-coded Issue: MPIDEA-9. Thanks to Eirik Bjorsnos. o idea:multiproject without idea:workspace so a local workspaces aren't lost Issue: MPIDEA-26. Thanks to Geoffrey De Smet. o Add depencies on ejb or war modules Issue: MPIDEA-27. Thanks to Geoffrey De Smet. o exclude build output directory in module Issue: MPIDEA-12. Thanks to Matthew McGowan. To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-idea-plugin -Dversion=1.6 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-idea-plugin-1.6.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven IDEA Plug-in 1.6 released
The maven team is pleased to announce the Maven IDEA Plug-in 1.6 release! http://maven.apache.org/reference/plugins/idea/ IDEA Plugin for Maven. Changes in this version include: New Features: o Add a property for specifying generated source directories to include in the module Issue: MPIDEA-10. Thanks to David Jencks. o Add maven.idea.jdkproperty so that the JDK can be explicitly specified if it does not use the IDEA default Issue: MPIDEA-19. Thanks to Jose Peleteiro. o Generate a module for the multiproject itself Issue: MPIDEA-28. Thanks to Geoffrey De Smet. o include maven project resources in module library Issue: MPIDEA-11. Thanks to Geoffrey De Smet. o Add output path for libraries in web modules Issue: MPIDEA-18. Thanks to Johann Reyes. Fixed bugs: o v4/module.jelly generates incorrect references to $MODULE_DIR$ Issue: MPIDEA-15. Thanks to Geoffrey De Smet. o set module to JAVA_MODULE for compatibility with both 4.5 and Irida. Issue: MPIDEA-17. Changes: o Use relative paths for projects and modules for projects easier to check into SCM Issue: MPIDEA-25. o Make projects within the reactor set IDEA module dependencies, but keep all others as JAR dependencies Issue: MPIDEA-7. Thanks to David Jencks. o Set source level properties based on the compile source level Issue: MPIDEA-19. o Deployment descriptor for ejb.jar hard-coded Issue: MPIDEA-9. Thanks to Eirik Bjorsnos. o idea:multiproject without idea:workspace so a local workspaces aren't lost Issue: MPIDEA-26. Thanks to Geoffrey De Smet. o Add depencies on ejb or war modules Issue: MPIDEA-27. Thanks to Geoffrey De Smet. o exclude build output directory in module Issue: MPIDEA-12. Thanks to Matthew McGowan. To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-idea-plugin -Dversion=1.6 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-idea-plugin-1.6.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building a project and it's SNAPSHOT dependencies
Wim, Could you post your resulting goal(s) here so that others seeking to do the same can benefit from your work ? Thanks, Jim Wim Deblauwe [EMAIL PROTECTED] 06/15/2005 06:34 AM Please respond to Maven Users List To Maven Users List users@maven.apache.org cc Subject Re: Building a project and it's SNAPSHOT dependencies ok, thanks got it working now. 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Ok, I understand. Well, you can still use the maven:maven tag... -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 10:00 To: Maven Users List Subject: Re: Building a project and it's SNAPSHOT dependencies Well, I use the multiproject plugin, but this builds *all* modules. I can ofcourse tweak this to include or exclude as many as I want but this is not convenient for what I want. I want to build a project with all it's dependent (and only it's dependent modules, not others) snapshot dependencies. I want this to be sure I have the latest of everything when I build my project. Note that all my modules are at the same level: + modules | + -- module1 + -- module2 + -- module3 Suppose module3 only depends on module1. Using multiproject would build all 3. I want to have a system that when I am in the module3 directory, I tell maven to build with a special command and it would first do a jar:install of module1 and of module3. regards, Wim 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07 To: Maven Users List Subject: Building a project and it's SNAPSHOT dependencies Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} !--attainGoal name=build:withdeps /-- /j:if /j:forEach attainGoal name=jar:install/ /goal This works to find out what modules need to be build, but then I am stuck. I want to start my goal build:withdeps in the directory of the dependency so that one gets build (and if it also has snapshot dependencies, those get build first). Is there a way to do this? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ _ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.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] ___ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.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: Building a project and it's SNAPSHOT dependencies
Oops, forgot one last thing: 'artifact:install' is a custom goal that checks the multiproject type and then executes 'jar:install' or 'war:install' or whatever. 2005/6/15, Wim Deblauwe [EMAIL PROTECTED]: Sure, this is what I have put in my maven.xml: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echo/ant:echo ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} ant:echo${dep.class.name}/ant:echo j:set var=idString value=${dep.id}/ j:set var=splittedStrings value=${idString.split(':')}/ j:forEach items=${splittedStrings} var=string indexVar=stringNr j:if test=${stringNr == 0} j:set var=group value=${string}/ /j:if j:if test=${stringNr == 1} j:set var=module value=${string}/ /j:if /j:forEach ant:echoGroup: ${group}/ant:echo ant:echoModule: ${module}/ant:echo ant:echoStarting build in dir: ${basedir}/../../../${group}/${module}/build/ant:echo maven:maven descriptor=${basedir}/../../../${group}/${module}/build/project.xml goals=build:withdeps/ /j:if /j:forEach ant:echoDone building SNAPSHOT dependencies, now building actual module.../ant:echo attainGoal name=artifact:install/ /goal Some important remarks: - It only runs when using JDK 1.5 because I use the new split() function. This can probably easily be changed to use substring() and indexOf() functions. - the maven:maven/ tag will require your attention. You need a way to go from your current directory (with your project.xml) to the directory of the dependent module's project.xml. This will depend on how you structure your modules. hope it helps, Wim 2005/6/15, Jim Mochel [EMAIL PROTECTED]: Wim, Could you post your resulting goal(s) here so that others seeking to do the same can benefit from your work ? Thanks, Jim Wim Deblauwe [EMAIL PROTECTED] 06/15/2005 06:34 AM Please respond to Maven Users List To Maven Users List users@maven.apache.org cc Subject Re: Building a project and it's SNAPSHOT dependencies ok, thanks got it working now. 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Ok, I understand. Well, you can still use the maven:maven tag... -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 10:00 To: Maven Users List Subject: Re: Building a project and it's SNAPSHOT dependencies Well, I use the multiproject plugin, but this builds *all* modules. I can ofcourse tweak this to include or exclude as many as I want but this is not convenient for what I want. I want to build a project with all it's dependent (and only it's dependent modules, not others) snapshot dependencies. I want this to be sure I have the latest of everything when I build my project. Note that all my modules are at the same level: + modules | + -- module1 + -- module2 + -- module3 Suppose module3 only depends on module1. Using multiproject would build all 3. I want to have a system that when I am in the module3 directory, I tell maven to build with a special command and it would first do a jar:install of module1 and of module3. regards, Wim 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07
changelog plugin date quote problem
I have been trying to use the maven-changelog-plugin 1.8.1 and 1.8.2 on Windows connecting to a Linux pserver. It always reports no changes. Adding a log statement to CvsLogListener to print out the stderr shows: cvs [server aborted]: Can't parse date/time: 2005-05-16 Changing CvsChangeLogGenerator.getScmDateArgument to remove the part quoting the date range if the os is Windows fixes it. Could someone advise me on whether this is a setup problem my end or a bug ? I'm happy to submit a patch - the change is very small. Thanks in advance, Graham. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building a project and it's SNAPSHOT dependencies
Sure, this is what I have put in my maven.xml: goal name=build:withdeps description=Builds your module and all it's SNAPSHOT dependencies ant:echo/ant:echo ant:echoBuilding this module (${pom.id}) with all it's SNAPSHOT dependencies/ant:echo ant:echo/ant:echo ant:echo message=There are ${size(pom.dependencies)} artifacts for this project/ j:forEach items=${pom.dependencies} var=dep indexVar=depNumber ant:echo message=Dependency ${depNumber}: ${dep.artifact}/ ant:echo${dep.version}/ant:echo ant:echoSNAPSHOT present? ${dep.version.contains('SNAPSHOT')}/ant:echo j:if test=${dep.version.contains('SNAPSHOT')} ant:echo${dep.class.name}/ant:echo j:set var=idString value=${dep.id}/ j:set var=splittedStrings value=${idString.split(':')}/ j:forEach items=${splittedStrings} var=string indexVar=stringNr j:if test=${stringNr == 0} j:set var=group value=${string}/ /j:if j:if test=${stringNr == 1} j:set var=module value=${string}/ /j:if /j:forEach ant:echoGroup: ${group}/ant:echo ant:echoModule: ${module}/ant:echo ant:echoStarting build in dir: ${basedir}/../../../${group}/${module}/build/ant:echo maven:maven descriptor=${basedir}/../../../${group}/${module}/build/project.xml goals=build:withdeps/ /j:if /j:forEach ant:echoDone building SNAPSHOT dependencies, now building actual module.../ant:echo attainGoal name=artifact:install/ /goal Some important remarks: - It only runs when using JDK 1.5 because I use the new split() function. This can probably easily be changed to use substring() and indexOf() functions. - the maven:maven/ tag will require your attention. You need a way to go from your current directory (with your project.xml) to the directory of the dependent module's project.xml. This will depend on how you structure your modules. hope it helps, Wim 2005/6/15, Jim Mochel [EMAIL PROTECTED]: Wim, Could you post your resulting goal(s) here so that others seeking to do the same can benefit from your work ? Thanks, Jim Wim Deblauwe [EMAIL PROTECTED] 06/15/2005 06:34 AM Please respond to Maven Users List To Maven Users List users@maven.apache.org cc Subject Re: Building a project and it's SNAPSHOT dependencies ok, thanks got it working now. 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Ok, I understand. Well, you can still use the maven:maven tag... -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 10:00 To: Maven Users List Subject: Re: Building a project and it's SNAPSHOT dependencies Well, I use the multiproject plugin, but this builds *all* modules. I can ofcourse tweak this to include or exclude as many as I want but this is not convenient for what I want. I want to build a project with all it's dependent (and only it's dependent modules, not others) snapshot dependencies. I want this to be sure I have the latest of everything when I build my project. Note that all my modules are at the same level: + modules | + -- module1 + -- module2 + -- module3 Suppose module3 only depends on module1. Using multiproject would build all 3. I want to have a system that when I am in the module3 directory, I tell maven to build with a special command and it would first do a jar:install of module1 and of module3. regards, Wim 2005/6/15, Vincent Massol [EMAIL PROTECTED]: Wim, You should use the multiproject plugin for that. Now to do what you want you need to use the maven:maven tag to spawn a maven process. -Vincent -Original Message- From: Wim Deblauwe [mailto:[EMAIL PROTECTED] Sent: mercredi 15 juin 2005 09:07 To: Maven Users List Subject: Building a project and it's SNAPSHOT dependencies Hi, I'm writing a jelly script for building a project and also building it's dependencies in 1 go. I currently do this: goal name=build:withdeps description=Builds your module and all it's
RE: [m2] JUnit test using files, with multiple modules
The solution 2 using basedir system property works fine whith m2. Thank you Nicolas. J-Michel -Message d'origine- De : Nicolas Chalumeau [mailto:[EMAIL PROTECTED] Envoyé : mercredi 15 juin 2005 11:47 À : Maven Users List Objet : Re: [m2] JUnit test using files, with multiple modules 2 solutions I think : 1/ use the resources in the pom to locate your file in the test classpath 2/ use the basedir system properties to find the test file. I did not use this solution but using maven 1 with multiproject I needed to add ${basedir}/myResources to don't have the same problem that's probably the same thing in m2 Nicolas 2005/6/15, Tournié Jean-Michel [EMAIL PROTECTED]: Hello all, I have a problem using m2, when I execute a JUnit test who loads a configuration file, in a multiple modules project. My project structure is : my-app +- pom.xml +- my-module1 +- pom.xml +- src +- config-test +- my-file.txt - This file is load by test classes, by name config-test/my-file.txt When I run the command m2 test from my-module1 directory, tests are OK. When I run the command m2 test from my-app directory, tests FAILED because test classes don't found config-test/my-file.txt. The base dir is my-app, not my-app/my-module1. How can I solve my problem? Thanks, Jean-Michel - 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]
[ANN] Maven Artifact Plugin 1.5.2 released
We are pleased to announce the Maven Artifact Plugin 1.5.2 release! http://maven.apache.org/reference/plugins/artifact/ Tools to manage artifacts and deployment. Changes in this version include: Fixed bugs: o Correct the translation of dependency properties on deployment of the POM Issue: MPARTIFACT-51. o Upgrade Wagon SSH External provider to allow the use of no private key, and to correctly pass the private key and port arguments Issue: MPARTIFACT-52. o Upgrade Wagon SSH provider to fix directory creation in the SFTP provider Issue: MPARTIFACT-53. To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://repo1.maven.org/maven -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.5.2 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-artifact-plugin-1.5.2.jar Have fun! -The Maven Artifact Plugin development team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiproject:site problem (Intern)
I guess not... Just use subst to create a drive pointing to it and it should be fine... A workaround, yes, but it's not too much of a hack. --- Wim Deblauwe [EMAIL PROTECTED] wrote: Hmm.. How can they solve that, windows itself does not support it? 2005/6/15, [EMAIL PROTECTED] [EMAIL PROTECTED]: I think you have come across a bug with Bug ID 4403166 in java.io.File. Another longtime bugaboo for many developers, the issue with paths with more than 255 characters on the Microsoft Windows operating system has finally been resolved. Seems to be fixed in b19 of Mustang :-) http://java.sun.com/developer/technicalArticles/J2SE/Desktop/Mustang_build39.html -- David Låås -Original Message- For some reason, and I've never gotten this before, I'm getting aggregate file copy errors.. ex: Failed to copy C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\BusinessProcessComponents\target\docs\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html due to C:\Documents and Settings\melnicj1\My Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html (The system cannot find the path specified) The source file is there, and the destination directory is there... Any ideas? - 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]
Re: changelog plugin date quote problem
Graham, what CVS version and Windows version are you using? This was introduced to fix this: http://jira.codehaus.org/browse/MPCHANGELOG-47 The change worked with the cygwin executable I tested with (shouldn't matter that it is cygwin, as the quotes are handled by the cmd.exe, I thought) - Brett On 6/15/05, Graham King [EMAIL PROTECTED] wrote: I have been trying to use the maven-changelog-plugin 1.8.1 and 1.8.2 on Windows connecting to a Linux pserver. It always reports no changes. Adding a log statement to CvsLogListener to print out the stderr shows: cvs [server aborted]: Can't parse date/time: 2005-05-16 Changing CvsChangeLogGenerator.getScmDateArgument to remove the part quoting the date range if the os is Windows fixes it. Could someone advise me on whether this is a setup problem my end or a bug ? I'm happy to submit a patch - the change is very small. Thanks in advance, Graham. - 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: Why I hate Maven :-)
take a look at geronimo for a LARGE project using maven. -Original Message- From: Anil Arora [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 7:03 PM To: Maven Users List; Brett Porter Subject: RE: Why I hate Maven :-) Your counter point of having multiple artifacts per project is still a little troubling. I think the example of ejb, taglib, etc. is good when you're thinking about that level of granularity. In our application, we have quite a few files which can be customized by a customer. So, it doesn't make sense to archive these in a jar file. But with the number of artifacts that needs to be in the final distribution, this method does not scale. To me, it seems that maven tends to be more suited for applications that result in few artifacts. I still would like to see how an application like Tomcat can be built using maven. Anil -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 1:18 AM To: Maven Users List Subject: Re: Why I hate Maven :-) On 6/14/05, Jim Mochel [EMAIL PROTECTED] wrote: Brett Porter recently posted a BLOG entry asking why some people hate Maven. Hmmm.. unless I'm mistaken that was last year! Maybe the blog software decided to send out a refresh :) Regardless, you make some good points here - thanks for taking the time to do so. I've spent some time putting together a response, and have also put it up on the blog as I think it would be of general interest to people who have read the original post. http://blogs.codehaus.org/people/brett/archives/001110_re_why_do_you_hat e_maven.html Im happy to discuss any of these points further, or examine your SOA use case in more detail WRT Maven2 if you'd like. Cheers, Brett - 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] smime.p7s Description: S/MIME cryptographic signature
OutOfMemoryException during xdoc generation
Hi Maven Users, I am experiencing a little problem with the xdoc plugin. After upgrading to 1.9 version ,i got an exception when runnig the site goal. java.lang.reflect.InvocationTargetException 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 com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: java.lang.OutOfMemoryError: Java heap space Well, it is not very difficult to find the problem, but with the xdoc version before i didn't have this problem ??? My config is : SUN UltraSparc 2x900 Mhz 4096 Mo JDK 1.5.0 So my question is why i am getting this error ? is the xdoc plugin will improve performance to avoid that ? Of course i will pass the -Xmx arg to the JVM ;) Cheers, Stéphane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryException during xdoc generation
Hi, Did you try setting the MAVEN_OPTS variable to provide more memory, ie MAVEN_OPTS=-Xms512m -Xmx1024m Cheers, Vincent 2005/6/15, stéphane bouchet [EMAIL PROTECTED]: Hi Maven Users, I am experiencing a little problem with the xdoc plugin. After upgrading to 1.9 version ,i got an exception when runnig the site goal. java.lang.reflect.InvocationTargetException 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 com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: java.lang.OutOfMemoryError: Java heap space Well, it is not very difficult to find the problem, but with the xdoc version before i didn't have this problem ??? My config is : SUN UltraSparc 2x900 Mhz 4096 Mo JDK 1.5.0 So my question is why i am getting this error ? is the xdoc plugin will improve performance to avoid that ? Of course i will pass the -Xmx arg to the JVM ;) Cheers, Stéphane - 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: OutOfMemoryException during xdoc generation
It is simply a matter of generating more files which has pushed it over the edge. Maven 1.1 Beta 1 will be released shortly, and it does not leak memory in that way, so it is not an issue. - Brett On 6/16/05, stéphane bouchet [EMAIL PROTECTED] wrote: Hi Maven Users, I am experiencing a little problem with the xdoc plugin. After upgrading to 1.9 version ,i got an exception when runnig the site goal. java.lang.reflect.InvocationTargetException 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 com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: java.lang.OutOfMemoryError: Java heap space Well, it is not very difficult to find the problem, but with the xdoc version before i didn't have this problem ??? My config is : SUN UltraSparc 2x900 Mhz 4096 Mo JDK 1.5.0 So my question is why i am getting this error ? is the xdoc plugin will improve performance to avoid that ? Of course i will pass the -Xmx arg to the JVM ;) Cheers, Stéphane - 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: OutOfMemoryException during xdoc generation
Thanks Brett, you're doing a great job ! Stéphane PS : after setting MAVEN_OPTS=-Xms512m -Xmx1024m, i have no more problems. Brett Porter a écrit : It is simply a matter of generating more files which has pushed it over the edge. Maven 1.1 Beta 1 will be released shortly, and it does not leak memory in that way, so it is not an issue. - Brett On 6/16/05, stéphane bouchet [EMAIL PROTECTED] wrote: Hi Maven Users, I am experiencing a little problem with the xdoc plugin. After upgrading to 1.9 version ,i got an exception when runnig the site goal. java.lang.reflect.InvocationTargetException 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 com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: java.lang.OutOfMemoryError: Java heap space Well, it is not very difficult to find the problem, but with the xdoc version before i didn't have this problem ??? My config is : SUN UltraSparc 2x900 Mhz 4096 Mo JDK 1.5.0 So my question is why i am getting this error ? is the xdoc plugin will improve performance to avoid that ? Of course i will pass the -Xmx arg to the JVM ;) Cheers, Stéphane - 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: merging maven errors' in CruiseControl
I've actually noticed several times when a build went bad for some reason, but Maven indicated that the build was successful. This caused problems with CruiseControl especially. Clearly, these are bugs that need to be resolved, so I will try to take some notes in the future so I can report specifics. ..David.. -Original Message- From: Eric Pugh [mailto:[EMAIL PROTECTED] Sent: Tue 6/14/2005 10:10 AM To: Maven Users List Subject: Re: merging maven errors' in CruiseControl Are you using 2.2.1 of CC? It works fine there. This would be a better question on the CC users's list.. Eric On Jun 9, 2005, at 8:05 AM, Chedly GUERFALI wrote: Hello all, I would like to know if there is a way for merging the real maven buid failed messages throw CruiseControl. It always reports Build Successful even if the build has failed Thank you in advance. Chedly If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/ email_terms/ - 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]
How do I add 2 numbers in jelly?
Hi, I can't find a good jelly resource anywhere on the net, so I hope this list might help me out. Consider this jelly fragment: x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set var=passrateValue select=substring-before(text(), ' %')/ echopassrateValue: ${passrateValue}/echo Need to do an addition of all passrateValue values in a variable /x:forEach //Do some further calculation with the total here How can I do this addition in jelly? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why I hate Maven :-)
On 6/15/05, Ryan Sonnek [EMAIL PROTECTED] wrote: take a look at geronimo for a LARGE project using maven. I haven't looked at geronimo's code, but sometimes large may not mean representative. For example I have a client who has a typical J2EE webapp + some webstart thick clients. One of these thick clients has two configurations. It's packaged as the same jar, but depending on the parameters in the JNLP file, it will trigger a different internal module. Following maven's rule of one artifact per project, I've created 3 projects, one for the jar file, one for each of the 2 JNLP. The JNLP plugin makes us put the properties in the project.properties which cannot be inherited. So I end up with 2 very similar projects, with the same dependencies, and almost the same project.properties. Then I've got to merge these resulting artifacts inside the same directory for deployment. In that particular case, I find that maven (or the JNLP plugin) gets in my way. It was much cleaner with Ant. Sometimes best practise and productivity don't go hand in hand. Cheers, Jerome PS: if someone knows a clean solution to my issue... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I add 2 numbers in jelly?
On Wed, 15 Jun 2005, Wim Deblauwe wrote: See http://jakarta.apache.org/commons/jexl/reference/syntax.html, jexl is Java Expression Language, the default scripting language used in jelly. You can use j:set var=sum value=${ sum + passRateValue }/ or something. Hi, I can't find a good jelly resource anywhere on the net, so I hope this list might help me out. Consider this jelly fragment: x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set var=passrateValue select=substring-before(text(), ' %')/ echopassrateValue: ${passrateValue}/echo Need to do an addition of all passrateValue values in a variable /x:forEach //Do some further calculation with the total here How can I do this addition in jelly? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Why I hate Maven :-)
not sure why geronimo isn't representitive of what maven can do. they have an extremely modular codebase, and are building a J2EE server, so it seems perfectly logical that J2EE applications could follow the same model. project.properties are inherited. I'm doing a very similar thing with my project. want a real world example? see https://shard.dev.java.net/source/browse/shard/ for my open source project. I'll gladly talk with you more about how I got around the problems you describe. -Original Message- From: jerome lacoste [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 10:16 AM To: Maven Users List Subject: Re: Why I hate Maven :-) On 6/15/05, Ryan Sonnek [EMAIL PROTECTED] wrote: take a look at geronimo for a LARGE project using maven. I haven't looked at geronimo's code, but sometimes large may not mean representative. For example I have a client who has a typical J2EE webapp + some webstart thick clients. One of these thick clients has two configurations. It's packaged as the same jar, but depending on the parameters in the JNLP file, it will trigger a different internal module. Following maven's rule of one artifact per project, I've created 3 projects, one for the jar file, one for each of the 2 JNLP. The JNLP plugin makes us put the properties in the project.properties which cannot be inherited. So I end up with 2 very similar projects, with the same dependencies, and almost the same project.properties. Then I've got to merge these resulting artifacts inside the same directory for deployment. In that particular case, I find that maven (or the JNLP plugin) gets in my way. It was much cleaner with Ant. Sometimes best practise and productivity don't go hand in hand. Cheers, Jerome PS: if someone knows a clean solution to my issue... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
Re: changelog plugin date quote problem
I'm on Windows XP (SP2) with Cygwin's cvs 1.11.17. The quotes work fine on the command line, but it seems cvslib doesn't like them. Does Netbeans's cvslib support SSH connections ? On the version I got from cvs the SSH2Connection part was commented out and marked as TBD. Brett Porter wrote: Graham, what CVS version and Windows version are you using? This was introduced to fix this: http://jira.codehaus.org/browse/MPCHANGELOG-47 The change worked with the cygwin executable I tested with (shouldn't matter that it is cygwin, as the quotes are handled by the cmd.exe, I thought) - Brett On 6/15/05, Graham King [EMAIL PROTECTED] wrote: I have been trying to use the maven-changelog-plugin 1.8.1 and 1.8.2 on Windows connecting to a Linux pserver. It always reports no changes. Adding a log statement to CvsLogListener to print out the stderr shows: cvs [server aborted]: Can't parse date/time: 2005-05-16 Changing CvsChangeLogGenerator.getScmDateArgument to remove the part quoting the date range if the os is Windows fixes it. Could someone advise me on whether this is a setup problem my end or a bug ? I'm happy to submit a patch - the change is very small. Thanks in advance, Graham. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I add 2 numbers in jelly?
I'll check out the resource tomorrow for more info. I already tried the statement you say, but it did not seem to work. 2005/6/15, Kenney Westerhof [EMAIL PROTECTED]: On Wed, 15 Jun 2005, Wim Deblauwe wrote: See http://jakarta.apache.org/commons/jexl/reference/syntax.html, jexl is Java Expression Language, the default scripting language used in jelly. You can use j:set var=sum value=${ sum + passRateValue }/ or something. Hi, I can't find a good jelly resource anywhere on the net, so I hope this list might help me out. Consider this jelly fragment: x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set var=passrateValue select=substring-before(text(), ' %')/ echopassrateValue: ${passrateValue}/echo Need to do an addition of all passrateValue values in a variable /x:forEach //Do some further calculation with the total here How can I do this addition in jelly? regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [ANN] Maven Artifact Plugin 1.5.2 released
Hello I am using plink.exe, pscp.exe and the following properties: maven.repo.list = a maven.repo.a = scp://maven.a.ch maven.repo.a.directory = /data/maven maven.repo.a.username = my_name maven.repo.a.scp.executable = C:/Path/To/pscp.exe maven.username = my_name However, I still get the following error: Failed to deploy to: a Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon.java:1 64) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:123) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:90) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(Defau ltArtifactDeployer.java:376) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy(DefaultA rtifactDeployer.java:324) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy(Defa ultArtifactDeployer.java:131) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArt ifactDeployer.java:102) at org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java:142) 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:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java: 79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) 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:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon.java:1 28) ... 31 more BUILD FAILED File.. C:\Dokumente und Einstellungen\Daniel Frey\.maven\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Line.. 90 Column 9 Unable to deploy to any repositories Total time: 3 seconds Finished at: Wed Jun 15 17:29:25 CEST 2005 -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 15:40 An: users@maven.apache.org; dev@maven.apache.org Betreff: [ANN] Maven Artifact Plugin 1.5.2 released We are pleased to announce the Maven Artifact Plugin 1.5.2 release! http://maven.apache.org/reference/plugins/artifact/ Tools to manage artifacts and deployment. Changes in this version include: Fixed bugs: o Correct the translation of dependency properties on deployment of the POM Issue: MPARTIFACT-51. o Upgrade Wagon SSH External provider to allow the use of no private key, and to correctly pass the private key and port arguments Issue: MPARTIFACT-52. o Upgrade Wagon SSH provider to fix directory creation in the SFTP provider Issue: MPARTIFACT-53. To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://repo1.maven.org/maven -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.5.2 For a manual installation, you can download the plugin here:
AW: [ANN] Maven Artifact Plugin 1.5.2 released
Hello I am using plink.exe, pscp.exe and the following properties: maven.repo.list = a maven.repo.a = scp://maven.a.ch maven.repo.a.directory = /data/maven maven.repo.a.username = my_name maven.repo.a.scp.executable = C:/Path/To/pscp.exe maven.username = my_name However, I still get the following error: Failed to deploy to: a Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon.java:1 64) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:123) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:90) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(Defau ltArtifactDeployer.java:376) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy(DefaultA rtifactDeployer.java:324) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy(Defa ultArtifactDeployer.java:131) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArt ifactDeployer.java:102) at org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java:142) 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:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java: 79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) 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:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon.java:1 28) ... 31 more BUILD FAILED File.. C:\Dokumente und Einstellungen\Daniel Frey\.maven\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Line.. 90 Column 9 Unable to deploy to any repositories Total time: 3 seconds Finished at: Wed Jun 15 17:29:25 CEST 2005 -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 15:40 An: users@maven.apache.org; dev@maven.apache.org Betreff: [ANN] Maven Artifact Plugin 1.5.2 released We are pleased to announce the Maven Artifact Plugin 1.5.2 release! http://maven.apache.org/reference/plugins/artifact/ Tools to manage artifacts and deployment. Changes in this version include: Fixed bugs: o Correct the translation of dependency properties on deployment of the POM Issue: MPARTIFACT-51. o Upgrade Wagon SSH External provider to allow the use of no private key, and to correctly pass the private key and port arguments Issue: MPARTIFACT-52. o Upgrade Wagon SSH provider to fix directory creation in the SFTP provider Issue: MPARTIFACT-53. To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://repo1.maven.org/maven -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.5.2 For a manual installation, you can download the plugin here:
RE: Why I hate Maven :-)
Heck, I'm interested even if Jerome isnt! Let's have it... -Original Message- From: Ryan Sonnek [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 11:20 AM To: Maven Users List; jerome lacoste Subject: RE: Why I hate Maven :-) not sure why geronimo isn't representitive of what maven can do. they have an extremely modular codebase, and are building a J2EE server, so it seems perfectly logical that J2EE applications could follow the same model. project.properties are inherited. I'm doing a very similar thing with my project. want a real world example? see https://shard.dev.java.net/source/browse/shard/ for my open source project. I'll gladly talk with you more about how I got around the problems you describe. -Original Message- From: jerome lacoste [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 10:16 AM To: Maven Users List Subject: Re: Why I hate Maven :-) On 6/15/05, Ryan Sonnek [EMAIL PROTECTED] wrote: take a look at geronimo for a LARGE project using maven. I haven't looked at geronimo's code, but sometimes large may not mean representative. For example I have a client who has a typical J2EE webapp + some webstart thick clients. One of these thick clients has two configurations. It's packaged as the same jar, but depending on the parameters in the JNLP file, it will trigger a different internal module. Following maven's rule of one artifact per project, I've created 3 projects, one for the jar file, one for each of the 2 JNLP. The JNLP plugin makes us put the properties in the project.properties which cannot be inherited. So I end up with 2 very similar projects, with the same dependencies, and almost the same project.properties. Then I've got to merge these resulting artifacts inside the same directory for deployment. In that particular case, I find that maven (or the JNLP plugin) gets in my way. It was much cleaner with Ant. Sometimes best practise and productivity don't go hand in hand. Cheers, Jerome PS: if someone knows a clean solution to my issue... - 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: changelog plugin date quote problem
On 6/16/05, Graham King [EMAIL PROTECTED] wrote: I'm on Windows XP (SP2) with Cygwin's cvs 1.11.17. Me too... I don't get an error with pserver access. The quotes work fine on the command line, but it seems cvslib doesn't like them. Does Netbeans's cvslib support SSH connections ? On the version I got from cvs the SSH2Connection part was commented out and marked as TBD. It used to when I used it some time back. Looks like some testing is in order. If there is anything additional you can report, or a fix you find - that'd be great. Please file it in JIRA. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven Artifact Plugin 1.5.2 released
I think you want scpexe://. scp:// uses the built in Jsch provider. - Brett On 6/16/05, Daniel Frey [EMAIL PROTECTED] wrote: Hello I am using plink.exe, pscp.exe and the following properties: maven.repo.list = a maven.repo.a = scp://maven.a.ch maven.repo.a.directory = /data/maven maven.repo.a.username = my_name maven.repo.a.scp.executable = C:/Path/To/pscp.exe maven.username = my_name However, I still get the following error: Failed to deploy to: a Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon.java:1 64) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:123) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:90) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deployFiles(Defau ltArtifactDeployer.java:376) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doDeploy(DefaultA rtifactDeployer.java:324) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleDeploy(Defa ultArtifactDeployer.java:131) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArt ifactDeployer.java:102) at org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBean.java:142) 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:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:230) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java: 79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) 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:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon.java:1 28) ... 31 more BUILD FAILED File.. C:\Dokumente und Einstellungen\Daniel Frey\.maven\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Line.. 90 Column 9 Unable to deploy to any repositories Total time: 3 seconds Finished at: Wed Jun 15 17:29:25 CEST 2005 -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 15:40 An: users@maven.apache.org; dev@maven.apache.org Betreff: [ANN] Maven Artifact Plugin 1.5.2 released We are pleased to announce the Maven Artifact Plugin 1.5.2 release! http://maven.apache.org/reference/plugins/artifact/ Tools to manage artifacts and deployment. Changes in this version include: Fixed bugs: o Correct the translation of dependency properties on deployment of the POM Issue: MPARTIFACT-51. o Upgrade Wagon SSH External provider to allow the use of no private key, and to correctly pass the private key and port arguments Issue: MPARTIFACT-52. o Upgrade Wagon SSH provider to fix directory creation in the SFTP provider Issue: MPARTIFACT-53. To automatically install the plugin, type the following on a single line:
Re: Why I hate Maven :-)
On 6/15/05, Poppe, Troy [EMAIL PROTECTED] wrote: Heck, I'm interested even if Jerome isnt! Let's have it... -Original Message- From: Ryan Sonnek [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 11:20 AM To: Maven Users List; jerome lacoste Subject: RE: Why I hate Maven :-) not sure why geronimo isn't representitive of what maven can do. they have an extremely modular codebase, and are building a J2EE server, so it seems perfectly logical that J2EE applications could follow the same model. I don't say that is it not representative, I mean that it won't exercise all things one may want to do. project.properties are inherited. I'm doing a very similar thing with my project. want a real world example? see https://shard.dev.java.net/source/browse/shard/ for my open source project. I'll gladly talk with you more about how I got around the problems you describe. Then my bad. The documentation I came upon was wrong or I misunderstood it. But if I want to inherit it propertly, I will have to do something like client/core client/jnlpcommon/project.properties client/jnlp_1/ client/jnlp_2/ with jnlp_1 and jnlp_2 inheriting from jnlpcommon. I don't say that I don't want to use maven. It's sometimes a little bit verbose to me. Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Maven Artifact Plugin 1.5.2 released
Brett Porter wrote on Wednesday, June 15, 2005 5:54 PM: I think you want scpexe://. scp:// uses the built in Jsch provider. - Brett and plink has different options than standard ssh: maven.ssh.executable=plink maven.ssh.options=-A -2 -ssh maven.scp.executable=pscp maven.scp.options=-2 - Jörg On 6/16/05, Daniel Frey [EMAIL PROTECTED] wrote: Hello I am using plink.exe, pscp.exe and the following properties: maven.repo.list = a maven.repo.a = scp://maven.a.ch maven.repo.a.directory = /data/maven maven.repo.a.username = my_name maven.repo.a.scp.executable = C:/Path/To/pscp.exe maven.username = my_name However, I still get the following error: Failed to deploy to: a Reason: org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a org.apache.maven.wagon.authentication.AuthenticationException: Cannot connect. Reason: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(ScpWagon. java:1 64) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:123) at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:90) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.dep loyFiles(Defau ltArtifactDeployer.java:376) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.doD eploy(DefaultA rtifactDeployer.java:324) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.han dleDeploy(Defa ultArtifactDeployer.java:131) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.dep loy(DefaultArt ifactDeployer.java:102) at org.apache.maven.artifact.deployer.DeployBean.deploy(DeployBea n.java:142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBean Tag.java:230) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScr ipt.java:145) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(Mave nGoalTag.java: 79) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction .performAction (MavenGoalTag.java:110) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManage r.java:671) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:488) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.apache.maven.wagon.authentication.AuthenticationException: Private key was not found. You must define a private key or a password for repo: a at org.apache.maven.wagon.providers.ssh.ScpWagon.openConnection(S cpWagon.java:1 28) ... 31 more BUILD FAILED File.. C:\Dokumente und Einstellungen\Daniel Frey\.maven\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Line.. 90 Column 9 Unable to deploy to any repositories Total time: 3 seconds Finished at: Wed Jun 15 17:29:25 CEST 2005 -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 15:40 An: users@maven.apache.org; dev@maven.apache.org Betreff: [ANN] Maven Artifact Plugin 1.5.2 released We are pleased to announce the Maven Artifact Plugin 1.5.2 release! http://maven.apache.org/reference/plugins/artifact/ Tools to manage artifacts and deployment. Changes in this version include: Fixed bugs: o Correct the translation of dependency properties on deployment of the POM Issue: MPARTIFACT-51. o Upgrade Wagon SSH External provider to allow the use of no
example hibernate3 configuration for maven?
I am hoping someone can show me the dependancies for hibernate3 in maven. Please... Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A couple of application deployment questions
Hello Chriss Chris Rose wrote: First, we're making a home-user sort of application. Ideally, we want os-native executables to be launching this app. We can generate the executables using ant tasks, for the most part, but I'm not sure how to integrate this into our build. Using a custom goal you will write in the maven.xml that will call you ant task to complete do the trick. Second, and as a consequence of that, we want to create cross-platform installers that will perform a seamless installation of our application, along with its dependencies. To this end, we need some way of toting all of our dependencies with us in the distribution jar file, or something equivalent. Check out what the uber-dist plugin offers. This guy lets you build a custom distribution then zip (tar/gzip) it. It offers also ways to copy dependencies in custom publish directories. You can find the plugin and its doc at: http://uber-dist.sourceforge.net/ Hope it helps Eric. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A couple of application deployment questions
Hi, I'm not sure if this will be helpful, but for crossplatform applications we have some goals that can create scripts for the different os's. These are java specific, but you could have your own scripts do whatever you wanted: goal name=ccdist:make-run-script description=Create runnable OS-specific batch files ant:mkdir dir=target/dist/ j:set var=my.run.classpath.win j:forEach var=lib items=${pom.artifacts}jars\${lib.file.name};/j:forEach /j:set j:set var=my.run.classpath.unix j:forEach var=lib items=${pom.artifacts}jars/${lib.file.name}:/j:forEach /j:set j:file omitXmlDeclaration=true name=target/dist/run.bat java -Djava.library.path=nativelib -cp jars\${maven.final.name}.jar;${my.run.classpath.win} ${maven.jar.mainclass} -f %1 %2 %3 %4 %5 /j:file j:file omitXmlDeclaration=true name=target/dist/run.sh java -Djava.library.path=nativelib -cp jars/${maven.final.name}.jar:${my.run.classpath.unix} ${maven.jar.mainclass} $$* /j:file /goal You could also put any other files in the dist directory. Then we have a zipping goal to zip up the dist directory: goal name=ccdist:zip-dist prereqs=ccdist:create-dist description=Create a deployable zipped application j:set var=prefix value=${ccDist.output.prefix} / j:if test=${empty(prefix)} ant:fail message=ccDist.output.prefix property is undefined. / /j:if ant:zip destfile=target/${prefix}.zip zipfileset dir=target/dist prefix=${prefix}/ /ant:zip /goal This is all Jelly stuff that works with Maven 1.0. Don't know if it would work with Maven 2. Eric On 6/14/05, Chris Rose [EMAIL PROTECTED] wrote: I'm newish to maven, although I managed to get my project moved over. However, we have some requirements that none of the Powered by Maven projects I've managed to find seem to handle. First, we're making a home-user sort of application. Ideally, we want os-native executables to be launching this app. We can generate the executables using ant tasks, for the most part, but I'm not sure how to integrate this into our build. Second, and as a consequence of that, we want to create cross-platform installers that will perform a seamless installation of our application, along with its dependencies. To this end, we need some way of toting all of our dependencies with us in the distribution jar file, or something equivalent. From what I can see of the projects that are powered by Maven, none of them seem to use this sort of setup, and documentation is somewhat hard to come by. Can anyone using Maven tell me how they got those two things together? -- Chris R. == Not to be taken literally, internally, or seriously. - 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]
resource within jar is not being found
Hello out there, I am having a problem I am not sure is directly related to maven, so forgive me if it is not. I have 2 projects A and B. A depends on B. When I am running tests in B it is not finding stuff into A-1.0.jar. More specifically an xml file needed. This is happening although the jar exists and maven seems to be looking for it in the right place using the following uri: C:\Documents and Settings\edovale\.maven\repository\A\jars\A-1.0.jar!\resource.xml (The system cannot find the path specified) I have checked the content of the jar and the resource.xml file is where it is suppose to be, still it is not been found, As a matter of fact, nothing is been found into this jar file. Any clue as to where to look to solve this issue? I am using maven 1.2
Re: merging maven errors' in CruiseControl
Yes, actually, I'll admit that I've seen some errors as well. I've seen Maven tank due to a hotspot error and also due to an out of memory, but the build be considered positive. I haven't had a chance to actually work through it. However, for most standard maven build failures, CC has always worked for me. Eric On Jun 15, 2005, at 11:03 AM, David Jackman wrote: I've actually noticed several times when a build went bad for some reason, but Maven indicated that the build was successful. This caused problems with CruiseControl especially. Clearly, these are bugs that need to be resolved, so I will try to take some notes in the future so I can report specifics. ..David.. -Original Message- From: Eric Pugh [mailto:[EMAIL PROTECTED] Sent: Tue 6/14/2005 10:10 AM To: Maven Users List Subject: Re: merging maven errors' in CruiseControl Are you using 2.2.1 of CC? It works fine there. This would be a better question on the CC users's list.. Eric On Jun 9, 2005, at 8:05 AM, Chedly GUERFALI wrote: Hello all, I would like to know if there is a way for merging the real maven buid failed messages throw CruiseControl. It always reports Build Successful even if the build has failed Thank you in advance. Chedly If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/ email_terms/ - 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]
RE: Native dependencies
Hi is there a good example on how to migrate a plugin in jelly from maven 1 to a mojo+marmelade (M2) and jelly wrapper (M1). Regards Mark -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 1:26 AM To: Maven Users List; dan tran Subject: Re: Native dependencies One of the best thing about Java mojos too, is that as long as you don't tie it to any M2 APIs (or are prepared to translate the resulting objects), you can also wrap them in a thin Jelly plugin for use in Maven 1 and maintain one codebase. We'll be moving more of the Maven1 plugins towards this model as the M2 plugins mature. - Brett On 6/14/05, dan tran [EMAIL PROTECTED] wrote: I may be wrong, but i think the reason of cpptasks is not maintainable because it tries to know too much. If I am going to convert it to M2 mojo, i will just try to make it to replace 'make' functionality and leave the compiler and linker settings to the user. After that, we may have ton of independent add-ins (MOJO) for compiler specifics. thoughts? -D On 6/14/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Dan (and others), a port to M2, whenever we migrate to it. This all depends on how stable and goo M2 is. Have not investigated yet. The current NAR plugin could do with some improvements. The jelly script is around 50 Kbytes, and could be more easily written in Java. There are a lot of properties used, of which I have no idea where they go in M2. I did make my own improvements to cpptasks, and reported some of them: new compilers, some options changed, etc. The cpptasks system is usable and quite ok I think, just not maintained (very well). Let me know. Mark -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 12:05 AM To: Maven Users List Subject: Re: Native dependencies Mark, Do you plan to port your plugin to M2? I think cpp-task is basically dead, I ended up to maintain cpptask with my own changes to support more option. Perhaps we can team up to merge cpptask into M2 mojo -D On 6/13/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi we found the maven-native-plugin limited in its functionality, especially where it concerns: 1. true cross-platform development 2. declaring dependencies on other native libraries so, we developed our own. Feel free to have a look, and use it: http://java.freehep.org/freehep-nar-plugin builds, unpacks and distributes Native Archives. Its not complete, see the issues in JIRA, but we are getting there. Regards Mark Donszelmann -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 2:07 PM To: Maven Users List Subject: Re: Native dependencies In case you are going to build native code, take a look at maven-native-plugin -D On 6/13/05, Grant Ingersoll [EMAIL PROTECTED] wrote: Will give it a try. I am targeting Windows and *nix. Am new to Maven, so will have to go figure out the pregoal stuff (ironically, I was just looking into that for something else!) [EMAIL PROTECTED] 6/13/2005 3:44:55 PM - put the native files under your local repo - add them to your dependencies list At run time system use pregoal to add the native files to a localtion understand by your system, ORuse some sort of environment valiable to add your file to linkage path What OS are you targeting? -D On 6/13/05, Grant Ingersoll [EMAIL PROTECTED] wrote: Hi, I have a 3rd party JAR that requires a native library. How do I specify the dependency such that the native library gets put in a place where I can link with it at runtime? Thanks, Grant Ingersoll - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
[m2] error downloading resources:resources
I'm getting the following error when I try to run any goal using maven. [INFO] [INFO] Building interlace.util [INFO] [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] [resources:resources] Downloading: http://repo1.maven.org/maven2/resources/resources/1.0/resources-1.0.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Main Error: Unable to download the artifact from any repository resources:resources:1.0:pom from the specified remote repositories: http://repo1.maven.org/maven2 Root error: Unable to download the artifact from any repository [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jun 15 14:24:40 PDT 2005 [INFO] Final Memory: 1M/2M [INFO] It appears to be an issue when I have the commons-configuration dependency in my pom file. dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration/artifactId version1.1/version /dependency If I comment this out, it works past this, but fails since I need this to compile.
Re: Native dependencies
These are the sort of things we will aim to write closer to the final release, but if you do take a stab at it, we'd be happy to use your experiences and help you along the way. Thanks, Brett On 6/16/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi is there a good example on how to migrate a plugin in jelly from maven 1 to a mojo+marmelade (M2) and jelly wrapper (M1). Regards Mark -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 1:26 AM To: Maven Users List; dan tran Subject: Re: Native dependencies One of the best thing about Java mojos too, is that as long as you don't tie it to any M2 APIs (or are prepared to translate the resulting objects), you can also wrap them in a thin Jelly plugin for use in Maven 1 and maintain one codebase. We'll be moving more of the Maven1 plugins towards this model as the M2 plugins mature. - Brett On 6/14/05, dan tran [EMAIL PROTECTED] wrote: I may be wrong, but i think the reason of cpptasks is not maintainable because it tries to know too much. If I am going to convert it to M2 mojo, i will just try to make it to replace 'make' functionality and leave the compiler and linker settings to the user. After that, we may have ton of independent add-ins (MOJO) for compiler specifics. thoughts? -D On 6/14/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Dan (and others), a port to M2, whenever we migrate to it. This all depends on how stable and goo M2 is. Have not investigated yet. The current NAR plugin could do with some improvements. The jelly script is around 50 Kbytes, and could be more easily written in Java. There are a lot of properties used, of which I have no idea where they go in M2. I did make my own improvements to cpptasks, and reported some of them: new compilers, some options changed, etc. The cpptasks system is usable and quite ok I think, just not maintained (very well). Let me know. Mark -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 14, 2005 12:05 AM To: Maven Users List Subject: Re: Native dependencies Mark, Do you plan to port your plugin to M2? I think cpp-task is basically dead, I ended up to maintain cpptask with my own changes to support more option. Perhaps we can team up to merge cpptask into M2 mojo -D On 6/13/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi we found the maven-native-plugin limited in its functionality, especially where it concerns: 1. true cross-platform development 2. declaring dependencies on other native libraries so, we developed our own. Feel free to have a look, and use it: http://java.freehep.org/freehep-nar-plugin builds, unpacks and distributes Native Archives. Its not complete, see the issues in JIRA, but we are getting there. Regards Mark Donszelmann -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, June 13, 2005 2:07 PM To: Maven Users List Subject: Re: Native dependencies In case you are going to build native code, take a look at maven-native-plugin -D On 6/13/05, Grant Ingersoll [EMAIL PROTECTED] wrote: Will give it a try. I am targeting Windows and *nix. Am new to Maven, so will have to go figure out the pregoal stuff (ironically, I was just looking into that for something else!) [EMAIL PROTECTED] 6/13/2005 3:44:55 PM - put the native files under your local repo - add them to your dependencies list At run time system use pregoal to add the native files to a localtion understand by your system, ORuse some sort of environment valiable to add your file to linkage path What OS are you targeting? -D On 6/13/05, Grant Ingersoll [EMAIL PROTECTED] wrote: Hi, I have a 3rd party JAR that requires a native library. How do I specify the dependency such that the native library gets put in a place where I can link with it at runtime? Thanks, Grant Ingersoll - 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:
Re: [m2] error downloading resources:resources
Thankyou. We will fix the commons-configuration data. You can also edit it in your local repository (eg ~/.m2/repository/commons-configuration/commons-configuration/1.1/commons-configuration-1.1.pom) to comment out the reosurces dependency. In the next release, you could also add an exclusion to the dependency. - Brett On 6/16/05, Anil Arora [EMAIL PROTECTED] wrote: I'm getting the following error when I try to run any goal using maven. [INFO] [INFO] Building interlace.util [INFO] [INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-resources-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] [resources:resources] Downloading: http://repo1.maven.org/maven2/resources/resources/1.0/resources-1.0.pom [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Main Error: Unable to download the artifact from any repository resources:resources:1.0:pom from the specified remote repositories: http://repo1.maven.org/maven2 Root error: Unable to download the artifact from any repository [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jun 15 14:24:40 PDT 2005 [INFO] Final Memory: 1M/2M [INFO] It appears to be an issue when I have the commons-configuration dependency in my pom file. dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration/artifactId version1.1/version /dependency If I comment this out, it works past this, but fails since I need this to compile. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]