Re: Maven profiles activations

2011-03-25 Thread Stephen Connolly
On 25 March 2011 13:36, Rafael Vanderlei rafaelvander...@gmail.com wrote: Jörg and Benjamin, thanks for your explanation. I understand now that profiles are not allowed to be activated by properties defined inside a POM because it could form cycles (though maybe with some design decisions it

Re: Maven 2.x Dependency Plugin, MDEP-163 is really not a bug

2011-03-23 Thread Stephen Connolly
... if it is not to happen every time, then put the binding in a profile you can even put a default lifecycle phase in the profile so that all you need to do is mvn -PmySuperProfile and it will invoke the lifecycle and all the profile bound executions -Stephen Regards, Tomaz S, Stephen Connolly

Re: Maven 2.x Dependency Plugin, MDEP-163 is really not a bug

2011-03-23 Thread Stephen Connolly
an additional execution from the cli -Stephen Regards, Tomaz S, Stephen Connolly piše: On 23 March 2011 08:19, TomazM tomaz.majerh...@arnes.si mailto: tomaz.majerh...@arnes.si wrote: No this is not issue, probably bad design of maven plugin. Because if I take configuration

Re: mvn deploy and site in one go

2011-03-23 Thread Stephen Connolly
Jenkins picks up the test failures from the xml reports... maybe you should switch from TeamCity ;-) On 23 March 2011 17:31, stefan.han...@tolina.com wrote: Hi Yegor, thanks for taking the time to share your thoughts. The only option you have is to run your project twice in your CI

Re: Maven 2.x Dependency Plugin, MDEP-163 is really not a bug

2011-03-22 Thread Stephen Connolly
The first(Andrew) and the last comment (Brian) explains it all.. In general in Maven you do not invoke goals directly, but instead you invoke the phase that the goal is bound to (or any later phase) The example code binds the goal to the package phase, and also puts the configuration for that

Re: variable for poms. SOS

2011-03-11 Thread Stephen Connolly
On 11 March 2011 07:21, Jörg Schaible joerg.schai...@scalaris.com wrote: koxkorrita wrote: hello i have some project, subprojects using maven. several of them are libs for import as dependencies into my maven projects and subprojects. my problem is the next. into my pom version i

Re: variable for poms. SOS

2011-03-10 Thread Stephen Connolly
this might be a different solution to your problem. versions-maven-plugin@mojo mvn versions:set -DnewVersion=... - 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 10 Mar

Re: Versioning sub-modules as well as the project as a whole.

2011-03-09 Thread Stephen Connolly
have a look at some of the goals in versions-maven-plugin [yoda], might able be to help you they might[/yoda] On 9 March 2011 18:16, Daryl Lonnon dlon...@gmail.com wrote: Joachim, So effectively, each of the modules you wish to version separately, is treated as it's own release. Then

Re: release process and SNAPSHOT upgrade

2011-03-04 Thread Stephen Connolly
Ryan, Actually, you can modify the pom during preparationGoals as that is precisely the stage where the pom can be modified because thee release plugin has just modified it and is building with the modified pom to validate that the modifications work. Nicolas, Perhaps what is needed is another

Re: Clarification on Central Sync Requirements

2011-02-28 Thread Stephen Connolly
On 28 February 2011 02:17, Peter Niederwieser pnied...@gmail.com wrote: According to (1), every POM must have elements like licenses, scm and developers. So far I've always put such information into the parent only. Are the inherited values correct? specifically are the inherited scm url's

[ANN] Mojo's Cassandra Maven Plugin 0.7.2-1 released

2011-02-21 Thread Stephen Connolly
, The Mojo team. Stephen Connolly Apache, Apache Maven, Apache Cassandra, Maven and Cassandra are trademarks of The Apache Software Foundation.

Re: Fitnesse support?

2011-02-20 Thread Stephen Connolly
have you tried overriding the fitness version? it may be that there is no api breakage between the version used and the latest version. to override the version, just specify a dependencies section _within_ the plugin tags - Stephen --- Sent from my Android phone, so random spelling mistakes,

Re: Maven 3 does not seem to like version ranges?

2011-02-18 Thread Stephen Connolly
On 18 February 2011 09:27, Kristoffer Peterhaensel kristof...@codedivision.com wrote: Hey. Thanks for the reply. We have a couple of snapshot repositories in the settings.xml. But for some reason they do not show up in the output of mvn help:effective-settings. We also specify that our

Re: Maven 3 does not seem to like version ranges?

2011-02-18 Thread Stephen Connolly
that sounds like a bug. can you please raise a jira - 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 Feb 2011 13:05, Syvalta syva...@yahoo.com wrote: I'm running into

Re: Call System.setProperty(java.awt.headless, true)?

2011-02-17 Thread Stephen Connolly
On 16 February 2011 23:15, Jesse Glick jesse.gl...@oracle.com wrote: On 02/15/2011 11:35 PM, Stephen Connolly wrote: there are enough people out there who use mvn exec:exec to run their swing apps Do you mean exec:java? (exec:exec -Dexec.executable=java would be Yeah... I was using my phone

Re: Maven 3 does not seem to like version ranges?

2011-02-17 Thread Stephen Connolly
what is the updatePolicy in each of the repositories sections? mvn help:effective-settings will show the effective settings, then look for the *updatePolicy*: This element specifies how often updates should attempt to occur. Maven will compare the local POM's timestamp (stored in a repository's

Re: Disabling lifecycle with assembly plugin

2011-02-16 Thread Stephen Connolly
that goal is deprecated if I recall correctly use the single goal instead - 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 16 Feb 2011 12:40, Rui Vilão rpvi...@gmail.com

Re: plugin versions

2011-02-16 Thread Stephen Connolly
note that it will tell you about updates, not whether those updates require a newer version of maven to be used - 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 16 Feb 2011

Re: Call System.setProperty(java.awt.headless, true)?

2011-02-15 Thread Stephen Connolly
- 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 16 Feb 2011 02:53, Jesse Glick jesse.gl...@oracle.com wrote: On 02/13/2011 04:54 PM, Benson Margulies wrote: It seems to me

Re: Call System.setProperty(java.awt.headless, true)?

2011-02-15 Thread Stephen Connolly
stupid phone. stop sending empty messages. ok. what i was trying to say us that there are enough people out there who use mvn exec:exec to run their swing apps - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of

[ANN] Mojo's Cassandra Maven Plugin 0.7.0-1 released

2011-02-12 Thread Stephen Connolly
artifactIdcassandra-maven-plugin/artifactId version0.7.0-1/version /plugin Release Notes This is the first release of Mojo's Cassandra Maven Plugin Enjoy, The Mojo team. Stephen Connolly Apache, Apache Maven, Apache Cassandra, Maven and Cassandra are trademarks of The Apache Software

Re: Release process does resolve SNAPSHOT dependencies

2011-02-12 Thread Stephen Connolly
that is a circular reference... the big is that you are allowed to make such a cycle. the reason why this is not allowed is that maven constructs the build plan up front, and when a plugin depends on a module from the reactor, then the build plan could (in theory) be affected based on the result

Re: Release process does resolve SNAPSHOT dependencies

2011-02-12 Thread Stephen Connolly
to the release-plugin indicating to reactor that it can resolve the plugin dependencies if such dependency is generate during the build? On Sat, Feb 12, 2011 at 3:26 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: that is a circular reference... the big is that you are allowed to make

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

2011-02-10 Thread Stephen Connolly
I use the following bash function for selecting different maven versions: usemvn () { if [ -z $1 -o ! -x /opt/apache/apache-maven-$1/bin/mvn ]; then echo -n Syntax: usemvn; for i in /opt/apache/apache-maven-*; do if [ -x $i/bin/mvn ]; then

Re: Pom not deployed to repo when using profiles to build with 2 jdks

2011-02-10 Thread Stephen Connolly
I hope your realise that what you are doing is not the naven way... ie there be dragons I hope you do not have dependencies in these profiles you have... if you do, then they are the fire breathing and hungry for human flesh kind of dragons - Stephen --- Sent from my Android phone, so random

Re: Breaking the build on JVM 6 because of maven dependency

2011-02-09 Thread Stephen Connolly
this is a result of somebody having put dependencies in a profile activated by java version. a mistake was made when the pom schema was defined in allowing dependencies to be part of profiles. it cannot be corrected until maven 3.1 or later - Stephen --- Sent from my Android phone, so random

Re: Breaking the build on JVM 6 because of maven dependency

2011-02-09 Thread Stephen Connolly
of using swype to type on the screen On 9 Feb 2011 20:48, Greg Akins angryg...@gmail.com wrote: On Wed, Feb 9, 2011 at 2:53 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: this is a result of somebody having put dependencies in a profile activated by java version. a mistake was made

Re: [maven-failsafe-plugin] Running integration test with its own profile

2011-02-08 Thread Stephen Connolly
JNDI is not the only way. Another good way is the .properties file on the classpath This can work even better if you have default properties in your war, so you do something like public static final class Configuration { private static final class ResourceHolder { private static final

Re: DecoderException

2011-02-05 Thread Stephen Connolly
on some installations of windows, the CLASSPATH environment variable is defined, and may even point to non-spec compliant partial implementations of java. I have seen javadoc blow up in these cases. check your environment variables. btw quick time can sometimes set the environment variable -

Re: Generic location for servlet-api.jar

2011-02-04 Thread Stephen Connolly
servlet-api should be scope provided, so as long as it's a correct servlet-api jar, it won't matter - 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 4 Feb 2011 17:13,

Re: getting LATEST version from the local repository

2011-02-01 Thread Stephen Connolly
ugh this is just so wrong I don't know where to start. please consider using SNAPSHOTS as they are the correct way LATEST and RELEASE do not mean what you think they mean, and they have been deprecated. their use is no longer supported. maven makes assumptions about non-SNAPSHOT versions which

Re: Regarding Automating Deployment to JBoss from Nexus

2011-01-31 Thread Stephen Connolly
not quite the solution you are looking for but have a look at the ship-maven-plugin @ mojo On 31 January 2011 11:17, Tirumal Reddy Moolamalla t.moolama...@zensar.com wrote: Hi All, Currently I am able to build my artifacts using Maven and successfully published to Nexus repository. I want to

Re: How to build plugin before top-level project uses it

2011-01-31 Thread Stephen Connolly
you cannot use a plugin within the same reactor as the plugin is built from. this is usually solved in one of two ways: 1. use the immediately previous release of the plugin, so the reactor build version 1.1-SNAPSHOT but uses version 1.0 2. move the plugin to its own reactor the reason why this

Re: Welcome Evgeny Mandrikov to Apache Maven Dev Team

2011-01-30 Thread Stephen Connolly
welcome - 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 30 Jan 2011 19:52, Olivier Lamy ol...@apache.org wrote: Hello, We just voted him as a committer. So Welcome

Re: Why is Maven allowing cycles?

2011-01-29 Thread Stephen Connolly
maven won't allow cycles in the same reactor build if you are not bulging in one reactor then there may be an issue... you should raise a jira - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to

Re: Failsafe plugin behaviour with antrun plugin

2011-01-26 Thread Stephen Connolly
There is nothing special about the pre- and post- phases There is no contract that says they will be executed if the integration-test phase is invoked. This is why we have the failsafe plugin. Failsafe runs the tests and _does_not_fail_the_build_if_the_tests_fail_ In general the rules you

Re: Keeping the executable bit on shell scripts when testing

2011-01-26 Thread Stephen Connolly
launch them with sh as the prefix on the cli, eg sh foo.sh and not foo.sh - 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 26 Jan 2011 15:36, Oliver Schrenk

Re: Checking if an artifact exists in the local repository

2011-01-26 Thread Stephen Connolly
you could try and resolve the file from the local repository and an empty set of remote repositories... if the file resolves, then I'd check the size and time stamp and only then decide what to do - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and

Re: Checking if an artifact exists in the local repository

2011-01-26 Thread Stephen Connolly
up to you, but if I was downloading large stuff from non maven repositories, I'd add checks for interrupted downloads. - 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 26

Re: integration tests fail, but not the main build

2011-01-25 Thread Stephen Connolly
Never ever run the goals pre-integration-test integration-test post-integration-test directly from the command line to run integration tests use mvn verify the best practice for using the integration-test phase is to not fail the build in that phase and defer checking the integration test

Re: downloading resources

2011-01-20 Thread Stephen Connolly
any phase before the phase in which you create the bundle... probably generate-resources On 20 January 2011 07:56, Adam Crain acr...@greenenergycorp.com wrote: What phase should I be doing this in to insure that they make it into the bundle? On Wed, Jan 19, 2011 at 9:52 PM, Wayne Fay

Re: Changing the groupId/artifactId of an artifact in the next version but keep maven conflict detection

2011-01-18 Thread Stephen Connolly
The closest you will get is to deploy a relocation pom at the old GA with the new V., e.g. at groupIdorg.drools/groupId artifactIddrools-repository/artifactId version5.2.0/version it's not perfect (i.e. it will only notify people using ranges and only fools use ranges!) and it does not do

Re: Maven release:perform deploy failed access denied

2011-01-18 Thread Stephen Connolly
Nope. you can (and should) deploy to your nexus/artifactory server. you can (and should) pull dependencies from your nexus/artifactory server. However, you might use groups to aggregate several repos in your nexus server so that you only need the one repository definition (and better yet keep

Re: Maven release:perform deploy failed access denied

2011-01-18 Thread Stephen Connolly
On 18 January 2011 09:08, jeb001 jeremy.jar...@gmail.com wrote: ok... If I try to sum up... First issue was to use a groups URL of nexus.. ok, it's correct now. Correct Then, both of the distMgt tag and repository set the same URL.. Incorrect... distMgt should point to the repo.

Re: Maven release:perform deploy failed access denied

2011-01-18 Thread Stephen Connolly
On 18 January 2011 09:25, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 18 January 2011 09:08, jeb001 jeremy.jar...@gmail.com wrote: ok... If I try to sum up... First issue was to use a groups URL of nexus.. ok, it's correct now. Correct Then, both of the distMgt tag

Re: Maven release:perform deploy failed access denied

2011-01-18 Thread Stephen Connolly
On 18 January 2011 09:40, jeb001 jeremy.jar...@gmail.com wrote: Ok, so.. In my settings.xml :                mirror                        idrepository/id                        nameMiror nexus/name                        urlhttp://nexus/content/groups/MyRepositories//url                  

Re: [Maven Users] Deploy .war to shared hosting 'remote server'

2011-01-17 Thread Stephen Connolly
You could also use the ship-maven-plugin to help with your scripting. On 17 January 2011 11:02, Nigel Weinronk nweinr...@btinternet.com wrote: I agree that the use of the term 'deploy' seems to have caused my confusion. I was unable to get wagon-maven-plugin to work at all seems to be a

Re: Resolving test interdependency with maven.

2011-01-15 Thread Stephen Connolly
you need to invoke at least as far as the package phase to get what you are trying to do to work. - 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 15 Jan 2011 21:18, Mahadev

Re: antlr-3.1.3 depends on antlr-2.7.7.

2011-01-14 Thread Stephen Connolly
different packages in. the jars - 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 14 Jan 2011 05:44, Anders Hammar and...@hammar.net wrote:

Re: Welcome Wayne Fay to the Maven PMC

2011-01-14 Thread Stephen Connolly
congrats - 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 15 Jan 2011 01:13, Jesse Farinacci jie...@gmail.com wrote: Congratulations, Wayne!! Thanks for all your efforts,

Re: Artifact not getting downloaded from my-won-remote-repository

2011-01-13 Thread Stephen Connolly
On 13 January 2011 08:58, Anders Hammar and...@hammar.net wrote: Here's one: Ditch the web server and get a real repo manager. I suggest Nexus, but there others. They all have free OSS versions, so there is absolutely no reason to not use them. Ron (one guy on this list) can tell you how they

Re: Cobertura and Surefire

2011-01-13 Thread Stephen Connolly
On 13 January 2011 09:50, Stefan Schulze algr...@gmx.de wrote: Stephen Connolly wrote: Because people who have not read and understood concurrency in practice often do not understand how the synchronization points affect jvm sequencing, people often wrongly suspect that result of instrumented

Re: Cobertura and Surefire

2011-01-12 Thread Stephen Connolly
Because people who have not read and understood concurrency in practice often do not understand how the synchronization points affect jvm sequencing, people often wrongly suspect that result of instrumented and non-instrumented code is the same. I have had bugs which were not caught by unit tests

Re: Cobertura and Surefire

2011-01-12 Thread Stephen Connolly
actually these were tests of code that the developers thought not to include threading or concurrency I've been badly bitten by running the tests only once. they are unit tests, they should be fast enough to run them twice. and you should run them more than once and in a random order each time.

Re: plugin-testing

2011-01-12 Thread Stephen Connolly
maven-invoker-plugin its usually better for plugin testing. verifier is for writing plugin tests from eg junit. invoker works differently - 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

Re: project for libraries

2011-01-09 Thread Stephen Connolly
imtellij is the king of the ides - 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 9 Jan 2011 01:38, Ron Wheeler rwhee...@artifact-software.com wrote: On 08/01/2011 4:44 PM,

Re: assembly plugin sign all dependented jars

2011-01-05 Thread Stephen Connolly
On 5 January 2011 08:22, xtonic davidptw...@gmail.com wrote: I would like to produce a tar with my project artifact and all its dependents jars jarsigned. Also, I would like to deploy the tar as attachment. I used assembly plugin and write my own descriptor. However, I don’t know how to

Re: Assembly Plugin adventures - further review

2010-12-31 Thread Stephen Connolly
Install implies package. If you run mvn clean install package Yoyr tests will run twicr because you asked maven to run them twice Also you should be binding assembly: single to tgen lifecycle, not invoking directly - Stephen --- Sent from my Android phone, so random spelling mistakes, random

Re: Can I release:perform without release:prepare?

2010-12-21 Thread Stephen Connolly
I normally just keep on doing the release:prepare until it works given that it resumes from the point of failure On 21 December 2010 04:00, Kathryn Huxtable kath...@kathrynhuxtable.org wrote: I've already manually done the release:prepare because for some reason my release:prepare didn't

Re: Can I release:perform without release:prepare?

2010-12-21 Thread Stephen Connolly
git reset --hard 792c6ebc7bc131a149b2a6fa1d73e7cbb56839a8 git push origin +master mvn release:clean mvn release:prepare release:perform -B should just work On 21 December 2010 08:46, Stephen Connolly stephen.alan.conno...@gmail.com wrote: I normally just keep on doing the release:prepare until

Re: Can I release:perform without release:prepare?

2010-12-21 Thread Stephen Connolly
a few months ago when I did my last release. Now it fails. -K On Dec 21, 2010, at 2:50 AM, Stephen Connolly wrote: git reset --hard 792c6ebc7bc131a149b2a6fa1d73e7cbb56839a8 git push origin +master mvn release:clean mvn release:prepare release:perform -B should just work On 21 December

Re: Can I release:perform without release:prepare?

2010-12-21 Thread Stephen Connolly
Damn you lenova laptop keyboard... who put's Fn where Ctrl should be https://github.com/stephenc/high-scale-lib/blob/master/pom.xml On 21 December 2010 15:00, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Here is a pom that I have working On 21 December 2010 13:57, Kathryn Huxtable

Re: Chicken-and-egg problem: plugin dependencies as modules

2010-12-17 Thread Stephen Connolly
The organizational pom can prescribe the use of the most recently released ruleset. The next version of the ruleset would technically be checked against the previous version, but as rulesets are not java code the check will not be applied on that artifact. -Stephen On 17 December 2010 11:55,

Re: Reasonable use of profiles?

2010-12-14 Thread Stephen Connolly
On 14 December 2010 08:06, fhomasp thomas.peet...@realdolmen.com wrote: After reading a bit of the debate I wonder a few things.  I read stay away from profiles a lot but I do find them to be very useful. So what's the alternative on profiles?  Assuming there is a modular project with

Re: Reasonable use of profiles?

2010-12-14 Thread Stephen Connolly
On 14 December 2010 08:50, fhomasp thomas.peet...@realdolmen.com wrote: I didn't mean huge changes for the different platform.  The usual changes for the specific environments switched with profiles are usually those property files you're talking about. So the codebase remains the same, but

Re: Reasonable use of profiles?

2010-12-14 Thread Stephen Connolly
On 14 December 2010 09:45, fhomasp thomas.peet...@realdolmen.com wrote: Your rant makes sense Stephen and I'm already glad I asked :-) I honestly have never been in a development environment where rebuilding an artifact was a problem. But did you ever ask why it was OK to rebuild the

Re: maven dependency plugin exclude test dependencies

2010-12-14 Thread Stephen Connolly
http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html#excludeTransitive On 14 December 2010 01:35, Erwin Mueller erwin.muel...@deventm.org wrote: Hello,        Can I exclude test dependencies in the maven-dependency-plugin? I'm using this plugin to copy all

Re: Use error to start a new process?

2010-12-14 Thread Stephen Connolly
antrun anyone On 14 December 2010 17:15, Wayne Fay wayne...@gmail.com wrote: Is there any possibility to configure the exec-maven-plugin (or any other existing plugin) in a way, that I can catch the maven build error of the install-execute-process and use is as a trigger, that starts the

Re: maven war plugin - generated WAR file missing WEB-INF and jsp pages (only in the uploaded deploy and release)

2010-12-12 Thread Stephen Connolly
By any chance do you use an active by default profile to pull in your content that is missing on release? - 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 12 Dec 2010 04:12,

Re: Differences between Maven 2.0, 2.1, 2.2 and 3.0

2010-12-12 Thread Stephen Connolly
2.1 is a dead duck do not use it. There are major issues with it 2.2 requires java 1.5 to run and is the end of the 2.x code base (i.e. the one where the first version of a plugin loaded in a multi module build is the only version loaded) 3.0 is the way to go - Stephen --- Sent from my

Re: Reasonable use of profiles?

2010-12-11 Thread Stephen Connolly
On 11 December 2010 06:26, Brian Topping topp...@codehaus.org wrote: On Dec 10, 2010, at 10:03 PM, Ron Wheeler wrote: On 10/12/2010 9:19 PM, Bryan Loofbourrow wrote: What is the semantic difference between multiple POMs and a single POM containing the different module lists in profiles?

Re: avoiding overwriting newer file when using maven resources plugin copy-resources with filtering

2010-12-09 Thread Stephen Connolly
Sounds like you might be better served by writing your own plugin to do the filtering, that way you can take the timestamps into consideration. Also I hope you are putting the filtered java source into a sub-folder of ${basedir}/target -Stephen On 8 December 2010 22:49, Marshall Schor

Re: Multiple JDKs

2010-12-09 Thread Stephen Connolly
On 9 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote: On 07.12.2010 11:29, Stephen Connolly wrote: On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote: Hi all, I was wondering if anybody ever had this problem... I have a customer who

Re: Optional Plugins in War project

2010-12-09 Thread Stephen Connolly
if they are going to be building your project, they need to install maven, and such so they will need to have at least some awareness of maven. But I would instead have a plugin installation mechanism and get the users to install the plugins into a standard deployed web-app, e.g. how hudson works

Re: Multiple JDKs

2010-12-07 Thread Stephen Connolly
On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote: Hi all, I was wondering if anybody ever had this problem... I have a customer who is running a machine with a SUN JDK and one with an IBM JDK. Now, we've noticed there are some differences between the two, so I thought

Re: Multiple JDKs

2010-12-07 Thread Stephen Connolly
On 7 December 2010 10:37, Asmann, Roland roland.asm...@adesso.at wrote: On 07.12.2010 11:29, Stephen Connolly wrote: On 7 December 2010 10:14, Asmann, Roland roland.asm...@adesso.at wrote: Hi all, I was wondering if anybody ever had this problem... I have a customer who

Re: possible ${} expressions on MOJO parameters

2010-12-06 Thread Stephen Connolly
The Resource is used to reference the folder containing the resources to add. You create a subfolder of target (convention is to call it target/generated-resources/yourpluginname) You write the properties file in that folder... e.g. if you want to have th properties file end up in

Re: possible ${} expressions on MOJO parameters

2010-12-06 Thread Stephen Connolly
And the reason for adding it as a Resource in a separate folder is so that IDE's can recognise that the file is a source file but generated source. For example IntelliJ IDEA will give auto-completion of property names from .properties files if the property file is listed as a generated source

Re: possible ${} expressions on MOJO parameters

2010-12-06 Thread Stephen Connolly
I suspected as much... but if you just dump the resource in target/classes the IDE's may not see the properties file as being _source_ and autocomplete will be flakey On 6 December 2010 10:33, Antonio Petrelli antonio.petre...@gmail.comwrote: 2010/12/6 Stephen Connolly stephen.alan.conno

Re: [versions-maven-plugin] Why is the default to generate backup poms?

2010-12-06 Thread Stephen Connolly
I have considered changing the default so that if the effective pom includes an SCM section then it would default to false... but the problem occurs if the parent has an scm section but we are not in scm, e..g. if I use apache-parent-7 as my parent even though I am not in apache's svn server then

Re: [versions-maven-plugin] Why is the default to generate backup poms?

2010-12-06 Thread Stephen Connolly
versions:commit, that is nice. I know about the command line option, but I always forget the exact syntax, so I have to look it up each time. I have a feeling that I will remember versions:commit more easily :) 2010/12/6 Stephen Connolly stephen.alan.conno...@gmail.com I have considered changing

Re: possible ${} expressions on MOJO parameters

2010-12-03 Thread Stephen Connolly
You will create a folder at ${basedir}/target/generated-resources/mypluginname/ You will put your generated file in that directory You will add that directory to the project's list fo resource directories You will find the above solution is the maven way. Putting generated things in folders which

Re: possible ${} expressions on MOJO parameters

2010-12-03 Thread Stephen Connolly
) + , i.e. build is platform dependent! ); outputEncoding = System.getProperty( file.encoding ); } Resource resource = new Resource(); ... this.project.addResource( resource ); } } On 3 December 2010 15:27, Stephen Connolly stephen.alan.conno

Re: possible ${} expressions on MOJO parameters

2010-12-03 Thread Stephen Connolly
I am explaining how the plugin has to work to do what you want. see my later example where I give you most of the code you will need On 3 December 2010 15:33, fhomasp thomas.peet...@realdolmen.com wrote: That's not an answer... Oh and I will? I'm not a native English speaker, but it does

Re: multi-module agregated test report

2010-11-30 Thread Stephen Connolly
, Stephen Connolly stephen.alan.conno...@gmail.com wrote: There are good reasons for not having overlapping packages in separate jars. Namely when alves security manager is running, our if the jar is signed then they are treated as separate packages - Stephen --- Sent from my Android

Re: How to make sure the local repository contains the latest versionof a specific artifact?

2010-11-29 Thread Stephen Connolly
Once I get my changes to m-release-p out and add two goals to v-m-p we'll be able to develop with ranges and release locked down to pinned versions - Stephen --- Sent from my Android phone, so random spelling mistakes are a direct result of using swype to type on the screen On 29 Nov 2010

Re: Scripting the versions plugin via a profile

2010-11-29 Thread Stephen Connolly
The reason is it modifies the pom, so you need to re-invoke maven afterwards - Stephen --- Sent from my Android phone, so random spelling mistakes are a direct result of using swype to type on the screen On 29 Nov 2010 18:03, Benson Margulies bimargul...@gmail.com wrote: [INFO] Mojo:

Re: Getting phase in a plugin

2010-11-29 Thread Stephen Connolly
You currently cannot - Stephen --- Sent from my Android phone, so random spelling mistakes are a direct result of using swype to type on the screen On 29 Nov 2010 18:39, Eric Rotick pc.gree...@gmail.com wrote: I have created a plugin and I would like to do slightly different things based on

Re: RE: Continuous Delivery and Maven

2010-11-26 Thread Stephen Connolly
OK that one is done now r1039453... I'll see what the story is about pushing a release of m-r-p soonish... Last step is the v-m-p... -Stephen On 25 November 2010 16:14, Stephen Connolly stephen.alan.conno...@gmail.com wrote: http://jira.codehaus.org/browse/MRELEASE-621 will be needed to get

Re: multi-module agregated test report

2010-11-26 Thread Stephen Connolly
There are good reasons for not having overlapping packages in separate jars. Namely when alves security manager is running, our if the jar is signed then they are treated as separate packages - Stephen --- Sent from my Android phone, so random spelling mistakes are a direct result of using swype

Re: RE: Continuous Delivery and Maven

2010-11-25 Thread Stephen Connolly
build at a time, 600 times a day -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] ... This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which

Re: Increment Project-Version at build with Maven and Hudson

2010-11-25 Thread Stephen Connolly
Why not follow the maven way, leave the version in SCM as a SNAPSHOT, and let hudson do the releases for you... If you object to maven-release -plugin effectively running the build twice, then switch the preparationGoals to validate - Stephen --- Sent from my Android phone, so random spelling

Re: Continuous Delivery and Maven

2010-11-24 Thread Stephen Connolly
http://mojo.codehaus.org/ship-maven-plugin Let me know what you think? -stephen On 9 November 2010 09:24, Stephen Connolly stephen.alan.conno...@gmail.comwrote: I think some of the issues are around missuse of Maven. Maven is a build tool, use it to do your build. CD needs a separate

Re: RE: Continuous Delivery and Maven

2010-11-24 Thread Stephen Connolly
Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] ... This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient

Re: Maven 3.0 doesn't download sources

2010-11-23 Thread Stephen Connolly
Are these sources of snapshots or releases? If snapshots it may be that the sources were deployed with a different timestamp, in which case the maven metadata my not be letting maven 3 find the artifacts. IIRC Maven 3 pays more attention to the metadata, whereas Maven 2 might not trust it as

Re: Maven 3.0 doesn't download sources

2010-11-23 Thread Stephen Connolly
in artifactory. The sources are deployed on the same time like the compiled artifacts. So the timestamp should be equals, shouldn't it? If not, how could I archieve it? -Chris -Ursprüngliche Nachricht- Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Gesendet: Dienstag, 23

Re: Maven/Surefire finds no tests to run

2010-11-15 Thread Stephen Connolly
The default include patterns only include Test*.java *Test.java *TestCase.java irrespective of whether you have annotated with JUnit 4 annotations or not, surefire will only run those tests that are defined by the include rules. Note that this is a good thing as it allows you to run different

Re: Continuous Delivery and Maven

2010-11-13 Thread Stephen Connolly
I think the reusing snapshots idea is a false version of continuous delivery. In CD you don't deploy _every_ commit, because that would mandate that you only ever commit changes that don't break. In CD you are in a position to deploy after any commit, and you do deploy frequently. - Stephen

Re: RE: Continuous Delivery and Maven

2010-11-10 Thread Stephen Connolly
Imho taking a snapshot artefact and renaming as a release artefact and pushing to the remote repo will never be supported by maven, but my ship-maven-plugin (not ready for publishing yet) and some extra mojos added to versions-maven-plugin should enable CD in a way that is in keeping with the

Re: M3 fails to download parent pom

2010-11-10 Thread Stephen Connolly
How have you defined your corp maven repo in your settings.xml I'm wondering if it's a bug in maven 2 pulling releases from the wrong repo and therefore you don't notice that the repo is defined incorrectly in settings.xml On 10 Nov 2010 08:39, mjsell mjse...@gmail.com wrote: Yeah, this is

<    7   8   9   10   11   12   13   14   15   16   >