[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 * * @parame

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 ${user.dir}/.m2/repository First of all this should propably be ${user.home}/.m2/repository as already stated in http://jira.codehaus.org/browse/MNG-2956. Now I tried to use Java-System-P

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" wrote:

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/ https://g

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 -DstagingRepository=ID_OF_THE_RELEASE_REPO_DEFINED_IN_DISTRIBUTION_MANAGEMENT::default::http://internal-mvn-server.mycompany.net/repositories/our.stagin

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

2011-09-09 Thread Mirko Friedenhagen
aging repo information > in either POM or settings.xml ? > > On 9/9/11 12:18 PM, "Mirko Friedenhagen" 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 &

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 b

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" wrote: > > Hello, > > is there a possibility of accessing the activated Maven profile names during test runs programmatically or in configuration files? > >

Re: Accessing profiles via system properties etc.

2011-09-17 Thread Mirko Friedenhagen
04:14 +0200 >> Subject: Re: Accessing profiles via system 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 Friedenhage

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 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 is available, I

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

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: Right now we use an approach

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" wrote: > Hi Wayne, > > Sorry I missed the post update.. > > So, to answer your question, what am I trying to a

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 th

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: org.apache.maven.plugins maven-javadoc-plugin org.apache.maven.plugins maven-source-plug

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

2011-10-25 Thread Mirko Friedenhagen
Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Tue, Oct 25, 2011 at 20:51, Mirko Friedenhagen wrote: > Hello, > >

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. Regard

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 wrote: > > Sounds like you want the Maven Invoker: > > http://maven.apache.org/shared/maven-invoker/ > > > > -Robert > > > > >> Date: Sat, 29 Oct 2011 22:05:58 +

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" wrote: > I ha

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) d

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

2011-11-29 Thread Mirko Friedenhagen
hould be used. > > /Anders > > On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen > 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/

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

2011-11-29 Thread Mirko Friedenhagen
   maven-checkstyle-plugin >            2.8 >            false >             >               >                 >                  checkstyle-aggregate >                 >               >             >           >      ... >     >   > > HTH > > 2011/11/29 Mirko

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" wrote: > My apologies if this is not the appropriate kind of list for this s

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, 20

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 wrote: > Hello, > > am I right: this version is withdrawn? I saw something about > md5-hashes not being calculated, however with snapshots t

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, th

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 -- http://

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 wrote: > Hello, > > I would like to update the versio

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: project.version "Project version must be specifie

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 fin

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 wrote: > Hello, > > I know that with SVN the developerConnection and connection are > updated to the "real" URL, that is when I

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
lugin: using git where do I see the tag used > to build the release in the pom? > > 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,

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
...@gmail.com> wrote: > 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" &

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 http

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 release.

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

2012-01-17 Thread Mirko Friedenhagen
ost recently deployed non -SNAPSHOT version > > Crappy 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 s only not regular dependencies. > >

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 https://github.com

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" > wrote: > >> Hello everybody, >> >> for a f

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: 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" wrote: > Or it that 1 year old. Always get those yy/mm/dd vs dd/mm/yy confused. > :-( > > > -Original Message- > > From: Matt Walsh > > Sent: Wednesday

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 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 should NOT

Re: Maven deploy plugin: altDeploymentRepository: snapshots OK?

2012-03-21 Thread Mirko Friedenhagen
On Wed, Mar 21, 2012 at 19:18, Laird Nelson wrote: > On Wed, Mar 21, 2012 at 2:10 PM, Olivier Lamy wrote: > >> Use something like >> >>   >>     >>      ${distMgmtSnapshotsId} >>      ${distMgmtSnapshotsName} >>      ${distMgmtSnapshotsUrl} >>     >>   >> >>   >>    Snapshot Repository >>    Snap

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 Mirko

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: How to get an URL encoded version of a property?

2012-04-25 Thread Mirko Friedenhagen
PM, "Jörg Hohwiller" 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, Mi

[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 ext

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

2012-04-29 Thread Mirko Friedenhagen
rg/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 >> >> wrote: &g

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

2012-04-30 Thread Mirko Friedenhagen
change distributionManagement urls using > properties interpolation mechanism ? but it's too late using a plugin > as model has been build. > > An option you have maybe it's to use maven3 lifecycle extension > mechanism: http://maven.apache.org/examples/maven-3-lifecycle-extensions.html &

Re: [VOTE] Name our mascot: "Shotgun" vs "The Maven Owl"

2014-12-16 Thread Mirko Friedenhagen
B Regards Mirko -- Sent from my mobile On Dec 15, 2014 11:40 AM, "Stephen Connolly" < stephen.alan.conno...@gmail.com> wrote: > After the run-off round, we are left with two names standing. > > This second vote will be a straight and simple majority wins. > > The vote will be open for at least 7

Re: Little documentation issues

2014-12-16 Thread Mirko Friedenhagen
Barrie, if I am not wrong you probably have it right ;-) Regards Mirko -- Sent from my mobile On Dec 17, 2014 3:46 AM, "Barrie Treloar" wrote: > On 17 December 2014 at 12:24, Ron Wheeler > wrote: > > > > One of the wonderful features about Maven is that no matter how long one > > has been usi

Takari Lifecycle, takari-war and altDeploymentRepository

2015-01-17 Thread Mirko Friedenhagen
Hello, is there a plan to support altDeploymentRepository? We.use release:stage and I am guessing that this will not work without this parameter. And how would I use the plugin for WARs? Right now I had to skip all standard plugins, right? Regards Mirko -- Sent from my mobile

Re: Takari Lifecycle, takari-war and altDeploymentRepository

2015-01-18 Thread Mirko Friedenhagen
sts for WAR > support so if some more people ask we'll consider adding support there. > > [1]: https://github.com/takari/takari-lifecycle/issues/7 > [2]: https://github.com/takari/takari-lifecycle/issues/8 > > On Jan 17, 2015, at 2:40 PM, Mirko Friedenhagen > wrote: > >

Re: java import package and maven dependencies

2015-03-24 Thread Mirko Friedenhagen
Hello Lin, maybe while struggling with this you could ask for help at the m2-us...@eclipse.org mailing list. Gruss Mirko -- Sent from my mobile On Mar 25, 2015 1:52 AM, "Lin Ma" wrote: > Thanks Gruss, > > Following your guidance I found the maven dependencies, and where is the > .classpath fil

maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Mirko Friedenhagen
Hello, yesterday I already had pushed a git tag by running mvn release:prepare and while I executed release:perform I remembered I had the wrong settings.xml activated. I accidentally deleted release.properties by running release:clean. Now I just wanted to run something like: mvn release-plugin

Re: maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Mirko Friedenhagen
connectUrl that this is only supported for Subversion :-) . Regards Mirko -- Sent from my mobile On May 7, 2015 9:30 AM, "Dan Tran" wrote: > try scm:bootstrap > > make sure to passing the required argument and profile > > -D > > On Thu, May 7, 2015 at 12:18 AM, Mi

Hooking into maven-release-plugin:prepare

2015-05-15 Thread Mirko Friedenhagen
Hello everybody, we have a company pom with a maybe unusual versioning schema: - the development version is always 1-SNAPSHOT - the release version is always 1.${NEXT_MAJOR} By means of this "inactive" projects may always stay on company-pom-1-SNAPSHOT and unusual behaviour is nonetheless provoki

Re: Skill set to maintain a enterprise build system using Maven

2015-05-30 Thread Mirko Friedenhagen
Hello Dan, currently I have a team of two (with me three) devops guys. We provide 30 Jenkins masters with 20 build nodes and about 1800 jobs which we provision ourselves as well (Debian is already installed and we are able to login via ssh). We provide the department pom, some Maven plugins, Artif

Re: Skill set to maintain a enterprise build system using Maven

2015-05-30 Thread Mirko Friedenhagen
What I forgot: patience, social skills and remembering that not every application developer needs to be a build specialist are important as well :-) Regards Mirko -- Sent from my mobile Am 30.05.2015 07:29 schrieb "Dan Tran" : > Hi > > > I would like to ask if the community can share with me

Re: Skill set to maintain a enterprise build system using Maven

2015-05-30 Thread Mirko Friedenhagen
30, 2015 at 7:31 PM, Dan Tran wrote: > Thanks Mirko > > * What about snapshot and release policy, do developers/qa have access to > deploy snapshot and release artifacts? > * do you use artifact signing similar to Maven Central? > > > Thanks again > > -Dan >

Re: Skill set to maintain a enterprise build system using Maven

2015-05-31 Thread Mirko Friedenhagen
> Hi Mirko > > Looks like you have Artifactory to store all of release artifacts and > another 'release' repo to store the final approved release > > Is internal tooling, thirdparty upload going thru the same release > process? > > Thanks > > -Dan &g

Re: Skill set to maintain a enterprise build system using Maven

2015-05-31 Thread Mirko Friedenhagen
Hello Dan, I started as a "normal" Python developer, then built and led a team of test automation engineers while the management decided to switch to Java 10 years back and inherited CruiseControl, which we dropped for Hudson. I had some small scale operating experience as well (email server/route

Re: Specified destination directory cannot be created

2015-08-14 Thread Mirko Friedenhagen
Hello Michael, just guessing: - sometimes spaces in the path may lead to problems. - sometimes Windows encounters a problem when a path is too long. Could you try setting setting localRepository as outlined in http://maven.apache.org/settings.html to c:/tmp/m2. Regards Mirko -- Sent from my m

[ANNOUNCE] Release buildnumber-maven-plugin version 1.4

2015-10-16 Thread Mirko Friedenhagen
Hi, the Build Number Maven Plugin team is pleased to announce the buildnumber-maven-plugin-1.4 release! This plugin is designed to give you a build number. So when you might make 100 builds of version 1.0-SNAPSHOT, you can differentiate between them all. Changes in this version: * Add basic

Re: WG: next beta release for mojohaus/extra-enforcer-rules

2015-11-03 Thread Mirko Friedenhagen
Hello Stephen, I just forwarded your mail to the mojo-dev list. I could cut a release, but it will take at least three days to a vote to pass. Regards Mirko -- Sent from my mobile Am 02.11.2015 07:47 schrieb "Krull, Stephan" : > Hello user list, > > I am interested in a release of the mentioned

[ANNOUNCE] Release extra-enforcer-rules version 1.0-beta-4

2015-11-10 Thread Mirko Friedenhagen
The Extra Enforcer Rules team is pleased to announce the extra-enforcer-rules-1.0-beta-4 release! Extra Enforcer Rules. These are extra rules for Apache Maven's Enforcer Plugin. Changes in this version include: New features: o New rule requireProjectUrl o Adapt to mojohaus organisation. Fixed B

Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
Hello, I want to use to run tests on machine, where Maven is not installed and access to a repository is not allowed. However I want to (ab-)use the failsafe plugin so I may use the fine machinery which allows to specify tests and get XML reports. Using maven-embedded I created an App class which

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
.0.5/maven-core/apidocs/org/apache/maven/classrealm/DefaultClassRealmManager.html > > > Kind regards > Karl Heinz Marbaise > > > On 11/21/15 10:20 PM, Mirko Friedenhagen wrote: > >> Hello, >> >> I want to use to run tests on machine, where Maven is not inst

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
nolly" < stephen.alan.conno...@gmail.com>: > If you get this working, any chance you could share your work? > > On 21 November 2015 at 21:20, Mirko Friedenhagen > wrote: > > > Hello, > > > > I want to use to run tests on machine, where Maven is not installed > >

Re: Running tests using failsafe from a shaded jar?

2015-11-24 Thread Mirko Friedenhagen
anning on and see >> if it’s fast enough. You might also have to lift a few bits from the >> PlexusTestCase class itself but it’s very similar to how the container if >> created in the MavenCli class which also serves as an example. >> >> [1]: >> https://github.com/

Re: Running tests using failsafe from a shaded jar?

2015-11-24 Thread Mirko Friedenhagen
>> PlexusTestCase class itself but it’s very similar to how the container if >>> created in the MavenCli class which also serves as an example. >>> >>> [1]: >>> https://github.com/apache/maven/blob/master/maven-core/src/test/java/org/apache/maven/AbstractCor

Re: disabling default plugin from phase?

2015-12-02 Thread Mirko Friedenhagen
Hello Martin, as a hack you may override this in your pluginManagement by specifying an invalid phase. org.apache.maven.plugins maven-source-plugin ${maven-source-plugin.version} true

Re: How Maven solves the problem of long builds on large projects?

2015-12-21 Thread Mirko Friedenhagen
Hello Sergey, you may try to use https://github.com/timgifford/maven-buildtime-extension to identify which plugins contribute most to your long build times. Regards Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhage

Re: [VOTE] Retire Maven Application Skin, Maven Classic Skin, Maven Stylus Skin

2015-12-25 Thread Mirko Friedenhagen
+1 Regards Mirko -- Sent from my mobile Am 24.12.2015 23:34 schrieb "Michael Osipov" <1983-01...@gmx.net>: > Hi, > > as previously suggested, it makes sense to retire those skins because > they haven't been updated for a long time and we don't have the resources > to maintain them properly [1].

Re: iText 4.2.0 - Could a software licence be changed from MPL/LGPL to AGPL by simply redistributing the pom.xml?

2016-01-21 Thread Mirko Friedenhagen
Hello Siegfried, I do not think this was an accident, see https://issues.sonatype.org/plugins/servlet/mobile#issue/MVNCENTRAL-760. The relocation does break builds as the package is different as well. I am not a lawyer but at I think it is not a nice move to cause breaking builds and licensing is

Re: mvn deploy without rebuilding?

2016-05-04 Thread Mirko Friedenhagen
Hello, what about enhancing the install plugin with a list of the latest installs and creating a mojo deploy:deploy-latest-install? Regards Mirko -- Sent from my mobile Am 03.05.2016 18:15 schrieb "Stephen Connolly" < stephen.alan.conno...@gmail.com>: > I think that if your SCM supports the opt

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-11 Thread Mirko Friedenhagen
Hello Karl-Heinz, I tried this with 2 projects, firstly an inhouse project and it choked with: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project ui-mamido-qamove: Execution default-test of goal org.apache.maven.plugins:maven-surefire

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-11 Thread Mirko Friedenhagen
Forgot to mention: Both projects run fine with 3.3.9. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Sun, Jun 12, 2016 at 12:03 AM, Mirko Friedenhagen wrote: > Hello K

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-12 Thread Mirko Friedenhagen
.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Sun, Jun 12, 2016 at 10:27 AM, Christian Schulte wrote: > Am 06/12/16 um 00:03 schrieb Mirko Friedenhagen: >> Hello Karl-Heinz, >> >> I tried this with 2 pr

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-12 Thread Mirko Friedenhagen
So maybe I got all scopes wrong, however the new version seems basically quite incompatible with 3.3.9. On a side note I like to use org.slf4j.simpleLogger.showDateTime=true during CI runs. With the new logger the build time does not show anymore, the only thing that happens is that there is no col

Re: Possible to alter project.distributionManagement.repository.url at build time?

2016-07-05 Thread Mirko Friedenhagen
Hello Dan, we use a property in distributionManagement which has is set in settings.xml (may be overridden on the CLI), something like: ${distribution.snapshot.url} Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing (Take 3)

2016-07-24 Thread Mirko Friedenhagen
Hello, I just published a Docker image at https://hub.docker.com/r/mfriedenhagen/docker-maven/. However, because I often use Maven in a CI environment I replaced the gossip and jansi jars with slf4j-simple. After adapting findbugs-maven-plugin to 3.0.4 my projects run successfully. Regards Mirko -

Re: Fail fast for 401 Unauthorized failures

2016-07-25 Thread Mirko Friedenhagen
Hello, maybe https://maven.apache.org/guides/mini/guide-http-settings.html#Example:_Using_Preemptive_Authentication could help. Regards Mirko -- Sent from my mobile Am 25.07.2016 15:11 schrieb "Tomasz Juchniewicz" : > Hi, > > I'm working in corporate environment with strict password locking pol

Re: Create test jar during build without attaching

2016-08-19 Thread Mirko Friedenhagen
Hello Christopher, it seems the jar is a test resource, so it is not different from a jpg which could be included as well in this way IMO. Regards Mirko -- Sent from my mobile Am 19.08.2016 03:47 schrieb "Christopher" : If this were a personal project, I'd probably do that... but this is for a

RE: Need to fully understand bad implications of combined aggregator and parent pom

2016-12-05 Thread Mirko Friedenhagen
Hello, I use the combined aggregator/parent pom as well. While multiple poms may be cleaner because of separation of concerns, you might easily end in duplications for e.g. plugin definitions, which is a shame as well. Regards Mirko -- Sent from my mobile Am 05.12.2016 10:56 schrieb "Sander Ver

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 *reacto

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

2013-07-10 Thread Mirko Friedenhagen
en project. > */ >@Parameter(defaultValue = "${project.compileClasspathElements}") >private List projectCompileClasspathElements; > > On Jul 10, 2013, at 1:12 AM, Mirko Friedenhagen > wrote: > > > Hello, > > > > I inherited a Maven plugin

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é" wrote: > Same thing maven chain parameter like ssh://git:adryen31:mypassword@rd1 > /myapp.git > > Just stupid parameters I think ... > > -Message

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 -- Sent from my mobile On Aug 20, 2013 5:13 PM, "Richard Sand" wrote: > Is there any merit to the idea of having a configuration option in > maven-war-plugin to include attached artifacts in the webapp in the same > way it includes dependent artifacts? > > -Richard

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 su

Re: Maven bootstrap/surefire:test performance

2013-09-14 Thread Mirko Friedenhagen
nternal nb execution (via >> ant >> in IDE-jvm) but the devil is in the detail there, it's not 100% exactly >> the >> same execution as surefire. The current design decision is to be 100% >> equal >> to what cmd line executes. The downside is speed. >> &g

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" wrote: > > -Original Message- > > From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On > Behalf > > Of

Override reportSets via combine.self="override"?

2013-11-06 Thread Mirko Friedenhagen
Hello, say I have a parent pom, which defines: org.apache.maven.plugins maven-surefire-report-plugin 2.16 report I now do not want

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 failsafe:

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: 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 -- ht

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" wrote: > > Think some sort of "artifact-transformer" mechanism in Maven would be > >> r

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

2013-12-13 Thread Mirko Friedenhagen
safe > side :-( > > Chris > > -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 gues

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, "Rich

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" wrote: > Is it me or does the maven-release-plugin ignore the pushChanges sett

  1   2   3   >