Re: Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-19 Thread Thorsten Heit
Hi, I'm using profiles at work for the sole purpose of deciding what to do with the build artifact, i.e. activating different deployment targets (application servers) for an EAR. I see this as a completely different task where you're simply using Maven as a utility tool. When using

Re: Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-19 Thread Anders Hammar
We're having lots of projects building at least one EAR, and each EAR is deployed to the same application server(s), but in different flavors: developer (snapshot) build, integration build and/or release build. Using a CI server configured with special jobs doing these deployment tasks would

Re: Re: Re: Re: useing profiles to control properties to drive version numbers in poms

2012-03-19 Thread Thorsten Heit
Hi, When been over this several times on this list. You have to extract the configuration out of the binary. You mustn't have a Maven build that could generate different flavors of an artifact. Which one would you deploy to the repository? Ok, this was a bit misleading by me. With flavors I

Maven 2.2.1 Checksum errors against oss.sonatype.org

2012-03-19 Thread Matthew Buckett
Hi, The Sakai project (http://sakaiproject.org) is deploying it's artifacts against the Sonatype OSS repository and while this works fine for Maven 3 builds anyone attempting to download the artifacts using Maven 2.2.1 gets checksum errors against the maven-metadata.xml. So far it seems that

Re: Maven 2.2.1 Checksum errors against oss.sonatype.org

2012-03-19 Thread Anders Hammar
I believe this is a Nexus issue as Nexus has a feature of downgrading the metadata file returned to Maven 2 clients. They *might* have overlooked the checksum impact of this. I think your best shot is to ask on the Nexus users list and/or open a issue ticket for Nexus. /Anders On Mon, Mar 19,

Re: Transitive Dependencies for Unused Artifact

2012-03-19 Thread kdobrik
Thank you for the answer. I will revisit my question. At the end of the day I need to centralize the versions used among all modules. Nevertheless these modules do not share all the jars needed. I need to refresh my Maven knowledge :) Once again thank you! -- View this message in context:

Re: Transitive Dependencies for Unused Artifact

2012-03-19 Thread Lyons, Roy
You can use dependencymanagement section to define the version as a filter to any subsequent dependencies section. Putting it in dependencymanagement does not declare it as a dependency but does define the version to be used when it find the dependency declared. Sent from my Blackberry. -

Re: Transitive Dependencies for Unused Artifact

2012-03-19 Thread Ron Wheeler
Typically each project module will have a parent that the individual developer does not play with. It includes a dependency management section that specifies versions for all of the dependencies that the team cares about. The individual module projects will list their dependencies but not

generate-sources target called twice

2012-03-19 Thread jackett_dad
All, I have a problem with the generate-sources goal is being called twice and I don't know why. I have a super pom that defines the project with several sub-modules. One sub-module has this: build plugins plugin groupIdorg.bsc.maven/groupId

Re: generate-sources target called twice

2012-03-19 Thread Wayne Fay
I'm pretty sure that something I've done recently has caused the second iteration, but I don't know what it could be. Any help would be appreciated. What does mvn help:effective-pom tell you? Is there another plugin running that might be forking the build? (Various plugins will do this.)

Re: generate-sources target called twice

2012-03-19 Thread jackett_dad
I don't see anything in the output of the effective pom that uses the word fork What should I look for? I'm fairly new to Maven, so I don't know a lot about configuration... Here is my plugin management section: pluginManagement plugins plugin

Dependency resolution problem

2012-03-19 Thread Niranjan Rao
After banging my head for half an hour, I finally figured what was wrong. I was trying to use org.xerial:sqlite-jdbc version 3.7.2 on maven 3. This jar is part of central repository and I was able to to see when I went to local nexus mirror. However maven was not seeing it. Any time I tried

RE: Dependency resolution problem

2012-03-19 Thread Amir Gheibi
Wouldn't -x option give debug information from which the actual problem can be found and resolved? -Original Message- From: Niranjan Rao [mailto:nhr...@gmail.com] Sent: March-19-12 1:31 PM To: Maven Users List Subject: Dependency resolution problem After banging my head for half an

Re: Maven resources plugin exclude not working

2012-03-19 Thread Robert Scholte
Excludes is always a subset of includes, but since excludes matches every include nothing is filtered. Try it without the excludes-section -Robert Op Mon, 19 Mar 2012 18:38:12 +0100 schreef Al Dispennette al.dispenne...@clairmail.com: I am trying to use the resources plugin to copy files

issue with apache-maven-3.0.4-bin.tar.gz

2012-03-19 Thread Antoine Levy Lambert
Hi, I have just downloaded apache-maven-3.0.4-bin.tar.gz. The particular version which I got from http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz had mismatching md5sum's and gpg signatures. I ended up downloading from www.apache.org/dist. I do not know which