Re: Dependency Plugin behavior changed to copy timestamped snapshot jars

2011-07-18 Thread Reinhard Nägele
I can switch back and forth between versions 2.1, 2.2, and 2.3. With 2.1 I don't get timestamped snapshots, with 2.2 and 2.3 I do get timestamped snapshots for artifacts that don't come from the reactor. The snapshots were deployed with Maven 3 to our Nexus server. I think, the fact that you

Maven project can't access class file.

2011-07-18 Thread Jeff Bennett
Hello All, I've been Googling frantically trying to figure out what the problem is with my project, and nothing has answered my question so far. The error I'm getting is: COMPILATION ERROR : -

Aggregation vs Inheritance

2011-07-18 Thread Julien Martin
Hello, I am not sure whether to choose inheritance or aggregation or both for my maven project. I have a domain module which contains entity classes. I have a service module which contains spring services and daos and finally I have a web module . Can anyone provide guidelines please? Regards,

Re: Aggregation vs Inheritance

2011-07-18 Thread Anders Hammar
You most likely would like a parent project (inheritance) where you define and control common stuff, like plugin configuration. Then you also most likely want to an aggregating project to simplify build. Both could be combined in the same Maven project. /Anders On Mon, Jul 18, 2011 at 18:52,

Re: Aggregation vs Inheritance

2011-07-18 Thread Julien Martin
thanks Anders. that's what I am going to do. 2011/7/18 Anders Hammar and...@hammar.net You most likely would like a parent project (inheritance) where you define and control common stuff, like plugin configuration. Then you also most likely want to an aggregating project to simplify build.

Maven 2/3 and Cobetura plugin with both TestNG and JUnit tests (with Surefire plugin configuration)

2011-07-18 Thread Larry Shatzer, Jr.
I have an example project at https://gist.github.com/1090223 This project has both a JUnit test and a TestNG test. Following some instructions online to get surefire be able to run both I added lines 19-45 in the pom. This works fine when running mvn test, except it runs the TestNG tests twice.

When to use pluginManagement

2011-07-18 Thread kanesee
Can someone explain to me or point me to a page that explains what the pluginManagement is and when it needs to be included? In some examples I see: build pluginManagement plugins ... In other examples I see: build plugins ... What's the difference? And how do you know when you

Re: Maven project can't access class file.

2011-07-18 Thread Barrie Treloar
I can't see anything wrong with what you are doing so far. Is this code on an accessible repository? A stupid thing to ask, but there is an import statement for JCasAnnotator_ImplBase in FileAnnotator? - To unsubscribe, e-mail:

Re: When to use pluginManagement

2011-07-18 Thread Benson Margulies
I don't have a reference handy, but I can explain it. I'll use xpath syntax to talk about where things are. If you put a plugin/ into /project/build/plugins, then you are asking for an execution whenever you run maven. If you put it into /project/build/pluginManagement/plugins, then you are

Re: When to use pluginManagement

2011-07-18 Thread kanesee
Thanks. That cleared it up. -- View this message in context: http://maven.40175.n5.nabble.com/When-to-use-pluginManagement-tp4610500p4610553.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe,

Re: Archiva vs. Nexus

2011-07-18 Thread Rajesh Koilpillai
They are competing and Apache Archiva works just fine with minimal configuration. On Sun, Jul 17, 2011 at 3:55 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: competing - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other

Error during release:perform with multi-module git project on Windows

2011-07-18 Thread Josh Stone
I have a multi-module project that uses a git repo. When I do a release:perform I get the following error from git: [INFO] Executing: cmd.exe /X /C git add -- pom.xml D:\Dev\maven-git-testcase\child\pom.xml [INFO] Working directory: d:\dev\maven-git-testcase [INFO]

Using maven shade plugin on provided dependencies

2011-07-18 Thread Josh Stone
Is there a way to have the Maven Shade plugin operate on dependencies that are provided scoped? It appears that when I change the scope on my dependencies to provided, the shade plugin no longer picks them up. Thanks, Josh