Re: Release plugin when POM is not in root directory

2011-11-03 Thread Mirko Friedenhagen
You could try to add -Darguments=-DpomFile= as these are those used by release:perform AFAIK. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Nov 2, 2011 7:46 PM, Jim Cook

How to execute the maven-deploy-plugin:deploy-file from within a Java program

2011-10-29 Thread Mirko Friedenhagen
Hello, I want to execute deploy:deploy-file from within a Java program. While I know I could try to go way of using ProcessBuilder I want to have a bit more control over the process and be able to easily catch any errors during invocation. maven-embedder seems not to be the way to go here.

Re: How to execute the maven-deploy-plugin:deploy-file from within a Java program

2011-10-29 Thread Mirko Friedenhagen
Thanks, that was very helpful :-). Regards Mirko On Sat, Oct 29, 2011 at 22:10, Robert Scholte rfscho...@codehaus.org wrote: Sounds like you want the Maven Invoker: http://maven.apache.org/shared/maven-invoker/ -Robert Date: Sat, 29 Oct 2011

maven-repository-plugin: Automatically create bundle and deploy it to repository as well

2011-10-25 Thread Mirko Friedenhagen
Hello, I want to create and deploy the bundle for my artifacts. Right now I have this in my pom: plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin plugin

Re: maven-repository-plugin: Automatically create bundle and deploy it to repository as well

2011-10-25 Thread Mirko Friedenhagen
/ On Tue, Oct 25, 2011 at 20:51, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I want to create and deploy the bundle for my artifacts. Right now I have this in my pom:        plugins            plugin                groupIdorg.apache.maven.plugins/groupId

Re: Multi modules and profiles

2011-10-08 Thread Mirko Friedenhagen
Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Oct 8, 2011 10:43 AM, Stephane-3 mittiprove...@yahoo.se wrote: Hi Wayne, Sorry I missed the post update.. So, to answer your question, what

Re: Multi modules and profiles

2011-10-08 Thread Mirko Friedenhagen
Stephane I mostly never define dependencies directly in the parent pom but have a dependencyManagement section so versions will not differ between modules. Same goes for plugins and pluginManagement. Maybe you could add something like junit in test scope directly to the parent's dependencies. I

Enhancing testcase elements in surefire xml reports with custom attributes specified by annotations?

2011-10-06 Thread Mirko Friedenhagen
Hello, we use Testlink for describing testcases, some of which are run as automatic tests using junit. Now to easily match junit tests to Testlink IDs I thought about adding an annotation like: @TestlinkID(12345) to tests run, which should result in something like: testcase time=0.001

Re: Http(s) transport layer change (call for early adopters users)

2011-10-05 Thread Mirko Friedenhagen
I did download the shaded jar, copied it to $M2_HOME/lib/ext and ran about 20 jobs without problem. I had deleted my localRepository beforehand. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Mon, Oct 3, 2011

Re: Accessing profiles via system properties etc.

2011-09-17 Thread Mirko Friedenhagen
Really no one? I would appreciate a negative answer as well ;-) . On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, is there a possibility of accessing the activated Maven profile names during test runs programmatically or in configuration files? I want

Re: Accessing profiles via system properties etc.

2011-09-17 Thread Mirko Friedenhagen
properties etc. From: mfriedenha...@gmail.com To: users@maven.apache.org Really no one? I would appreciate a negative answer as well ;-) . On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, is there a possibility of accessing the activated Maven profile

Re: Accessing profiles via system properties etc.

2011-09-17 Thread Mirko Friedenhagen
://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Sat, Sep 17, 2011 at 21:16, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Well, I will try. I use slf4j for logging. I normally log using logback to stderrr. When de.huxhorn.lilith.logback.appender.multiplex-classic

Accessing profiles via system properties etc.

2011-09-14 Thread Mirko Friedenhagen
Hello, is there a possibility of accessing the activated Maven profile names during test runs programmatically or in configuration files? I want to activate logging to Lilith in a Maven profile. Adding the required dependency is no problem, but for adding the appended conditionally seems not to

Re: Does release:stage work? What are id and layout in alternative repository specification ?

2011-09-09 Thread Mirko Friedenhagen
Take a look at the output of mvn help:effective-pom and http://maven.apache.org/pom.html#Distribution_Management You should use something like mvn

Re: Does release:stage work? What are id and layout in alternative repository specification ?

2011-09-09 Thread Mirko Friedenhagen
or settings.xml ? On 9/9/11 12:18 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Take a look at the output of mvn help:effective-pom and http://maven.apache.org/pom.html#Distribution_Management You should use something like mvn -DstagingRepository

Re: Determine what depends on artifact?

2011-08-31 Thread Mirko Friedenhagen
We have a plugin which writes a description of dependencies into a NFS share after a successful build in our Jenkins instance and an aggregation job which will report this once per day. I will see wether we may open source this. Regards Mirko -- http://illegalstateexception.blogspot.com/

Re: Error with maven-project-info-reports-plugin

2011-08-03 Thread Mirko Friedenhagen
Hello Alexander, maybe you are not allowed to write into the specified directory? Regards Mirko On Aug 3, 2011 10:02 AM, Alexander Vaysberg w...@vaisberg.de wrote:

Maven3: Best way to include dependencies not available from a maven repository (jython, jruby)

2011-05-26 Thread Mirko Friedenhagen
Hello there, jython and jruby do not seem to be accessible from a repository. I am inspecting a patch for a jenkins plugin and always get these warnings: [mirko@borg email-ext-plugin]$ mvn3 clean package 21 | tee log [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were

Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
Hello, I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's reports to be aggregated in a multi-module build What am I doing wrong? Looking at http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java it seems to

Re: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's reports to be aggregated in a multi-module build What am I doing wrong? Looking at http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org

Re: Aggregating cobertura reports in a multi module build with Maven 3.0.3

2011-04-21 Thread Mirko Friedenhagen
), however site will not pick this up correctly. Regards Mirko On Thu, Apr 21, 2011 at 22:38, Mirko Friedenhagen mfriedenha...@gmail.com wrote: I tried this as well (had a look in the integration test). I now put the report plugins into the reportPlugins-Element as suggested in https

Re: Is maven3 repository safe for concurrent access

2011-04-15 Thread Mirko Friedenhagen
On Fri, Apr 15, 2011 at 19:39, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: fr., 15.04.2011 kl. 11.54 -0400, skrev Sony Antony: Thank you Jason : If 3.x local repository is not safe for concurrent access, how does maven3  implement parallel builds ( -T switch ) ( maybe they decide

Re: [ANN] Maven Findbugs plugin version 2.3.2 Released

2011-03-21 Thread Mirko Friedenhagen
Hm, the link points to 2.3.1, http://jira.codehaus.org/secure/ReleaseNote.jspa?version=16272projectId=11701 is for 2.3.2. Regards Mirko On Sun, Mar 20, 2011 at 23:52, Garvin LeClaire glecla...@insightbb.com wrote: Hi, The Mojo team is pleased to announce the release of the Maven FindBugs

maven-release-plugin multimodule creating additional subversion tags for each module

2011-01-25 Thread Mirko Friedenhagen
Hello, Dear all, in our company we have a policy that every released artifact should have a release tag in Subversion assuming tagging is a cheap operation in subversion. So given a standard multimodule project: foo/trunk/pom.xml (groupId=foo,artifactId=parent,version=1.0-SNAPSHOT)

Re: maven-release-plugin multimodule creating additional subversion tags for each module

2011-01-25 Thread Mirko Friedenhagen
On Tue, Jan 25, 2011 at 10:21 PM, Mark Struberg strub...@yahoo.de wrote: Hi Mirko! If you release the whole project at once, then you obviously only get exactly one tag! You'd need to run releases on each module on it's own to get the single tags. But I'm not sure if this is really a good

Re: maven-release-plugin multimodule creating additional subversion tags for each module

2011-01-25 Thread Mirko Friedenhagen
Well, I implemented a solution, which anyone interested can retrieve from github, see: https://github.com/mfriedenhagen/multi-module-svn. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/

Re: Activating a profile in settings.xml based on a property set in pom.xml?

2010-07-11 Thread Mirko Friedenhagen
Am 02.07.2010 um 09:37 schrieb Søren Krogh Neigaard: Hi I would like to activate (or not) a profile in my settings.xml base don which profile is active in my pom.xml. The active profile is determined by either activated by default, or by setting a -P argument to maven. How can I do this?

maven-project-info-reports-plugin 2.2 - index page without links, empty navigation column?

2010-05-23 Thread Mirko Friedenhagen
Hello, after my project reported a failure (java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)) without me changing anything I searched for a solution and changed the maven-project-info-reports-plugin to version 2.2 in

Re: How to find out which parameters can be specified as command-line properties?

2010-03-13 Thread Mirko Friedenhagen
Am 13.03.2010 um 03:06 schrieb sebb: Some plugin parameters are settable as command-line properties. For example, the Surefire plugin accepts the parameter argLine in the POM and the property -DargLine on the command-line. Surefire also accepts skipTests and -DskipTests=true. However,

How to invoke other mojos/lifecycles in a plugin

2010-03-07 Thread Mirko Friedenhagen
Hello, I want to create a meta plugin which should invoke lifecycles/mojos, so instead of issueing: mvn clean sources:jar deploy site I could invoke: mvn myplugin:go - How do I include other plugins in the dependency section of my plugin? - How do I invoke goals/lifecycles from a plugin?

Re: Generating an XPI file from maven2?

2010-01-13 Thread Mirko Friedenhagen
Am 13.01.2010 um 21:26 schrieb Andrew Robinson: I have looked over Google, and I have not seen a satisfactory answer to this extremely simple requirement. I am trying to produce an XPI file for a firefox extension. An XPI file is simply a zip file with a different extension. Hello, I used

Re: AW: pom.xml : scm element

2009-12-14 Thread Mirko Friedenhagen
Am 14.12.2009 um 13:08 schrieb Mark Struberg: the scm element in the pom is used for every SCM action in maven, e.g. if you do a mvn release:prepare / mvn release:perform and stuff. Since Hudson and other CI environments often do not rely on the build system for updating the project, they

Re: Maven Plugin to detect duplicate class files in a e.g. WAR

2009-12-12 Thread Mirko Friedenhagen
Am 09.12.2009 um 09:10 schrieb Stephen Connolly: Should be possible to add a mojo to the maven-dependency-plugin to scan for duplicate classes in scope XYZ... that would be the major indicator. Of course you'd need include/excludes... and ignores... and failure mode control probably want

Maven Plugin to detect duplicate class files in a e.g. WAR

2009-12-05 Thread Mirko Friedenhagen
Hello, sometimes dependencies change their groupId (e.g. commons-io and org.apache.commons or spring vs. org.springframwork). Maven now has no chance(?!) to detect duplicate JARs with different versions during dependency resolution and puts jars with different versions in a war. In the end you

Using Java-System-Properties in settings.localRepository

2007-10-08 Thread Mirko Friedenhagen
Hello, the documentation (http://maven.apache.org/settings.html#Simple_Values) states that the default for localRepository${user.dir}/.m2/repository/localRepository First of all this should propably be ${user.home}/.m2/repository as already stated in http://jira.codehaus.org/browse/MNG-2956.

[M2] ckjm-mojo: extend classpath with the dependencies of the report project

2007-09-13 Thread Mirko Friedenhagen
Hello, - I am trying to extend the ckjm-mojo (http://mojo.codehaus.org/ckjm-maven-plugin/ckjm-mojo.html). - ckjm needs the dependencies of the project to report on - Right now I have the following: --- snip --- /** * The set of dependencies required by the project * *

<    1   2   3