I'm trying to convert my project from maven1 to maven2. I'm not sure I
understand the new repository and dependency model. I find the
documentation pretty good on an abstract level, but I'd like to see more
practical and concrete examples.
I'm heavyly dependent on nightly builds from e.g.
Take a look at the deploy plugin.
mvn deploy:deploy-file works by specifing your internal repo, version,
groupId, artifactId etc.
But if it facelets is also maven2ized and you want to have it's
transitive dependencies for free, you 'll want to
mvn deploy to your internal repository instead
Good stuff. I issued:
mvn install:install-file -DgroupId=foo -DartifactId=bar -Dversion=1.1.1
-DgeneratePom=true -Dpackaging=jar -Dfile=foo-bar-1.1.1.jar
..and it worked :)
Thanks,
Ove
On Sat, 18 Mar 2006 15:09:23 +0100, Geoffrey De Smet
[EMAIL PROTECTED] wrote:
Take a look at the
I think sergei is bringing a very good point here. It would be nice if
a mojo interface could extends another one. The true mojo used could
then be declared in the POM. This way we would have interfaces
hierarches and polymorphisms like in Java and hence Maven model would
be truly object.
On
Since the parent POM is part of the definition of the artifact, it
does have to be installed.
-Stephen
On 3/18/06, Rune Flobakk [EMAIL PROTECTED] wrote:
Ah, of course! The new transitive dependency thingie! It worked when I
ran mvn install first on the parent project.
But I tried to exclude
We have custom rulesets written in our company. The HOWTO in the plugin page
says how to specify the rulesets in the pom.xml:
http://maven.apache.org/plugins/maven-pmd-plugin/howto.html
But our ruleset XML files refer to custom written classes, which are
packaged in a separate Jar. How to
Perhaps need to use assembly plugin to unzip the the Jar and then let
PMD run on the classes directly?
(Personally, I think you should Maven2-ize the other project, and run
PMD directly on it, instead of doing this convoluted thing...)
Wayne
On 3/18/06, Subhash Chandran [EMAIL PROTECTED]
quote start
Personally, I think you should Maven2-ize the other project, and run
PMD directly on it, instead of doing this convoluted thing...
quote end
Well, even if I mavenize our plugin-extension project, where will I add the
dependency? The only logical place I can believe
Oh I didn't understand the question the first time! Went back and now
I understand better... Ignore my first response completely. ;-)
I would just add the jar file as follows:
plugin
maven-pmd-plugin
etc
dependencies
dependency
your jar here
/dep
/deps
/plugin
However... I think right now, the
Thanks Wayne for the advice. I will try this out and let u know.
One of the other round-abouts I tried: I tried to write a plugin extending
maven-pmd-plugin, having our PMD extension as a dependency. But this threw
some odd exception (i don't have trace as I am writing this from home).
Hi,
I'm no maven expert, but I believe Maven can work with parent poms in
two ways:
* fetch the pom from some local directory relative to the project being
built, or
* fetch the pom from a repository
If you've defined
parent
relativePath../parentstuff/pom.xml/relativePath
then the
What's wrong with Wayne's first suggestion?
module1 *depends* on module3, so you *must* build module3 at some point
in time:
cd module3
mvn install
However now this module is built and the jar placed somewhere that
module1 can find it (under $HOME/.m2/ as it happens). You can therefore
build
Hi, thanks for your answer!
Simon Kitching wrote:
I'm no maven expert, but I believe Maven can work with parent poms in
two ways:
* fetch the pom from some local directory relative to the project being
built, or
* fetch the pom from a repository
If you've defined
parent
On Sat, 2006-03-18 at 21:45 +0100, Rune Flobakk wrote:
Yes, that's what I hoped for, as the parent pom is located at the
default relativePath, and as I've understood I shouldn't need to define
relativePath, only the artifactId, groupId and version, but still it
doesn't seem to pick it up
Simon Kitching wrote:
On Sat, 2006-03-18 at 21:45 +0100, Rune Flobakk wrote:
Yes, that's what I hoped for, as the parent pom is located at the
default relativePath, and as I've understood I shouldn't need to define
relativePath, only the artifactId, groupId and version, but still it
doesn't
I am trying to write some documentations right now. Lack of
documentation has always been the worst enemy of Maven, people are a
bit afraid of it I think.
I am mainly writing a tutorial because I don't like the sparse guide
model right now. It isn't very user friendly. People are like ok wich
one
By the way, english isn't my native language so don't be to hard on my
writing please :) Just kidding. Seriously, any orthographic
corrections are very welcome.
On 3/18/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
I am trying to write some documentations right now. Lack of
documentation has
re: 1) My EAR pom.xml copies the ear file to the oc4j applications
directory. I used AntRun to do this copy, antrun bound to install, but I
think a better solution is to use the dependency-plugin (copyfile goal ??
can't remember). So during the 'install' the EAR file redeploys if the
server is
If I understand it correctly, any property which can be set by the -D flag
should also be settable through the POM properties element, such as:
properties
performReleasetrue/performRelease
/properties
On 3/15/06, Miguel Griffa [EMAIL PROTECTED] wrote:
I've followed discussions about
Hello, everyone,
I'm looking to set up some new projects, and Maven looks like an
absolutely excellent tool except for one thing--I'm afraid of it. :)
There are so many plugins, so many things this system is capable of,
yet I can't even figure out a way to get a list of the goals
I'm on a truncated schedule with a lot of new technologies, so
This is a bad recipe for a successful first-time use of any new
technology, and Maven in particular since it is an open-source tool
and many users complain about the documentation lately.
If you have an existing build process that
Hi,
I am searching for an overview of the available Maven 2 report plug-ins
besides the standard ones.
I found an example for pmd but I wonder if there is a somewhere a
collection of available reports like JUnit, JDepend, etc. with examples
for configuring them.
Of course I could look into the
No such page exists, that I have ever seen...
Here's the reporting section from one of my poms, though:
reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-project-info-reports-plugin/artifactId
/plugin
plugin
Thanks for the heads-up regarding the
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdsurefire-report-maven-plugin/artifactId
/plugin
Resulted in a somewhat buggy testing report at least. Got an ugly
stacktrace from the surefire-report-maven-plugin while
Install the custom ruleset jar file in the local Maven repo and add it as a
project dependency. Your custom classes are then on the classpath, and PMD
runs successfully with your custom ruleset.
-Original Message-
From: Subhash Chandran [mailto:[EMAIL PROTECTED]
Sent: Saturday, March
No that's because the plugin doesn't understand your German-style numbers. ;-)
This was discussed in an email thread a few weeks ago...
Subject
[m202] NumberFormatException when using the surefire report plugin
##
This error is indeed caused by the german locale. Simply change the
locale
http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven.html
That's a good article, I've referred to it myself a bit.
maven-surefire-plugin doesn't even seem to start, and the
maven-clover-plugin complains about an expired licence...
Clover is not free. Its a product from www.cenqua.com.
In Maven 1 the war plugin would build an exploded war with the goal war:webapp.
in maven 2 the goal is war:exploded.
My problem is that in maven2 the classes direcotry is not included the
exploded war!
How do I get the war plugin to do what it should be doing in the first place?
- Brill
Wayne Fay wrote:
http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven.html
That's a good article, I've referred to it myself a bit.
maven-surefire-plugin doesn't even seem to start, and the
maven-clover-plugin complains about an expired licence...
Clover is not free. Its a product
Wayne Fay wrote:
No that's because the plugin doesn't understand your German-style numbers. ;-)
German-style, eh? Oh well, at least you didn't call it Swedish-style,
now that would have been a serious insult ;-)
This was discussed in an email thread a few weeks ago...
Subject
[m202]
I just know the other guys who had the same problem were German. I
suppose I should have said European-style numbers ? Or what is it
called when you use period for thousands and comma for decimal place?
As for Cobertura, just give it a couple weeks for Maven 2.0.3 to be
out and official and then
Hi Team,
Am very new to Build as well as Maven. I managed to compile a source
using mvn compile. When I try to do test i.e mvn test am getting the
following Error
RUN ABORTED
java.lang.NoSuchMethodException
org.apache.maven.surefire.Runner
An exception or error caused a run to
On 3/19/06, Gordon Henriksen [EMAIL PROTECTED] wrote:
1. ECLIPSE -
Where do I look for integration with the IDE? Refactoring and code
completion tools are simply too important to ignore, but Eclipse
doesn't seem nearly smart enough to pick up the entire build ball and
run with it, so it seems
The range configuration in changelog-maven-plugin is not working as
expected. It always generates report for the last 30 days.
http://mojo.codehaus.org/changelog-maven-plugin/howto.html
My POM configuration:
plugin
groupIdorg.codehaus.mojo/groupId
Run mvn -X -e test to hopefully reveal more details about the error.
Also confirm for us that you have:
1. java junit test files named XXXTest.java in your src/test/java folders
2. those test files have test method signatures like public void testXXX() {}
Just a few days ago, someone else posted
Hi Wayne,
Thanks for your early reply.
1.As you said there are no such files named XXXTest.java and there are files
name TestCase.java
2. and those test files (TestCase) also doesnot have test method
signatures like public void testXXX() {}
Should I have to rewrite such test
Try modifying one test file to fit the terms I've outlined and see if
it resolves your error. I think it will. If this works, then yes I
think you will generally need to rewrite your cases to run in
Surefire.
Alternatively you could perhaps find a way to configure the Surefire
plugin to allow you
37 matches
Mail list logo