Re: Dependency in the local repository is ignored

2012-03-06 Thread Martin Höller
Hi! On 06 Mär 2012, Alex wrote: > To build and install my jar into local repository I use just > "mvn clean", "mvn install" or from eclipse m2e's menu "install" > > to include my jar into the eclipse's ".classpath" file of the other project > I use: > mvn eclipse:clean > mvn eclipse:eclipse Are

Re: AbstractMavenLifecycleParticipant.afterSessionStart method not invoked

2012-03-06 Thread Tom Bujok
Exactly, that is the case. - afterSessionStart is a maven extension, - afterProjectRead is a project extension, which in the end is quite confusing… Tom On Mar 6, 2012, at 11:09 PM, Jeff MAURY wrote: > It seems quite confusing: Tycho is using this functionality and does not > require to be inst

Re: How to deploy with 'classifier'

2012-03-06 Thread Anders Hammar
One problem with multiple artifacts using classifier is that they will share the same pom, which makes them all having the same dependency set. This most often not desirable. /Anders (mobile) Den 7 mar 2012 03.05 skrev "sethcall" : > I've read this entire thread, and I'm not understanding the poi

Is it possible to tie current git branch to project version?

2012-03-06 Thread Seth Call
Hi there, I've seen indication when searching the internet that it isn't possible to put variables in of a project (unless those variables are hardcoded or provided at the command line), but I thought I'd ask the list ... Say there was a plugin that would invoke 'git branch' to determine the cu

Re: Preferring local repository over remote for 'work sessions'

2012-03-06 Thread Seth Call
It's not specific to Maven, but solving it is very much a developer workflow problem, and the trick is to find what's the lowest-impact way that Maven lets me solve this problem :) -- View this message in context: http://maven.40175.n5.nabble.com/Preferring-local-repository-over-remote-for-work-s

Re: Preferring local repository over remote for 'work sessions'

2012-03-06 Thread Seth Call
The http://mojo.codehaus.org/versions-maven-plugin/ is very close to the power tool I need, thanks for drawing my attention to it. The only thing I'm struggling with after reading that is this... I consider the 'locked' dependencies a developer-only pattern ( http://mojo.codehaus.org/versions-ma

Re: Preferring local repository over remote for 'work sessions'

2012-03-06 Thread Wayne Fay
> For the time being, project-c should use project-b from the local repository > because it's the latest 1.0-SNAPSHOT, right? Sure. > Ok. Assume that now, the build server builds a new 1.0-SNAPSHOT of > project-b.  From the documentation I've read on maven, project-c will now > resolve against th

Re: Preferring local repository over remote for 'work sessions'

2012-03-06 Thread Lyons, Roy
You could specify the timestamped version of the snapshot for the items you don't wish to get updates for. That should do what you are looking for. If I recall correctly, there is a maven versions plugin that can convert your open ended or vague versions into solid concrete timestamped ones.

Re: There is a way to download all the artifacts and dependencies for a given project without compiling

2012-03-06 Thread Wayne Fay
> Mvn dependency:go-offline -Dmaven.repo.local= > /some/folder/where/you/want/them.  That will download > all of the items needed including plugins. This only works if you have the project's pom file. Not helpful for this situation, as I understand it. Wayne -

Re: How to deploy with 'classifier'

2012-03-06 Thread sethcall
I've read this entire thread, and I'm not understanding the point about 'this is just now how it should be done' vs Billy's 'this is useful and it works' If using a classifier in the way Billy has is frowned upon... ok... I'll accept that for a second... but can anyone tell me a* concrete technic

Preferring local repository over remote for 'work sessions'

2012-03-06 Thread sethcall
I'm trying to understand how I can accomplish a particular workflow. First, some terms: org:project-a:1.0-SNAPSHOT org:project-b:1.0-SNAPSHOT org.project-c:1.0-SNAPSHOT DEPENDS_ON org.project-a:1.0-SNAPSHOT, org.project-b:1.0-SNAPSHOT Assume that we have a build server regularly building projec

Re: There is a way to download all the artifacts and dependencies for a given project without compiling

2012-03-06 Thread Lyons, Roy
Mvn dependency:go-offline -Dmaven.repo.local=/some/folder/where/you/want/them. That will download all of the items needed including plugins. Sent from my Blackberry. - Original Message - From: jose.nunez-zul...@barclayscapital.com To: users@maven.apache.org Sent: Tue Mar 06 15:52:14

Re: AbstractMavenLifecycleParticipant.afterSessionStart method not invoked

2012-03-06 Thread Jeff MAURY
It seems quite confusing: Tycho is using this functionality and does not require to be installed in M2_HOME/lib/ext. My understanding is the following: - for afterSessionStart, must be installed in M2_HOME/lib/ext - for afterProjectRead, can be an extension in the POM Jeff On Tue, Mar 6, 2012 at

RE: There is a way to download all the artifacts and dependencies for a given project without compiling

2012-03-06 Thread jose.nunez-zuleta
Thanks, that's a good start. --Jose -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Tuesday, March 06, 2012 4:45 PM To: Maven Users List Subject: Re: There is a way to download all the artifacts and dependencies for a given project without compiling > Let me rephra

Re: AbstractMavenLifecycleParticipant.afterSessionStart method not invoked

2012-03-06 Thread Olivier Lamy
2012/3/6 Tom Bujok : > Hi guys, > > I have implemented an AbstractMavenLifecycleParticipant to customize the > standard build behavior a bit. > The declaration of the participant looks like this: > > @Component(role = AbstractMavenLifecycleParticipant.class, hint = > "testParticipant") > public c

Re: There is a way to download all the artifacts and dependencies for a given project without compiling

2012-03-06 Thread Wayne Fay
> Let me rephrase the question to "it is possible to download all the artifacts > that belong > to a specific group and version without getting the master pom". Probably you could make something work with Aether API: http://www.sonatype.org/aether/ http://www.sonatype.com/people/category/aether/

RE: There is a way to download all the artifacts and dependencies for a given project without compiling

2012-03-06 Thread jose.nunez-zuleta
Let me rephrase the question to "it is possible to download all the artifacts that belong to a specific group and version without getting the master pom". --Jose -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Tuesday, March 06, 2012 4:24 PM To: Maven Users List Sub

Re: There is a way to download all the artifacts and dependencies for a given project without compiling

2012-03-06 Thread Wayne Fay
> Does anybody know if there is a way to download all the artifacts and > dependencies > for a project from the command line with maven without compiling the project > or > getting the master pom file? Not that I am aware of. How could you possibly know the dependencies for a project without hav

There is a way to download all the artifacts and dependencies for a given project without compiling

2012-03-06 Thread jose.nunez-zuleta
Hello all, Does anybody know if there is a way to download all the artifacts and dependencies for a project from the command line with maven without compiling the project or getting the master pom file? What about getting a list of artifacts using the coordinates (like groupid)? I guess one co

RE: EAR project produces application.xml, but EJB module is missing

2012-03-06 Thread Markus KARG
What do you mean with "maps to"? > -Original Message- > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] > Sent: Sonntag, 4. März 2012 13:01 > To: Maven Users List > Subject: Re: EAR project produces application.xml, but EJB module is > missing > > Because ejb type maps to

RE: Dependency in the local repository is ignored

2012-03-06 Thread Drury, Tim
If this is a multi-module project, and you run eclipse:eclipse, I'm fairly sure eclipse will resolve the dependency as a project dependency, not a library dependency. Look in your Build Path and select the Project tab to see if the dependent project is there. -Original Message- From: A

Re: Maven - Building a single war file from multiple modules

2012-03-06 Thread Ron Wheeler
A video on how to create a multi-module project in Eclipse and Maven. http://www.lordofthejars.com/2012/02/for-everything-i-long-to-do-no-matter.html Ron On 06/03/2012 11:46 AM, Ron Wheeler wrote: There are lots of ways to skin the cat. We try to do the following: Most of the code goes in

RE: Cobertura instrumentation in complex projects

2012-03-06 Thread Drury, Tim
I've done exactly this and it's a pain. I didn't want cobertura-instrumented jars from possibly infecting our production jars, so I have a Jenkins project that uses a private maven repo to build the entire product. The final deliverable has a "cobertura" classifier and this is deployed to Arti

Re: Dependency in the local repository is ignored

2012-03-06 Thread Alex
Thanks a lot for all answers. > What do you mean by ignored? Explain this in more detail. I compile and install jar from one project and using it in another project. It is installed in local repository but it is not included into .classpath . There are all external dependencies but not my own jar.

Maven Incremental build plugin question

2012-03-06 Thread orubin
Hi, I'm using to use the Maven Incremental build plugin. During the validate phase - when the plugin tries to compare the resource files between the source and the target directories, it uses the wrong path for the target resource files - it doesn't add the "target/classes/" to the target resources

Cobertura instrumentation in complex projects

2012-03-06 Thread Jim McCaskey
Hello all, I have a fairly large build in which we use cobertura extensively to look at unit test code coverage for our project. We also have separate integration tests that we would like to run using these instrumented binaries. There is some good documentation on how to accomplish that here

Re: Maven - Building a single war file from multiple modules

2012-03-06 Thread Ron Wheeler
There are lots of ways to skin the cat. We try to do the following: Most of the code goes in projects that generate JAR files. These are divided up into functional units as much as possible(customers). The war project contains all of the JSPs,XML, CSS, etc. and depends on the external JAR file

Re: Dependency in the local repository is ignored

2012-03-06 Thread John Patrick
When you say ignored, do you mean that it isn't appearing on the classpath in eclipse. Have you tried: 1) mvn -X eclipse:eclipse and seeing if any of the debug reports removing or ignoring it 2) backup .classpath .project and .settings then recreating 3) Checking and older version in source contro

RE: Dependency in the local repository is ignored

2012-03-06 Thread Drury, Tim
If you already have eclipse projects set up, try running: mvn eclipse:clean eclipse:eclipse -Original Message- From: Alex [mailto:zeita...@googlemail.com] Sent: Tuesday, March 06, 2012 10:28 AM To: users@maven.apache.org Subject: Dependency in the local repository is ignored Dear All,

Re: Dependency in the local repository is ignored

2012-03-06 Thread Wayne Fay
> I am looking for a solution since several days already. The problem: > All of a sudden one of my dependencies is ignored. What do you mean by ignored? Explain this in more detail. > I am installing it using > mvn install What is the exact command line you used to install? > And when I am runn

Dependency in the local repository is ignored

2012-03-06 Thread Alex
Dear All, I am looking for a solution since several days already. The problem: All of a sudden one of my dependencies is ignored. I am installing it using mvn install And when I am running mvn eclipse:eclipse It is not listed in the Referenced Libriries node although it is present in the local repo

Re: Re: Antwort: eclipse plugin has a POM of its own

2012-03-06 Thread sarmahdi
i replaced my project path to ${basedir} this is where the maven POM is located so it knows its root or ${basedir} Can any one tell me if maven knows the workspace directory where the ${basedir} is located. I know impossible i guess but doesnt hurt to try. Thanks. Syed.. -- View this message in

Re: webappsource location in POM

2012-03-06 Thread sarmahdi
yep I was looking for that info and already changed it but thanks for the tip cos it took me a bit of googling to get to this http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide site it has all the variables maven can understand. Thanks again. Syed... -- View this message in conte

Re: Maven - Building a single war file from multiple modules

2012-03-06 Thread Jesse Farinacci
Greetings, On Tue, Mar 6, 2012 at 9:08 AM, Ziggy wrote: > I posted a question last week on how i can build dependent modules and the > result was that it was recommended that i use a build tool like Maven http://maven.apache.org/plugins/maven-war-plugin/overlays.html -Jesse -- There are 10 ty

Maven - Building a single war file from multiple modules

2012-03-06 Thread Ziggy
Note: Also posted at stackoverflow.com/questions/9584706/maven-building-a-single-java-servlet-based-war-file-from-multiple-modules I posted a question last week on how i can build dependent modules and the result was that it was recommended that i use a build tool like Maven or Ivy. I decided to u

Re: Re: Added source directory still allows for compile errors

2012-03-06 Thread Thorsten Heit
Hi, > > Yes, there are lots of source files in this generated directory. > > > > They were generated with the command wsdl2java > > Is there no plugin for wsdl2java that you could leverage? Generally > Maven plugins "tell" Maven about new source files to be compiled once > they are created, such

order of AbstractMavenLifecycleParticipants invocation

2012-03-06 Thread Tom Bujok
Hi guys, Is it possible to tweak the order in which the AbstractMavenLifecycleParticipants are invoked? I am working on a maven plugin that should be invoked before one of the tycho plugins. The tycho guys use an AbstractMavenLifecycleParticipant to invoked their stuff. Whenever I register my

AbstractMavenLifecycleParticipant.afterSessionStart method not invoked

2012-03-06 Thread Tom Bujok
Hi guys, I have implemented an AbstractMavenLifecycleParticipant to customize the standard build behavior a bit. The declaration of the participant looks like this: @Component(role = AbstractMavenLifecycleParticipant.class, hint = "testParticipant") public class TestParticipant extends Abstract