Re: A maven-war-plugin question

2011-05-20 Thread Anders Hammar
Put the META-INF folder structure in src/main/webapp. Not in src/main/resources. You should then be able to remove all your special configuration, which is a clear sign of being on the right track. /Anders On Fri, May 20, 2011 at 02:02, dpaily dpa...@sonypictures.com wrote: I'm using

Re: Assembly Advice

2011-05-20 Thread Marc Rohlfs
On 18/05/11 18:49, Eric Kolotyluk wrote: My current structure is +-- pom.xml ! +--- mod1 +--- mod2 needs an assembly and depends on mod1 mod3 +--- mod3 +--- mod4 needs an assembly and depends on mod1 mod3 Executing the assembly plugin in mod2 and mod4 should work. I did this in many builds

Re: overriding properties via -D

2011-05-20 Thread Maxime Gréau
It works fine for me, I had a test with Maven 3.0.2 and the following POM : project ... properties prop.to.override111/prop.to.override /properties profiles profile idprofile-test/id properties prop.to.override444/prop.to.override /properties

Re: Problem in delpoying an external jar to the local repo

2011-05-20 Thread Wendy Smoak
On Fri, May 20, 2011 at 1:00 AM, uday shankar adonis.u...@gmail.com wrote: Hi Rafael, This is the command i used : mvn install:install-file -Dfile=D:\Ota_Sonata.jar -DgroupId=org.mule.modules -DartifactId=Ota_Sonata -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true after deploying with this

Re: Problem in delpoying an external jar to the local repo

2011-05-20 Thread uday shankar
Hi Wendy, Generally how does one decide the groupid? Can it be any value? Here I gave the group id asorg.mule.modules I just decided on this group Id randomly I just wanted to put the jar in some folder so I chose this, are there any guidelines which are to be followed while selecting a

Re: Problem in delpoying an external jar to the local repo

2011-05-20 Thread Rafael Vanderlei
Are you running mvn install:install-file and mvn package in the same machine? mvn install only put artifacts into the local repo and if you are trying to package from another machine (other developer's or CI's machine) then it will not find the artifact there. 1. Check your local repo and see if

Re: eclipse : [WARNING] build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing

2011-05-20 Thread ganeshgk.ind
So what did you give as the plugin version ?? Maven version number..? I'm a little confused... -- View this message in context: http://maven.40175.n5.nabble.com/eclipse-WARNING-build-plugins-plugin-version-for-org-apache-maven-plugins-maven-compiler-plugin-is-mg-tp3318900p4412500.html Sent from

RE: overriding properties via -D

2011-05-20 Thread EJ Ciramella
Huh - what version of maven are you using? Is this part of the resources plugin or is this core maven that does this? (I'm wondering if somewhere we have some wonky old plugin configured) -Original Message- From: Maxime Gréau [mailto:greaumax...@gmail.com] Sent: Friday, May 20, 2011

How do I pass a shell expression into exec arg?

2011-05-20 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I'm running an Ant-run exec command. plugin artifactIdmaven-antrun-plugin/artifactId executions execution

Assembly not picking up snapshots

2011-05-20 Thread Randall Fidler
Hello, I've got an assembly that runs at the parent level for a multi-module project. Let me preface by saying this setup works fine with Maven 2.x, going to Maven 3.0.3 the issue appeared. Anyhow, we have dependency and if we have it set to a snapshot the package goal runs fine but

Re: A maven-war-plugin question

2011-05-20 Thread Russ Tremain
I think your real question might be, who is putting this stuff in my WEB-INF/classes dir? It is the resources plugin, as commanded by the war-plugin. therefore, you would add a buildresources element to prevent this. Below is a trivial example. /r ==

maven plugin quick question

2011-05-20 Thread EJ Ciramella
Hi all - I'm developing a plugin for generating images for the background of an installer (or honestly, for whatever other purpose you need it for). Out of curiosity - would anyone else need something like this? So far, it can insert an infinite amount of (user configurable with an optional

Looking for a pom property that stores the deploy URL

2011-05-20 Thread Freeman, Brian
Hi, Sorry to bother everyone, but I've looked online and have been looking at the Maven source code for a while and still haven't figured this out. Any help you could give is greatly appreciated! Here is my issue: I am currently using Maven with Nexus to save our build artifacts. After we

Re: Looking for a pom property that stores the deploy URL

2011-05-20 Thread Anders Hammar
No. But I do know a Nexus specific url (REST call) which you can use by populating it with groupId, artifactId and version [1]. /Anders [1] https://docs.sonatype.com/display/SPRTNXOSS/Nexus+FAQ#NexusFAQ-Q.HowcanIretrieveasnapshotifIdon%27tknowtheexactfilename%3F On Fri, May 20, 2011 at 23:02,

Re: Looking for a pom property that stores the deploy URL

2011-05-20 Thread Wendy Smoak
On Fri, May 20, 2011 at 5:02 PM, Freeman, Brian brian.free...@libertymutual.com wrote: Here is my issue: I am currently using Maven with Nexus to save our build artifacts.  After we create the artifact and it has been deployed out to Nexus I would like to run an Ant script that we use to

How to define local repository path in settings.xml or pom.xml?

2011-05-20 Thread Petr V.
I am trying to define local repository path in settings.xml on Windows. I have a windows environment variable CODE_BASE=C:\mycode In settings.xml , I put localRepository${env.CODE_BASE}\build\local_depot/localRepository But it does not read environment variable. How can I read environment

Re: How to define local repository path in settings.xml or pom.xml?

2011-05-20 Thread Petr V.
I have figured out the way to use {env.CODE_BASE} but for that each user will have to change their settings.xml. Is there a way, I can define localRepository in project pom file instead of settings.xml so that user does not have to define environment variable and edit their settings.xml.

Re: How to define local repository path in settings.xml or pom.xml?

2011-05-20 Thread Brian Topping
Can you describe more about what you are specifically trying to accomplish? Maybe the list can help better that way. In general, the location of the repository should not matter. One of the beautiful things about Maven is it manages the location per machine automatically. There's no need to

Re: How to define local repository path in settings.xml or pom.xml?

2011-05-20 Thread Petr V.
Thanks Brian for your reply. Our developers work on several projects at same time using same machine. What we want is that when they build the particular project then every thing related to project goes to its own build directory (lot of output other than jars) instead of putting every thing

Re: How to define local repository path in settings.xml or pom.xml?

2011-05-20 Thread Russ Tremain
AFAIK there is no way to do this in settings.xml. It is a chicken egg problem that has never been effectively solved in maven. What you can do, is pass the repository location in as a property. Typically I create an alias (or a .bat file on windows): alias svmn mvn