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
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
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
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
:
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
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:
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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.
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,
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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,
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
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
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
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
, 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
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
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
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]
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:
65 matches
Mail list logo