Writing my own mojo - how do I specify a default goal?

2012-07-21 Thread Thomas Sundberg
Hi! I am trying to write my own Maven plugin. I want to be able to specify it in a build without specifying any additional parameters. I don't seem to find any example after some googling. In a perfect world, I would like to write my pom like this: build plugins plugin

Re: Writing my own mojo - how do I specify a default goal?

2012-07-21 Thread Tamás Cservenák
You cannot have that, you need to bind the goal at least (and goal usually have a preferred phase it will bind to). Plugin that does not have execution defined but it still executes (as you say you'd want) is usually bound to lifecycle of the packaging in it's lifecycle mapping. So, unless you

Re: Writing my own mojo - how do I specify a default goal?

2012-07-21 Thread Thomas Sundberg
Hi! On 21 July 2012 10:45, Tamás Cservenák ta...@cservenak.net wrote: You cannot have that, you need to bind the goal at least (and goal usually have a preferred phase it will bind to). Plugin that does not have execution defined but it still executes (as you say you'd want) is usually bound

Re: Writing my own mojo - how do I specify a default goal?

2012-07-21 Thread Robert Scholte
I'd start with http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-intro.html And have a good look at http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html#writing-plugins-sect-override-default-lifecycle -Robert Op Sat, 21 Jul

Re: [MVN 3.0.4] Can't download project dependencies

2012-07-21 Thread Cysioland
That's strange, but when I booted up in safe mode, deleted ~6GB of temp files, defragmentated a little bit, it works! It works like a charm!

Re: Writing my own mojo - how do I specify a default goal?

2012-07-21 Thread Wayne Fay
Plugin that does not have execution defined but it still executes (as you say you'd want) is usually bound to lifecycle of the packaging in it's lifecycle mapping. So, unless you write your own packaging (I doubt this is what you need), you are left to declare plugin _with_ executions. But

Re: [MVN 3.0.4] Can't download project dependencies

2012-07-21 Thread Wayne Fay
That's strange, but when I booted up in safe mode, deleted ~6GB of temp files, defragmentated a little bit, it works! It works like a charm! As anticipated, Windows is actively preventing you from getting your work done. Consider a different OS or working in a Linux VM - and yes I realize this

Re: [MVN 3.0.4] Can't download project dependencies

2012-07-21 Thread Cysioland
I worked with Linux, it's pretty good, but I prefer Windows (at least until Steam gets ported to Linux).

Re: Writing my own mojo - how do I specify a default goal?

2012-07-21 Thread Thomas Sundberg
On 21 July 2012 20:51, Wayne Fay wayne...@gmail.com wrote: Plugin that does not have execution defined but it still executes (as you say you'd want) is usually bound to lifecycle of the packaging in it's lifecycle mapping. So, unless you write your own packaging (I doubt this is what you

Re: [MVN 3.0.4] Can't download project dependencies

2012-07-21 Thread James Carman
You might want to try the VM-based approach. I use VirtualBox and Ubuntu and it works out very well. I can still play Battlefield 3 on my windows host and when I want to do some work, I fire up the VM! :) On Sat, Jul 21, 2012 at 2:58 PM, Cysioland cysiol...@gmail.com wrote: I worked with

maven-jar-plugin refuses to include META-INF/persistence.xml !

2012-07-21 Thread Tommy Svensson
Hello maven fans, I've become slightly balder today. I've been tearing my hair over why JPA keeps insisting it cannot find my persistence unit. Everything in my persistence.xml file is correct I've checked it over an over. I've just discovered that the problem is not in the JPA provider

Re: maven-jar-plugin refuses to include META-INF/persistence.xml !

2012-07-21 Thread Wayne Fay
Maven just refuses to include META-INF/persistence.xml in the jar no matter what I do! It resides in src/main/resources/META-INF. After building it is also in target/classes/META-INF along with MANIFEST.MF, but it is missing in the jar file. Try a very simple test... Run mvn

Re: [MVN 3.0.4] Can't download project dependencies

2012-07-21 Thread Wayne Fay
I worked with Linux, it's pretty good, but I prefer Windows (at least until Steam gets ported to Linux). Good news for those of us who game on our PCs when not building apps with Maven... ;-)