Re: How to rewrite POMs retaining the XML structure

2018-12-19 Thread Marc Rohlfs
r off-list) conversation about it. Best regards Marc On Mon, 3 Dec 2018 at 16:50, Robert Scholte wrote: > On Mon, 03 Dec 2018 11:47:58 +0100, Marc Rohlfs > wrote: > > > Hi all, > > > > many thanks for Your suggestions. I already check the different plugin > &

Re: How to rewrite POMs retaining the XML structure

2018-12-03 Thread Marc Rohlfs
ery huge/complex project setup into a new project layout. For this, (re)calculate our projects (including dependencies, properties etc) and we need to continuously transfer changes between old and new project layout for a transition period. Best regards Marc On Thu, 29 Nov 2018 at 17:11, Marc Ro

How to rewrite POMs retaining the XML structure

2018-11-29 Thread Marc Rohlfs
Hi all, is there a way to rewrite pom.xml files without loosing formatting, ordering and comments? We need to (programmatically) do several changes on Maven POMs, e.g. adding and removing dependencies and properties. Currently we're using the MavenXpp3Reader and MavenXpp3Writer classes to read an

Re: Reactor:resume goal

2011-08-12 Thread Marc Rohlfs
Hi Todd, with the 'resume' goal You can define a module in Your build reactor (meaning the complete hierarchy with all sub modules), from where the build should be resumed. You use this e.g. when the build failed in a module, You fixed the problem in that module and then You don't like to run

Re: Execution of plugin in child poms and not in current pom

2011-08-10 Thread Marc Rohlfs
Hi Conny, what about this idea: 1. Create a properties file 'something.properties' in Your parent POM module directory and set the 'skip' property for the enforcer plugin in there: enforcer.skip=true 2. Configure the Properties Plugin in the build section of Your parent POM: org.cod

Re: Maven Release Plugin - Putting Release Version into scmCommentPrefix

2011-07-26 Thread Marc Rohlfs
I don't think it's possible (yet). I'd suggest to file a feature request at http://jira.codehaus.org/browse/MRELEASE. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven

Re: Relative path to parent directory at multi module maven project

2011-07-19 Thread Marc Rohlfs
I normally define a property called something like 'multiproject.basedir' in every POM - or at least in every POM that needs to reference a path in the parent project dir. Some examples: - in 'parent/pom.xml' it's: ${basedir} - in 'parent/sub1/pom.xml' it's: ${basedir}/.. - in 'par

Re: Setting pom properties from Maven Plugin for resource filtering

2011-06-23 Thread Marc Rohlfs
Hi Ronen, take a look at the Properties Maven Plugin [1]. I don't have any experience with that plugin, because I haven't used it yet. But it looks like it should do exactly what You want to achieve with Your custom Maven plugin. However, if it doesn't work out for You, You could at least take

Re: Missing artifact javax.transaction:jta:jar:1.0.1B

2011-06-15 Thread Marc Rohlfs
Hi, the artifact does not exists in Central, right. But there's no need to download and install it manually. The artifact is available in the repository http://download.java.net/maven/2, You just only need to add it to Your Nexus and/or Maven settings. Regards, Marc

Re: Assembly Advice

2011-05-20 Thread Marc Rohlfs
On 18/05/11 18:49, Eric Kolotyluk wrote: My current structure is +-- pom.xml ! +--- mod1 +--- mod2 needs an assembly and depends on mod1& mod3 +--- mod3 +--- mod4 needs an assembly and depends on mod1& mod3 Executing the assembly plugin in mod2 and mod4 should work. I did this in many builds

Re: help - how to reduce the build time using mvn and cargo

2011-05-13 Thread Marc Rohlfs
Java memory settings are not defined like system properties - You shouldn't use '-D'. Try this: set MAVEN_OPTS="-Xms=1024M -Xmx=1024M" This might not solve Your problem, but it should fix the memory reservation/allocation. BTW: I wouldn't modify the mvn.bat. Just set the MAVEN_OPTS as an

Re: Maven release plugin question

2011-05-04 Thread Marc Rohlfs
scm:svn:https://dev.envieta.com:8443/svn/dlm} ^ Could it be this closing curly bracket? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For addition

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Marc Rohlfs
I just checked it once more. With the plugin version 2.2, filtering didn't work when there was an '@' character somewhere in the document. My problem was solved with version 2.2.1, but in my case there wasn't an '@' character in the same line. BTW: Your workaround is not bad! Another idea woul

Re: Only partial filtering of .bat with assembly

2011-04-21 Thread Marc Rohlfs
Which version of the plugin do You use? I filed a bug report for this problem and it was solved with the plugin version 2.2.1. See: http://jira.codehaus.org/browse/MASSEMBLY-528 - To unsubscribe, e-mail: users-unsubscr...@maven

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
On 20/04/11 14:41, Marc Rohlfs wrote: On 20/04/11 13:55, Wendy Smoak wrote: On Wed, Apr 20, 2011 at 6:59 AM, Marc Rohlfs wrote: I was just thinking a bit about this. You're facing different problems You won't be able all at once: 1. You could create the releases of the s

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
On 20/04/11 13:55, Wendy Smoak wrote: On Wed, Apr 20, 2011 at 6:59 AM, Marc Rohlfs wrote: I was just thinking a bit about this. You're facing different problems You won't be able all at once: 1. You could create the releases of the sub modules independently (first You'd h

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
Didn't notice that parameter before. Sounds interesting - if it would really create a separate release tag for every module. But it wouldn't solve the problem of releasing just one (or some) of the modules in the reactor. On 20/04/11 14:01, Stephen Connolly wrote: I've never set up a test pr

Re: Maven and Subversion.

2011-04-20 Thread Marc Rohlfs
I was just thinking a bit about this. You're facing different problems You won't be able all at once: 1. You could create the releases of the sub modules independently (first You'd have to create a release of the parent, using 'mvn release:prepare release:perform -N'). Problem: the dependencie

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Marc Rohlfs
Hi Tim, On 06/04/11 12:34, Tim Pizey wrote: I cannot see in what sense ssh is an extension ... In the sense that it is not incuded in the Maven core anymore ... ;) ... But if You really need different configurations for M2 and M3, You could use different profiles that are automatically act

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Marc Rohlfs
Tim, I hope You don't mind the question, but did You add the the wagon jar to the MAVEN_HOME/lib directory on Your Hudson server, too? Anyway, I'd rather not add any libraries to the MAVEN_HOME/lib directory, because this needs to be done on each and every server and workstation where the Mave

Re: Antwort: Re: Antwort: Re: mvn deploy and site in one go

2011-03-30 Thread Marc Rohlfs
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 repor

Re: Antwort: Re: mvn deploy and site in one go

2011-03-30 Thread Marc Rohlfs
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 unsubscrib

Re: Antwort: Re: mvn deploy and site in one go

2011-03-29 Thread Marc Rohlfs
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 that. It could be solved

Re: mvn deploy and site in one go

2011-03-28 Thread Marc Rohlfs
Hi Stefan, 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. Maybe it could be worth it for You filing a regression report for Maven 3 at [1]. > #3 ... sound interesting! The most complicated thing here is to share >

Re: maven-enforcer-plugin and Maven 3

2011-03-25 Thread Marc Rohlfs
There's already a bug report about this (You could vote for it): http://jira.codehaus.org/browse/MENFORCER-98 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.o

Re: mvn deploy and site in one go

2011-03-24 Thread Marc Rohlfs
Hi Stefan, I don't understand why You're so anxious the run the tests only once on Your CI environment. You're dealing with two different purposes (build and reporting), that are often handled independently from each other. And normally the CI environment isn't too busy, so that it can easily

Re: Defining common localRepository that will work on both Windows and linux

2011-03-23 Thread Marc Rohlfs
As Windows und Unix have a different file system structures, I'd say you'll need to work with properties. Call 'mvn help:system' on both systems and try to find a common property (either system property or environment variable) You could use. The Maven Properties Guide [1] gives some further in

Re: JMeter in Maven

2011-03-18 Thread Marc Rohlfs
Not too nice but at least something You could start with: http://wiki.apache.org/jakarta-jmeter/JMeterMavenPlugin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apa

Re: Debugging maven-dependency-plugin

2011-03-17 Thread Marc Rohlfs
If can't find useful information in the debug output, it's getting somewhat hard to analyse. In the last instance You could try to debug it using the IDE: 1. Download the sources of the dependency plugin version Your're using from the SVN and integrate/import it in Your IDE. 2. Set a debug break

Re: help:effective-settings

2011-03-15 Thread Marc Rohlfs
Add the '-X' option to Your command line statement and check the output - with Maven 3.0.3, the interesting output is somewhere within the first 15 lines. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additio

Re: Using the new maven assembly goals

2011-03-14 Thread Marc Rohlfs
Hi Rui, I guess You were formally using the 'assembly:assembly' (or 'assembly:directory') goal, right? Those goals where "not inherited by default in multi-project builds" [1], but they "forced Maven to build all included POMs up to the package phase before the assembly is processed" [1]. Thi

Re: Using the new maven assembly goals

2011-03-11 Thread Marc Rohlfs
Hi Rui, normally false should work for You. It is a Maven core parameter and it doesn't depend on the plugin goal You are using. I can only guess about possible problems, maybe You should provide some more code and/or information like: - Where is this Your plugin configuration located (in th

Re: Maven 3 site: how to add report configured in module to parent's report config?

2011-02-28 Thread Marc Rohlfs
I would guess that this is the expected behavior, as otherwise it would not be possible to remove reports defined in the parent. You will have to add all the reports again if you want them to run in this module. No, it's a bug. Inheritance of report plugin configuration worked with Maven 2 and

Re: Mirrors

2011-02-24 Thread Marc Rohlfs
> Partially true. For my own repositories, this will work. However, > Maven also checks the repositories defined in all dependencies and > those I have no influence over. I normally define a mirror that also covers those repositories (using a wild card and/or a thirdparty mirror definition like t

Re: Mirrors

2011-02-23 Thread Marc Rohlfs
> I haven't tried that, but what I read from the Maven-pages, it doesn't > understand wildcards like that... But I can try though... I thought it would work, but I am not sure - I have to admit ... > Then again, it would only work if the repositories are actually named > like that, and I can't al

Re: Mirrors

2011-02-23 Thread Marc Rohlfs
Did You try something like this: shapshot-mirrors Snapshot Mirros http://snapshots.mycompany.com/repo *-snapshots release-mirrors Release Mirros http://releases.mycompany.com/repo *-releases thirdparty-

Re: Deployment in Repository without version in file name?

2011-02-16 Thread Marc Rohlfs
Another idea might be: 1. In Your Maven project, create a text file with the following content: http://your-nexus/your-nexus-repo/${project.artifactId}-${project.version}.${project.packaging} 2. Use the 'resources:copy-resources' with 'filtering=true' to copy the file "somewhere" and get its toke

Re: War plugin (2.1-beta-1,*] problem

2011-02-16 Thread Marc Rohlfs
You really made my day. Thank you very very much. You're welcome! I dont know how to thank you. Just take a little time once in a while to answer a question in this list Yourself ... :) - To unsubscribe, e-mail: users-unsub

Re: War plugin (2.1-beta-1,*] problem

2011-02-15 Thread Marc Rohlfs
Hi Cem! > But another question, why didnt my configuration work? For pom, the 'war:war' goal is already bound to the package phase (with the execution ID 'default-war'). With 'test2', You added an additional execution with its own configuration. Please take a look at the build output. You'l

Re: War plugin (2.1-beta-1,*] problem

2011-02-15 Thread Marc Rohlfs
Hi Cem, that example helped a lot, before seening that, I could only guess ... The solution for Your problem is to set the 'useCache' parameter of the maven-war-plugin to 'true'. Seems like the default value for this parameter changed between the 2 plugin versions. maven-war-plugin

Re: War plugin (2.1-beta-1,*] problem

2011-02-14 Thread Marc Rohlfs
ee successfully processed files. My custom plugin is processing sources without any problem. War goal of the war plugin is changing files I am sure about this. I tested with (*,2.1-beta-1] and I have not encountered any problem. Just newer version of the 2.1-beta-1 has this problem. By th

Re: War plugin (2.1-beta-1,*] problem

2011-02-14 Thread Marc Rohlfs
Just for curiosity: what happens if You configure the 'prepare-war' execution of Your test configuration for the 'process-resources' phase? As Your custom plugin goal and the 'war:exploded' goal are both configured for the same phase, are You sure that they're really executed in the estimated or

Re: Maven 3 support for org.apache.maven.user-settings

2011-02-10 Thread Marc Rohlfs
On 09/02/11 16:16, Wayne Fay wrote: started working with an alias: > alias mvn='mvn -s .../settings.xml' > But this wouldn't work on Windows machines ... I've done something similar with "mvnclienta" and "mvnclientb". You simply copy the mvn.bat file, rename it, and insert the "-s .../se

Re: Maven 3 support for org.apache.maven.user-settings

2011-02-09 Thread Marc Rohlfs
Hi there, the command line argument works (for me). But in Hudson (V 1.394), You need to add the '-s .../settings.xml' arguments to each project's build configuration. A global settings configuration for all Maven builds could only be set using the 'MAVEN_OPTS' with the 'org.apache.maven.user

Re: WARNINGS in Maven Build: maven-compiler-plugins missing

2011-02-04 Thread Marc Rohlfs
An explanation can be found in the Maven 3.x Compatibility Notes: https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-AutomaticPluginVersionResolution BTW: The version numbers can either be defined in the 'pluginManagement' and/or in the 'plugins' section

Re: adding a jar as resource to a webapp

2011-02-02 Thread Marc Rohlfs
I'd suggest it could be a JAR containing an Applet. The maven-dependency-plugin might help You out. Use on of the following approaches: http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html http://maven.apache.org/plugins/maven-dependency-plugin/examples/copyin

Re: AW: Attach sources/javadoc to system-scoped dependency

2011-02-01 Thread Marc Rohlfs
What do You need the sources and the download JARs for? Guess You like to be attached to the library in You IDE project, right? For Eclipse I see 2 workarounds: 1. This is evil, but it worked for me in a little test project: Deploy the JARs (main artifact, sources and javadoc) to the repositor

Re: Variables interpolation: dynamic in Maven 2, static in Maven 3 ?

2011-01-31 Thread Marc Rohlfs
I'll watch this issue as I'm really interested in how it might be handled. Personally I don't have a clear position here. Sometimes I'd like the property interpolation to be a little more dynamic. It would e.g. be great if I could activate a profile by the existence of a file whose path contain

Re: Variables interpolation: dynamic in Maven 2, static in Maven 3 ?

2011-01-28 Thread Marc Rohlfs
I'd say properties should be static - otherwise predefining them using the command line switch '-D' wouldn't work properly. BTW: With this Maven 3 show the same behaviour like Ant (I know, I shouldn't compare them), where properties are always immutable. I just checked it with the the Buildnum

Re: How to loose the "/target/..."

2011-01-25 Thread Marc Rohlfs
Looks a little strange to me, trying to do this kind of copy action using the POMs build resources configuration. I'd suggest to use the 'resources:copy-resources' goal: http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html. The 'outputDirectory' parameter should b

Re: Maven Assembly Plug-in - Creating custom root folder inside TAR file

2011-01-20 Thread Marc Rohlfs
yes! On 20/01/11 12:56, Tirumal Reddy Moolamalla wrote: I got solution to this. You just need to putfalse in your assembly descriptor file. Regards, Tirumal Reddy M -Original Message- From: Tirumal Reddy Moolamalla [mailto:t.moolama...@zensar.com] Sent: Thursday, January 20, 2011 5

Re: Maven Assembly Plug-in - Creating custom root folder inside TAR file

2011-01-20 Thread Marc Rohlfs
Simply add 'false' to Your 'bin.xml'. (See http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_assembly) On 20/01/11 12:33, Tirumal Reddy Moolamalla wrote: I need something like this. Example.tar -MyFolder But I am getting like this. Example.tar ---Example -

Re: Generating web project with java, webapp, and resource folder from archtype goal

2011-01-20 Thread Marc Rohlfs
Did You check the doc of the archetype plugin? This should solve Your problem: http://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html On 19/01/11 10:30, Piotr Skawinski wrote: Is there a way in maven to generate a web project with java, resources, and webapp folders runn

Re: problem when upgrading from maven2 to maven3

2011-01-18 Thread Marc Rohlfs
See the Maven 3 compatibility note on dependency resolution: https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-DependencyResolution. It suggests to inspect the dependency tree that is printed when running Maven in debug mode. On 18/01/11 04:17, 刘勇坡 wro

Re: set up maven repository for all the mirrors

2011-01-18 Thread Marc Rohlfs
I should be possible, of course. I'd suggest to talk to Your company's network admin about Apache and DNS configuration. On 17/01/11 19:38, anemdhana wrote: Hello everyone, I found this is really useful to setup internal maven repository http://www.jfrog.org/products.php, which takes care of