maven-metadata containing SNAPSHOT versions when Nexus group references release proxy repo

2010-11-10 Thread Jane Young
I'm not sure if this is the right forum to post this question. If not, please advice me where to post this question. I setup a Nexus group repository that references several proxy repositories. This group repo only references the released (non-SNAPSHOT) artifacts. The group repo referenc

Re: Maven in 5 minutes doesn't work

2010-11-10 Thread wasi_shez
Yes i have get the problem solved. I will advice you to please read out the Maven's Book from Pages 32 to 42 Moreover >> Whenever you go for Maven's first time compilation ; please make sure that your machine must have internet with downloading access ; THE MOST IMPORTANT it must be free from al

Re: Setting dependency with plugin generated jar

2010-11-10 Thread Kalpak Gadre
To make it work the Maven way, you should ideally separate the jar from the war file as an independent module. Your war file will then depend on the jar. Not sure if your packaging is war, adding maven-jar-plugin creates a jar file? If it does then you can use build-helper-maven-plugin to ins

Re: maven 3 profiles.xml replacement?

2010-11-10 Thread Anders Hammar
..or my favorite: Change to the Maven Way(tm)! What you're doing is not, IMHO, the correct way. I guess you're not doing Maven deploys to a remote repo as you would end up with different flavors of a project's artifact? Which can't happen as releases mustn't change. What you should do is to either

Setting dependency with plugin generated jar

2010-11-10 Thread banka.ravi
I have a scenario where in my pom generates a war file. Whereas I also need a jar of the same to be referenced by other projects. So I added a maven-jar-plug-in to generate a jar for the same. As the pom was installing this generated jar as the war to the repository. I mentioned a classifier to di

Re: maven 3 profiles.xml replacement?

2010-11-10 Thread Wayne Fay
> and copy them in as part of the hudson build.  I guess we could put the > settings.xml file for the hudson user in to source control, but having all > of that information from across all of our projects in one place is far from Well, it seems like you have a few options... 1. One big settings.x

Re: maven 3 profiles.xml replacement?

2010-11-10 Thread Scott Miller
Sorry, I guess I didn't explain. The configuration settings need to be version controlled and the hudson server runs the builds for the whole company. As it stands now, we pull the profiles.xml files from a different svn repo and copy them in as part of the hudson build. I guess we could

Re: maven 3 profiles.xml replacement?

2010-11-10 Thread Wayne Fay
> want this information added in to our pom directly.  Modifying settings.xml > in a hudson build seems like a bad idea, since then if multiple hudson > builds are run at once, they would impact eachother. I don't understand this comment. You should be able to copy all your profiles into one setti

Re: Whatever happened to j2ee-1.4.jar ?

2010-11-10 Thread Wayne Fay
>> You need to download it directly from the JavaEE site and install it with >> the instructions that you find in the build log.  License issues, it can't >> be distributed through the central repo. You may also find what you need (spec-jar-wise) from the Geronimo project: http://repo2.maven.org/m

Re: Whatever happened to j2ee-1.4.jar ?

2010-11-10 Thread Simon Lewis
Ah ... ok, thanks On Thu, Nov 11, 2010 at 4:08 PM, Brian Topping wrote: > On Nov 10, 2010, at 9:58 PM, Simon Lewis wrote: > > > What's up with http://repo2.maven.org/maven2/javax/j2ee/j2ee/1.4/ > > You need to download it directly from the JavaEE site and install it with > the instructions that

Re: Whatever happened to j2ee-1.4.jar ?

2010-11-10 Thread Brian Topping
On Nov 10, 2010, at 9:58 PM, Simon Lewis wrote: > What's up with http://repo2.maven.org/maven2/javax/j2ee/j2ee/1.4/ You need to download it directly from the JavaEE site and install it with the instructions that you find in the build log. License issues, it can't be distributed through the ce

Whatever happened to j2ee-1.4.jar ?

2010-11-10 Thread Simon Lewis
Hi, What's up with http://repo2.maven.org/maven2/javax/j2ee/j2ee/1.4/ Shouldn't there be a jar in there ?? thanks Simon

maven 3 profiles.xml replacement?

2010-11-10 Thread Scott Miller
Hi, I am trying to upgrade a maven 2.x build system to a maven 3.x build system and have run in to a problem with the fact that profiles.xml is no longer supported. Our current build iconfigures the built .ear file based on build properties supplied in profiles.xml. These properties are

RE: Figuring out the proper Maven dependency setting

2010-11-10 Thread Yanko, Curtis
+1, That's the spirit! It's like I said, many teams for a long time have under-valued the build process and deem the whole activity to be not worth their time. And yet, so few teams I meet can provided me with a bill-of-materials or even a basic architectural drawing showing the relationship of th

RE: Figuring out the proper Maven dependency setting

2010-11-10 Thread Yanko, Curtis
I'm not talking about libraries, I'm talking about an app that has been built for years either with Ant or without a build script. So we get a known good EAR and de-construct it often finding JARs that don't exist in the wild or are unidentifiable. So re-creating that EAR Maven can become a real ch

Re: Figuring out the proper Maven dependency setting

2010-11-10 Thread Ron Wheeler
On 10/11/2010 4:37 PM, Brian Topping wrote: On Nov 10, 2010, at 4:20 PM, Ron Wheeler wrote: It is mostly exclusions to stop old versions of libraries from being dragged in by mistake. It took a bit of doing to get these the first time but it is nice now that we do not have a screen full of co

Re: Running tests twice and the build success status

2010-11-10 Thread Stephen Connolly
That would be because hudson turns off failing a build if tests fail. In hudson, failing tests is a yellow ball. Build broken is a red ball Everything hunky-dory is a blue ball. your issue comes from using the crappy maven 2 project type in hudson which modifies your build behind your back. Use

Dual javadoc

2010-11-10 Thread Gerard Weatherby
Is there a way to configure the javadoc plugin to generate two sets of Javadoc output? We find it convenient to have both the default public and private versions. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org Fo

Re: Figuring out the proper Maven dependency setting

2010-11-10 Thread Brian Topping
On Nov 10, 2010, at 4:20 PM, Ron Wheeler wrote: > It is mostly exclusions to stop old versions of libraries from being dragged > in by mistake. > It took a bit of doing to get these the first time but it is nice now that we > do not have a screen full of conflicting version notes. So I guess y

Re: Figuring out the proper Maven dependency setting

2010-11-10 Thread Brian Topping
On Nov 10, 2010, at 4:06 PM, Yanko, Curtis wrote: > I have used the technique described here but I have also had too to > forensic type package level comparisons to try an find matches. > Eventually slugging our way through namespace collisions and knocking > down issues one Classpath Not Found a

Re: Figuring out the proper Maven dependency setting

2010-11-10 Thread Ron Wheeler
On 10/11/2010 3:40 PM, marshall wrote: Hi; This is probably a beginner question, but I thought it was worth posing because it is frequently very frustrating when working with Maven. Is there a clear way to know which particular dependencies Maven requires, when working with a set of jars/li

RE: Figuring out the proper Maven dependency setting

2010-11-10 Thread Yanko, Curtis
I would be curious if you could unpack you app and just replace the JARs with ones from Maven repo's and have it still work. I can't tell you how projects I've encountered where I cannot figure what version a JAR is or where it came from. I am sure I have seen hand modified JAR lumping packages to

RE: Continuous Delivery and Maven

2010-11-10 Thread Yanko, Curtis
I would agree with you on this one. I think one of the discussions that is missing here is the idea of when or how we determine we have *something of value*. My assumptions is it goes something like this: Build -> Inspect and Test -> Value? YES|NO Right now the approach presented in this group w

RE: Figuring out the proper Maven dependency setting

2010-11-10 Thread Yanko, Curtis
+1 > -Original Message- > From: Brian Topping [mailto:topp...@codehaus.org] > Sent: Wednesday, November 10, 2010 3:49 PM > To: Maven Users List > Subject: Re: Figuring out the proper Maven dependency setting > > > On Nov 10, 2010, at 3:40 PM, marshall wrote: > > > Hi; > > This is pr

Re: Figuring out the proper Maven dependency setting

2010-11-10 Thread Brian Topping
On Nov 10, 2010, at 3:40 PM, marshall wrote: > Hi; > This is probably a beginner question, but I thought it was worth posing > because it is frequently very frustrating when working with Maven. > Is there a clear way to know which particular dependencies Maven requires, > when working with a

Re: Continuous Delivery and Maven

2010-11-10 Thread jmorrow
stephenconnolly wrote: > > so lets say for #1 we add a phase of "ship"... we'd have the standard > lifecycle something like > > validate -> ... -> compile -> ... -> test -> ... -> package -> ... -> > verify -> install -> deploy -> ship > > that would allow us to bind our CD steps to the "ship"

Figuring out the proper Maven dependency setting

2010-11-10 Thread marshall
Hi;  This is probably a beginner question, but I thought it was worth posing because it is frequently very frustrating when working with Maven.  Is there a clear way to know which particular dependencies Maven requires, when working with a set of jars/libraries?  For example, I have been trying t

RE: Continuous Delivery and Maven

2010-11-10 Thread jmorrow
Certainly and I would promote that the solution using this mechanism should allow a rang eto be specified. In a true CD shop though I think it would be important the you could leave the upper bound off. It seems both are supported so it is all good. -- View this message in context: http://maven.

Re: Continuous Delivery and Maven

2010-11-10 Thread jmorrow
stephenconnolly wrote: > > Well I regard that the project being delivered can only have internal > -SNAPSHOT dependencies, all external (to the reactor) dependencies > should be release dependencies. > > One of the things I have wanted to do with v-m-p is to hack around > version ranges... for

Re: Error building "bin" assembly

2010-11-10 Thread Jason Voegele
Followup: I can reproduce this error with a very minimal project by using the maven-arcetype-plugin to create a simple project, and then adding the following plugin declaration to the POM: org.apache.maven.plugins maven-assembly-plugin 2.2

RE: Continuous Delivery and Maven

2010-11-10 Thread Yanko, Curtis
Obviously there are times when that is the case but and others when the boundary would be welcome. -Original Message- From: Thiessen, Todd (Todd) [mailto:tthies...@avaya.com] Sent: Wednesday, November 10, 2010 2:54 PM To: Maven Users List Subject: RE: Continuous Delivery and Maven I do

RE: Continuous Delivery and Maven

2010-11-10 Thread Yanko, Curtis
The dep ranges make more sense to me because they can equate to feature/functionality sets and still enable parallel development for all those non-CD shops ;-) I'm sure there is no notion of parallel development in CD since they eschew branches in favor of Bliki feature toggles (which are pretty

RE: Continuous Delivery and Maven

2010-11-10 Thread Thiessen, Todd (Todd)
I don't think you need to specify a top end. For example, you could use [1.0,). http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-version-ranges.html > -Original Message- > From: jmorrow [mailto:j...@morrowmail.com] > Sent: Wednesday, November 10, 2010 2:51 PM >

RE: Continuous Delivery and Maven

2010-11-10 Thread jmorrow
Thiessen, Todd (Todd) wrote: > > Is LATEST deprecate now? > > But if I recall correctly, I don't think it would be quite right either as > LATEST implies the latest release or snapshot. So you'll want to be > careful here. > https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Mav

RE: Continuous Delivery and Maven

2010-11-10 Thread Thiessen, Todd (Todd)
And you're right. You could probably use version ranges for this as Stephen was saying. Then you wouldn't use snapshot deps at all. All projects would simply use the mvn ship command instead of mvn deploy and never work with snapshots. Make it so ;-). I'd love to see what you have 2 weeks ;-).

RE: Continuous Delivery and Maven

2010-11-10 Thread Thiessen, Todd (Todd)
Is LATEST deprecate now? But if I recall correctly, I don't think it would be quite right either as LATEST implies the latest release or snapshot. So you'll want to be careful here. > -Original Message- > From: jmorrow [mailto:j...@morrowmail.com] > Sent: Wednesday, November 10, 2010 1:

RE: RE: Continuous Delivery and Maven

2010-11-10 Thread Thiessen, Todd (Todd)
I am not entirely sure what Jason means when he says "pluck the snapshot out and promote it to a release repository". I think he still means rebuild it from source but I agree that that statement is a bit unclear. The release plugin, by default, builds twice. First it checks out the code as a s

Re: Error building "bin" assembly

2010-11-10 Thread Wayne Fay
> full stack trace below.  Does anyone know what might be wrong?  Is there any > other information I should include to help diagnose?  Thanks. It might be helpful to send your configuration as well... Wayne - To unsubscribe, e-m

Re: Continuous Delivery and Maven

2010-11-10 Thread jmorrow
stephenconnolly wrote: > > > > foo > bar > [1.0,2.0) > > > This seems to me to a place where the Maven concept of LATEST actually makes sense to use. If we add around this your concept of writting the concreate version and checking-in, it ott work nicely. With this approach you do no

Re: Running tests twice and the build success status

2010-11-10 Thread Bogdan Calmac
OK, I've done some further investigation and discovered that this only happens on our Hudson CI server. The cmdline maven build works as expected. For reference, here is the JIRA for the Hudson project: http://issues.hudson-ci.org/browse/HUDSON-8065 -- View this message in context: http://maven

Re: RE: Continuous Delivery and Maven

2010-11-10 Thread jhumble
BTW - I also think Stephen's suggestion is a good one - it's more or less what I suggest in the book. On 10 November 2010 09:45, Jez Humble wrote: > Hey Todd. > > My interpretation of what Jason is saying in his comment here - > http://www.lucasward.net/2010/11/maven-and-continuous-delivery.htm

Re: RE: Continuous Delivery and Maven

2010-11-10 Thread jhumble
Hey Todd. My interpretation of what Jason is saying in his comment here - http://www.lucasward.net/2010/11/maven-and-continuous-delivery.html - "you should be able to tag the code, and pluck the snapshot out and promote it to a release repository... Someone just needs to do the two weeks of work

Re: Surefire NPE

2010-11-10 Thread Cameron
I've tried hard coding the resource bundle path and I get the same result. And it only happens about half the time, regardless. Judging by the stack trace, the problem is somehow related to what happens when Surefire forks so that the tests run in their own JVM process. When I set "forkMode" to

Re: Possible to override standard Plexus component from build extension?

2010-11-10 Thread Jesse Glick
On 11/09/2010 06:43 PM, Benjamin Bentmann wrote: Not possible. Thanks, at least I will not waste more time trying. usually accomplished by an artifact handler for the dependency type in question which sets includesDependencies=true like for WAR artifacts. Interesting, did not think to look

Re: Using Tomcat plugin to run webapp in a production environment

2010-11-10 Thread Aldrin Leal
I ended up using Cargo for that. In my particular case, all I did was to create a tomcat6 instance (via Ubuntu built-in package) and add the admin webapp IMMV however -- -- Aldrin Leal, / http://www.leal.eng.br/mnemetica/ On Wed, Nov 10, 2010 at 10:33 AM, Bruno Borges wrote: > Have anyone exp

Re: Maven integration with bash script

2010-11-10 Thread Jacob Beard
The exec-maven-plugin turned out to be a good solution. Now the shell script simply delegates to maven: mvn -q exec:java -DscxmlInputArgs="$*" And the .bat script is virtually the same thing. Very clean and simple, I think. Thanks for your help with this, Jake On 10-11-09 02:25 PM, Benjami

Error building "bin" assembly

2010-11-10 Thread Jason Voegele
I am trying to use the pre-defined "bin" assembly descriptor (descriptorRef) and I am getting an error stating that "A tar file cannot include itself." I've included a full stack trace below. Does anyone know what might be wrong? Is there any other information I should include to help diagnos

Using Tomcat plugin to run webapp in a production environment

2010-11-10 Thread Bruno Borges
Have anyone experienced running a WAR project in production based on the Maven Tomcat plugin? We are considering to use it as we think it is simpler than installing a whole Tomcat setup and deploying WAR files . Our usecase has only one project and no more modules are planned. Each one on its own

RE: RE: Continuous Delivery and Maven

2010-11-10 Thread Thiessen, Todd (Todd)
Agreed Stephen. I think your proposal is the best so far. I just want to make sure we don't go back into a discussion about promoting snapshots to releases, as I believe that is where this discussion started. To do that I think would require a significant re-architecture of maven which I don't

Re: M3 fails to download parent pom

2010-11-10 Thread Martijn Dashorst
Here's the contents of settings.xml relevant to our repo manager: our-repository Maven Repository Manager running on corp.com http://repo.corp.com/artifactory/repo *

Re: Continuous Delivery and Maven

2010-11-10 Thread Jason van Zyl
On Nov 9, 2010, at 2:25 PM, Thiessen, Todd (Todd) wrote: > +1 here. Jez was indicating that it was "Crucial" that a snapshot build not > get "rebuilt" when creating the release and simply get promoted to a release. > That is simply not that way maven currently works. I hope that is now clear. >

Re: M3 fails to download parent pom

2010-11-10 Thread Stephen Connolly
How have you defined your corp maven repo in your settings.xml I'm wondering if it's a bug in maven 2 pulling releases from the wrong repo and therefore you don't notice that the repo is defined incorrectly in settings.xml On 10 Nov 2010 08:39, "mjsell" wrote: Yeah, this is definitely not a po

Re: Eclipse multi-module project with maven

2010-11-10 Thread Antonio Petrelli
2010/11/10 jeb001 : > I've seen that I should use profiles et filters.. but I don't know exactly > how, with my 4-part project? > > In which pom.xml have I to define thoses filters ? each one ? > I'm not sure this is the best way to do it.. Yes, each one you have such configurable resources. 1. Ju

Re: RE: Continuous Delivery and Maven

2010-11-10 Thread Stephen Connolly
Imho taking a snapshot artefact and renaming as a release artefact and pushing to the remote repo will never be supported by maven, but my ship-maven-plugin (not ready for publishing yet) and some extra mojos added to versions-maven-plugin should enable CD in a way that is in keeping with the "mave

Re: maven site broken on table generation

2010-11-10 Thread Lukas Theussl
There are 2 issues here: the one that Dennis pointed out that the last line of the table has to match the first; the other that you can't have all cells in all rows empty. Just add at least one row with at least one non-empty cell to make it work. Since you say that this used to work, it wou

RE: Continuous Delivery and Maven

2010-11-10 Thread Thiessen, Todd (Todd)
I don't think thats the same thing. The proposal is to take a snapshot artifact which was built using mvn deploy and promote it to the release repo. I think what you are referring to here Jason is how the release plugin first builds the snapshot, tags it, and then rebuilds the tag. > -Origi

Re: release:perform deploy goal fails with duplicate deployment

2010-11-10 Thread Trevor Paterson
OK I have worked out what was causing the repeat attachment and deployment of the sources and javadoc jars I was already specifying javadoc and source jar creation in my build profile - I didn't release that release:perform also specified these artifacts - hence the attempt to deploy the 'same'

Re: Maven generating invalid eclipse projects

2010-11-10 Thread Antonio Petrelli
2010/11/10 emerson : > When I import the project using eclipse2m, the source folder entry for > the src/test/scenarios have Included: (All) and Excluded: ** Yes, it is annoying. There's an old JIRA issue for it: https://issues.sonatype.org/browse/MNGECLIPSE-784 Antonio --

Re: Developing MOJOs using JSR-330

2010-11-10 Thread Jason van Zyl
On Nov 10, 2010, at 12:46 AM, Christopher Hunt wrote: > Thanks Oliver. > > I think that it'll be quite a while before people write MOJOs just for Maven > 3. From my own perspective having just written two new MOJOs, I'd like to be > able to write for the future but recognise the present. It'd

Re: Maven generating invalid eclipse projects

2010-11-10 Thread emerson
I tried the m2eclipse, but that also seems to import a wrong build path. I have the following entry on my parent pom.xml src/test/scenarios org.apache.maven.plugins maven-surefire-plugin src/test/scenar

Re: Eclipse multi-module project with maven

2010-11-10 Thread Antonio Petrelli
2010/11/10 jeb001 : > Now, I'm looking for the best way to use maven profiles with my new project > organisation.. > I just wanna create 2 profiles, developpement and production, for each > project. > The production profile will have to package using src/main/resources-prod > directory, and thes >

Re: Eclipse multi-module project with maven

2010-11-10 Thread jeb001
Ok, that works the way I want... with 4 eclipse projects and only 3 real ones. Now, I'm looking for the best way to use maven profiles with my new project organisation.. I just wanna create 2 profiles, developpement and production, for each project. The production profile will have to package usi

Re: Eclipse multi-module project with maven

2010-11-10 Thread jeb001
You're right, those 2 set of resources only differ in the addresses they point. (or something like that..) I've seen that I should use profiles et filters.. but I don't know exactly how, with my 4-part project? In which pom.xml have I to define thoses filters ? each one ? I'm not sure this is t

Re: compile failure warning and build succesfull?

2010-11-10 Thread latchoumi
Hi ildella, Did you find a solution for this issue in your post. I am facing the same problem. Tried setting the failOnError flag to true, but it didn't work. Its considering a compiler error as a warning and not a error and its not failing. Let me know what solution you ended up with? Thanks, L

Re: RE: Continuous Delivery and Maven

2010-11-10 Thread stug23
Stephen's solution makes sense to me. It doesn't try to conflate the meaning of SNAPSHOTs and it retains the metadata in trunk that keeps everything in the Maven build instead of relying on an outside tool. Anyone see any issues with this approach? I think I like it from what I understand so far.

Re: M3 fails to download parent pom

2010-11-10 Thread mjsell
Yeah, this is definitely not a pom that exists in the project tree, so the parent-pom resolution changes mentioned in the compatibility notes do not apply. In my case it is a corporate pom that is separately released, and all of our project trees end up inheriting from a previously released versi

Re: Practical to have "optional" submodules, getting their artifacts from intranet repo if absent?

2010-11-10 Thread Nicola Musatti
We handle this very problem by having different aggregating projects for different purposes: one is, as you say, a global project that contains all the modules that make up our application, which we use for full builds and other, smaller aggregator projects that only contain the minimal set of