AW: sequence of plugin execution

2008-10-10 Thread Wolfgang.Winter
I want to download artifacts with dependency plugin and then do some work on them with a self-made plugin. Of cause I must be sure that they are first downloaded before I can work on them. Wolfgang Answer to question 1: No, you can't control in which order the plugins in a specific phase run.

Issue with netbeans and maven2

2008-10-10 Thread Julien Stern
Hi list, I hope this is the right place to query about this issue. We have a Maven2 project that is displayed as Badly formed maven project (unknown). After a (lot) of trial and errors, we manage to locate the source of the problem. We have one plugin (homemade) that uses

Re: Issue with netbeans and maven2

2008-10-10 Thread Milos Kleint
what version of maven support in netbeans you have? I suggest you try the 6.5 development builds (we're close to RC1, so the stability is pretty good), and instal the 4.0.x version of maven support from the update center. I recall I've done some fixes in this area, but still usecases still fails.

Re: Issue with netbeans and maven2

2008-10-10 Thread Baptiste MATHUS
Hi, Well, to tackle the potential maven-netbeans integration problem, I guess you tested your project outside NB? What does it say? Which version of maven is it? Which maven-integration are you using? Did you specify the referenced maven xsd? CheerS. 2008/10/10 Julien Stern [EMAIL PROTECTED]

Re: Issue with netbeans and maven2

2008-10-10 Thread Julien Stern
Milos Kleint wrote: what version of maven support in netbeans you have? Milos, NetBeans IDE 6.1 (Build 200805300101) Maven: 3.1.4 I suggest you try the 6.5 development builds (we're close to RC1, so the stability is pretty good), and instal the 4.0.x version of maven support from the update

Re: Issue with netbeans and maven2

2008-10-10 Thread Julien Stern
Baptiste MATHUS wrote: Hi, Well, to tackle the potential maven-netbeans integration problem, I guess you tested your project outside NB? What does it say? Which version of maven is it? Which maven-integration are you using? Did you specify the referenced maven xsd? Baptiste, thanks for your

Re: Issue with netbeans and maven2

2008-10-10 Thread Baptiste MATHUS
2008/10/10 Julien Stern [EMAIL PROTECTED] Milos Kleint wrote: what version of maven support in netbeans you have? Milos, NetBeans IDE 6.1 (Build 200805300101) Maven: 3.1.4 Well, from what I know, this version of maven does not exist. Maven 3.x is still in active development state. So,

Re: Issue with netbeans and maven2

2008-10-10 Thread Julien Stern
Baptiste MATHUS wrote: 2008/10/10 Julien Stern [EMAIL PROTECTED] Milos Kleint wrote: what version of maven support in netbeans you have? Milos, NetBeans IDE 6.1 (Build 200805300101) Maven: 3.1.4 Well, from what I know, this version of maven does not exist. Maven 3.x is still in active

Re: Best practice for branching projects?

2008-10-10 Thread Simone Gianni
Hi Stefan, I have not used it by myself, but that SHOULD be possible using different main projects for different customers. In fact, you should be able to do something like this : - You will have a main artifact for your project, the root of your dependency tree. - The you will have a number of

Re: -target 1.6 nor supported on MAC OSX

2008-10-10 Thread Stevo Slavić
Hello Julian, If you have multiple JDK's installed, check your javac -version and your environment variables. Regards, Stevo. On Wed, Oct 1, 2008 at 7:43 PM, Julian Exenberger [EMAIL PROTECTED]wrote: Hi I'm having this issue with the Maven compiler on JSE6.0 update 2 on MAC OSX: javac:

-target 1.6 nor supported on MAC OSX

2008-10-10 Thread Julian Exenberger
Hi I'm having this issue with the Maven compiler on JSE6.0 update 2 on MAC OSX: javac: invalid target release: 1.6 This works fine on Windows and Ubuntu, and works if I set the target to 1.5 Can anyone help. Thanks -

Re: Issue with netbeans and maven2

2008-10-10 Thread Julien Stern
Milos, oh well, we just tested with the daily NB snapshot and maven-integration 4.0.5. We still have the same issue. The crux of the issue is really the extensionstrue/extensions within a plugin configuration e.g.: build plugins plugin groupIdour.group.id/groupId

Re: Issue with netbeans and maven2

2008-10-10 Thread Milos Kleint
do you explicitly declare a version or you stick with RELEASE, LATEST or not defined? The workaround mentioned in the issues suggests to put explicit versions there. If your's is different, it's probably not a duplicate but something related only. It might also be important where the plugin is

Re: Issue with netbeans and maven2

2008-10-10 Thread Julien Stern
Milos, we use ONLY explicits versions in ALL poms. We want reproducible builds at all times ;) We do use dependencyManagement and pluginManagement a lot though. Specifically, the simplest project that fails is like this: - We have the top-level pom and the actual project pom. - The plugin

symlink in my webapp

2008-10-10 Thread Attila Ravai
Hello All, I tried to add a symlink to a folder today in my webapp folder and after running maven2 I saw that in the target I have now a duplicated folder instead of a symlink to the other folder. Is there a way to tell maven to copy symlinks as files? thanks, Janos

Re: symlink in my webapp

2008-10-10 Thread Wayne Fay
No. Java doesn't know about symlinks, therefore Maven2 does not either. Perhaps Java7 will address this. Wayne On Fri, Oct 10, 2008 at 10:46 AM, Attila Ravai [EMAIL PROTECTED] wrote: Hello All, I tried to add a symlink to a folder today in my webapp folder and after running maven2 I saw

Re: symlink in my webapp

2008-10-10 Thread Stephen Connolly
or you could use jna.dev.java.net which can support them Sent from my iPod On 10 Oct 2008, at 18:51, Wayne Fay [EMAIL PROTECTED] wrote: No. Java doesn't know about symlinks, therefore Maven2 does not either. Perhaps Java7 will address this. Wayne On Fri, Oct 10, 2008 at 10:46 AM, Attila

maven ant tasks and remote repository in pom

2008-10-10 Thread will vuong
if i have a pom.xml that i refer to in my ant build.xml and that pom.xml declares a remote repo, does the maven ant task use the pom's remote repo? or do i also have to declare the remote repo inside the build.xml? thanks for the clarification. -- View this message in context:

Re: Issue with netbeans and maven2

2008-10-10 Thread Milos Kleint
I assume your plugin is not in central repository. I recall there is/was an issue with extensions beling looked for in wrong repository (typically just repo1) instead of the declared ones. But that all shall start working once you've built the project once, so I assume it's not your case. If you

Re: Launching more than one program

2008-10-10 Thread Trevor Harmon
As a follow-up to this thread, I found a perfect example of the use case I'm talking about, and it's in the Maven book itself. Take a look at the end of section 7.9: http://www.sonatype.com/book/reference/multimodule-web-spring.html#d0e8066 Here, the author is launching a command-line

maven always wants to download pom?

2008-10-10 Thread Rusty Wright
Why is this happening? Every time I compile it's trying to download a pom for something I installed in my local repository. I have a directory COPY_TO_REPO in my project: ./COPY_TO_REPO: copy.sh edtftpj-pro-2.1.0.jar license-1.0.jar What's in copy.sh is what I got from the documentation

Re: maven always wants to download pom?

2008-10-10 Thread Wayne Fay
Depending on the version of the install plugin that you used, the generatePom parameter is either true or false by default (IIRC). It seems like the version you are using has a false value. As such, reinstall the jar with the same mvn install:install-file command, but add -DgeneratePom=true to

Re: maven always wants to download pom?

2008-10-10 Thread Wendy Smoak
On Fri, Oct 10, 2008 at 2:04 PM, Rusty Wright [EMAIL PROTECTED] wrote: Why is this happening? Every time I compile it's trying to download a pom for something I installed in my local repository. It's trying to download the pom because you don't have the pom in your local repo. Change your

About wagon-jackrabit's webdav

2008-10-10 Thread Dan Tran
Hello, I am currently continue on with James Dumay's wagon-maven-plugin at MOJO's sanbox and running to issue invokes' Wagon:getFilelist() with wagon-webdav-jackrabbit The IT pom is at http://svn.codehaus.org/mojo/trunk/sandbox/wagon-maven-plugin/src/it/webdav The error is

RE: symlink in my webapp

2008-10-10 Thread Martin Gainty
you're asking a java class in the apps layer to manipulate a feature of the OS below it I would suggest using an ant copy *.lnk in a suitable goal to target with something like goal name=copy description=Copies the ProjectObjectModel to a directory/ !-- Basic Ant task -- copy

Re: -target 1.6 nor supported on MAC OSX

2008-10-10 Thread Stephen Coy
Java 6 only works on 64bit Intel Macs (ie Intel Core 2 Duo), and not by default. You need to configure JAVA_HOME to point at /System/Library/Frameworks/ JavaVM.framework/Versions/1.6.0/Home and your PATH to /System/Library/ Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin. Cheers, On

Re: maven always wants to download pom?

2008-10-10 Thread Rusty Wright
Thanks Wayne and Wendy; that was it. Sorry, I was wrong about using the web site's documentation; the maven command I'm using in my copy.sh is the one from the error message from maven when it can't find the artifact: Downloading:

Re: How to rename or copy resource files when packaging war-file

2008-10-10 Thread Stephen Coy
I agree with the other guys in that it is way better to externalise your configuration. In the meantime, it is probably easier to put each foo.xml in different directories, say src/main/resources-prod and src/main/ resources-dev. Then use profiles to select different build configurations.

Re: maven ant tasks and remote repository in pom

2008-10-10 Thread Hervé BOUTEMY
Le vendredi 10 octobre 2008, will vuong a écrit : if i have a pom.xml that i refer to in my ant build.xml and that pom.xml declares a remote repo, does the maven ant task use the pom's remote repo? or do i also have to declare the remote repo inside the build.xml? thanks for the

Changing dependency in pom.xml using profiles

2008-10-10 Thread Lucie
This is defined pom.xml: dependency groupIdgroupId artifcactId${my.artifactId}/artifactId vesion/version /dependency I have a profile defined in profiles.xml to pass the ${my.artifactId} as a property at build time. This doesn't work - no value is passed. What may have caused to

Re: maven ant tasks and remote repository in pom

2008-10-10 Thread will vuong
i think it is a bug actually. i declare the remote repo in my pom.xml. then i go into my local repo cache and delete commons-logging, and then execute mvn dependency:list. maven goes to the proper repo. i deleted commons-logging again in my local repo again and then i run my ant build with

Re: maven ant tasks and remote repository in pom

2008-10-10 Thread Hervé BOUTEMY
Le samedi 11 octobre 2008, will vuong a écrit : i think it is a bug actually. i declare the remote repo in my pom.xml. then i go into my local repo cache and delete commons-logging, and then execute mvn dependency:list. maven goes to the proper repo. i deleted commons-logging again in my

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Brett Porter
2008/10/11 Dan Tran [EMAIL PROTECTED]: Hello, I am currently continue on with James Dumay's wagon-maven-plugin at MOJO's sanbox and running to issue invokes' Wagon:getFilelist() with wagon-webdav-jackrabbit The IT pom is at

Re: Changing dependency in pom.xml using profiles

2008-10-10 Thread Brett Porter
mvn help:effective-* will show the profiles actually used. This seems like a very bad idea for build reproducibility however - I wouldn't recommend it. - Brett 2008/10/11 Lucie [EMAIL PROTECTED]: This is defined pom.xml: dependency groupIdgroupId

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Dan Tran
No sure how to proceed. are you suggesting me to add jackrabt to my plugin;'s classpath? -D On Fri, Oct 10, 2008 at 7:23 PM, Brett Porter [EMAIL PROTECTED] wrote: 2008/10/11 Dan Tran [EMAIL PROTECTED]: Hello, I am currently continue on with James Dumay's wagon-maven-plugin at MOJO's sanbox

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Brett Porter
No, I think you need to add xerces, or find out why the jackrabbit version of those classes are being used instead of the patched version (there's also a chance that there is a new release of jackrabbit that includes the patch now - I haven't checked). - Brett 2008/10/11 Dan Tran [EMAIL

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Dan Tran
Ok, i added xerces to my plugin's classpath, still no go. still looking -D On Fri, Oct 10, 2008 at 7:45 PM, Brett Porter [EMAIL PROTECTED] wrote: No, I think you need to add xerces, or find out why the jackrabbit version of those classes are being used instead of the patched version

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Brett Porter
It will need to be added to the extensions. It really shouldn't be necessary though - what version of Maven are you using, and does the dav deployment work normally? - Brett 2008/10/11 Dan Tran [EMAIL PROTECTED]: Ok, i added xerces to my plugin's classpath, still no go. still

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Dan Tran
i am using 2.1-M2, have not tested with web deployment yet. However my IT test show i can download a single file using a dav url Any how, it turns how i need both xerces adn commons-collections in my extensions. but I now run into 2 issues: 1 getFileList from

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Brett Porter
At a very quick glance they both seem like bugs, yes. - Brett 2008/10/11 Dan Tran [EMAIL PROTECTED]: i am using 2.1-M2, have not tested with web deployment yet. However my IT test show i can download a single file using a dav url Any how, it turns how i need both xerces adn

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Oleg Gusakov
Dan, I have 2.1-M2-SNAPSHOT with Mercury wagon packaged into it for http/https/dav, if you are interested - http://people.apache.org/~ogusakov/repos/staging/org/apache/maven/apache-maven/2.1.0-M2-SNAPSHOT/apache-maven-2.1.0-M2-20081003.231722-1-bin.gz Thanks, Oleg Dan Tran wrote: i am

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Dan Tran
I dont have to declare mercury in extensions tag right? am I still use dav: for wagon url? -D On Fri, Oct 10, 2008 at 9:41 PM, Oleg Gusakov [EMAIL PROTECTED] wrote: Dan, I have 2.1-M2-SNAPSHOT with Mercury wagon packaged into it for http/https/dav, if you are interested -

Re: About wagon-jackrabit's webdav

2008-10-10 Thread Dan Tran
oleg I can't unpack it your maven dist -D On Fri, Oct 10, 2008 at 9:50 PM, Dan Tran [EMAIL PROTECTED] wrote: I dont have to declare mercury in extensions tag right? am I still use dav: for wagon url? -D On Fri, Oct 10, 2008 at 9:41 PM, Oleg Gusakov [EMAIL PROTECTED] wrote: Dan, I