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
> &
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
> 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
> 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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
55 matches
Mail list logo