Re: Code coverage with debug logs: 100% branch coverage not possible?...

2014-02-12 Thread Mirko Friedenhagen
Hello Benoit, Kevin is right, using slf4j[0] one would use sth. like: logger.debug(“blah {} in the loop that contains {}”, i, max); No need for iffing :-). [0] http://www.slf4j.org/manual.html Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/

Re: Maven process stuck on MacOS with Java8

2014-01-30 Thread Mirko Friedenhagen
Hello, Maven in general works for me, only thing I remember are problems with javadoc being checked more strictly now. Regards Mirko -- Sent from my mobile On Jan 30, 2014 12:14 PM, Stephane Nicoll stephane.nic...@gmail.com wrote: Hi, Has anybody else noticed an issue with Java8 running

Re: Document project groupId, artifactId and version in javadocs?

2014-01-25 Thread Mirko Friedenhagen
Manos, you might override the doctitle or bottom property of the maven-javadoc-plugin . Regards Mirko -- Sent from my mobile On Jan 25, 2014 11:42 PM, Manos Batsis manos_li...@geekologue.com wrote: Hey, long time. Is there some decently easy way of doing just that? Bonus points for

Re: Excluding a submodule from package/install phases.

2014-01-22 Thread Mirko Friedenhagen
Just for documentation purposes: - Netbeans sets an environment variable called NB_EXEC_MAVEN_PROCESS_UUID (AFAIK should be propertynameenv.NB_EXEC_MAVEN_PROCESS_UUID/name/property in the profile). - I use this in $HOME/.mavenrc to extend MAVEN_OPTS with -Dorg.slf4j.simpleLogger.showDateTime=true

javap Maven plugin?

2014-01-13 Thread Mirko Friedenhagen
Hello, for analysis of bytecode produced by different java compilers I need to decompile class files. I may resort to antrun and write some groovy script which invokes the javap CLI. However I'd like some input whether anyone knows a Maven plugin which already produces such output or whether a

Options for producing class files with different compilers via Maven

2014-01-09 Thread Mirko Friedenhagen
Hello, in the JaCoCo project (a Java code coverage library which uses a Java agent approach during runtime) we produce some false positives of uncovered code because of unreachable (e.g. private constructor of a util class) or synthetic java code (e.g. enum values()). As we inspect the class

Re: New site content

2014-01-03 Thread Mirko Friedenhagen
Hello there, I recently wrote in an internal blog article about failsafe vs. surefire: Maven defines lifecycles, each lifecycle is a sequence of well defined phases[0]. Each phase executes bound goals, which are defined as so called Mojo classes in Maven plugins. Lifecycles typically produce

Re: Release plugin 2.4.2 ignores pushChanges=false

2013-12-26 Thread Mirko Friedenhagen
Martijn, just a guess: - there is a setting in release:prepare for remote tagging which must be false as well if I remember correctly. Regards Mirko -- Sent from my mobile On Dec 26, 2013 4:49 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Is it me or does the maven-release-plugin

Re: javadoc errors

2013-12-20 Thread Mirko Friedenhagen
Hello Richard, a wild guess: you have the same packages included by different dependencies (guava was once called Google collections, some jakarta-commons components were available via multiple groupId/artifactId combinations). Regards Mirko -- Sent from my mobile On Dec 21, 2013 12:53 AM,

Re: Painless way to update a frameworks group id?

2013-12-13 Thread Mirko Friedenhagen
Just a guess: * Deploy a new relocation pom at the old coordinates with a bigger version. * Include this new relocation version. Regards Mirko -- Sent from my mobile On Dec 12, 2013 1:26 PM, Anders Hammar and...@hammar.net wrote: Think some sort of artifact-transformer mechanism in Maven

Re: AW: Painless way to update a frameworks group id?

2013-12-13 Thread Mirko Friedenhagen
-Ursprüngliche Nachricht- Von: Mirko Friedenhagen [mailto:mfriedenha...@gmail.com] Gesendet: Freitag, 13. Dezember 2013 21:26 An: Maven Users List Betreff: Re: Painless way to update a frameworks group id? Just a guess: * Deploy a new relocation pom at the old coordinates with a bigger version

Re: Changing JDK version without specifying maven-compiler-plugin version

2013-11-27 Thread Mirko Friedenhagen
Hello, I thought the version is defined in https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=maven-core/src/main/resources/META-INF/plexus/default-bindings.xml;h=09ecba441e61d4a997b01af0171815c558548537;hb=maven-3.0.4 (replace hb with the version of your choice :-)). Regards Mirko --

Property namespaces Was: Changing JDK version without specifying maven-compiler-plugin version

2013-11-26 Thread Mirko Friedenhagen
Hello Laird, the only pity with using properties is that they are not namespaced most of the time (the maven.compiler.* ones being an exception here), output is claimed at least by three mojos IIRC. And skipTests is almost a general one but you may not easily specify that you do not want to run

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

2013-11-15 Thread Mirko Friedenhagen
Almost same here, Russel. I always execute `mvn test` on my workstation, where these should be executed in less than a minute and let failsafe via `mvn deploy` (which comes after `verify`) in our CI system (for the Jenkins jobConfigHistory-plugin this takes about 10 minutes). I do not use

Override reportSets via combine.self=override?

2013-11-06 Thread Mirko Friedenhagen
Hello, say I have a parent pom, which defines: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId version2.16/version reportSets reportSet reports

RE: How to deal with checksum errors on public artifacts?

2013-10-31 Thread Mirko Friedenhagen
David, you should open a bug for this on issues.sonatype.org. They will fix the checksums. Regards Mirko -- Sent from my mobile On Oct 31, 2013 5:34 PM, KARR, DAVID dk0...@att.com wrote: -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On

Re: Maven bootstrap/surefire:test performance

2013-09-14 Thread Mirko Friedenhagen
as surefire. The current design decision is to be 100% equal to what cmd line executes. The downside is speed. Milos On Fri, Sep 13, 2013 at 9:25 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello everybody, I use Netbeans 7.4 as IDE and mostly like how it uses Maven to get

Maven bootstrap/surefire:test performance

2013-09-13 Thread Mirko Friedenhagen
Hello everybody, I use Netbeans 7.4 as IDE and mostly like how it uses Maven to get stuff done. While it is nice that I do not encounter problems as I did with Eclipse when dealing with dependency scoping I am slowed down when running single test files or methods. Netbeans invokes test-compile

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-20 Thread Mirko Friedenhagen
Richard, AFAIK attachArtifact just tells Maven to install an additional binary to it's local cache resp. to deploy it to the distribution repository. What you want, as far as I understand, is to create an artifact which will be picked up later on and included in a war? You should probably create

RE: artifact attached by plugin not appearing in subsequent plugins

2013-08-20 Thread Mirko Friedenhagen
: Mirko Friedenhagen [mailto:mfriedenha...@gmail.com] Sent: Tuesday, August 20, 2013 6:20 AM To: Maven Users List Subject: RE: artifact attached by plugin not appearing in subsequent plugins Richard, AFAIK attachArtifact just tells Maven to install an additional binary to it's local cache resp

RE: release prepare with git doesn't finish

2013-07-25 Thread Mirko Friedenhagen
I would suggest using msysgit with plink and pageant for ssh authentication, worked like a charmed for me. On Jul 23, 2013 4:38 PM, Adrien Ruffié adriennolar...@hotmail.fr wrote: Same thing maven chain parameter like ssh://git:adryen31:mypassword@rd1 /myapp.git Just stupid parameters I think

Re: Accessing *reactor* build path in an Ant-Maven-plugin

2013-07-10 Thread Mirko Friedenhagen
= ${project.compileClasspathElements}) private ListString projectCompileClasspathElements; On Jul 10, 2013, at 1:12 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I inherited a Maven plugin written by an Ant-master which currently execs mvn dependency:build-classpath

Re: How to get an instance of MavenProjectHelper in a Maven3.0 plugin?

2013-07-09 Thread Mirko Friedenhagen
Hello, I think @Component without a role is sufficient. Besides, I guess role should be an interface and not the concrete class. DefaultMavenProjectHelper is the implementation of MavenProjectHelper :-). Regards Mirko -- Sent from my mobile On Jul 9, 2013 6:18 PM, Richard Sand

Accessing *reactor* build path in an Ant-Maven-plugin

2013-07-09 Thread Mirko Friedenhagen
Hello, I inherited a Maven plugin written by an Ant-master which currently execs mvn dependency:build-classpath to inspect files. (Rewrite almost impossible as there are no tests). This leads to problems during the first run of verify (e.g. while release:prepare). Any hint how to get the

Re: The Maven way for delivery pipelines

2013-07-06 Thread Mirko Friedenhagen
not very fond of it :-). Regards Mirko -- Sent from my mobile On Jul 6, 2013 12:24 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On Friday, 5 July 2013, Mirko Friedenhagen wrote: Hello, now after some trial and error with custom packaging and lifecycles I ask myself

Switching Lifecycles on other things than packaging

2013-07-06 Thread Mirko Friedenhagen
Hello there, is there a way to switch to a different lifecycle depending on e.g. a path/file etc? Or is the agreed way to just have another packaging? Regards Mirko -- Sent from my mobile

Lifecycles and configuration of plugins

2013-07-06 Thread Mirko Friedenhagen
Hello, I see that versions of plugins are either manageable in the pom or in the lifecycle. Now what about configurations of plugins? May these be hidden as well in an extension/plugin? I want to hide this because a lot of application developers look at our company POM and shudder because of

Re: Switching Lifecycles on other things than packaging

2013-07-06 Thread Mirko Friedenhagen
-- Sent from my mobile On Jul 6, 2013 8:17 AM, Barrie Treloar baerr...@gmail.com wrote: On 6 July 2013 15:39, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello there, is there a way to switch to a different lifecycle depending on e.g. a path/file etc? Or is the agreed way to just

The Maven way for delivery pipelines

2013-07-05 Thread Mirko Friedenhagen
Hello, now after some trial and error with custom packaging and lifecycles I ask myself whether I should proceed or do something completely different. What I want to achieve: - We have loads of web-applications (WARs with a homegrown configuration tooling) - Some are single module projects, some

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

2013-07-04 Thread Mirko Friedenhagen
, Vincent Latombe vincent.lato...@gmail.com wrote: 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

Problems setting up a custom package type

2013-07-03 Thread Mirko Friedenhagen
Hello, I am playing with a custom package type[0], mainly to enforce execution of check goals. I read in the mvnref[1] and looked at some samples [2,3]. Now every time I run my integration test[4], the build fails because the packaging type is not found. --- snip --- [DEBUG] Populating class

Re: Problems setting up a custom package type

2013-07-03 Thread Mirko Friedenhagen
Mirko, you're missing an org.apache.maven.artifact.handler.ArtifactHandler, which you can find in [2] Robert Op Wed, 03 Jul 2013 22:46:04 +0200 schreef Mirko Friedenhagen mfriedenha...@gmail.com: Hello, I am playing with a custom package type[0], mainly to enforce execution of check

Re: Problems setting up a custom package type

2013-07-03 Thread Mirko Friedenhagen
://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Jul 3, 2013 at 11:37 PM, Stuart McCulloch mccu...@gmail.com wrote: On 3 Jul 2013, at 22:05, Mirko Friedenhagen wrote: Hello Robert, thanks for the quick answer, however I still get the same error :-(. It looks like you

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

2013-07-03 Thread Mirko Friedenhagen
Hello everyone, now I am getting greedy :-). I see that you may specify versions for the goals being executed during phases in components.xml for custom package types. Is there a way to convince the versions-maven-plugin etc. to update these versions as well? Or. where are the versions for the

Re: Versions plugin for plugin updates only

2013-07-01 Thread Mirko Friedenhagen
Hello org, you may perhaps define a configuration section in which you define an include with groupId/artifactId for your plugins, then only those are updated. Regards Mirko -- Sent from my mobile On Jul 1, 2013 12:01 AM, org.apache.maven.u...@io7m.com wrote: Hello. Is it possible to get

[ANN] extra-enforcer-rules 1.0-alpha-5 Released

2013-06-24 Thread Mirko Friedenhagen
** Improvement * [MOJO-1930] - RFE: RequirePropertyDiverges: Extend the rule to include a custom message Enjoy, The Mojo team. Mirko Friedenhagen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e

Re: Problem with multi-module site

2013-06-19 Thread Mirko Friedenhagen
If I remember correctly, one problem is, when the name/directory of the module does not equal the artifactId of the module. Regards Mirko -- Sent from my mobile On Jun 20, 2013 1:04 AM, Russell Gold r...@gold-family.us wrote: I am using the site-maven-plugin (version 3.3) and cannot seem to

Re: Multiple invocation of report goal with different configurations?

2013-05-21 Thread Mirko Friedenhagen
:37 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, configuring-reports[1] states: If you want to choose only some reports from a plugin, or if you want to run a report *multiple times with a different configuration*, you need to configure report sets: I now tried

Multiple invocation of report goal with different configurations?

2013-05-19 Thread Mirko Friedenhagen
Hello, configuring-reports[1] states: If you want to choose only some reports from a plugin, or if you want to run a report *multiple times with a different configuration*, you need to configure report sets: I now tried this with the jacoco-maven-plugin to differentiate between unit and

Re: Automatically remove version overrides from child POMs

2013-05-04 Thread Mirko Friedenhagen
Hello Robert, you could use the enforcer-plugin to enforce specific versions, then at least you have an easy way to identify those projects. We exclude all versions of spring and then include the latest version again, e.g. Regards Mirko -- Sent from my mobile On May 4, 2013 12:54 AM, Enyedi,

Re: Lightweight maven-releases, or an alternative to the maven-release-plugin

2013-05-01 Thread Mirko Friedenhagen
Hello there, I. find prepare and perform quite heavyweight my self. After prepare did build everything successfully, it throws away everything, just tags the source and starts over again during perform. prepare already checks with scm means, that there are no modifications and in my experience

Re: Maven Problems

2013-04-20 Thread Mirko Friedenhagen
Hello Benjamin, settings are from /home/gen3builder, maven looks for security in /root. Do you now run bamboo as user root and did you run it as gen3builder before? Regards Mirko -- Sent from my mobile On Apr 20, 2013 10:17 AM, benjamin_joy...@ao.uscourts.gov wrote: I have been having an

Re: String index out of range: -12 in ReleaseUtils.loadResolvedDependencies() when using Parent-Module-Layout

2013-04-12 Thread Mirko Friedenhagen
Hello, I probably found the cause: in our Jenkins instance we had set MAVEN_OPTS=-Ddependency.locations.enabled=false. This caused no problems during normal SNAPSHOT runs but we could not get the release-plugin working. Nothing was seen even with -X, release.properties is not even started.

Re: String index out of range: -12 in ReleaseUtils.loadResolvedDependencies() when using Parent-Module-Layout

2013-04-12 Thread Mirko Friedenhagen
12, 2013 at 6:39 PM, Robert Scholte rfscho...@apache.org wrote: Hi Mirko, Hmmm, just noticed I answered the wrong message of this thread :S But this is interesting. I can't find a JIRA issue for it, so feel free to create one. Robert Op Fri, 12 Apr 2013 17:44:29 +0200 schreef Mirko

Re: Maven-release-plugin error

2013-04-12 Thread Mirko Friedenhagen
Hello, my first guess would be the spaces in your workspace path, you could try to check out to C:/tmp/myprj and retry. Second guess: on windows path names must not be longer than 255 characters (at least Mercurial had problems with this), again, a checkout to C:/tmp/myprj could help. Regards

Re: Maven-release-plugin error

2013-04-12 Thread Mirko Friedenhagen
Third guess, on Windows upper and lower case are ignored, so C:/tm/ucmdb and naming the tag ucmdb-patterndev-0.6.6 could help. Regards Mirko -- Sent from my mobile On Apr 12, 2013 8:59 PM, Zanzerkia, Robert robert.zanzer...@fmr.com wrote: Hi, I am getting below error (SCM is Jazz RTC). Is

Re: release:perform goal fails on multi-module project

2013-04-10 Thread Mirko Friedenhagen
Hello Ryan, another option would be not to aggregate your javadoc, then the javadoc-jars include only the doc for the single module. Regards Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Apr

Re: Can I force a plugin to not run during parent pom execution phase?

2013-04-02 Thread Mirko Friedenhagen
Hello Dave, you could try to activate this profile depending on the existence of a given file in your modules, e.g. the existence of a src/test/resources/liquibase.properties (see http://www.liquibase.org/manual/liquibase.properties). Regards Mirko Regards Mirko --

Re: Preferred way of deploying sites to GitHub Pages

2013-03-25 Thread Mirko Friedenhagen
I use scm-publish and it works like a charme: - stage your site locally - invoke scm-publish Really fast! Regards Mirko -- Sent from my mobile On Mar 25, 2013 11:54 AM, Thomas Broyer t.bro...@gmail.com wrote: Hi everyone, I've seen many ways of deploying a site to GitHub Pages (some old,

Re: Preferred way of deploying sites to GitHub Pages

2013-03-25 Thread Mirko Friedenhagen
example POM that uses scm-publish to deploy a site to GitHub pages? It would be great if it was a POM for a multi-module project ;) On Mon, Mar 25, 2013 at 9:23 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: I use scm-publish and it works like a charme: - stage your site locally

Re: Git settings for maven release plugin...

2013-03-22 Thread Mirko Friedenhagen
You may try replacing the colon between host and orgname with a slash /. Regards Mirko -- Sent from my mobile On Mar 22, 2013 12:11 AM, Jeff predato...@gmail.com wrote: My release:prepare is failing when it tries the following: git push ssh://g...@github.com:MyOrg/apps-thor.git

And now for something completely different: was: Re: Hmmmm

2013-03-21 Thread Mirko Friedenhagen
And on the python-list you even had the chance to prolong the thread! Regards Mirko -- Sent from my mobile On Mar 20, 2013 11:28 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Lots of mails end up on the maven mailing list... Could be upwards of 3 such mails in te last

Re: Release:perform failing on git ...

2013-03-07 Thread Mirko Friedenhagen
Hello Benson, when this repository is on a host of it's own adding an entry to ssh-config may help (http://linux.die.net/man/5/ssh_config) . Regards Mirko -- Sent from my mobile On Mar 8, 2013 2:53 AM, Benson Margulies bimargul...@gmail.com wrote: Actually, I know what's happening. To talk

Re: Suppress multiple execution of mojos while creating site?

2013-02-26 Thread Mirko Friedenhagen
Hello Martin, of course I could redefine some plugins to be run in a different phase, enforcer could run during verify etc. However some (as buildnumber-version) are mostly useful for filtering resources, so delaying this to later phases makes no sense IMO :-). Regards Mirko On Mon, Feb 25,

Re: Suppress multiple execution of mojos while creating site?

2013-02-24 Thread Mirko Friedenhagen
Hello Martin, thanks for your suggestion. However I think I did not make myself clear in my description. My problem is not with generated reports but that during report generation while building the site a bunch of the reporting mojos are starting a default lifecycle phase again hereby prolonging

Fwd: mvn verify site vs: mvn verify site:site

2013-02-22 Thread Mirko Friedenhagen
Hello, I started to try to improve the total runtime for our inhouse projects by eliminating unneeded aggregation goals or duplicate invocations of mojos in general. Most of our projects consume a lot of time during tests, so by declaring report-only and failsafe-report-only in the reporting

Re: mvn verify site vs: mvn verify site:site - how to suppress duplicate lifecycle phase invocations?

2013-02-22 Thread Mirko Friedenhagen
Hello, sorry for the self-reply. On further inspection, reporting plugins like javadoc:javadoc or surefire-report-plugin:report-only always fork a lifecycle and invoke the execution of a lifecycle phase. Is there any way to get rid of this? Regards Mirko

Re: Run unit tests before commiting

2013-02-15 Thread Mirko Friedenhagen
Alberto, you could bind to the phase verify as well, which will package your artifacts and runs integration-tests (e.g. started with the failsafe-plugin) additionally. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/

Re: New Maven idea: include (import++)?

2013-02-08 Thread Mirko Friedenhagen
Hello everyone, I see that, by including a pom in compile scope, the project has the dependencies defined as transitive dependencies in it's classpath. Two things come to my mind, which could make a scope include sensible: 1) dependency:analyze AKA define what you depend on for compilation - we

Re: What's better, properties or configuration

2013-01-26 Thread Mirko Friedenhagen
I use properties a lot especially in parent poms and especially for versions of dependencies and plugins. By this testing new versions in real projects is much easier. Regards Mirko -- Sent from my mobile On Jan 26, 2013 9:10 AM, Joachim Durchholz j...@durchholz.org wrote: E.g. properties

Re: Site plugin to document properties in the pom?

2013-01-14 Thread Mirko Friedenhagen
Hello Graham, I once was successful with referencing injected properties in velocity by using the get method. Maybe something like: ${project.properties.get(tomcat.port.http.confluence43.live)} will work? Regards Mirko On Mon, Jan 14, 2013 at 5:40 PM, Graham Leggett minf...@sharp.fm wrote: On

Re: Surefire 2.13 close to release, last chance to give feedback !

2012-12-13 Thread Mirko Friedenhagen
Hello Kristian, I tried 2.13-SNAPSHOT and the stacktraces are not indented anymore and the at is missing. Netbeans (7.3 Beta 2) does not recognize these stacktraces when pasted into the analyze window nor when clicking into the console output. This is IMO a regression compared to 2.12.4. When

Re: Surefire 2.13 close to release, last chance to give feedback !

2012-12-13 Thread Mirko Friedenhagen
Thanks for the fix, works like a charme :-). Regards Mirko On Thu, Dec 13, 2012 at 2:18 PM, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: Thanks for testing ! No need for an issue this time, I will fix real soon. Kristian 2012/12/13 Mirko Friedenhagen mfriedenha...@gmail.com

Re: access password in settings.xml

2012-08-27 Thread Mirko Friedenhagen
/** Imports */ import java.util.List; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Component; import org.apache.maven.settings.Server; import

Re: access password in settings.xml

2012-08-24 Thread Mirko Friedenhagen
Hello Michael, reading your Agile ALM book right now :-): Here is an example how to get all servers with password decrypted: public class MyMojo extends AbstractMojo { /** * Maven settings. */ @Component private Settings settings; /** * The decrypter for

Re: Request For Enhancements

2012-08-17 Thread Mirko Friedenhagen
Hello Nambi, I would suggest you split your RFEs one by one and send the text of each separately to the mailing list. By means of this, we will have only one source of information :-). And maybe the developer list would be a more appropriate place for these discussions. Regards Mirko -- Sent

Re: AW: A plugin to check the pomfiles for certain standards?

2012-07-28 Thread Mirko Friedenhagen
Hello! There are additional rules available called extra-enforcer-rules at mojo.codehaus.org. Regards Mirko -- Sent from my mobile Am 27.07.2012 07:56 schrieb Dünnebeil Gerhard gerhard.duenneb...@ait.ac.at: Thanks, this looks close to what I was looking for. I will need custom rules though

Re: Executing a goal *after* install

2012-07-25 Thread Mirko Friedenhagen
probably even run it in the package phase since everything attaching artifacts will happen there). - Brett On 25/07/2012, at 7:08 AM, Mirko Friedenhagen wrote: Hello, in a multi-module project, I want to create a sha1 list of all artifacts created. For that I created a Mojo which collects all

Re: Executing a goal *after* install

2012-07-25 Thread Mirko Friedenhagen
/workflow/AbstractStagingBuildActionMojo.java#L131 Hope helps, ~t~ On Wed, Jul 25, 2012 at 9:24 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello Brett, unfortunately, binding it to Lifecycle.INSTALL without a custom lifecycle seems not to be good enough. During the run of mvn

Re: Using scope in dependencyManagement: good idea or bad?

2012-06-01 Thread Mirko Friedenhagen
Hello, we use this for dependencies which should go the test scope by default as well. This prevents stuff like junit or mockito to be part of WARs, e.g. The only drawback here are our integration test suites where a lot of the code resides in src/main. Same goes for logback-classic, which may

Re: override ciManagement from parent POM

2012-05-24 Thread Mirko Friedenhagen
Hello Martin, there is an extra-enforcer-rule (http://mojo.codehaus.org/extra-enforcer-rules/requirePropertyDiverges.html) which allows to enforce that ciManagement in children diverges from the one in the parent, maybe that could help you :-). Regards Mirko On Thu, May 24, 2012 at 9:44 AM,

Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-30 Thread Mirko Friedenhagen
://maven.apache.org/ref/3.0.4/maven-model-builder/ Le dimanche 29 avril 2012 08:36:10 Anders Hammar a écrit : I think it is resolved even before the build lifecycle starts. /Anders On Sat, Apr 28, 2012 at 22:01, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I developed a plugin which

Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-29 Thread Mirko Friedenhagen
-builder/ Le dimanche 29 avril 2012 08:36:10 Anders Hammar a écrit : I think it is resolved even before the build lifecycle starts. /Anders On Sat, Apr 28, 2012 at 22:01, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I developed a plugin which creates an additional property during

[ANN] extra-enforcer-rules version 1.0-alpha-3 Released

2012-04-27 Thread Mirko Friedenhagen
Hi, The Mojo team is pleased to announce the release of the extra-enforcer-rules version 1.0-alpha-3. Apache's Maven Enforcer Plugin is used to apply and enforce rules on your Maven projects. The Enforcer plugin ships with a set of standard rules The Mojo project hosts this project to provide

Re: How to get an URL encoded version of a property?

2012-04-25 Thread Mirko Friedenhagen
PM, Jörg Hohwiller jo...@j-hohwiller.de wrote: Hi Mirko, you do not have to write a plugin: http://ant-contrib.sourceforge.net/tasks/tasks/urlencode.html http://maven.apache.org/plugins/maven-antrun-plugin/ Cheers Jörg On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote: Hello, Hi

How to get an URL encoded version of a property?

2012-04-24 Thread Mirko Friedenhagen
Hello, say I want to reuse some POM or system property as parameter in another place in the POM but need it URL encoded. Does anyone know a Maven magic to achieve this? Programming a plugin to encode a given list of properties and provide them under a different name seems no biggy, but I would

Re: Groovy - RPM

2012-04-14 Thread Mirko Friedenhagen
There is a thread on http://stackoverflow.com/questions/449983/create-rpm-package-from-ant-script-under-windows. Unless you are on Windows youl use popen. I did this in Python a while back, which worked quit good even for extracting information as you may configure the output easily. Regards

Re: Maven deploy plugin: altDeploymentRepository: snapshots OK?

2012-03-21 Thread Mirko Friedenhagen
On Wed, Mar 21, 2012 at 19:18, Laird Nelson ljnel...@gmail.com wrote: On Wed, Mar 21, 2012 at 2:10 PM, Olivier Lamy ol...@apache.org wrote: Use something like  distributionManagement    snapshotRepository      id${distMgmtSnapshotsId}/id      name${distMgmtSnapshotsName}/name      

Re: Which is the BEST Approach to define Global POM.XML

2012-03-15 Thread Mirko Friedenhagen
We have a rule for this :-). Regards Mirko On Thu, Mar 15, 2012 at 11:04, Mark Derricutt m...@talios.com wrote: I'm almost tempted to write an enforcer plugin to block repository declarations from ANY pom.  Corporate or project On Thu Mar 15 22:09:24 2012, Anders Hammar wrote: You

RE: Antwort: RE: offline not truly offline?

2012-03-01 Thread Mirko Friedenhagen
One good reason to always use . Or to hope for 2032 ;-) . Regards Mirko -- Sent from my phone On Feb 29, 2012 5:02 PM, Matt Walsh mwa...@chartwelltechnology.com wrote: Or it that 1 year old. Always get those yy/mm/dd vs dd/mm/yy confused. :-( -Original Message- From: Matt

Re: Spring context dependency not found..

2012-02-02 Thread Mirko Friedenhagen
Hello Stephane, - m2e is an Eclipse-plugin, *not* a Maven-plugin. - The configuration element in the pluginManagement section of pom.xml is only used to store information for the Eclipse plugin, so the Eclipse plugin knows which goals of the various not supported Maven plugin should run (or not),

Re: M2-Job: mvn clean install site chicken egg problem for multi-module project

2012-01-25 Thread Mirko Friedenhagen
--- 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 Jan 24, 2012 8:40 p.m., Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello everybody, for a fresh multi-module maven

M2-Job: mvn clean install site chicken egg problem for multi-module project

2012-01-24 Thread Mirko Friedenhagen
Hello everybody, for a fresh multi-module maven project, invoking clean install site will not suceed, as site in the parent will fail due to missing javadoc parts from the modules, see: http://huschteguzzel.de/hudson/job/testlink-junit/14/console (the project may be found at

maven-metadata.xml : release vs. latest

2012-01-17 Thread Mirko Friedenhagen
Hello, what is the difference between these two tags? Say I deploy two versions 1.1 and 1.2 in this order. What should I expect for release and latest? My expectation would be to see 1.2 for both. Say I deploy 1.2 and later on 1.1. Now my expectation would be 1.2 for latest and 1.1 for

Re: maven-metadata.xml : release vs. latest

2012-01-17 Thread Mirko Friedenhagen
aren't they! 3. Versions-maven-plugin does not pay any heed to those two tags 4. Maven 3.x does not pay any heed to those tags 5. They were meant for plugins only not regular dependencies. -Stephen On 17 January 2012 22:31, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, what

RE: releasing a multi-modult project

2012-01-14 Thread Mirko Friedenhagen
Just guessing: One important thing: the branch given in //project/scm/connection *must* match the checked out workspace. So using Subversion when development happens in trunk and you have a release branch, you have to specify the release branch in the pom. Regards Mirko -- Sent from my phone

RE: maven-release-plugin: using git where do I see the tag used to build the release in the pom?

2011-12-18 Thread Mirko Friedenhagen
? To: users@maven.apache.org No comments on this? How would a scm:bootstrap know which tag to build with git? Regards Mirko On Fri, Dec 16, 2011 at 22:58, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I know that with SVN the developerConnection and connection are updated

RE: maven-release-plugin: using git where do I see the tag used to build the release in the pom?

2011-12-18 Thread Mirko Friedenhagen
: yes - 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 18 Dec 2011 17:41, Mirko Friedenhagen mfriedenha...@gmail.com wrote: I had a look :-D . The class code boils

Re: maven-release-plugin: using git where do I see the tag used to build the release in the pom?

2011-12-17 Thread Mirko Friedenhagen
No comments on this? How would a scm:bootstrap know which tag to build with git? Regards Mirko On Fri, Dec 16, 2011 at 22:58, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I

maven-release-plugin: using git where do I see the tag used to build the release in the pom?

2011-12-16 Thread Mirko Friedenhagen
Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I invoke release:prepare with a URL like: https://SVNSERVER/svn/REPO/myproject/branches/release it will be replaced by https://SVNSERVER/svn/REPO/myproject/tags/myproject-1.0 which is fine

maven-enforcer-plugin: requireProperty example with wrong regex for project.version?

2011-12-10 Thread Mirko Friedenhagen
Hello, I followed the instructions from http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html and put the example configuration into my pom: requireProperty propertyproject.version/property

versions-maven-plugin: specfify to update only dependencies from a special, inhouse repository only

2011-12-08 Thread Mirko Friedenhagen
Hello, I would like to update the versions in the dependencyManagement section for our inhouse artifacts only, which are specified in our global parent pom. Is there a way to specify dependencies by groupId:artifactId which should (or should not) be updated automatically? Regards Mirko --

Re: versions-maven-plugin: specfify to update only dependencies from a special, inhouse repository only

2011-12-08 Thread Mirko Friedenhagen
I found the answer, should have looked at http://mojo.codehaus.org/versions-maven-plugin/examples/advancing-dependency-versions.html beforehand :-). Sorry for the noise. Regards Mirko On Thu, Dec 8, 2011 at 21:24, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I would like to update

Re: Vote started for Apache Maven 3.0.4 (take 2)

2011-12-01 Thread Mirko Friedenhagen
Hello Olivier, I used the new 3.0.4 on a few projects and it seems to work fine. However the images at new ref page at http://maven.apache.org/ref/3.0.4/ are to big for my 1280x800 resolution in Chrome as they are spread on two rows, which makes me scroll a lot. Really like the new fluido-skin,

Re: ANN: h2-maven-plugin 1.0

2011-11-30 Thread Mirko Friedenhagen
Nice, well documented plugin. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Nov 29, 2011 11:14 PM, Laird Nelson ljnel...@gmail.com wrote: My apologies if this is not the appropriate kind of

Re: Vote started for Apache Maven 3.0.4

2011-11-30 Thread Mirko Friedenhagen
Hello, am I right: this version is withdrawn? I saw something about md5-hashes not being calculated, however with snapshots this seems to work. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Nov 25,

Re: Vote started for Apache Maven 3.0.4

2011-11-30 Thread Mirko Friedenhagen
BTW: What is the reason, why the vote is started in the surefire-dev list? Regards Mirko On Wed, Nov 30, 2011 at 20:32, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, am I right: this version is withdrawn? I saw something about md5-hashes not being calculated, however

Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

2011-11-29 Thread Mirko Friedenhagen
. /Anders On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find two reports for checkstyle: http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues) and http

Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.

2011-11-29 Thread Mirko Friedenhagen
               /reports              /reportSet            /reportSets          /plugin      ...    /plugins  /reporting HTH 2011/11/29 Mirko Friedenhagen mfriedenha...@gmail.com: I did not see immediately a solution how to do this. Would you shed the light :-)? Regards Mirko On Tue, Nov 29

checkstyle-plugin 2.8 aggregated duplicates number of issues.

2011-11-28 Thread Mirko Friedenhagen
Hello, I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find two reports for checkstyle: http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues) and http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html (423 issues) The latter one is (almost)

<    1   2   3   >