Hello,
I have a question. I need to control the quality of code of some projects.
Indeed, we need the cobertura, codenarc, stylechek..
After a long search in net, I have found that the maven plugin Dashboard
Report Plugin can offer us all what we need.
however, our projects are not maven
To me this sounds very similar to what the surefire reporting plugin does.
Have a look at that code:
http://maven.apache.org/plugins/maven-surefire-report-plugin/
/Anders
On Wed, Mar 30, 2011 at 01:20, Benson Margulies bimargul...@gmail.comwrote:
I want to create a report which presents some
We have been using Maven 2.2.1 successfully for releasing multi-module projects
and generating sites. Suddenly, the builds started failing with the following
error.
[FATAL ERROR] org.apache.maven.plugins.site.SiteMojo#execute() caused a linkage
error (java.lang.AbstractMethodError) and may be
No, it wouldn't work.
If I was you I'd take a look at the Sonar project, which I think now has Ant
support as well. Please move to their users list for further questions
regarding that product.
/Anders
On Wed, Mar 30, 2011 at 08:42, ensienne t.zei...@gmail.com wrote:
Hello,
I have a
another approch to solve the problem with EJB's is to use the followint in
the maven-ejb-plugin
org.apache.maven.plugins
maven-ejb-plugin
3.0
true
**/service/**
**/domain/**
**/impl/**
false
When posting to this list the mail to one of the subscribers bounces and I
get a notification about this. Very annoying!
Not sure who I should contact about this, but someone more Apache involved
on this list maybe know?
More info of the bounce below.
/Anders
Dies ist eine automatisch erstellte
dagerber wrote:
another approch to solve the problem with EJB's is to use the followint in
the maven-ejb-plugin
org.apache.maven.plugins
maven-ejb-plugin
3.0
true
**/service/**
**/domain/**
**/impl/**
You should use the maven-failsave-plugin instead of the
maven-surefire-plugin.
The maven-failsave-plugin doesn't fail the build, but the test failures
will be in Your reports.
This looks much like what I want! So if people insist on a dedicated
HTML-JUnit report I can leverage this plugin
Marc Rohlfs wrote:
another idea could be to call Maven with the --fail-at-end (-fae)
option. But this doesn't seem to work with Maven 3 anymore.
Even if 'fail-at-end' was working: wouldn't the artifacts still be
deployed, when running 'mvn deploy' ?
Yes, You're right - didn't think about
Hello all,
I'm using Maven with flexmojos plugin to compile flex projects, and package
the deliveries in a tar.gz with Assembly plugin.
At the end of package phase, target folder contains several swf (equivalent
of jar), a linker xml file, and the tar.gz.
If i run install or deploy phase, all
You should use the maven-failsave-plugin instead of the
maven-surefire-plugin.
The maven-failsave-plugin doesn't fail the build, but the test failures
will be in Your reports.
This looks much like what I want! So if people insist on a dedicated
HTML-JUnit report I can leverage this plugin
And you don't have to deploy the first time, install is enough (mvn install
site site:deploy) and deploy later on skipping the tests if the first run
was successful.
Right, forgot to mention that, many thanks!!!
-
To
You only have one Maven project? Normally you would have a multi-module
project where one module produces one artifact (a jar, a war, etc.). The you
have one module where the assemlby (the tar) is created. All artifacts are
deployed to the repo, but don't worry about that - that's how Maven works.
If now only every other plugin (checkstyle/findbugs) would support such a
'two-phase' model as well.
If these were just setting a property (like the corresponding ant-targets)
that could be evaluated in the 'verify' phase...
The Findbugs and Checkstyle plugins provide different goals, for
Yes, I have only one project / no module.
I used to have a root project with 2 modules: one for compiling swf, one for
making the assembly, and in this case, this release artifact only contains
the tar.gz.
I changed this with a unique project with a profile for activating assembly
/ tar.gz. It's
On Wed, Mar 30, 2011 at 3:47 AM, Anders Hammar and...@hammar.net wrote:
When posting to this list the mail to one of the subscribers bounces and I
get a notification about this. Very annoying!
Not sure who I should contact about this, but someone more Apache involved
on this list maybe know?
To generate a site, using the clover and dashboard plugin currently I need
to use the following command-line:
mvn clover2:setup site clover2:aggregate clover2:clover
dashboard:dashboard site:deploy
(this is to overcome some problems with the site-plugin, which in
multi-module builds seems to
Thanks Wendy!
/Anders
On Wed, Mar 30, 2011 at 12:25, Wendy Smoak wsm...@gmail.com wrote:
On Wed, Mar 30, 2011 at 3:47 AM, Anders Hammar and...@hammar.net wrote:
When posting to this list the mail to one of the subscribers bounces and
I
get a notification about this. Very annoying!
Not
Bind the goals you want to run to chosen phases.
This is done in through build/plugins/plugin/executions/execution in your
pom
--
View this message in context:
http://maven.40175.n5.nabble.com/changing-a-long-mvn-command-with-many-goals-to-a-simple-command-tp4271214p4271230.html
Sent from the
OK, let me try to state this more clearly.
Reporting plugins like checkstyle and pmd and javadoc look for the
output of their corresponding build plugins. If they don't find it,
they fork a build lifecycle to build it. They aren't especially
protected against stale data.
I really can't fork
Bind the goals you want to run to chosen phases.
This unfortuntaly is not possible in a multimodule build, let's take the
dashboard plugin as an example:
The dashboard:dashboard needs to run AFTER the full site has been created
in a multimodule build (because it needs access to all
At the root project create a profile for running these tasks, e.g.
profile
idmy-superugly-hack/id
...
/profile
into that profile you put a build section with a defaultGoal
containing all the stuff you want to do separated by spaces
ideally you would also configure all the executions and the
Also it is important to note that this trick only works if the profile
id contains the string -superugly-hack
On 30 March 2011 12:34, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
At the root project create a profile for running these tasks, e.g.
profile
idmy-superugly-hack/id
Please always keep replies on the list for future queries.
On 30 March 2011 12:56, stefan.han...@tolina.com wrote:
At the root project create a profile for running these tasks, e.g.
profile
idmy-superugly-hack/id
...
/profile
into that profile you put a build section with a
Please always keep replies on the list for future queries.
Sorry, answered to the wrong mail, will keep an eye on it in the future.
Maven invoker plugin could do what you want... you would bind it in a
profile to e.g. the validate phase of the lifecycle. then you can use
defaultGoal as
On 30 March 2011 13:27, stefan.han...@tolina.com wrote:
Please always keep replies on the list for future queries.
Sorry, answered to the wrong mail, will keep an eye on it in the future.
Maven invoker plugin could do what you want... you would bind it in a
profile to e.g. the validate phase
On Wed, Mar 30, 2011 at 12:44 AM, Anders Hammar and...@hammar.net wrote:
Be aware that you're talking of two different strategies. Using a pom
artifact as a dependency and using import scope to import depMgmt declared
in another pom. Two different things!
Yes, that's exactly my point. I've
1. needs to be bound in a non-default profile
2. needs to have inheritedfalse/inherited to stop the child
projects running invoker
3. need to set invoker.nonRecursive or invoker.nonRecursive.N where N
is the invokation you want only on the root pom.
Now invoker plugin is doing what I want
Is there any way short of recompiling Maven to allow custom tags in the pom.xml?
Specifically, I would like to have a special tag inside dependency.
It's ok if Maven ignores it; I will just look at it from my plugin
that will parse the pom manually if it has to.
Thanks,
Phillip
On Wed, Mar 30, 2011 at 9:06 AM, Phillip Hellewell ssh...@gmail.com wrote:
Is there any way short of recompiling Maven to allow custom tags in the
pom.xml?
Specifically, I would like to have a special tag inside dependency.
It's ok if Maven ignores it; I will just look at it from my plugin
Maybe it´s not the best way, but if you´re possibly willing to manually
parse the pom, I believe you could just insert a XML Comment (like !--
@CustomTag --) and the XML parsing framework would be able to see it.
On Wed, Mar 30, 2011 at 10:06 AM, Phillip Hellewell ssh...@gmail.comwrote:
Is
how about XML PI's
IIRC maven tools which rewrite the pom might strip them out, but
otherwise you'd be fine
On 30 March 2011 14:06, Phillip Hellewell ssh...@gmail.com wrote:
Is there any way short of recompiling Maven to allow custom tags in the
pom.xml?
Specifically, I would like to have a
Maybe you should start to use a proper mailer instead ... ;-)
Blame Nabble. All these people use Nabble instead of being subscribed
properly and that stupid site strips XML.
Wayne
-
To unsubscribe, e-mail:
Hi all,
I am running Maven 2.2.1 and am using the resources-plugin 2.4.3 and for
some reason Maven only replaces 6 instances of my 7 variable definitions
(or better said: 30 of my 35 variables).
I tries setting the delimiter (since this was a bug in 2.4 if I remember
correctly), but this
Hi all,
I'd like to make my own artifact/archetype and I'm facing an issue when trying
to install it, precisely when it tries to make the jar file.
Here is the output :
C:\HOMEWARE\Maxime\myartifact mvn install
[INFO] Scanning for projects...
[INFO]
Why not name spaces?
-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Wednesday, March 30, 2011 9:48 AM
To: Maven Users List
Subject: Re: Custom tags in the pom
how about XML PI's
IIRC maven tools which rewrite the pom might strip them out, but
I even tried to add some other variables, but it seems that at a certain
point, it just stops replacing them!
Does anybody know what I can do to get this working?
Clearly, reduce the number of variables... ;-) (that's a wink... its a joke)
I've never run into this but I don't have all that
Ok, is this a bad idea? I am wanting to have one ci build. Kind of this flow:
Developer checks in, ci build is done on Hudson, build is put on artifactory,
build can then be deployed to a dev, test or production server.
Guess I am saying I don't want to do snapshot and release builds, but just
OK, found it... It seems the bug with '@' from the 2.4 release still
isn't fixed (correctly).
I found that I have 7 '@' in my file and the variables *after* the 7th
'@' weren't replaced!
In my tries with the delimiters, I forgot to tell Maven not to use the
defaults -- this did the trick for
Hello,
I'm interested to have a sample project to reproduce :-).
Can you attach it to a jira issue ?
Thanks!
2011/3/30 Asmann, Roland roland.asm...@adesso.at:
OK, found it... It seems the bug with '@' from the 2.4 release still
isn't fixed (correctly).
I found that I have 7 '@' in my file
Modello may object to some uses of namespaces... suck it and see!
On 30 March 2011 16:56, Stan Devitt sdev...@rim.com wrote:
Why not name spaces?
-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Wednesday, March 30, 2011 9:48 AM
To: Maven
I found that I have 7 '@' in my file and the variables *after* the 7th
'@' weren't replaced!
To clarify: removing one or adding one worked like a charm!
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26. Stock T +43 1 2198790-27
Floridsdorfer
Either it is an xml document or it is not. The fact remains that xml name
spaces were designed specifically to deal with this situation. Trying to
re-implement the feature based on comments and/or PI's seems kind of risky and
certainly without general tooling support :)
Stan
-Original
On 30.03.2011 18:11, Olivier Lamy wrote:
Hello,
I'm interested to have a sample project to reproduce :-).
Can you attach it to a jira issue ?
Thanks!
Here you go: http://jira.codehaus.org/browse/MRESOURCES-141
--
Roland Asmann
Senior Software Engineer
adesso Austria GmbH
Floridotower 26.
it's an xml document that is parsed by a parser that expects a
specific structure
On 30 March 2011 17:19, Stan Devitt sdev...@rim.com wrote:
Either it is an xml document or it is not. The fact remains that xml name
spaces were designed specifically to deal with this situation. Trying to
Was happy too soon.
If I move the invoker plugin profile to my company-parent pom, then all
steps to remove the recursion problem make it not work anymore for my
multimodule build :(
-
To unsubscribe, e-mail:
On 30.03.2011 18:28, Asmann, Roland wrote:
On 30.03.2011 18:11, Olivier Lamy wrote:
Hello,
I'm interested to have a sample project to reproduce :-).
Can you attach it to a jira issue ?
Thanks!
Here you go: http://jira.codehaus.org/browse/MRESOURCES-141
Another addition:
I
I have a build/resources stanza that is inherited. In a sub-pom, I'd like
to override it to be empty. Simply specifying resources / does not work.
What's the best way to accomplish this?
Best,
Laird
I have a multi-module project where each module inherits its build
specification from the parent POM. Everything works fine except that
the Javadoc plug-in always gives the following error *before* it
generates the Javadoc for a module:
Error fetching link:
No, it's a good idea.
/Anders
On Wed, Mar 30, 2011 at 18:01, Bryan Keech
bryan.keech.h...@statefarm.comwrote:
Ok, is this a bad idea? I am wanting to have one ci build. Kind of this
flow:
Developer checks in, ci build is done on Hudson, build is put on
artifactory, build can then be
I've create a reporting plugin by cribbing closely from checkstyle.
-X shows me:
[DEBUG] Configuring mojo
'com.basistech:seg-model-training-report-plugin:25-SNAPSHOT:seg-model-report'
--
[DEBUG] (f) dataLocation =
/Users/benson/x/seg-models-trunk/zho/zho-train/target
[DEBUG] (f)
Can anyone give details on how they have done this? I am running into road
blocks.
If I leave the version as a non-snapshot, then Hudson deploys to artifactory
and overwrites the same version in the repo. I have toyed with using
install:install-file goal in the install phase.
Thanks,
Bryan
You are abusing the version system by trying to re-deploy different
bits as the same version. If you don't release, then you have
snapshots even if you preferred a different name for it. Why deploy
anywhere else if you just want to make those bits available to other
(Maven) users? You can simply
Hi Brian,
I think we have a very simple system, and we do not use artefactory.
I hope I am right in thinkin g you are deploying a war.
We use jenkins with the following command:
mvn clean install deploy tomcat:deploy -Pstaging
this stores artifacts, be they snapshot or release, to the
don't use 2.2.0 it generates invalid checksums
- Stephen
---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to type on the
screen
On 30 Mar 2011 19:20, Benson Margulies bimargul...@gmail.com wrote:
I've create
Thanks for the reminder. 2.2.0 is the development target of this
reporting plugin, we actually run 2.2.1 in production.
On Wed, Mar 30, 2011 at 4:10 PM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
don't use 2.2.0 it generates invalid checksums
- Stephen
---
Sent from my Android
On Wed, Mar 30, 2011 at 10:29 AM, Stephen Connolly
stephen.alan.conno...@gmail.com wrote:
it's an xml document that is parsed by a parser that expects a
specific structure
Thanks for the ideas everyone. Yeah, I would probably look at using
namespaces, but the parser doesn't like that. The
On Wed, Mar 30, 2011 at 7:20 AM, Wendy Smoak wsm...@gmail.com wrote:
On Wed, Mar 30, 2011 at 9:06 AM, Phillip Hellewell ssh...@gmail.com wrote:
Is there any way short of recompiling Maven to allow custom tags in the
pom.xml?
Specifically, I would like to have a special tag inside dependency.
On Wed, Mar 30, 2011 at 9:33 PM, Benson Margulies bimargul...@gmail.com wrote:
OK, let me try to state this more clearly.
Reporting plugins like checkstyle and pmd and javadoc look for the
output of their corresponding build plugins. If they don't find it,
they fork a build lifecycle to build
I'm a new user of Maven. I have a POM that is creating a signed jar
using Maven 3.0.2 and maven-jar-plugin - that part seems to be working
well, but now I want to integrate ProGuard in order to obfuscate the
code before signing the JAR. Ideally I'd like to obfuscate the code
before the
2011/3/18 Hilco Wijbenga hilco.wijbe...@gmail.com:
I want to use the latest Checkstyle (5.3). That's easy, I just replace
the Checkstyle plugin's (2.6) dependency to be 5.3. Now
checkstyle:checkstyle works with 5.3.
It seems, however, that reporting plugins do not allow a
dependencies
I'm a new user of Maven. I have a POM that is creating a signed jar
using Maven 3.0.2 and maven-jar-plugin - that part seems to be working
well, but now I want to integrate ProGuard in order to obfuscate the
code before signing the JAR. Ideally I'd like to obfuscate the code
before the
Manfred, this was a huge help - thanks! I totally missed the part in
the ProGuard docs that says you can specify a directory name in the
injar parameter...
I seem to have ProGuard running, although the most recent version
(4.6) isn't in the Maven repos so I had to specify a dependency on
63 matches
Mail list logo