Yes. It's very neat and work perfectly.
Notice that not all configuration options are documented on the site. Look in
the source code for more options.
Gert.
-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: 24 September 2010 19:17
To: Maven Users List
Subject: PomS
On Tue, Oct 5, 2010 at 2:50 PM, emerson wrote:
> Hi
>...
> I would like then to pass a parameter to the mvn command (eg. mvn -Denv=st1)
> and it would pick up the appropriate resource file depending on the
> environment.
>
Hi,
I don't know whether it is what you want, but configureme supports
exa
Hi all,
A brief reminder that ApacheCon is coming up fast (Nov 1 - 5)! There's still
time to register for the early bird rates.
Of interest to this group, the following 1-day Maven training is scheduled:
Apache Maven: Effective Implementation
(http://na.apachecon.com/c/acna2010/sessions
I am trying to get our build system moved over from maven 2.0.8 to
2.2.1, but we have been having problems with the site plugin. While
converting over, I am supporting a profile that changes the plugin
version. Here is the setup:
...
2.0.1
...
...
On 05/10/2010 4:27 PM, Mike Lenner wrote:
You just need to bump the dep
version in project-2.
What about the use case where developers on project-2 don't even know
that project-1 has been released? All they know is the next time they
check in code to shared-util and check in code to use that i
what i've done before is use the versions:use-latest-versions goal in
an initial maven invocation and then follow up with clean verify and
finally a versions:rollback so that the next svn update does not get
borked.
I'd typically have a couple of jobs on the CI server, one building
exactly what is
Why would that break the CI build? It should break in your own environment as
soon as you try and use it in project-2. Well before the CI build. This will
tell you that project-2 needs to point to the 1.1-SNAPSHOT version of
shared-util.
What you are doing sounds fine to me. Project-2 need not
On Tue, Oct 5, 2010 at 4:27 PM, Mike Lenner wrote:
> Maybe part of the release process of shared-util should be to update
> some parent pom's dependencyManagement section to the 1.1-SNAPSHOT?
Or send out a release announcement to their users list, which
project-2's developers should be on? :)
I
On Tue, Oct 5, 2010 at 1:07 PM, Anders Hammar wrote:
> Yes, but the problem is the "we did this with Ant" mentality...
>
Yep I suspect thats causing me a lot of problems here -- which is why im
asking for suggestions on how else to accomplish the same thing.
Most of our binaries are already setu
> You just need to bump the dep
> version in project-2.
What about the use case where developers on project-2 don't even know
that project-1 has been released? All they know is the next time they
check in code to shared-util and check in code to use that in
project-2, their CI build breaks.
Mayb
I don't see that you're doing anything wrong. You just need to bump the dep
version in project-2. Or, I guess, you could use version ranges but I'm kind
of allergic to them so I'd suggest stay off that path.
/Anders
On Tue, Oct 5, 2010 at 22:05, Mike Lenner wrote:
> Any help would be greatly app
Yes, but the problem is the "we did this with Ant" mentality...
/Anders
On Tue, Oct 5, 2010 at 22:01, Wayne Fay wrote:
> > I want to second Wayne here and stress that doing different builds for
> each
> > environment is NOT the Maven way. I want to stress this as I very often
> run
>
> This isn
Any help would be greatly appreciated - I'm trying to figure out how
to do this the maven way.
I have a shared dependency called shared-util. My team frequently
makes changes to our deployable projects along with changes to the
shared-util. So, in my continuous build, I'd like each of our
projec
> I want to second Wayne here and stress that doing different builds for each
> environment is NOT the Maven way. I want to stress this as I very often run
This isn't just a violation of "the one true Maven way." It really is
a build anti-pattern that must be stopped any time you run into it --
no
I want to second Wayne here and stress that doing different builds for each
environment is NOT the Maven way. I want to stress this as I very often run
into this solution which people have grown used to it and it make it very
hard to set up correct Maven environments with a repository. It is an
ant
On 2010-10-04 19:48, Robert Reiner wrote:
>
>
> Antonio Petrelli wrote:
>>
>> Cool! But since you already licensed with Apache License v2, why don't
>> you donate it to the Maven Changes Plugin?
>>
>
> Hello Antonio,
>
> thank you for your reply!
>
> One reason for not trying to contribute to
Each environment identifies itself and your app uses that info to
connect to the right properties at runtime.
Curt Yanko | Continuous Integration Services | UnitedHealth Group IT
Making IT Happen, one build at a time
-Original Message-
From: Jon Paynt
well it was a suggestion - do what you will with it.
But how would you implement this using the maven way?
given the following restrictions/requirements:
each environment has its own hostname and number of hosts (dev 1 host, qa 4
hosts, prod 8 hosts)
each environment has a different db connection
> For property values -- I setup a .properties file for each of our
> environments with the default being 'dev'. So for a default build, the dev
> properties are used. but when its time to build for QA or Production, you
> add a cmd line argument accordingly: mvn install -DenvType=QA
IMO this
For property values -- I setup a .properties file for each of our
environments with the default being 'dev'. So for a default build, the dev
properties are used. but when its time to build for QA or Production, you
add a cmd line argument accordingly: mvn install -DenvType=QA
So I something li
On 5 October 2010 04:09, Benjamin Bentmann wrote:
> Hilco Wijbenga wrote:
>>
>>
>> central
>> http://central
>>
>> true
>>
>>
>> true
>>
>>
>>
>
> From this, it appears to be a b
> If we don't want to write pom.xml in XML, but JSON. Is it possible? Thanks a
> lot.
Take a look at Polyglot Maven:
http://polyglot.sonatype.org/
Wayne
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional
Dear all,
If we don't want to write pom.xml in XML, but JSON. Is it possible? Thanks a
lot.
Thanks and regards,
William
I recently changed a systemProperties configuration variable to be
systemPropertyVariables.
The old systemProperties element was able to deal with empty strings. That
is, if you had:
testDatabasePassword
...everything worked fine; the test database got an empty string passed to
it.
I change
2010/10/5 Anders Hammar :
> Can it be much simpler than a copy 'n' paste example?
Anyway, Thomas, here is a working example:
http://svn.apache.org/repos/asf/velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/
Antonio
Can it be much simpler than a copy 'n' paste example?
But as always, a ticket with an improvement suggestion would be very much
appreciated by the maven team!
/Anders
On Tue, Oct 5, 2010 at 16:27, Thomas Sundberg wrote:
> Hi all!
>
> I am indeed missing the verify goal. I added it so my config
Hi all!
I am indeed missing the verify goal. I added it so my configuration became:
org.apache.maven.plugins
maven-failsafe-plugin
2.6
integration-test
On 10/5/10 10:10 AM, Chris Audley wrote:
> I'm writing a POM for a project that needs to run unit tests in two
> groups, one with forkMode "once" and the other with forkMode "always".
> I understand how to configure two separate executions of the surefire
> plugin in the section with separate b
I'm writing a POM for a project that needs to run unit tests in two
groups, one with forkMode "once" and the other with forkMode "always".
I understand how to configure two separate executions of the surefire
plugin in the section with separate blocks.
The problem I have is that the files to be
i have had the sources in src/main/java previously but that didn't
help either :-)
but it works now ;-)
the last thing i'm struggling with now is that hudson is executing my
builds with jre, not jdk, therefore my apt processors do not work.
On Tue, Oct 5, 2010 at 2:52 PM, Wendy Smoak wrote:
> O
Hi Emerson,
On Tue, Oct 5, 2010 at 8:50 AM, emerson wrote:
>
> I would like then to pass a parameter to the mvn command (eg. mvn -Denv=st1)
> and it would pick up the appropriate resource file depending on the
> environment.
> What would be the best way to implement something on these lines?
You
On Tue, Oct 5, 2010 at 7:10 AM, Leon Rosenberg wrote:
> basically add this to my pom
...
> ${project.basedir}/java
Did you add this at the same time? If so, that's what did it...
without that Maven would expect the classes to be in src/main/java, so
nothing would have been compiled.
--
Wend
Hi
I have a integration test with several sub-modules. Currently each one has
its specific configuration. How can I centralise the configuration in 1
single place? I would like to have 1 single file per environment with:
scrum1_team.properties
frontend=st1_fe_server
backend=st1_be_server
...
scr
Hi Emerson,
On Tue, Oct 5, 2010 at 5:25 AM, emerson wrote:
> Should I presume there is no equivalent to the aggregated dashboard of M1?
Yes. There is no equivalent for the M1 dashboard. Some report plugins
support aggregation, but that is on a per-plugin basis.
I realize what I'm about to sugge
I guess you're missing the verify goal:
http://maven.apache.org/plugins/maven-failsafe-plugin/usage.html
/Anders
On Tue, Oct 5, 2010 at 13:46, Thomas Sundberg wrote:
> Hi!
>
> I want to use maven-failsafe-plugin to run some integration tests. I want
> Maven to run post-integration-test phase t
Add:
verify
and make sure you run up until that phase.
Cheers,
Brett
On 05/10/2010, at 10:46 PM, Thomas Sundberg wrote:
> integration-test
--
Brett Porter
br...@apache.org
http://brettporter.wordpress.com/
-
To unsubscri
Hi!
I want to use maven-failsafe-plugin to run some integration tests. I want
Maven to run post-integration-test phase to tear down an application server.
If any test fails, I want Maven to fail the build so my CI server can pick
it up and inform the developer who just made a mistake.
My failsafe
Hello Jörg,
basically add this to my pom
${artifactId}-${version}
${project.basedir}/java
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
Hilco Wijbenga wrote:
But why would only Maven 2 complain and not Maven 3 then?
There's always a chance of a bug.
central
http://central
true
true
From this,
Hi list!
I use build/outputDirectory to have compile on save work with netbeans.
I also want the overlay war to exclude WEB-INF/classes.
My problem is that it only works when not specifying build/outputDirectory.
Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_21
...
myProject
Should I presume there is no equivalent to the aggregated dashboard of M1?
On 1 October 2010 18:57, emerson wrote:
> Hi
>
> I used to have in my multiproject in maven1 a dashboard report with a
> summary with the test results of each modules.
> How can I set up maven so that it will create a sim
Hi Leon,
Leon Rosenberg wrote:
> ok, resolved, my error, i forgot to explicitly include the compile
> plugin, therefor my plugin was packaged but contained no classes.
> thanx for the help. now i only need to force the using project to add
> generated classes to the source dirs ;-)
What do you m
To handle distributionManagement, I define the url as a property that is
defined in settings.xml.
This allow me to define the whole connectivity from settings.xml. If ever my
repository changed, I just need to update settings.xml on my build machines,
instead of releasing a new parent and bumping p
ok, resolved, my error, i forgot to explicitly include the compile
plugin, therefor my plugin was packaged but contained no classes.
thanx for the help. now i only need to force the using project to add
generated classes to the source dirs ;-)
regards
Leon
On Tue, Oct 5, 2010 at 8:11 AM, Leon Ros
Since Maven has been requiring maven 5 since v 2.2 i don't see why this
shouldn't be used as part of this plugin,
unless compatibility with earlier maven versions are a requirement.
On Mon, Oct 4, 2010 at 7:48 PM, Robert Reiner wrote:
>
>
> Antonio Petrelli wrote:
> >
> > Cool! But since you alr
Using the latest version (2.6) of maven-surefire-report-plugin in the reporting
section of Maven 2.2.1 does not execute if there is a unit test failure. I
can't get any of the plugins in the reporting section of Maven to execute if
there is a unit test failure.
I found that I can set maven.tes
Using the latest version (2.6) of maven-surefire-report-plugin in the reporting
section of Maven 2.2.1 does not execute if there is a unit test failure. I
can't get any of the plugins in the reporting section of Maven to execute if
there is a unit test failure.
I found that I can set maven.tes
47 matches
Mail list logo