Re: how to run compile and packaging before test?

2013-12-13 Thread Malte Skoruppa
Just scanning http://maven.apache.org and its not obvious by the content on the page where the books are. Its over in the menu on the left under Documentation Books and Resources I wonder if we should add a section under Learning about Maven. When you might have gone looking, where would you

Re: how to run compile and packaging before test?

2013-12-13 Thread Barrie Treloar
On 13 December 2013 19:48, Malte Skoruppa skoru...@cs.uni-saarland.de wrote: Just scanning http://maven.apache.org and its not obvious by the content on the page where the books are. Its over in the menu on the left under Documentation Books and Resources I wonder if we should add a section

Re: how to run compile and packaging before test?

2013-12-13 Thread Malte Skoruppa
Meanwhile, one doesn't necessarily have to buy a book to learn about the Maven lifecycle. This is also explained on the website: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Yes, but it doesn't go into enough details. The *free* books do. This actually

Re: how to run compile and packaging before test?

2013-12-13 Thread Malte Skoruppa
Oh, and I forgot to mention that Maven: The Definitive Guide book which apparently is also free, although you can also buy a printed version. However, the http link to the book on sonatype.com is dead. It should be updated. It would also be helpful for users who scan that page if the free

Re: how to run compile and packaging before test?

2013-12-13 Thread Anders Hammar
However, the http link to the book on sonatype.com is dead. It should be updated. Hm, ok. I asked Sonatype some time ago to fix that. I'll remind them. /Anders It would also be helpful for users who scan that page if the free books were somehow better visually highlighted. Like a big

Multi-modules projects

2013-12-13 Thread Michael Priess
Hi, our projects have the following structure: - parent pom -- pom.xml cpp--pom.xml java--pom.xml To build a project like this we must invoke different build steps. For the CPP build we like to invoke gcc for the java build we like to invoke javac and many other steps. In our enviroment

Re: Multi-modules projects

2013-12-13 Thread Stephen Connolly
packaging is your friend The C++ code should be using a different packaging type, that way it can bind the plugins that your C++ packaging needs to the corresponding lifecycle phases and then... mvn compile will do just that, irrespective of whether you are in the C++ or the Java module, and

AW: Multi-modules projects

2013-12-13 Thread Christofer Dutz
I have similar Projects consisting of Java, Flex and .Net artifacts. I usually configure the plugins in the root of the maven Project and use self-activating maven profiles. Flex is active if a Directory src/main/flex exists, Npanday is used if i have src/main/csharp and so on. profile

Re: how to run compile and packaging before test?

2013-12-13 Thread Ron Wheeler
Malte, Great points. File a few JIRA issues describing the problems that you are finding. That way they will get on the list of things to do. I think that you might find some of the books are free in their electronic formats but are not free if you want paper. Ron On 13/12/2013 5:34 AM,

Re: Multi-modules projects

2013-12-13 Thread Michael Priess
@Stephan Connolly Thanks for the hint. But can I bind a profile to a self defined package or could you provide a example project :) 2013/12/13 Christofer Dutz christofer.d...@c-ware.de I have similar Projects consisting of Java, Flex and .Net artifacts. I usually configure the plugins in the

Question: Maven Pathes includes and others

2013-12-13 Thread Hoffmann Martin (UniCredit Business Integrated Solutions)
Dear All, I'm trying to get the Junit tests for an multi module Project running. All test run fine, expect one test. I don't use the standard maven hierarchy, because the project is very old and yet we start to mavenize it. First of all a snippet of my Child Pom: build

Re: Question: Maven Pathes includes and others

2013-12-13 Thread Adrien Rivard
Hi, I would try systemPropertyVariables and not environmentVariables in the maven-surefire-plugin like systemPropertyVariables java.awt.headlesstrue/java.awt.headless /systemPropertyVariables On Fri, Dec 13, 2013 at 3:37 PM, Hoffmann Martin (UniCredit Business Integrated Solutions)

maven deploy plugin fails with artifact-not-found

2013-12-13 Thread Sankaran, Nambi
I’m trying to deploy a snapshot version of the artifact for the first time. Maven deploy fails with error “could not find artifact in the remote repository” Obviously the artifact was never deployed in the remote repository, so it is not available in the remote repository. Tried with various

Re: maven deploy plugin fails with artifact-not-found

2013-12-13 Thread Thorsten Heit
Hi, I’m trying to deploy a snapshot version of the artifact for the first time. Maven deploy fails with error “could not find artifact in the remote repository” Obviously the artifact was never deployed in the remote repository, so it is not available in the remote repository. Tried

Re: maven deploy plugin fails with artifact-not-found

2013-12-13 Thread Sankaran, Nambi
Yes, did try ³mvm deploy². But it fails in an empty repo. This is a parent pom file ( packaging = pom ). This pom contains dependencyManagement section and distributionManagement section that¹s all. On 12/13/13, 10:07 AM, Thorsten Heit thorsten.h...@vkb.de wrote: Hi, I¹m trying to deploy a

Re: Painless way to update a frameworks group id?

2013-12-13 Thread Mirko Friedenhagen
Just a guess: * Deploy a new relocation pom at the old coordinates with a bigger version. * Include this new relocation version. Regards Mirko -- Sent from my mobile On Dec 12, 2013 1:26 PM, Anders Hammar and...@hammar.net wrote: Think some sort of artifact-transformer mechanism in Maven

Re: how to run compile and packaging before test?

2013-12-13 Thread Manfred Moser
The link to the free html and pdf books is now http://books.sonatype.com These books are cc licensed and we do take pull requests of enhancements. The source is at https://github.com/sonatype/maven-reference-en https://github.com/sonatype/maven-example-en I have created a patch for the Maven

AW: Painless way to update a frameworks group id?

2013-12-13 Thread Christofer Dutz
Good Idea ... Unfortunately as we are not allowed to publish the Adobe artifacts (Flash Player / Air libs) we decided not to publish the Flex artifacts at all. Then a redirect seems rather problematic. Currently each user has to locally deploy the Flex SDK using a special tool in order to be

downloading artifacts from maven repo

2013-12-13 Thread Alejandro . Endo
I am trying to create a maven project that needs to package a bunch of maven artifacts to finally invoke jwrapper using the exec-maven-plugin. Because this project is mostly an integration task (jars are already compiled and deploy in a maven repo) i am wondering what are the tools available

Re: downloading artifacts from maven repo

2013-12-13 Thread Holger Hoffstätte
On Fri, 13 Dec 2013 16:35:04 -0500, Alejandro.Endo wrote: I am trying to create a maven project that needs to package a bunch of maven artifacts to finally invoke jwrapper using the exec-maven-plugin. [..] I was planning on writing such a library (which later could be easily made into a maven

Re: AW: Painless way to update a frameworks group id?

2013-12-13 Thread Mirko Friedenhagen
Christofer, this depends on your definition of we :-). In a company context with an internal repository manager you might deploy a vendor release into your patched thirdparty repository. Or tell your users to manually install the patched version. I did similar stuff for this strange