Re: Deployment to Sun Weserver7 - Was: Deployment Properties file
Cargo supports Jetty and Tomcat, so it's not only for full Java EE containers no. /Anders OK, then I'll have a closer look. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
File name filtering in maven-archetype plugin
Hello all, I have some properties files in my maven archetype and I want to name it in real project as /artifactId.properties/ Is it possible to do? Create /${archetypeId}.properties /file in archetype project and use resourcesrc/main/properties/${artifactId}.properties/resource in archetype.xml is not work, as expected. May be anybody know solution? Thanks and best regards, Aleksey Didik.
Re: File name filtering in maven-archetype plugin
I blogged about how to do this here: http://blogs.mikeci.com/2010/01/14/working-with-custom-maven-archetypes-part-1/ See step four - filtering a file name. Cheers Adam On Fri, 2010-02-19 at 17:27 +0400, Aleksey Didik wrote: Hello all, I have some properties files in my maven archetype and I want to name it in real project as /artifactId.properties/ Is it possible to do? Create /${archetypeId}.properties /file in archetype project and use resourcesrc/main/properties/${artifactId}.properties/resource in archetype.xml is not work, as expected. May be anybody know solution? Thanks and best regards, Aleksey Didik. -- Adam Leggett Chief Architect Mike CI - Hosted Continuous Integration http://mikeci.com https://twitter.com/builtbyadam - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Assemble a jar with dependent jars next to it
Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikin yaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammar and...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikin yaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
We use plugin artifactIdmaven-jar-plugin/artifactId version2.2/version configuration archive manifestFiletarget/classes/META-INF/MANIFEST.MF/manifestFile manifest addClasspathtrue/addClasspath mainClass${main.class}/mainClass /manifest /archive /configuration /plugin with own assembly descriptor with dependencySets dependencySet outputDirectorylib/outputDirectory /dependencySet /dependencySets Assembly put jar + dependency jars into one folder and main jar manifest contains class-path with all dependencies. THT, Aleksey. 19.02.2010 18:07, Yaakov Chaikin пишет: Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
The way to put jar + dependencies jars in one folder is: assembly idbundle/id formats formatzip/format formattar.gz/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory//outputDirectory /dependencySet /dependencySets /assembly Aleksey. 19.02.2010 18:07, Yaakov Chaikin пишет: Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
Thanks! I'll try that out. Yaakov. On Fri, Feb 19, 2010 at 9:18 AM, Aleksey Didik di...@magenta-technology.ru wrote: The way to put jar + dependencies jars in one folder is: assembly idbundle/id formats formatzip/format formattar.gz/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory//outputDirectory /dependencySet /dependencySets /assembly Aleksey. 19.02.2010 18:07, Yaakov Chaikin пишет: Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: deploy large file to nexus requires huge memory
thanks Brett, I will give it a try -D On Thu, Feb 18, 2010 at 2:59 PM, Brett Porter br...@apache.org wrote: Yes, I've experienced the same. I'd need to check again, but my memory says this was being done in the JDK so couldn't be worked around. does using 'dav:http://' (effectively using httpclient instead) help? - Brett On 19/02/2010, at 7:31 AM, Dan Tran wrote: Hi I have to set my MAVEN_OPTS=-Xmx1024m in order to deploy 500M ISO file via http ( ie nexus ) Is it normal? I am using deploy-plugin 2.5 Thanks -Dan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: API to find effective-direct dependencies
ronatartifact wrote: How is this different from what Eclipse shows? Can you use their code from the Pom editor? Thanks, Ron, I'll look into that too. My initial investigations lead me to DependencyNode: org.apache.maven.shared.dependency.tree.DependencyNode It needs a few other components to be instantiated: org.apache.maven.shared.dependency.tree.DependencyTreeBuilder org.apache.maven.project.MavenProject org.apache.maven.artifact.repository.ArtifactRepository (local repository) org.apache.maven.artifact.factory.ArtifactFactory org.apache.maven.artifact.metadata.ArtifactMetadataSource org.apache.maven.artifact.resolver.filter.ArtifactFilter org.apache.maven.artifact.resolver.ArtifactCollector I need to check if those remain stable between Maven 2 and 3. If I find some answers, I'll post back. -- View this message in context: http://old.nabble.com/API-to-find-%22effective-direct%22-dependencies-tp27637812p27653141.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
you can also try the dependency:copy-dependencies plugin. it will copy all your dependencies jar to the folder you want (classpath). On Fri, Feb 19, 2010 at 4:20 PM, Yaakov Chaikin yaakov.chai...@gmail.comwrote: Thanks! I'll try that out. Yaakov. On Fri, Feb 19, 2010 at 9:18 AM, Aleksey Didik di...@magenta-technology.ru wrote: The way to put jar + dependencies jars in one folder is: assembly idbundle/id formats formatzip/format formattar.gz/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory//outputDirectory /dependencySet /dependencySets /assembly Aleksey. 19.02.2010 18:07, Yaakov Chaikin пишет: Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: Assemble a jar with dependent jars next to it
or perhaps you are after appassember-maven-plugin at mojo.codehaus.org On 19 February 2010 15:50, eyal edri eyal.e...@gmail.com wrote: you can also try the dependency:copy-dependencies plugin. it will copy all your dependencies jar to the folder you want (classpath). On Fri, Feb 19, 2010 at 4:20 PM, Yaakov Chaikin yaakov.chai...@gmail.com wrote: Thanks! I'll try that out. Yaakov. On Fri, Feb 19, 2010 at 9:18 AM, Aleksey Didik di...@magenta-technology.ru wrote: The way to put jar + dependencies jars in one folder is: assembly idbundle/id formats formatzip/format formattar.gz/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory//outputDirectory /dependencySet /dependencySets /assembly Aleksey. 19.02.2010 18:07, Yaakov Chaikin пишет: Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: Deployment to Sun Weserver7 - Was: Deployment Properties file
This looks pretty complex... then again maybe I had better look again after I've had more sleep. ;-) On Fri, Feb 19, 2010 at 6:51 AM, Jim Collings jlistn...@gmail.com wrote: Cargo supports Jetty and Tomcat, so it's not only for full Java EE containers no. /Anders OK, then I'll have a closer look. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
Hi all, even if the assembly in the jar-with-dependencies works fine, I'd suggest also the maven-shade-plugin[1], easy to configure and fast. All the best, Simo [1] http://maven.apache.org/plugins/maven-shade-plugin/ http://people.apache.org/~simonetripodi/ On Fri, Feb 19, 2010 at 5:28 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: or perhaps you are after appassember-maven-plugin at mojo.codehaus.org On 19 February 2010 15:50, eyal edri eyal.e...@gmail.com wrote: you can also try the dependency:copy-dependencies plugin. it will copy all your dependencies jar to the folder you want (classpath). On Fri, Feb 19, 2010 at 4:20 PM, Yaakov Chaikin yaakov.chai...@gmail.com wrote: Thanks! I'll try that out. Yaakov. On Fri, Feb 19, 2010 at 9:18 AM, Aleksey Didik di...@magenta-technology.ru wrote: The way to put jar + dependencies jars in one folder is: assembly idbundle/id formats formatzip/format formattar.gz/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory//outputDirectory /dependencySet /dependencySets /assembly Aleksey. 19.02.2010 18:07, Yaakov Chaikin пишет: Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: not able to get maven war plugin to filter out unwanted resources from my .war file.
well, i could attach an ant run script (that does the file moving) to the prepare-package phase... but unfortunately there is no post-package phase.. this means that if anyone runs 'package' the files would be moved from where they need to be during dev/test phases, and never moved back. for production .war's i strip out my environmental properties and deploy them separately, or let the server administrator deal with setting the properties... so some stuff has to be present on the classpath during dev, but not production. So, good idea in theory.. .but because of the lack of a post-package phase.. it opens the build script to behaving strangely. thanks in any case for your response ! chris -- Chris Bedford Founder Lead Lackey Build Lackey Labs: http://buildlackey.com Go Grails!: http://groovy.buildlackey.com Wayne Fay wrote: If anyone sees a problem with how i invoked the plugin, or knows of a work-around, please do let me know ! i'd be very grateful. Well... an obvious workaround would be to simply move the files to a directory not being packaged by Maven, or just delete them. I am guessing this is not acceptable for some reason. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/not-able-to-get-maven-war-plugin-to-filter-out-unwanted-resources-from-my-.war-file.-tp27649724p27656990.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: not able to get maven war plugin to filter out unwanted resources from my .war file.
[ASIDE] ehhh... you do know that if you run mvn integration-test then the post-integration-test phase will _never_ be run the correct solution to the above is to not run mvn integration-test but run mvn verify instead (and bonus, it's shorter) I only mention because you seem to (mistakenly) think having a post-package phase would help you [/ASIDE] Here is what I would do. I would have a second war module which has the test files and depend on your main module... the automatic war overlaying will ensure that your test war has the test resources in addition to the standard resources, and it leaves your main module un-sullied by the test stuff -Stephen On 19 February 2010 16:55, buildlackey chris.b@gmail.com wrote: well, i could attach an ant run script (that does the file moving) to the prepare-package phase... but unfortunately there is no post-package phase.. this means that if anyone runs 'package' the files would be moved from where they need to be during dev/test phases, and never moved back. for production .war's i strip out my environmental properties and deploy them separately, or let the server administrator deal with setting the properties... so some stuff has to be present on the classpath during dev, but not production. So, good idea in theory.. .but because of the lack of a post-package phase.. it opens the build script to behaving strangely. thanks in any case for your response ! chris -- Chris Bedford Founder Lead Lackey Build Lackey Labs: http://buildlackey.com Go Grails!: http://groovy.buildlackey.com Wayne Fay wrote: If anyone sees a problem with how i invoked the plugin, or knows of a work-around, please do let me know ! i'd be very grateful. Well... an obvious workaround would be to simply move the files to a directory not being packaged by Maven, or just delete them. I am guessing this is not acceptable for some reason. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/not-able-to-get-maven-war-plugin-to-filter-out-unwanted-resources-from-my-.war-file.-tp27649724p27656990.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: not able to get maven war plugin to filter out unwanted resources from my .war file.
On 19 February 2010 17:10, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Here is what I would do. I would have a second war module which has the test files and depend on your main module... the automatic war overlaying will ensure that your test war has the test resources in addition to the standard resources, and it leaves your main module un-sullied by the test stuff You could probably achieve the same thing with a second execution of war:war in your main project (only attaching with classifier test) but, that is distinctly un-maven-like (and therefore a bad plan^H^H^H^H^H^H^H^Hhack) -Stephen On 19 February 2010 16:55, buildlackey chris.b@gmail.com wrote: well, i could attach an ant run script (that does the file moving) to the prepare-package phase... but unfortunately there is no post-package phase.. this means that if anyone runs 'package' the files would be moved from where they need to be during dev/test phases, and never moved back. for production .war's i strip out my environmental properties and deploy them separately, or let the server administrator deal with setting the properties... so some stuff has to be present on the classpath during dev, but not production. So, good idea in theory.. .but because of the lack of a post-package phase.. it opens the build script to behaving strangely. thanks in any case for your response ! chris -- Chris Bedford Founder Lead Lackey Build Lackey Labs: http://buildlackey.com Go Grails!: http://groovy.buildlackey.com Wayne Fay wrote: If anyone sees a problem with how i invoked the plugin, or knows of a work-around, please do let me know ! i'd be very grateful. Well... an obvious workaround would be to simply move the files to a directory not being packaged by Maven, or just delete them. I am guessing this is not acceptable for some reason. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/not-able-to-get-maven-war-plugin-to-filter-out-unwanted-resources-from-my-.war-file.-tp27649724p27656990.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Assemble a jar with dependent jars next to it
Thank you all for the suggestions. Much appreciated! We finally got it to work the way we wanted using the first couple of suggestions that came in. Regards, Yaakov. On Fri, Feb 19, 2010 at 11:52 AM, Simone Tripodi simone.trip...@gmail.com wrote: Hi all, even if the assembly in the jar-with-dependencies works fine, I'd suggest also the maven-shade-plugin[1], easy to configure and fast. All the best, Simo [1] http://maven.apache.org/plugins/maven-shade-plugin/ http://people.apache.org/~simonetripodi/ On Fri, Feb 19, 2010 at 5:28 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: or perhaps you are after appassember-maven-plugin at mojo.codehaus.org On 19 February 2010 15:50, eyal edri eyal.e...@gmail.com wrote: you can also try the dependency:copy-dependencies plugin. it will copy all your dependencies jar to the folder you want (classpath). On Fri, Feb 19, 2010 at 4:20 PM, Yaakov Chaikin yaakov.chai...@gmail.com wrote: Thanks! I'll try that out. Yaakov. On Fri, Feb 19, 2010 at 9:18 AM, Aleksey Didik di...@magenta-technology.ru wrote: The way to put jar + dependencies jars in one folder is: assembly idbundle/id formats formatzip/format formattar.gz/format /formats includeBaseDirectoryfalse/includeBaseDirectory dependencySets dependencySet outputDirectory//outputDirectory /dependencySet /dependencySets /assembly Aleksey. 19.02.2010 18:07, Yaakov Chaikin пишет: Thanks, but what I am really looking for is jar + dependencies in lib folder type of outcome. Is there a way to tweak what is on that page to get assembly to produce that? Thanks, Yaakov. On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net wrote: I think this is what you're looking for: http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ /Anders On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote: Hi all, Tried Googling, but nothing that useful came up... I am pretty sure it's possible to do this though... I have a multi-module project and one of the modules is a standalone executable with dependencies on other modules as well as other 3rd party libraries. I need to run an assembly such that the executable module ends up as a JAR with Class-Path in its manifest pointing to all of its JAR dependencies and place all the other dependencies (whatever they are - I don't want to have to specify them all by hand in assembly.xml) should be brought into the same directory and the Class-Path should have relative path pointing to them. Does anyone have some snippets they can share to accomplish this? The assembly documentation is pretty thin so I would so much love to avoid trial-and-error pattern. Any help would be greatly appreciated. Thanks, Yaakov. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: not able to get maven war plugin to filter out unwanted resources from my .war file.
for production .war's i strip out my environmental properties and deploy them separately, or let the server administrator deal with setting the properties... so some stuff has to be present on the classpath during dev, but not production. If you used multiple war modules and war overlay to insert the properties into the ones for dev, this would give what you require. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT
Hi to all, i'm happy to announce that the first SNAPSHOT release is available of the Maven License Verifier Plugin. The Release 0.2-SNAPSHOT contains only basic functionality and is not intended for production usage. The intention is to check if everything is correctly configured on my site that it will work with other setup's as well and the basics are working. If you are willing to give it a try i appreciate feedback in any form...concerning the functionality or the documentation or enhancements etc. The plugin is available from the following SNAPSHOT Repository: http://oss.sonatype.org/content/repositories/snapshots/ The coordinates (GAV) are: plugin groupIdcom.soebes.maven.plugins.mlv/groupId artifactIdmaven-license-verifier-plugin/artifactId version0.2-SNAPSHOT/version /plugin The current state of the documentation is located at: http://site.supose.org/maven-licenses-verifier-plugin/ If you have any problems concerning the plugin give a mail on the list (or direct to me) or via issue tracker: http://www.supose.org/projects/show/mlv Kind regards Karl Heinz Marbaise Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/-ANNOUNCEMENTMaven-License-Verifier-Plugin-0.2-SNAPSHOT-tp27658754p27658754.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Deployment to Sun Weserver7 - Was: Deployment Properties file
I think you should try one of the Cargo mailing lists: http://cargo.codehaus.org/Mailing+Lists Here on the Maven user list we're more of users of Cargo than developers of it. /Anders On Fri, Feb 19, 2010 at 17:30, Jim Collings jlistn...@gmail.com wrote: This looks pretty complex... then again maybe I had better look again after I've had more sleep. ;-) On Fri, Feb 19, 2010 at 6:51 AM, Jim Collings jlistn...@gmail.com wrote: Cargo supports Jetty and Tomcat, so it's not only for full Java EE containers no. /Anders OK, then I'll have a closer look. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Simple profile question
At least I hope it is simple. I am struggling trying to accomplish what I thought would be a basic task If I have four profiles: A, B, C, and D. A should be active by default unless B is active and C should be active by default unless D is active. Is this possible? From what I understand activeByDefault profiles automatically deactivate if one other profile is active. So if I activate B, *both* A and C will deactivate. What I want to be able to do is to provide sensible defaults so developers don't need to know which profiles to activate on their local boxes (since 99% of the time they don't need to activate any profiles). However, the above scenario is example of where this breaks down quickly. Any pointers would be appreciated Regards, Collin Peters
Re: not able to get maven war plugin to filter out unwanted resources from my .war file.
Thanks very much to all of you for your help ! I have found a very simple answer, which suggests to me that CURRENT DOCUMENTATION IS MISSING AN IMPORTANT EXAMPLE.. how to exclude stuff from the default webapp directory. I will add this example to the maven user wiki.. but for closure (i think) on this topic, here is the trick i used: build finalNamefindFiles/finalName plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.1-beta-1/version configuration warSourceExcludes**/*.jsp/warSourceExcludes /configuration /plugin /plugins /build i'm attaching the entire sample project as well. regards . chris -- Chris Bedford Founder Lead Lackey Build Lackey Labs: http://buildlackey.com Go Grails!: http://groovy.buildlackey.com http://old.nabble.com/file/p27661695/excludeExample.tar.gz excludeExample.tar.gz -- View this message in context: http://old.nabble.com/not-able-to-get-maven-war-plugin-to-filter-out-unwanted-resources-from-my-.war-file.-tp27649724p27661695.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Execute an ant task, but in any phase... just the task
How can I execute the following ant task? I don't want to attach it to any phase... I only want to execute it from maven whenever I want... plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.3/version executions execution idftp/id configuration tasks echo message=ANT / ant antfile=build.xml target=deploy / /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies.../dependencies /plugin /plugins THANKS in advance. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Simple profile question
Collin Peters wrote: At least I hope it is simple. I am struggling trying to accomplish what I thought would be a basic task If I have four profiles: A, B, C, and D. A should be active by default unless B is active and C should be active by default unless D is active. Is this possible? From what I understand activeByDefault profiles automatically deactivate if one other profile is active. So if I activate B, *both* A and C will deactivate. What I want to be able to do is to provide sensible defaults so developers don't need to know which profiles to activate on their local boxes (since 99% of the time they don't need to activate any profiles). However, the above scenario is example of where this breaks down quickly. Any pointers would be appreciated Why do you need to have 4 different profiles ? Regards, Tobias Regards, Collin Peters - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Execute an ant task, but in any phase... just the task
How can I execute the following ant task? I don't want to attach it to any phase... I only want to execute it from maven whenever I want... Why bother using Maven in that case? Just call ant directly from the command line... Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Execute an ant task, but in any phase... just the task
If I execute the ant task from maven I don't need to download, install and configure Ant manually... Maven do it for me. That's the only reason. I would be great if could do something similar to this: mvn antrun:run -Dtarget=mytarget Thanks 2010/2/19 Wayne Fay wayne...@gmail.com: How can I execute the following ant task? I don't want to attach it to any phase... I only want to execute it from maven whenever I want... Why bother using Maven in that case? Just call ant directly from the command line... Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Adding a repository to the settings.xml
Dear all, I have a simple spring project and I'm trying to build it with maven. But it fails because a dependency is not resolved. Here is the message I get : Missing: -- 1) org.apache.velocity.tools:velocity-tools:jar:2.0-beta1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.velocity.tools -DartifactId=velocity-tools -Dversion=2.0-beta1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.velocity.tools -DartifactId=velocity-tools -Dversion=2.0-beta1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.stephane:spring-demo-server:jar:1.0-SNAPSHOT 2) org.apache.velocity.tools:velocity-tools:jar:2.0-beta1 2) javax.transaction:jta:jar:1.0.1B Try downloading the file manually from: http://java.sun.com/products/jta Then, install it using the command: mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.stephane:spring-demo-server:jar:1.0-SNAPSHOT 2) org.hibernate:hibernate:jar:3.2.0.ga 3) javax.transaction:jta:jar:1.0.1B 3) org.apache.velocity.tools:velocity-tools-view:jar:2.0-beta1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.velocity.tools -DartifactId=velocity-tools-view -Dversion=2.0-beta1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.velocity.tools -DartifactId=velocity-tools-view -Dversion=2.0-beta1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.stephane:spring-demo-server:jar:1.0-SNAPSHOT 2) org.apache.velocity.tools:velocity-tools-view:jar:2.0-beta1 -- 3 required artifacts are missing. I suppose I need to add a repository in my settings.xml file. At first my settings.xml file looked like : http://old.nabble.com/file/p27664272/settings.xml settings.xml So I tried this but it did not help : http://old.nabble.com/file/p27664272/new_settings.xml new_settings.xml Here is my pom.xmk file : http://old.nabble.com/file/p27664272/pom.xml pom.xml Any clue ? Thanks. -- View this message in context: http://old.nabble.com/Adding-a-repository-to-the-settings.xml-tp27664272p27664272.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org