Maven concurrent builds

2012-03-07 Thread Guillaume Polet
Dear all, I was having some doubts regarding Maven's ability to handle properly concurrent builds. Lately, I had several builds of our project that failed and it seemed that it was due to interferences between concurrent builds of the same version of the same project. I have a jenkins

Re: Maven concurrent builds

2012-03-07 Thread Jörg Schaible
Hi Guillaume, Guillaume Polet wrote: Dear all, I was having some doubts regarding Maven's ability to handle properly concurrent builds. Lately, I had several builds of our project that failed and it seemed that it was due to interferences between concurrent builds of the same version of

Importing Maven projects in Eclipse

2012-03-07 Thread Marko Asplund
Hi, I'm using Maven 3 and the m2e Eclipse plugin. Normally i import my Maven projects into Eclipse using the Import / Existing Maven projects. There are some cases where this option doesn't seem to be available e.g. (with EGit) so I need an alternative method. Can I use the Maven eclipse:eclipse

Re: Maven concurrent builds

2012-03-07 Thread Srinath C
Always use a different local repositories for different projects in Jenkins. You can do this by setting the system property -Dmaven.local.repo={project_workspace_dir} Regards, Srinath. On Wed, Mar 7, 2012 at 1:59 PM, Jörg Schaible joerg.schai...@scalaris.comwrote: Hi Guillaume, Guillaume

Re: Maven concurrent builds

2012-03-07 Thread Guillaume Polet
OK, good to know. Somehow, I always assumed that Maven was actually handling concurrency safely. Too bad that we have to waste extra space to handle this, but at least there are easy workarounds. Cheers Guillaume Le 7/03/2012 11:41, Srinath C a écrit : Always use a different local

Archetypes

2012-03-07 Thread Troels Selch Sørensen
Hi. We have made some archetypes that we use internally, but they contain much of the same code. We would like to avoid the risk of updating one archetype, but forget the others when making changes in the code they have in common. We are using Springsource Tool Suite and Maven to create bundles

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

2012-03-07 Thread Lyons, Roy
:-) we tag our repo with branchname!RP-BL-mavenlabel to help in location. Rp is for release prepare and bl is for baseline (carryover from clearcase terminology) Just remember that in git a hash doesn't belong to a branch, it is simply attached to a linked list of hashes. A branch is simply

Re: Maven concurrent builds

2012-03-07 Thread Lyons, Roy
You can use -Dmaven.repo.local in your builds to use separate cache repos. I assume you already made sure that jenkins was compiling in separate workspace areas? Otherwise as he said, it would probably trip over itself as any other builder would. Sent from my Blackberry. - Original

Re: Importing Maven projects in Eclipse

2012-03-07 Thread Lyons, Roy
I saw that sonatype was collaborating with m2e and egit to make a plugin that does both. Just providing the info here so you can google it properly to find your solution! Sent from my Blackberry. - Original Message - From: Marko Asplund marko.aspl...@ixonos.com To:

Re: Maven concurrent builds

2012-03-07 Thread Jörg Schaible
Guillaume Polet wrote: OK, good to know. Somehow, I always assumed that Maven was actually handling concurrency safely. Too bad that we have to waste extra space to handle this, but at least there are easy workarounds. If you use a repository manager in your intranet, you may simple wipe the

Re: Maven concurrent builds

2012-03-07 Thread Guillaume Polet
Le 7/03/2012 13:52, Jörg Schaible a écrit : Guillaume Polet wrote: OK, good to know. Somehow, I always assumed that Maven was actually handling concurrency safely. Too bad that we have to waste extra space to handle this, but at least there are easy workarounds. If you use a repository

The perfect reporting tool?

2012-03-07 Thread Lucas Persson
Hi I am in search for a nice way to compile all reports for a Maven build. I have for instance JUnit results, findbugs results and code coverage results (using Emma). The maven site plugin does not really aggregate info so that I can get the total number of findbugs bugs so I started to look at

Re: AbstractMavenLifecycleParticipant.afterSessionStart method not invoked

2012-03-07 Thread Olivier Lamy
Agree I have added some documentation here: http://maven.apache.org/examples/maven-3-lifecycle-extensions.html Let me know if it's fine. 2012/3/7 Tom Bujok tom.bu...@gmail.com: Exactly, that is the case. - afterSessionStart is a maven extension, - afterProjectRead is a project extension,

Re: The perfect reporting tool?

2012-03-07 Thread Thorsten Heit
Hi, I am in search for a nice way to compile all reports for a Maven build. I have for instance JUnit results, findbugs results and code coverage results (using Emma). The maven site plugin does not really aggregate info so that I can get the total number of findbugs bugs so I started to

Problems with Multi Module project

2012-03-07 Thread Ku31rT9
Hello. Given is a multi module project. I could run mvn test from the base dir or one of it's sub projects. Everything was fine. Now I wrote a unit test which starts a servlet like container and some first tests. I started mvn test from the sub project. Now I run mvn test from the base dir and

Re: Dependency in the local repository is ignored

2012-03-07 Thread Alex
Yes you were right. Here how I installed and use m2e Install in following order: 1) Subclipse 1.6 including all options 2) m2e release (1.0) 3) from Window-Preferences-Maven-Discovery, Open Catalog: m2e connector for maven-scm-plugin 4) from Window-Preferences-Maven-Discovery, Open Catalog:

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

2012-03-07 Thread Seth Call
Hi Roy, I don't understand what 'tagging our repo' means. Is this a feature of your remote repository? Sorry... I googled but I don't know what you are saying... But aside from that, I really don't care about git hash in this question... let me explain what I'm trying to acheive... As a

Re: Maven concurrent builds

2012-03-07 Thread Michael Haefele
Jenkins also has a setting Use private Maven repository in the build section of the job configuration which takes care of this for you. Mike On Wed, Mar 7, 2012 at 5:41 AM, Srinath C srinat...@gmail.com wrote: Always use a different local repositories for different projects in Jenkins. You can

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

2012-03-07 Thread Stephen Connolly
properties cannot be used where they will affect the build plan. Therefore the following xpaths are not allowed (it may appear to work, but it will blow up in your face when you are not looking) /project/parent/* /project/groupId /project/artifactId /project/version almost anywhere else is fair

Re: Maven concurrent builds

2012-03-07 Thread Guillaume Polet
Yeah, I just found out about this but it is in an advanced hidden by default panel. I checked it for all my builds that could interfere with each other. Seems kind of strange that this is not more obvious as not checking it results unpredictable behaviour. Sorry to the ML-users as this is

Re: Importing Maven projects in Eclipse

2012-03-07 Thread Curtis Rueden
Hi Marko, I'm using Maven 3 and the m2e Eclipse plugin. Normally i import my Maven projects into Eclipse using the Import / Existing Maven projects. There are some cases where this option doesn't seem to be available e.g. (with EGit) so I need an alternative method. I use m2e + EGit for all

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

2012-03-07 Thread Matt Walsh
Seth. I tried doing something similar to this using the buildnumber-maven-plugin. It returns the branch and revision number (I use Subversion, not Git), but looks like you're trying something similar. The problem I encountered (at least how I interpreted it) is that the plugin doesn't run soon

Re: The perfect reporting tool?

2012-03-07 Thread Lucas Persson
Hi I have as you a top "corporate" pom which defines all versions on the plugings. Maven itsels is at 3.0.2, findbugs is on latest 2.4 , emma is the latest 1.0-alpha-3, the site plugin is actually only 3.0-beta-3. Dashboard is on 1.0.0-beta-1 which seems to be

Re: The perfect reporting tool?

2012-03-07 Thread Jason van Zyl
Sonar is the best form of build information integration. http://www.sonarsource.org/ On Mar 7, 2012, at 8:02 AM, Lucas Persson wrote: Hi I am in search for a nice way to compile all reports for a Maven build. I have for instance JUnit results, findbugs results and code coverage results

InstallAnywhere plugin -- or just use their Ant task?

2012-03-07 Thread Wayne Fay
A friend is using Ant + InstallAnywhere and I told him that I would look into options for integrating it with his Maven builds. I am familiar with izPack and other options but his company has an investment in IA and going to another tool is not desired. It looks like there is an Ant task provided

Error resolving dependencies from internal repository

2012-03-07 Thread ADLI WAZIRI
Hi All, Complete newbie to Maven and newbie to build environments in general. Using maven to build an internal project with the idea of automating builds once I get things going. I originally started with building the project using Maven inside of Netbeans which I was eventually

Re: The perfect reporting tool?

2012-03-07 Thread Dennis Lundberg
On 2012-03-07 17:14, Lucas Persson wrote: Hi I have as you a top corporate pom which defines all versions on the plugings. Maven itsels is at 3.0.2, findbugs is on latest 2.4 , emma is the latest 1.0-alpha-3, the site plugin is actually only 3.0-beta-3. Dashboard is on 1.0.0-beta-1 which

Re: Error resolving dependencies from internal repository

2012-03-07 Thread Wayne Fay
This is your problem: Could not find artifact com.storagetek:VOP_MAVEN-parent:pom:1.0 in myISR (file:///export/home/buildmaster/.m2/repository/) This means there is no pom file corresponding to this artifact in your repository. Whatever process you used to put those files into your repo has a

Re: Error resolving dependencies from internal repository

2012-03-07 Thread ADLI WAZIRI
Hi Wayne, Thanks for the response.The parent .pom file is in the following directory - does the repository declaration need to be explicit to the module folder level?If so, how does it find different files within the repository?

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

2012-03-07 Thread Seth Call
Hi Stephen, Thank you for clarifying. That tells me what constraints I have to work with, which is a big help. Is there any intent to change these restrictions? I don't think anyone wants to change version mid-run (I've seen in other threads where you mention something about the reactor

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

2012-03-07 Thread Seth Call
Hi Matt, Thanks for the pointer to the release plugin. My desire is to not control the process of making branches or changing versions through plugins. I want developers to be able to use git for things branch related, and use maven for compile/build related. I think the release-plugin is

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

2012-03-07 Thread Stephen Connolly
My view is that there are places where stuff can be inferred, such as groupId and version of children can be inferred *if and only if* the child is always checked out with the parent (at the specified relative path)... There are plans to tackle those cases. There is, though a bit of a dual

Re: Error resolving dependencies from internal repository

2012-03-07 Thread Wayne Fay
Thanks for the response.    The parent .pom file is in the following directory - does the repository declaration need to be explicit to the module folder level?    If so, how does it find different files within the repository? I don't understand your questions. I don't have a repository

Re: Error resolving dependencies from internal repository

2012-03-07 Thread ADLI WAZIRI
I tried declaring the local repository in the settings.xml file but that resulted in the same error so I tried explicitly listing the repository in the pom.xml 'repositories' section. Here is a cut/paste from my pom.xml.I'm running the mvn install command from the same machine as the

Re: Archetypes

2012-03-07 Thread Robert Scholte
I consider archetypes as a service from Maven to get started a bit faster. From what I've seen, JBoss Forge[1] looks like a better alternative for. It claims to support incremental project enhancement. -Robert [1] https://docs.jboss.org/author/display/FORGE/Home Op Wed, 07 Mar 2012 12:15:08

Re: Error resolving dependencies from internal repository

2012-03-07 Thread Wayne Fay
repository idmyISR/id urlfile:///export/home/buildmaster/.m2/repository//url As I suspected, this is all horribly wrong. The ~/.m2 directory is merely a repo CACHE. It DOES NOT function as a repository. Stop trying to make this work. It does not and should not (metadata is different among

Re: The perfect reporting tool?

2012-03-07 Thread Robert Scholte
Hi, As you already mentioned: although Sonar gives you the best reports, it requires a running Sonar application. I once needed the static pages and the dashboard-maven-plugin seemed to be the best solution. I wasn't happy with the implementation and the number of open issues. A long time

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

2012-03-07 Thread Matt Walsh
Just a little anecdote here on the pitfalls of branching maven projects without some kind of control. We have a SNAPSHOT version for trunk. We use the maven-release-plugin to create our maintenance branches at release time. The plugin, by default, uses the current dev version on trunk as the

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

2012-03-07 Thread Seth Call
Bad smell eh? Ok, here's my bad smell. Version numbers. Stinkier? Version *numbers* in source code. More stinky than that? Version numbers in source code for projects that are never released to the public. I care most about the development process, and much less about the release process. If

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

2012-03-07 Thread Seth Call
Matt, yes, thank you. This is *exactly* what we encountered, too. Branching *is* an expression of versioning; you have to reflect that in your pom, though, if some build system is building all these various branches and pushing these artifacts somewhere central. I referred to this problem in

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

2012-03-07 Thread Stephen Connolly
On 7 March 2012 20:59, Seth Call sethc...@gmail.com wrote: Bad smell eh?  Ok, here's my bad smell.  Version numbers.  Stinkier? Version *numbers* in source code.  More stinky than that? Version numbers in source code for projects that are never released to the public. You are confusing two

Re: InstallAnywhere plugin -- or just use their Ant task?

2012-03-07 Thread Ed Hillmann
On Thu, Mar 8, 2012 at 3:24 AM, Wayne Fay wayne...@gmail.com wrote: A friend is using Ant + InstallAnywhere and I told him that I would look into options for integrating it with his Maven builds. I am familiar with izPack and other options but his company has an investment in IA and going to

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

2012-03-07 Thread Seth Call
Thanks for replying Stephen. Inline to your inline! Seth On Wed, Mar 7, 2012 at 3:42 PM, stephenconnolly [via Maven] ml-node+s40175n5545703...@n5.nabble.com wrote: On 7 March 2012 20:59, Seth Call [hidden email]http://user/SendEmail.jtp?type=nodenode=5545703i=0 wrote: Bad smell eh? Ok,

Development location specific filtering

2012-03-07 Thread Niranjan Rao
Hi folks, I am not much of maven expert and many members of my team are even more inexperienced when it comes to maven. So we are trying to keep it as simple as possible for developers. The team is geographically distributed in multiple locations. In order to keep it simple, we have set up

Re: InstallAnywhere plugin -- or just use their Ant task?

2012-03-07 Thread Dan Tran
I have experience on both IA ant and build executable. Ended up to write a maven plugin ( ia-maven-plugin) and just invoke the build/build.exe command line -D On Wed, Mar 7, 2012 at 2:03 PM, Ed Hillmann ed.hillm...@gmail.com wrote: On Thu, Mar 8, 2012 at 3:24 AM, Wayne Fay wayne...@gmail.com

Re: InstallAnywhere plugin -- or just use their Ant task?

2012-03-07 Thread Dan Tran
here is some code public void execute() throws MojoExecutionException, MojoFailureException { Commandline cl = new Commandline(); cl.setExecutable( new File( this.iaLocation, build ).getAbsolutePath() ); cl.createArg().setFile( this.iaProjectFile );

Re: InstallAnywhere plugin -- or just use their Ant task?

2012-03-07 Thread Ryan Wexler
Interesting. What was the advantage you found to a custom plugin versus just executing through Antrun? On Wed, Mar 7, 2012 at 3:51 PM, Dan Tran dant...@gmail.com wrote: I have experience on both IA ant and build executable. Ended up to write a maven plugin ( ia-maven-plugin) and just invoke

Re: InstallAnywhere plugin -- or just use their Ant task?

2012-03-07 Thread Dan Tran
Dealing with IA ant task thru maven is cumbersome. It is must simpler just to invoke the command line. -Dan On Wed, Mar 7, 2012 at 4:22 PM, Ryan Wexler r...@iridiumsuite.com wrote: Interesting. What was the advantage you found to a custom plugin versus just executing through Antrun? On

maven-shade-plugin classpath

2012-03-07 Thread Ryan Wexler
I am using the ManifestResourceTransformer of the maven shade plugin to create an executable jar from an existing jar. I would also like to add the classpath and set a classpathprefix like you can do using the normal maven jar. addClasspathtrue/addClasspath

Archetype Catalog location?

2012-03-07 Thread Dave King
Hi all, Using maven 3.0.3, I run archetype:crawl goal, it finds my installed archetype and includes it in its generation of ~/.m2/repository/archetype-catalog.xml. When I then run archetype:generate, it cannot find my archetype. When I move ~/.m2/repository/archetype-catalog.xml to

Re: InstallAnywhere plugin -- or just use their Ant task?

2012-03-07 Thread Dan Tran
Please also note that before invoking IA, we still need to do lots of prep works to create a staging area to place all required files to be consumed by IA. the prep works are done by various maven plugin such as resource, dependency, antrun, etc -D On Wed, Mar 7, 2012 at 4:27 PM, Dan Tran