Now seriously: how can I manage dependencies of own projects with maven

2010-10-15 Thread Leon Rosenberg
Hello, following situation: I have like 20 projects which are libs of different level. They are all built as jars. They are partially dependent on each other (not circularly). For example project A provides very basic utils. Project B is more specialized and depends on A. Project C depends on A,

Re: Now seriously: how can I manage dependencies of own projects with maven

2010-10-15 Thread Stephen Connolly
On 15 October 2010 07:28, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, following situation: I have like 20 projects which are libs of different level. They are all built as jars. They are partially dependent on each other (not circularly). For example project A provides very basic

Re: maven is a swamp

2010-10-15 Thread mremersoncod
On Fri, Oct 15, 2010 3:00 am, Jason van Zyl wrote: A fact to note though is that I've asked over 2k people over the last two years at talks and in any average crowd the people who care to have a different format or DSL is around 3%. And I one of them :-) I always havent been a friend of

Newbie qn: ant-maven build failure: UnknownElement / NullPointerException

2010-10-15 Thread Anand Ganesh
Hi, I'm a newbie to Ant Maven (and much of the LAMP stack), and I'm trying to understand this build failure. Most likely it's a setup-install issue, except I don't know what exactly, and how to fix it. Any pointers on making progress much appreciated. Please include me on replies as I don't

Own Lifecycle

2010-10-15 Thread Victor Calvello
Hi guys, I'm working on my own maven plugin and I want to define my own lifecycle (as default, clean and site). Not customize the default one. Is possible to do so?? I've already defined my lifecycle in lifecycles.xml and added a role-hint in components.xml but doesn't works. I tried to run

Accessing dependency tree from a plugin

2010-10-15 Thread Phillip Hellewell
Hi all, Which of the following is the best way to access the dependency tree from a plugin? 1. Have the plugin launch mvn dependency:tree and parse the stdout? 2. Have the plugin execute org.apache.maven.plugin.dependency.execute() directly and parse the stdout? 3. Create a modified version of

Re: maven is a swamp

2010-10-15 Thread Brian Smith
I really fail at understanding the XML rage. Yeah it's verbose. How's that a problem? We've had tools with auto complete, auto format and syntax highlighting for well over a decade, we also now have fairly robust GUIs too. If you're hand editing a 2000 line xml file in a green screen terminal

Moving cobertura-profile to parent-pom

2010-10-15 Thread Stefan Schulze
Hi, in my current build I have some projects with a common parent-pom. In the parent-pom I defined the cobertura-plugin in the pluginManagement-section to define some common thing: version, some basic configuration, binding to phases. In the most of the child-poms I have an profile (activation

Release plugin and SVN tags

2010-10-15 Thread Phillip Hellewell
Hi all, I assume it is best practice to use a version like x.y.z-SNAPSHOT for what is checked into the SCM, and only remove the -SNAPSHOT on tags. I haven't played with the release plugin yet, but I think I read somewhere that it provides this functionality. My question is, how can it modify a

Re: Release plugin and SVN tags

2010-10-15 Thread Antonio Petrelli
2010/10/15 Phillip Hellewell ssh...@gmail.com: 1. Change version in pom; check it in, tag it, change version back; check it in. This is exactly how release plugin behaves. Best regards. Antonio - To unsubscribe, e-mail:

Re: Release plugin and SVN tags

2010-10-15 Thread Phillip Hellewell
On Fri, Oct 15, 2010 at 3:50 AM, Antonio Petrelli antonio.petre...@gmail.com wrote: 2010/10/15 Phillip Hellewell ssh...@gmail.com: 1. Change version in pom; check it in, tag it, change version back; check it in. This is exactly how release plugin behaves. Thanks!

Re: Release plugin and SVN tags

2010-10-15 Thread Stephen Connolly
On 15 October 2010 10:47, Phillip Hellewell ssh...@gmail.com wrote: Hi all, I assume it is best practice to use a version like x.y.z-SNAPSHOT for what is checked into the SCM, and only remove the -SNAPSHOT on tags. I haven't played with the release plugin yet, but I think I read somewhere

Re: Own Lifecycle

2010-10-15 Thread Jeff MAURY
Have you defined your plugin as an extension in your pom ? Jeff Envoyé de mon VT100 Phone Le 14 oct. 2010 à 19:54, Victor Calvello vcalve...@gmail.com a écrit : Hi guys, I'm working on my own maven plugin and I want to define my own lifecycle (as default, clean and site). Not customize

Maven 3 design, page on http://maven.apache.org

2010-10-15 Thread Alexey Direct
Hi all, Can anyone pick link on http://maven.apache.org with design(diagram) of maven 3. Regards, Alexey.

Re: Release plugin and SVN tags

2010-10-15 Thread Baptiste MATHUS
2010/10/15 Phillip Hellewell ssh...@gmail.com Hi all, I assume it is best practice to use a version like x.y.z-SNAPSHOT for what is checked into the SCM, and only remove the -SNAPSHOT on tags. I haven't played with the release plugin yet, but I think I read somewhere that it provides this

Re: maven is a swamp

2010-10-15 Thread Jason van Zyl
On Oct 15, 2010, at 3:56 AM, mremerson...@aim.com wrote: On Fri, Oct 15, 2010 3:00 am, Jason van Zyl wrote: A fact to note though is that I've asked over 2k people over the last two years at talks and in any average crowd the people who care to have a different format or DSL is around 3%.

Re: Release plugin and SVN tags

2010-10-15 Thread Phillip Hellewell
On Fri, Oct 15, 2010 at 5:21 AM, Baptiste MATHUS m...@batmat.net wrote: If you mean creating a new patched version based on a tag, sure. The classical UC is in fact to create branch based on this tag renaming the version to some new -SNAPSHOT version (not the one of the tag). This is how it

Re: Now seriously: how can I manage dependencies of own projects with maven

2010-10-15 Thread Leon Rosenberg
On Fri, Oct 15, 2010 at 10:31 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 15 October 2010 07:28, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, following situation: I have like 20 projects which are libs of different level. They are all built as jars. They are

Re: maven is a swamp

2010-10-15 Thread Arnaud Héritier
But the payoff is you don't need code completion! You just put in a )/}/] or so, and your code is completed! Any yes, any competent text editor can check for braces mismatches etc. I recognize the concern, I just don't see it as valid. I've been programming in Python for twenty years

Re: Release plugin and SVN tags

2010-10-15 Thread Phillip Hellewell
On Fri, Oct 15, 2010 at 3:50 AM, Antonio Petrelli antonio.petre...@gmail.com wrote: 2010/10/15 Phillip Hellewell ssh...@gmail.com: 1. Change version in pom; check it in, tag it, change version back; check it in. This is exactly how release plugin behaves. So I just read over release:prepare

Re: maven is a swamp

2010-10-15 Thread mremersoncod
oh sorry for this misunderstanding. I just quoted your (Jason) statement that just a few people like to have a dsl instead of xml and that I'm one of them ... The rest is basically to Ken, as I dont understand at all why he is complaining on this list or for what purpose sorry

Re: Release plugin and SVN tags

2010-10-15 Thread Baptiste MATHUS
It should be easy to do. We currently launch maven release from the command line through hudson with a unique command. Read http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html mainly it's about developmentVersion and releaseVersion. See also

Re: Maven 3.0 somertimes gives empty pom files in local repository

2010-10-15 Thread Andreas Gies
Hello again, I have tested the same builds on MacOS X with a Java 6 implementation and am seeing the same results. This seems to happen whenever a build fails (i.e. due to a compilation error or failed test). Is there someway to determine which component (plugin) causes that effect ? - Is

Re: Accessing dependency tree from a plugin

2010-10-15 Thread Justin Edelson
#3 On 10/15/10 5:28 AM, Phillip Hellewell wrote: Hi all, Which of the following is the best way to access the dependency tree from a plugin? 1. Have the plugin launch mvn dependency:tree and parse the stdout? 2. Have the plugin execute org.apache.maven.plugin.dependency.execute()

RE: maven is a swamp

2010-10-15 Thread Yanko, Curtis
+1 Curt Yanko | Continuous Integration Services | UnitedHealth Group IT Making IT Happen, one build at a time -Original Message- From: Brian Smith [mailto:bmjsm...@gmail.com] Sent: Friday, October 15, 2010 5:39 AM To: Maven Users List Subject: Re:

Re: Now seriously: how can I manage dependencies of own projects with maven

2010-10-15 Thread Stephen Connolly
On 15 October 2010 12:57, Leon Rosenberg rosenberg.l...@gmail.com wrote: On Fri, Oct 15, 2010 at 10:31 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 15 October 2010 07:28, Leon Rosenberg rosenberg.l...@gmail.com wrote: Hello, following situation: I have like 20 projects

Re: maven is a swamp

2010-10-15 Thread Ron Wheeler
On 15/10/2010 5:38 AM, Brian Smith wrote: I really fail at understanding the XML rage. Yeah it's verbose. How's that a problem? We've had tools with auto complete, auto format and syntax highlighting for well over a decade, we also now have fairly robust GUIs too. If you're hand editing a

Re: [ANN] Maven Assembly Plugin 2.2 Released

2010-10-15 Thread Jesse Farinacci
Greetings, On Mon, Oct 11, 2010 at 12:11 PM, John Casey jdca...@apache.org wrote: http://maven.apache.org/plugins/maven-assembly-plugin/ The site still shows version 2.2-beta-5, not the updated 2.2 documentation. -Jesse -- There are 10 types of people in this world, those that can read

dependency evaluation order

2010-10-15 Thread thisguy
Hi, I have two projects, A and B. B has a dependency on A. A's output (jar) is in my repository. Now say I want to change A's java code and then run B to see my changes. B will look in the repository for A's jar right? I don't want it to do that during development. I want B to use the local

Re: maven is a swamp

2010-10-15 Thread Graham Leggett
On 14 Oct 2010, at 7:00 PM, Leon Rosenberg wrote: This isn't quite true since ant allows you to build 'your own maven' in few hours. The effort to learn maven is much higher, at least I had to spend a lot more time since now. On the other side the effort to learn ant is moderate. But maybe I'm

Re: Maven 3.0 somertimes gives empty pom files in local repository

2010-10-15 Thread Andreas Gies
Hi again, done some more experiments; this happens also in Maven 3.0-beta-3 on Mac OS. Best regards Andreas On Oct 15, 2010, at 2:22 PM, Andreas Gies wrote: Hello again, I have tested the same builds on MacOS X with a Java 6 implementation and am seeing the same results. This seems to

Re: dependency evaluation order

2010-10-15 Thread Wendy Smoak
On Fri, Oct 15, 2010 at 10:12 AM, thisguy bobsmith30...@yahoo.com wrote: Hi, I have two projects, A and B.  B has a dependency on A.  A's output (jar) is in my repository. Now say I want to change A's java code and then run B to see my changes.  B will look in the repository for A's jar

Re: dependency evaluation order

2010-10-15 Thread Samuel Rash
if A has a pom file, mvn install will install it in your ~/.m2/repository (which maven searches before using the remote repository) if it's not 'mavenized', you can use mvn install:install-file http://maven.apache.org/plugins/maven-install-plugin/usage.html Just make sure your dependency spec

Re: dependency evaluation order

2010-10-15 Thread Antonio Petrelli
2010/10/15 Wendy Smoak wsm...@gmail.com: On Fri, Oct 15, 2010 at 10:12 AM, thisguy bobsmith30...@yahoo.com wrote: Hi, I have two projects, A and B.  B has a dependency on A.  A's output (jar) is in my repository. Now say I want to change A's java code and then run B to see my changes.  B

Re: dependency evaluation order

2010-10-15 Thread Ron Wheeler
On 15/10/2010 10:35 AM, Antonio Petrelli wrote: 2010/10/15 Wendy Smoakwsm...@gmail.com: On Fri, Oct 15, 2010 at 10:12 AM, thisguybobsmith30...@yahoo.com wrote: Hi, I have two projects, A and B. B has a dependency on A. A's output (jar) is in my repository. Now say I want to change A's

Re: Maven 3.0 somertimes gives empty pom files in local repository

2010-10-15 Thread Andreas Gies
Further investigation seems to indicate that this was caused by using the wrong version of the maven invoker plugin (1.3 rather than 1.5). Best regards Andreas On Oct 15, 2010, at 4:23 PM, Andreas Gies wrote: Hi again, done some more experiments; this happens also in Maven 3.0-beta-3 on

Eclipse show deleted Artifacts from Archiva

2010-10-15 Thread timb89
Hello everyone! We use the m2Eclipse Plug-in and Apache Archiva as a Repository-Management-Tool. We have one central repository, defined in the settings.xml of Maven (As a mirror). Now the problem: If I delete one artefact from Archiva, it is still shown in the Maven-Repository-View from the

Re: Release plugin and SVN tags

2010-10-15 Thread Phillip Hellewell
On Fri, Oct 15, 2010 at 6:06 AM, Baptiste MATHUS m...@batmat.net wrote: It should be easy to do. We currently launch maven release from the command line through hudson with a unique command. Read http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html (snip) Thanks!

Re: Assemblies and filtering

2010-10-15 Thread Jon Paynter
Anybody have some ideas on this? On Thu, Oct 14, 2010 at 2:31 PM, Jon Paynter kittl...@gmail.com wrote: Im trying to construct an assembly descriptor to replicate the output of our ant tasks. Ive run into a few issues with filtering 1) is there a way to do a mass rename on filter? the

Maven release:branch commiting thinks on tags

2010-10-15 Thread Frederic Camblor
Hi maven users ! I learned something some days ago, about maven-release-plugin about its branch goal. Currently, I execute following command line : mvn --batch-mode org.apache.maven.plugins:maven-release-plugin:2.0:branch -DautoVersionSubmodules=true -DtagBase=tags/ -Dtag=1.0.0

Re: maven is a swamp

2010-10-15 Thread Kathryn Huxtable
First off, I think Maven is great. I'm in the middle of stuff, so I'm not moving to Maven 3 until I get to a good stopping place. (Probably about six months or so.) On Oct 15, 2010, at 9:20 AM, Graham Leggett wrote: Guy who wrote ant build script is spontaneously thrown out of the third floor

Taglibs

2010-10-15 Thread Yanko, Curtis
Can anyone recommend a taglib plugin to generate TLD's? Curt Yanko | Continuous Integration Services | UnitedHealth Group IT Making IT Happen, one build at a time This e-mail, including attachments, may include confidential and/or proprietary information, and

Re: Taglibs

2010-10-15 Thread Antonio Petrelli
2010/10/15 Yanko, Curtis curt_ya...@uhc.com: Can anyone recommend a taglib plugin to generate TLD's? shameless-plug I am currently working in Tiles on a Maven plugin that generates JSP tags (TLD and SimpleTag classes), Velocity directives and Freemarker directive models starting from classes

Re: maven is a swamp

2010-10-15 Thread Kenneth McDonald
Well, just to make it concrete, I am not a troll. I've been doing dev for 20+ years, have lots of experience with large projects, etc. etc. If I have to drop names, I was associated with one of the two main sites of the Human Genome Project. I still don't get the complacency at the XML swamp.

RE: maven is a swamp

2010-10-15 Thread Thiessen, Todd (Todd)
Hehe. Wow. That guy who gathered that data is the Maven founder. It IS his job to get a pulse of how Maven users feel about it. For a guy that claims to have so much experience, you sure don't do your homework. -Original Message- From: Kenneth McDonald

Re: maven is a swamp

2010-10-15 Thread Brian Topping
On Oct 15, 2010, at 4:50 PM, Kenneth McDonald wrote: I still don't get the complacency at the XML swamp. If I have to speak Italian to get the best cup of coffee in Little Italy, so what if it's a chore? A focus on language instead of semantics leaves one lost to the opportunity at hand.

Maven 3.0 and checkstyle plugin

2010-10-15 Thread Thiessen, Todd (Todd)
Is anyone else having trouble with the maven-checkstyle-plugin with maven 3.0? Specifically with using a custom rule set. The following snippet would find our custom rules in 2.2.1 but does not in 3.0. plugin groupIdorg.apache.maven.plugins/groupId

Re: maven is a swamp

2010-10-15 Thread Brian Smith
On 15 October 2010 21:50, Kenneth McDonald kenneth.m.mcdon...@sbcglobal.net wrote: Well, just to make it concrete, I am not a troll. I've been doing dev for 20+ years, have lots of experience with large projects, etc. etc. If I have to drop names, I was associated with one of the two main

Maven 3 and site generation

2010-10-15 Thread Jörg Hohwiller
Hi there, I went to the official maven 3.0 release and build works fine. Log-messages and performance have improved. However site generation is exorbitant slow and produces wired exceptions such as FileNotFoundException: .../target/classes (permission denied) ... at

Re: maven is a swamp

2010-10-15 Thread Ron Wheeler
Who cares what language Maven uses? There are IDEs with editors that eliminate the need to look at XML. If your favorite IDE makes you edit POM files by hand, take it up the IDE maker or get an IDE that makes your life better. Stop complaining about a how the creators of Maven decided to