Re: [release-plugin] prepare phase does not detect dirty Git files (on Windows)

2015-10-06 Thread Vincent Latombe
Hi Bernd, you should make sure you are using a recent version of maven-release-plugin (>=2.5). Older versions have compatibility issues because of the git scm provider they depend on which is incompatible with current git versions. Vincent 2015-10-05 22:26 GMT+02:00 Bernd Eckenfels

Re: Release plugin behavior anomoly

2015-10-06 Thread Vincent Latombe
Hi Robert, you can't use properties within the project's artifactId or the parent declaration (except for a few exceptions where it is expected to be provided by command line, see https://issues.apache.org/jira/browse/MNG-5576 ) I would recommend you to have a look at the maven-release layout on

Re: A little puzzle with the build helper

2015-06-27 Thread Vincent Latombe
Hi Benson, there is a new mailing list hosted on Google groups : https://groups.google.com/forum/#!forum/mojohaus-dev Vincent 2015-06-27 0:35 GMT+02:00 Jeff MAURY jeffma...@jeffmaury.com: Please find what I do: plugingroupIdorg.codehaus.mojo/groupId

Re: Only deploying dependencies instead of the whole pom

2015-06-09 Thread Vincent Latombe
I think http://www.mojohaus.org/flatten-maven-plugin/ should help Vincent 2015-06-09 19:27 GMT+02:00 Pascal Rapicault pas...@rapicault.net: My question that was not really clear. Let's say that I have a multi module build that produces a number of jars. The pom.xml for these modules use a

Re: Maven 3 with newest Checkstyle 6.3

2015-02-14 Thread Vincent Latombe
: Unable to instantiate RedundantThrowsCheck - [Help 1] so it seems that it uses the old 5.4 version. How can I fix this? I’m not confirm with the correct syntax semantic structure of the pom.xml Thanks Phil Am 13.02.2015 um 21:45 schrieb Vincent Latombe vincent.lato...@gmail.com

Re: Maven 3 with newest Checkstyle 6.3

2015-02-13 Thread Vincent Latombe
Hi, apply http://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html#Checking_for_Violations_as_Part_of_the_Build and http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/upgrading-checkstyle.html Vincent 2015-02-13 21:28 GMT+01:00 Philipp Kraus philipp.kr...@flashpixx.de:

Re: Issue with Maven WAR Plugin?

2015-01-25 Thread Vincent Latombe
Do you have overlays? One of your overlays may embed a different version that doesn't appear in the dependency tree, but yet it is there. Vincent 2015-01-25 6:42 GMT+01:00 Dan Tran dant...@gmail.com: It does not sound right. Do you have a mini maven project to produce this? Thanks -D On

Re: dependency plugin strangeness

2014-01-29 Thread Vincent Latombe
Hi, I have already seen such error. It is caused by the combination of a managed dependency (through dependencyManagement) defining a dependency with system scope + Maven 3 + Sonar. The same with Maven 2.2.1 should work. Though, I have never seen it directly in a dependency:tree execution; only

Re: `mvn test` doesn't notice compilation errors

2013-11-19 Thread Vincent Latombe
Hi, you should use mvn clean test to make sure compilation happens everytime. Otherwise, you can check recent versions of maven-compiler-plugin (3.1) which introduced some incremental compilation support [1]. And yes, mvn compile will only compile main source code, you should check the lifecycle

Re: maven-failsafe-plugin: what is it actually intended for?

2013-11-14 Thread Vincent Latombe
you mean 'verify', not 'validate' Vincent 2013/11/14 Matthew Adams matt...@matthewadams.me Here's a bit less philosophical, more practical description of Surefire v. Failsafe. Remember that if you use the maven-surefire-plugin, it's going to execute during the Maven test phase by default,

Re: maven-failsafe-plugin: what is it actually intended for?

2013-11-14 Thread Vincent Latombe
question : do you need to perform any set up/teardown outside of the test execution framework? If yes, use failsafe, if no, use surefire Cheers, Vincent Vincent 2013/11/15 Vincent Latombe vincent.lato...@gmail.com you mean 'verify', not 'validate' Vincent 2013/11/14 Matthew Adams matt

Re: Why is mvn validate compile different from mvn validate; mvn compile?

2013-11-07 Thread Vincent Latombe
Hi, It doesn't work because in Maven, dependencies are resolved prior to any plugin execution (for each module contained in the reactor). Which dependencies (compile, runtime, test) are resolved depend on what is required by the various plugins that are be called in the lifecycle (depending on

Re: Multiple versions of same local jar

2013-10-16 Thread Vincent Latombe
Also, you can define a fileNameMapping to drop the version number http://maven.apache.org/plugins/maven-war-plugin/examples/file-name-mapping.html That way, new versions will erase old versions. Vincent 2013/10/16 berc46 jacques.pou...@gmail.com Yup, Idea 1 is right, thx ! -- View this

Re: `mvn generate-sources` skipping my custom executions?

2013-09-10 Thread Vincent Latombe
Hi, you are missing goals goalrun/goal /goals from the execution block for antrun. Vincent 2013/9/10 Andrew Pennebaker apenneba...@42six.com I added executions for `.thrift - .java` as part of the generate-sources phase, using `maven-antrun-plugin`. But when I enter `mvn

Re: How to tell what arch value Maven is going to find?

2013-08-16 Thread Vincent Latombe
Hello, use mvn -v, you'll see a line about OS information. These are the values maven reads. Vincent 2013/8/15 KARR, DAVID dk0...@att.com I defined a profile for Linux to set a path to a Linux executable. The executable is 64-bit, and the architecture is 64-bit (the uname -a output has

Re: Maven 3.1 profile activation

2013-08-09 Thread Vincent Latombe
Hi, you don't need to add a new profile. the new plugin is still compatible with maven 3.0.x (See comment [1]) [1] http://jira.codehaus.org/browse/MSONAR-22 Vincent 2013/8/9 Lyons, Roy roy.ly...@cmegroup.com So... They released sonar-maven-plugin 2.1... and my corporate pom is nice

Re: Preventing Maven from downloading certain versions from external repositories

2013-07-25 Thread Vincent Latombe
Hi, I use xxx-LOCAL for this kind of thing, since they are not considered as snapshots, maven won't try everyday to download a new local version. Vincent 2013/7/25 Ron Wheeler rwhee...@artifact-software.com Are you at least proxying the external Maven repos through your own repo. That will

Re: ForkedBooter in 2.2.1 does not honor MAVEN_OPTS

2013-07-21 Thread Vincent Latombe
Hello, This is the JVM forked to execute unit tests (through maven-surefire-plugin). Check [1] to set options for that jvm. [1] http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#argLine Vincent 2013/7/20 Ben Siemon ben.sie...@opower.com Specifically I have

Re: Problems setting up a custom package type II - plugin/mojo versions in components.xml

2013-07-04 Thread Vincent Latombe
These are taken from the parent pom (super POM coming from maven core, any parent pom that you define) Regards, Vincent 2013/7/4 Mirko Friedenhagen mfriedenha...@gmail.com: Hello everyone, now I am getting greedy :-). I see that you may specify versions for the goals being executed during

Re: Problems setting up a custom package type II - plugin/mojo versions in components.xml

2013-07-04 Thread Vincent Latombe
Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Thu, Jul 4, 2013 at 8:33 AM, Vincent Latombe vincent.lato...@gmail.com wrote: These are taken from the parent pom (super POM coming from maven core, any

Re: Circular dependency and assembly plugin

2013-04-01 Thread Vincent Latombe
Hi, generally, the good answer to this kind of problem is to extract the assembly part to an artifact C, that depends on both A and B. Cheers, Vincent 2013/4/1 Baptiste MATHUS bmat...@batmat.net Hi, Difficult to be sure what you're trying to do, but having circular dep is in fact

Re: Initialize not running during Install?

2013-03-05 Thread Vincent Latombe
Hi, what you are trying to do cannot work within one maven execution. In your case, mvn initialize works because maven-install-plugin doesn't require dependencies of the project, so the build plan can be executed. mvn install cannot work, because dependencies are resolved before any plugin part

Re: how to proxy a one nexus instance via another local one

2012-11-09 Thread Vincent Latombe
Hello, this is rather a Nexus question, but so far your solution looks good to me. Vincent 2012/11/9 Davis, Chad chad.da...@emc.com This may be a nexus only question, in which case I'll take it to the nexus list. However, It may also be something better handled from within maven itself.

Re: How to exclude transitive dependencies from war?

2012-09-28 Thread Vincent Latombe
Hello, I believe there is now a skinny war option in the ear plugin that could help you to handle this case. I never used it so I cannot really tell you more about it. Another option would be to have 2 profiles to build your war. One with all dependencies provided by the ear marked as provided,

Re: [Q] Skinny Wars and Taglibs

2012-08-31 Thread Vincent Latombe
I think it depends on the container, but you actually need the tlds (at least) in the .war. (under WEB-INF). Vincent 2012/8/30 Hoying, Ken ken_hoy...@premierinc.com I am betting someone already has a clever solution to the following problem. I am trying to create a deployment ear which

Re: custom unique version

2012-01-21 Thread Vincent Latombe
http://mojo.codehaus.org/buildnumber-maven-plugin/ could be your solution Vincent 2012/1/20 Ron Wheeler rwhee...@artifact-software.com Of all of the developers that have built thousands of applications using Maven, you are the only one who wants to do this. Does that not raise any red

Re: Difference between build/extensions/extension and build/plugins/plugin/extensions?

2011-09-13 Thread Vincent Latombe
As far as I understand, specifying build/plugins/plugin/**extensions set to true allows plugins embedding a components.xml to actually declare these components as part of the context. In such case you don't need to repeat the plugin declaration in the build/extensions/extension section. The

Re: Why would unpack-dependencies sometimes not do its job?

2011-08-01 Thread Vincent Latombe
Use http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html to add additional source directories. Vincent On Thu, Jul 28, 2011 at 17:15, KARR, DAVID (ATTSI) dk0...@att.com wrote: -Original Message- From: KARR, DAVID (ATTSI) Sent: Thursday, July 28, 2011 7:03 AM

Re: Why would unpack-dependencies sometimes not do its job?

2011-08-01 Thread Vincent Latombe
Or, since you have classes, http://mojo.codehaus.org/build-helper-maven-plugin/add-resource-mojo.html Vincent On Mon, Aug 1, 2011 at 17:58, Vincent Latombe vincent.lato...@gmail.comwrote: Use http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html to add additional source

Re: Skip Resources for War

2011-07-08 Thread Vincent Latombe
Hello, You have to use http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html webResources are meant to be web resources (jsp, js, html) not resources present in the classpath (WEB-INF/classes) Vincent On Wed, Jul 6, 2011 at 18:01, Wayne Fay

Re: Maven 3 support for org.apache.maven.user-settings

2011-02-08 Thread Vincent Latombe
Use -s command-line argument? Vincent 2011/2/8 radai radai.rosenbl...@gmail.com Benjamin Bentmann wrote: There is no alternative but support for the system property can be restored if there's a valid use case for it. Benjamin we have a hudson CI server running builds for

Re: Mvn 3: Dependency list vs Dependency tree

2010-11-25 Thread Vincent Latombe
Hello, check your dependency:tree again, I can see net.sf.ehcache:ehcache:jar:1.5.0 and com.oracle:ojdbc14:jar:10.2.0.4.0 at least. I also recommend you to check help:effective-pom to check if these dependencies didn't get included through your pom hierarchy. Vincent 2010/11/25 Gérald

Re: Create jar from ear project or create 2 jars from jar project

2010-11-25 Thread Vincent Latombe
Hi, one project = one artifact. You'll get hurt (to various degrees) if you try to fight that principle. Here are a few hints to explore though : - build-helper-plugin to attach additional artifacts to your build - dependency-plugin to copy/unpack resources from other artifacts Vincent

Re: parallel execution of unit tests

2010-11-21 Thread Vincent Latombe
By default, all tests are runned in the same jvm instance, that's why your static assignments are not reset. You have 2 solutions : - clean up the static state between each test - use forkMode = always. It will create a new jvm for each test. However, as you can understand, it will perform much

Re: properties inheritance does not work on windows os

2010-11-12 Thread Vincent Latombe
I think what Benjamin meant is : please provide an sample project to reproduce your problem. Vincent 2010/11/11 Yanko, Curtis curt_ya...@uhc.com Very odd indeed, we use properties quite pervasively and I haven't seen this. I do recall some chicken-n-egg scenarios but this doesn't to fit

Re: RE: properties inheritance does not work on windows os

2010-11-12 Thread Vincent Latombe
My previous message was meant for chemit and his reaction to Benjamin's message Vincent Le 2010 11 12 13:59, Yanko, Curtis curt_ya...@uhc.com a écrit : ?? -Original Message- From: Vincent Latombe [mailto:vincent.lato...@gmail.com] Sent: Friday, November 12, 2010 7:56 AM To: Maven

Re: Version 1.0 of maven-enforcer-plugin not deployed

2010-11-09 Thread Vincent Latombe
I can reach the artifact just fine. Vincent 2010/11/9 Johan Hedin johan.he...@mawell.com Maven refuses to build. Version 1.0 of maven-enforcer-plugin in the repo1.maven.org is empty. [INFO] Downloading:

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

2010-11-09 Thread Vincent Latombe
What you want can be achieved by having one big aggregator that contains all your modules and your ears, and use the reactor feature. By typing mvn -pl my-project:app -am, where my-project:app is the groupId of your ear, you will actually build the ear and all its transitive dependencies accross

Re: Change artifactId by Profile

2010-11-08 Thread Vincent Latombe
I don't know about your context, but you should make different artifacts instead. Vincent 2010/11/8 Darren Hartford binarymon...@yahoo.com Hey all, I have a number of builds that, depending on the profile selected, should deploy a different artifact. Usually this is related to branding

Order of properties resolution within POM and inheritance

2010-11-08 Thread Vincent Latombe
Hi everyone, I just got surprised by the way Maven resolves properties between parent, profiles and current pom. I made an example project to illustrate that (one parent pom, one child) : https://gist.github.com/667731 With this example project, from the child project, I get the following : mvn

Re: mvn install to a given local repo path - broken with m3?

2010-11-04 Thread Vincent Latombe
I don't know where you read that -DlocalRepository overrided the local repository path, but I don't think this has ever worked. As Wendy says, use -Dmaven.repo.local Vincent 2010/11/4 Holger Hoffstaette holger.hoffstae...@googlemail.com On Thu, 04 Nov 2010 13:08:41 +0100, Jochen Wiedmann

Re: duplicate web.xml files in a .war file

2010-11-04 Thread Vincent Latombe
Hi, this is a known problem of maven war plugin 2.1. Version 2.1.1 has been released earlier today and it fixes this issue. Cheers, Vincent 2010/11/4 Andrew Westberg andrewwestb...@gmail.com I updated to the latest maven 3. I noticed that my webapp projects now contain two copies of

Re: accessing settings.xml when specfiying user.home

2010-11-02 Thread Vincent Latombe
Hello, when you type mvn -Duser.home=j:\joe_user compile, you provide user.home to maven. In your case, I think you want to provide this to the jvm that executes maven, so you should try set MAVEN_OPTS=-Duser.home=j:\joe_user compile Cheers, Vincent 2010/11/1 c...@netzero.net c...@netzero.net

Re: How to release 2 items together, with inter-dependent versions, some specified in configuration elements?

2010-10-28 Thread Vincent Latombe
I thought of that as well, but if it is a parent pom, children will most likely redefine ${project.version} to have their own. Marshall, I think you can refine your scenario by doing the following : - remove the configuration part from your parent pom - release it together with your

Re: How to release 2 items together, with inter-dependent versions, some specified in configuration elements?

2010-10-28 Thread Vincent Latombe
On Thu, Oct 28, 2010 at 08:29, Vincent Latombe vincent.lato...@gmail.com wrote: I thought of that as well, but if it is a parent pom, children will most likely redefine ${project.version} to have their own. Marshall, I think you can refine your scenario by doing the following

Re: Problem with maven-war-plugin

2010-10-28 Thread Vincent Latombe
I don't think 2.2 is out yet, however he can try snapshots, as described in the issue. 2010/10/28 John Singleton john.te...@gmail.com It appears this was fixed in version 2.2 of m-w-p, try updating. http://jira.codehaus.org/browse/MWAR-235 Cheers, John 2010/10/28 Marcin Trościańczyk

Re: avoiding dependency version number duplication

2010-10-26 Thread Vincent Latombe
The ${...} string is not supposed to be replaced. It will be resolved because the parent hierarchy is retrieved when your artifact is declared as a dependency, so it has the whole context to resolve the property. Vincent 2010/10/26 Paul Benedict pbened...@apache.org I don't believe that's

Re: maven-versions-plugin version comparism

2010-10-21 Thread Vincent Latombe
Hello, About version comparator themselves, I couldn't find one that fit my use case which is, multiple development branches evolving in parallel, with pseudo releases. For example, I can have versions like 1.0-1234-01, 1.0-1234-02, 1.0-5678-01, and I want to match with a version range only

Re: Shared Assembly With Additional Files

2010-10-21 Thread Vincent Latombe
I had a similar requirement, and I ended up using dependency:unpack. Otherwise, you could try using http://maven.apache.org/plugins/maven-remote-resources-plugin/ 2010/10/21 Mike Lenner mike.len...@gmail.com Seems no one's doing this. Guess I'll go the route of dependency:unpack and just

Re: Maven SCM plugin and CCRC

2010-10-20 Thread Vincent Latombe
Hello, as far as I know, there is no scm implementation of CCRC for Maven. Clearcase Base/UCM are partially supported, it is far from perfect to be able to do the checkout/release roundtrip. I am guessing you read the documentation for the Clearcase (heavy client) implementation Cheers, Vincent

Re: A project uses a resource defined in a module that it does not depends upon

2010-10-19 Thread Vincent Latombe
Without any example project (at least the pom.xml for the different modules), I don't think anybody will be able to help you. Have you checked dependency:tree on B1? 2010/10/19 Daniele Dellafiore ilde...@gmail.com Hi, I have this situation. Project A and B have many modules. Everyone has a

Re: Strange behaviour on resource plugin

2010-10-19 Thread Vincent Latombe
Hello, Do you define the version of maven-resources-plugin in your pom ? Are you using profiles? 2010/10/19 Søren Krum soren.k...@uninett.no Hi! I have detected a strange bahaviour of the maven resource plugin, and i am wondering if someone can give me a hint, what is going wrong here.

Re: Questions on SNAPSHOTs

2010-10-16 Thread Vincent Latombe
Hello Brian What you assume is right : if the timestamp of a remote artifact is more recent than the timestamp of a local artifact (under .m2), it will download the version from the remote repository. This will be happening depending on the updatePolicy (daily by default), or if you add -U flag

Re: Is dependency:copy-dependencies outputDirectory config property broken?

2010-10-11 Thread Vincent Latombe
Hi, Your execution is attached to the lifecycle. You'll get the expected behaviour if you type mvn package, not by calling directly the mojo from command line. 2010/10/11 Steve Francolla sfranco...@gmail.com Help! My dependencies only ever get written to the default

Re: maven eclipse plug-in refresh problem

2010-10-11 Thread Vincent Latombe
Don't use mvn eclipse:eclipse if you want to use the m2eclipse plugin. Use Import Existing Maven project. 2010/10/11 Davide d...@vide.bz Hi, I have installed the maven eclipse plug-in from: http://m2eclipse.sonatype.org/ Now I have more projects in my eclipse workspace. I have run mvn

Re: Maven WAR Plugin - Modify/Rename files before WAR

2010-10-07 Thread Vincent Latombe
Hello, war:war is called during package phase, so at prepare-package phase you have nothing available. I think the war-plugin should be updated to take that into account. A possible workaround is to bind an execution of war:exploded during the prepare-phase, then you do your stuff with antrun,

Re: Can't specify distributionManagement in settings.xml

2010-10-06 Thread Vincent Latombe
In Maven/Nexus terminology, you deploy a release candidate to a staging area (#2) in your example. This artifact (or group of artifacts) is then made available to a group of people for validation (it can be automated or manual). Once it's validated it is promoted and copied to the release

Re: Company-wide settings

2010-10-05 Thread Vincent Latombe
To handle distributionManagement, I define the url as a property that is defined in settings.xml. This allow me to define the whole connectivity from settings.xml. If ever my repository changed, I just need to update settings.xml on my build machines, instead of releasing a new parent and bumping

Re: Maven failing due to javac path issue -- Windows

2010-09-07 Thread Vincent Latombe
What's your effective pom? (especially maven-compiler-plugin configuration?) I'm guessing something like a property that is supposed to be set through a profile in settings.xml depending on your environment is not defined. 2010/9/7 per-henrik hedman phhed...@gmail.com what's the output from mvn

Re: sharing assembly descriptor

2010-09-07 Thread Vincent Latombe
Hi, - first, you need to put your assembly under src/main/resources/*assemblies* (as indicated in the link you provided) - then, you should be able to reference either the xml using the descriptor tag like you did 2010/9/7 mremerson...@aim.com Hi all, I'm trying to use a shared assembly

Re: Maven failing due to javac path issue -- Windows

2010-09-07 Thread Vincent Latombe
, that by adding the maven-compiler-plugin to the parent pom.xml will fix my angst, but I shouldn't have to do that. From the debug output, [DEBUG] (f) executable = null/bin/javac, the path is pointing to null. Enrique [image: Inactive hide details for Vincent Latombe ---09/07/2010 12:16:37

Re: Question to: No primary artifact to install...

2010-08-26 Thread Vincent Latombe
Huh? Is this some kind of predefined profile? I think you got mixed up Anders ;) 2010/8/26 Anders Hammar and...@hammar.net mvn install -P release-profile Should do it. /Anders (mobile) Den 2010 8 26 16:13 skrev Thomas Trepper thomas.trep...@blueclaim.com: Hi Mathus, thanks a lot

Re: Correcting a groupID

2010-08-26 Thread Vincent Latombe
You'll need a dependencyManagement to force A to use c-n:c-n:12 which will depends on org.apache.commons.net:c-n:12. 2010/8/26 Benson Margulies bimargul...@gmail.com On Thu, Aug 26, 2010 at 8:41 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Why not have commons-net:commons-net

Re: Want primary artifact of type 'zip'

2010-07-29 Thread Vincent Latombe
Or use an assembly with id/id 2010/7/29 Jörg Schaible joerg.schai...@gmx.de Benson Margulies wrote: So, I have a project whose only purpose is to deliver a zip file under a G/A/V triple. In a moment, I will put myself out of my misery by specifying a classifier. [WARNING]

Re: what happened to release:update-versions?

2010-07-25 Thread Vincent Latombe
Hello, you are not using the latest release plugin version, which is 2.0 2010/7/24 Shan Syed shan...@gmail.com is it gone? perhaps in favor of the http://mojo.codehaus.org/versions-maven-plugin/ plugin? mvn release:update-versions ... [INFO] Required goal not found: