Re: Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-06 Thread Baptiste Mathus
is the Maven Way™ to resolve these Artifacts? For completeness, I also looked at http://maven.apache.org/guides/introduction/introduction-to-artifact-resolution.htmlbut this didn't seem to have ever been completed. Thanks, Best, Laird -- http://about.me/lairdnelson -- Baptiste Batmat

Re: Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-06 Thread Laird Nelson
On Mon, Jan 6, 2014 at 1:05 AM, Baptiste Mathus bmat...@batmat.net wrote: Does http://svn.codehaus.org/mojo/trunk/mojo/extra-enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractResolveDependencies.java help you? Yes; I see that it uses maven-artifact-resolver. If indeed

Re: Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-06 Thread Laird Nelson
On Mon, Jan 6, 2014 at 5:44 AM, Laird Nelson ljnel...@gmail.com wrote: On Mon, Jan 6, 2014 at 1:05 AM, Baptiste Mathus bmat...@batmat.netwrote: Does http://svn.codehaus.org/mojo/trunk/mojo/extra-enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/AbstractResolveDependencies.java

Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-05 Thread Laird Nelson
Hello; suppose I have a CollectionArtifact in my left hand, all elements of which are not resolved. (As it happens, I got these indirectly from a DependencyGraphBuilder invocation.) What is the Maven Way™ to resolve these Artifacts? I know that these Artifacts are unresolved, because each

Re: Armed with a collection of Artifacts, what is the Maven Way™ to resolve them?

2014-01-05 Thread Laird Nelson
On Sun, Jan 5, 2014 at 3:56 PM, Laird Nelson ljnel...@gmail.com wrote: What is the Maven Way™ to resolve these Artifacts? For completeness, I also looked at http://maven.apache.org/guides/introduction/introduction-to-artifact-resolution.htmlbut this didn't seem to have ever been completed

Re: The Maven way for delivery pipelines

2013-07-08 Thread Aliaksei Lahachou
Hi, also take a look on Arquillian, it can manage containers as well. Regards, htfv (Aliaksei Lahachou) On Fri, Jul 5, 2013 at 10:29 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, now after some trial and error with custom packaging and lifecycles I ask myself whether I

Re: The Maven way for delivery pipelines

2013-07-06 Thread Mirko Friedenhagen
several times... It feels like a bit of a siren's call to me... The most public thing I did down this road is mojo's ship-maven-plugin... Which does things a, IMHO, more maven way *if* I were to imagine a maven way for things that take place beyond the (standard) lifecycle My current thinking

The Maven way for delivery pipelines

2013-07-05 Thread Mirko Friedenhagen
Hello, now after some trial and error with custom packaging and lifecycles I ask myself whether I should proceed or do something completely different. What I want to achieve: - We have loads of web-applications (WARs with a homegrown configuration tooling) - Some are single module projects, some

Re: The Maven way for delivery pipelines

2013-07-05 Thread Russell Gold
Hi Mirko, Have you looked at the Cargo plugin? http://cargo.codehaus.org/Functional+testing - Russ On Jul 5, 2013, at 4:29 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, now after some trial and error with custom packaging and lifecycles I ask myself whether I should

Re: The Maven way for delivery pipelines

2013-07-05 Thread Stephen Connolly
have a hammer and now everything looks like a nail to me? I have been down your road several times... It feels like a bit of a siren's call to me... The most public thing I did down this road is mojo's ship-maven-plugin... Which does things a, IMHO, more maven way *if* I were to imagine a maven

Re: Some musings on Maven profiles and the Maven way

2012-11-30 Thread Ron Wheeler
Very nice! Ron On 30/11/2012 7:12 AM, Stephen Connolly wrote: It's a tad rough, but I'm fed up writing it, and I think it's useful for people anyway: http://developer-blog.cloudbees.com/2012/11/maven-profiles-and-maven-way.html Just some of my random thoughts -Stephen -- Ron Wheeler

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Brian Topping
Laird, any environment with multiple developers and multiple repositories is Exhibit 1 for using a repository manager like Nexus. Once you have that running, one proxies remote repositories from central administration, not rely on users having the latest information or some combination of

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Stephen Connolly
Maven 3 requires that the artifact have originated from a valid repository, so putting it in a profile will mean that it will only build with the profile active. far better to just mandate a mirrorOf* to internal nexus/artifactory/archiva server On 22 October 2012 22:37, Laird Nelson

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Laird Nelson
(-PnameOfTheProfileContainingNonCentralRepositoriesForLazyPeopleWhoDoNotSetUpNexus) It sounds like The Maven Way here is to not even bother with such a hybrid approach but to fall back on documentation in some other artifact that is not the pom.xml (because it's not good to put in information about where

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Brett Porter
On 23/10/2012, at 9:09 AM, Laird Nelson ljnel...@gmail.com wrote: A user of my jpa-maven-plugin (http://github.com/ljnelson/jpa-maven-plugin) was complaining that he didn't know what repos to proxy (EclipseLink in particular staunchly refuses to migrate their stuff to Central; their repo is

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Barrie Treloar
On Tue, Oct 23, 2012 at 8:39 AM, Laird Nelson ljnel...@gmail.com wrote: [del] Or, another way to put it: Nexus/Artifactory are effectively runtime dependencies of Maven (that is, running without them is generally regarded as awful, so a Maven without them is effectively crippled, so anyone who

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Barrie Treloar
On Tue, Oct 23, 2012 at 8:39 AM, Laird Nelson ljnel...@gmail.com wrote: A user of my jpa-maven-plugin (http://github.com/ljnelson/jpa-maven-plugin) was complaining that he didn't know what repos to proxy (EclipseLink in particular staunchly refuses to migrate their stuff to Central; their repo

Re: Seeking Maven Way advice: repos in project profile?

2012-10-22 Thread Ron Wheeler
On 22/10/2012 5:37 PM, Laird Nelson wrote: I know that it is a Bad Thing to add a repository to your pom.xml. Is it regarded by the Great Maven Hivemind :-) to be a Bad Thing if you put a repository in your pom.xml as an (unactivated by default) profile? I'm sick and tired of having to tell

Artifact with external configuration - the Maven way

2012-07-13 Thread Dušan Rychnovský
Hi! I'm using Maven at work to organize my software projects. I will first of all describe you my current build process. - The typical deployment assembly contains at least:

Re: Artifact with external configuration - the Maven way

2012-07-13 Thread Aliaksei Lahachou
Hello, Maven repository may contain anything, you just have to set appropriate classifier and type/packaging. I never deployed zip archives using Maven plugins, but I often upload zips to our company Nexus using web-front. Regards, htfv (Aliaksei Lahachou) On Fri, Jul 13, 2012 at 7:56 PM,

Re: The Maven Way

2012-04-19 Thread Mark H. Wood
Zero configuration? Really? mwood@mhw ~ $ mkdir testmvn mwood@mhw ~ $ cd testmvn mwood@mhw ~/testmvn $ mvn install [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]

Re: The Maven Way

2012-04-19 Thread Eric Kolotyluk
After reading this thread and the embedded references I believe much of this information should be captured and added to http://maven.apache.org - in particular under Learning About Maven the very first topic should be The Maven Way. As well, if you go to http://maven.apache.org/what

Re: The Maven Way

2012-04-19 Thread martin.eisengardt
it. Why aren't there any screenshots in my documentation? I do not think thousands of documentation variants are clever but pick up two or three of them. A small example: - Video tutorial explaining the maven way - Practical tutorial for maven java projects and the maven way - Textual explanation

Re: The Maven Way

2012-04-19 Thread Wolf Geldmacher
of this information should be captured and added to http://maven.apache.org - in particular under Learning About Maven the very first topic should be The Maven Way. As well, if you go to http://maven.apache.org/what-is-maven.html then one of the first things you should see is a link to The Maven Way

Re: The Maven Way

2012-04-19 Thread Mark H. Wood
On Thu, Apr 19, 2012 at 05:49:32PM +0200, martin.eisengardt wrote: [snip] Please do think of the target audience before planning this type of documentation section. And do think of the way they are usually learning things. The maven way won't be a site full of plain explanations

Re: The Maven Way

2012-04-19 Thread Ron Wheeler
and the embedded references I believe much of this information should be captured and added to http://maven.apache.org - in particular under Learning About Maven the very first topic should be The Maven Way. As well, if you go to http://maven.apache.org/what-is-maven.html then one of the first things you

Re: The Maven Way

2012-04-18 Thread Anders Hammar
One thing I would like to add to this discussion is that, in my experience, a lot of Maven users don't understand that Maven is not only about building but also about producing something that can be consumed from a repository. One part of what we often call Maven is the build tool, but a much more

Re: The Maven Way

2012-04-18 Thread Martin Höller
2: Effective Implementations from Brett Porter [1], which basically describes the maven way most of the time. The disadvantage of this book is, that it's quite old and the maven way sometimes changed over time. hth, - martin [1] http://www.packtpub.com/apache-maven-2-effective-implementation/book

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
I hope that my comments are not taken as being critical of the person asking for help. Our team was in their position when we started and had to learn the Maven way. We received a lot of help and got a lot of benefit from the free resources provided by the community. We also were working

RE: The Maven Way

2012-04-18 Thread Thiessen, Todd (Todd)
But yes, documentation about this could be much better. But as someone very correctly pointed out, there is very likely is a reason for the lack of this. It's all open source and contributions are gladly accepted. Even the Sonatype's book are open source (well, Creative Commons Attribution,

Re: The Maven Way

2012-04-18 Thread Mark H. Wood
On Tue, Apr 17, 2012 at 02:40:53PM -0400, Thiessen, Todd (Todd) wrote: Good read. Documentation can be much better, but I suppose it is up to us as community members to make that happen. Maven isn't owned by anyone. The guys at Sonatype have done a good job of posting various blogs. If

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
On 18/04/2012 9:52 AM, Mark H. Wood wrote: On Tue, Apr 17, 2012 at 02:40:53PM -0400, Thiessen, Todd (Todd) wrote: Good read. Documentation can be much better, but I suppose it is up to us as community members to make that happen. Maven isn't owned by anyone. The guys at Sonatype have done a

Re: The Maven Way

2012-04-18 Thread Wayne Fay
The Maven site is not the most friendly place to start as a new Maven user but it is not the only resource. Perhaps the community should try to come to a consensus about the books and recommend one as the best starting point for a new user and one as the best place to find Best Practices.

Re: The Maven Way

2012-04-18 Thread Curtis Rueden
Hi everyone, Thanks to all for the robust discussion! To Ron, I apologize if my comments sounded overly critical of you in particular. I get that you are trying to help guide people in the right direction, and it is certainly good for them to question their assumptions, and to understand the

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
On 18/04/2012 4:03 PM, Curtis Rueden wrote: Hi everyone, Thanks to all for the robust discussion! To Ron, I apologize if my comments sounded overly critical of you in particular. I get that you are trying to help guide people in the right direction, and it is certainly good for them to

Re: The Maven Way

2012-04-18 Thread Eric Kolotyluk
On 2012-04-18 1:03 PM, Curtis Rueden wrote: Hi everyone, Thanks to all for the robust discussion! To Ron, I apologize if my comments sounded overly critical of you in particular. I get that you are trying to help guide people in the right direction, and it is certainly good for them to

Re: The Maven Way

2012-04-18 Thread Barrie Treloar
Part of the reason, I believe, is because those conventions are not carved in stone.  There often isn't a hard and fast convention that says when to make a profile or when to make a module or when to use a classifier to store a second artifact alongside the primary And over time these

Re: The Maven Way

2012-04-18 Thread Barrie Treloar
On Thu, Apr 19, 2012 at 9:02 AM, Barrie Treloar baerr...@gmail.com wrote: Part of the reason, I believe, is because those conventions are not carved in stone.  There often isn't a hard and fast convention that says when to make a profile or when to make a module or when to use a classifier to

Re: The Maven Way

2012-04-18 Thread Ron Wheeler
Eric, I remember when you first started visiting the forum. As you described, you came with some pretty strong views about how Maven should work. I do remember how carefully and well, you sought out advice from the people here. In spite of your strong feelings that you were an experienced

Re: The Maven Way

2012-04-18 Thread Eric Kolotyluk
Thanks - it has been one of the more interesting adventures in my professional life :-) Cheers, Eric On 2012-04-18 4:37 PM, Ron Wheeler wrote: Eric, I remember when you first started visiting the forum. As you described, you came with some pretty strong views about how Maven should work. I

The Maven Way

2012-04-17 Thread Wolf Geldmacher
Hi list, a simple question with (hopefully) a simple answer: Is there some coherent documentation of the Maven way? I'm *not* looking for: * documentation of the Maven syntax * documentation of Maven plugins * Maven reference documentation * Use the Source, Luke! style of advice What I'm

Re: The Maven Way

2012-04-17 Thread Markku Saarela
question with (hopefully) a simple answer: Is there some coherent documentation of the Maven way? I'm *not* looking for: * documentation of the Maven syntax * documentation of Maven plugins * Maven reference documentation * Use the Source, Luke! style of advice What I'm looking

Re: The Maven Way

2012-04-17 Thread Eric Kolotyluk
I also recommend taking the Sonatype training courses - especially if you are a software architect. There is a lot to be said when you can ask question as the instructor is going over the material. However, you are right, if someone were to write a book called the The Maven Way in the style

Re: The Maven Way

2012-04-17 Thread Mark H. Wood
, if someone were to write a book called the The Maven Way in the style you suggest, I would certainly be interested in buying a copy. You are not alone in that. Especially since the most valuable single bit of advice one can give a new Maven user is: if you don't do things Maven's way, Maven

Re: The Maven Way

2012-04-17 Thread Curtis Rueden
. There is a lot to be said when you can ask question as the instructor is going over the material. However, you are right, if someone were to write a book called the The Maven Way in the style you suggest, I would certainly be interested in buying a copy. You are not alone in that. Especially

Re: The Maven Way

2012-04-17 Thread Hilco Wijbenga
On 17 April 2012 09:48, Curtis Rueden ctrue...@wisc.edu wrote: Hi everyone, Especially since the most valuable single bit of advice one can give a new Maven user is:  if you don't do things Maven's way, Maven will fight you and Maven will win. I disagree that it is the most valuable single

RE: The Maven Way

2012-04-17 Thread Chad.Davis
You are not alone in that. Especially since the most valuable single bit of advice one can give a new Maven user is: if you don't do things Maven's way, Maven will fight you and Maven will win. People extol the virtues of convention over configuration, but where is the compact definitive

RE: The Maven Way

2012-04-17 Thread Chad.Davis
Especially since the most valuable single bit of advice one can give a new Maven user is: if you don't do things Maven's way, Maven will fight you and Maven will win. I disagree that it is the most valuable single bit of advice. It is repeated far too frequently, often in cases

RE: The Maven Way

2012-04-17 Thread Thiessen, Todd (Todd)
requirement. -Original Message- From: chad.da...@emc.com [mailto:chad.da...@emc.com] Sent: Tuesday, April 17, 2012 2:32 PM To: users@maven.apache.org Subject: RE: The Maven Way You are not alone in that. Especially since the most valuable single bit of advice one can give a new

RE: The Maven Way

2012-04-17 Thread Chad.Davis
Good read. Thanks. I think it says something that it has not been done yet. While everyone says it would be great to have, clearly no one has felt strongly enough about it (yet) to make it happen. It is more of a very nice to have than a hard and fast requirement. I'm tackling the

Re: The Maven Way

2012-04-17 Thread Ron Wheeler
the The Maven Way in the style you suggest, I would certainly be interested in buying a copy. You are not alone in that. Especially since the most valuable single bit of advice one can give a new Maven user is: if you don't do things Maven's way, Maven will fight you and Maven will win. People extol

RE: The Maven Way

2012-04-17 Thread Thiessen, Todd (Todd)
I'm tackling the topic on my blog in upcoming weeks. The first thing I'm going to talk about is how Maven expects all dependencies to be handled via repositories, and how to make non-standard artifact types work like this, such as custom assemblies, etc. Good stuff sir. I tip my hat to you.

Re: The Maven Way

2012-04-17 Thread Ron Wheeler
On 17/04/2012 2:37 PM, chad.da...@emc.com wrote: Especially since the most valuable single bit of advice one can give a new Maven user is: if you don't do things Maven's way, Maven will fight you and Maven will win. I disagree that it is the most valuable single bit of advice. It is repeated

Re: The Maven Way

2012-04-17 Thread Ron Wheeler
On 17/04/2012 2:47 PM, chad.da...@emc.com wrote: Good read. Thanks. I think it says something that it has not been done yet. While everyone says it would be great to have, clearly no one has felt strongly enough about it (yet) to make it happen. It is more of a very nice to have than a

Re: The Maven Way

2012-04-17 Thread Eric Kolotyluk
the material. However, you are right, if someone were to write a book called the The Maven Way in the style you suggest, I would certainly be interested in buying a copy. You are not alone in that. Especially since the most valuable single bit of advice one can give a new Maven user is: if you

Re: The Maven Way

2012-04-17 Thread Eric Kolotyluk
are a software architect. There is a lot to be said when you can ask question as the instructor is going over the material. However, you are right, if someone were to write a book called the The Maven Way in the style you suggest, I would certainly be interested in buying a copy. You are not alone

Re: The Maven Way

2012-04-17 Thread Eric Kolotyluk
. However, you are right, if someone were to write a book called the The Maven Way in the style you suggest, I would certainly be interested in buying a copy. You are not alone in that. Especially since the most valuable single bit of advice one can give a new Maven user is: if you don't do things

Re: The Maven Way

2012-04-17 Thread Graham Leggett
On 18 Apr 2012, at 1:44 AM, Eric Kolotyluk wrote: Often the wrong foot is simply not knowing how much Maven does for your for free - because it is not obvious - especially when compared to tools like Ant. When the free stuff is not obvious, we naively start trying to solve problems we do

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-07 Thread K J
and match, perhaps have different release cycles for the swf and the jar, multiple modules is certainly better. Kalle On Wed, Dec 2, 2009 at 11:42 PM, Anders Hammar and...@hammar.net wrote: I'd like to stress that Jesse explains the true Maven way. This is how this should be done if you want

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-03 Thread Kalle Korhonen
2, 2009 at 11:42 PM, Anders Hammar and...@hammar.net wrote: I'd like to stress that Jesse explains the true Maven way. This is how this should be done if you want to enjoy simple and correct dependency management through Maven. Using classifiers will make your two (for instance) artifacts have

What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread K J
Does anyone have any examples or tips about how to handle the generation of multiple artifacts based on a shared model? For example, I have a project which needs to produce both Java and ActionScript code based on a shared UML model. I'm having trouble figuring out how to best setup and manage

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread Kalle Korhonen
Since the build artifacts are output of the same source, they should part of the same module. Use classifiers to specify the different artifacts. If you are using custom scripts to produce the output (i.e. not plugins that attach additional artifacts automatically), use buildhelper plugin to

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread Jesse Farinacci
UML model. I'm having trouble figuring out how to best setup and manage these types of projects, so that a change to the source project can easily result in the build of all the various generated outputs.  Thanks in advance for the help. To go the real Maven way, I think that I'd probably put

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread Anders Hammar
I'd like to stress that Jesse explains the true Maven way. This is how this should be done if you want to enjoy simple and correct dependency management through Maven. Using classifiers will make your two (for instance) artifacts have the same dependencies. As I've stated before, classifiers

how to handle config-files and developer-config-files the maven way?

2007-07-19 Thread Jan Torben Heuer
Hi, I have a servlet project with WEB-INF in /src/main/webapps/. The web.xml contains some ${tomcat.servletpath} like variables which are filtered through maven. This variables are stored in files in /src/main/config/ How should I store a configuration which I can use locally within