Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-19 Thread Jim Collings
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:

File name filtering in maven-archetype plugin

2010-02-19 Thread Aleksey Didik
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

Re: File name filtering in maven-archetype plugin

2010-02-19 Thread Adam Leggett (UPCO)
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

Assemble a jar with dependent jars next to it

2010-02-19 Thread Yaakov Chaikin
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

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Anders Hammar
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

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread 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 Hammar and...@hammar.net wrote: I think this is what you're looking

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Aleksey Didik
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

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Aleksey Didik
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.

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Yaakov Chaikin
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

Re: deploy large file to nexus requires huge memory

2010-02-19 Thread Dan Tran
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

Re: API to find effective-direct dependencies

2010-02-19 Thread lukewpatterson
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

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread eyal edri
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

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Stephen Connolly
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

Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-19 Thread Jim Collings
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

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Simone Tripodi
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,

Re: not able to get maven war plugin to filter out unwanted resources from my .war file.

2010-02-19 Thread buildlackey
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

Re: not able to get maven war plugin to filter out unwanted resources from my .war file.

2010-02-19 Thread Stephen Connolly
[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)

Re: not able to get maven war plugin to filter out unwanted resources from my .war file.

2010-02-19 Thread Stephen Connolly
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

Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Yaakov Chaikin
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

Re: not able to get maven war plugin to filter out unwanted resources from my .war file.

2010-02-19 Thread Wayne Fay
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

[ANNOUNCEMENT] - Maven License Verifier Plugin 0.2-SNAPSHOT

2010-02-19 Thread Karl Heinz Marbaise
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

Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-19 Thread Anders Hammar
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

Simple profile question

2010-02-19 Thread Collin Peters
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

Re: not able to get maven war plugin to filter out unwanted resources from my .war file.

2010-02-19 Thread buildlackey
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)

Execute an ant task, but in any phase... just the task

2010-02-19 Thread Teimatini Marín
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

Re: Simple profile question

2010-02-19 Thread Tobias Gierke
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

Re: Execute an ant task, but in any phase... just the task

2010-02-19 Thread Wayne Fay
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

Re: Execute an ant task, but in any phase... just the task

2010-02-19 Thread Teimatini Marín
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

Adding a repository to the settings.xml

2010-02-19 Thread Stephane Eybert
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