Re: Creating a custom lifecycle

2010-12-01 Thread Gajo Csaba
Yes, I've created a new packaging. In my test project pom.xml, I now have: apple com.test.phases AppleLifecycle true The AppleLifecycle project defines the "apple" lifecycle. However, contrary to how custom lifecycles are usually defined, my components.xml looks like this: org.apa

Re: Creating a custom lifecycle

2010-12-01 Thread Tamás Cservenák
Not sure what you aiming for, but you could introduce new packaging, and that new packaging might introduce completely new lifecycle also. If you build some "custom" packaging, this would be the best, since it gives you freedom to do all what you need in your custom build, but also freedom to map

Re: Creating a custom lifecycle

2010-12-01 Thread Antonio Petrelli
2010/12/1 Gajo Csaba : > I didn't try it yet, but I'll try it now. > > I think this will not solve the problem. If you write mvn deploy, you will > probably have the compile, test etc. phases executed. What I need is, to not > run any of these phases, but immediately print out "this is not supporte

Re: Creating a custom lifecycle

2010-12-01 Thread Gajo Csaba
I didn't try it yet, but I'll try it now. I think this will not solve the problem. If you write mvn deploy, you will probably have the compile, test etc. phases executed. What I need is, to not run any of these phases, but immediately print out "this is not supported" and end the execution. Th

Re: Creating a custom lifecycle

2010-12-01 Thread Simone Tripodi
take a look at the maven deploy plugin configuration[1] and set true hope this helps Simo [1] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Wed, Dec 1, 2010 at 12:18 PM, Gajo Csaba wrote: > I want to del

Re: Creating a custom lifecycle

2010-12-01 Thread Gajo Csaba
I want to delete the deploy goal. Make it exist as much as "mvn apple" does On 1.12.2010 12:14, Antonio Petrelli wrote: It's best to tell us what you want to accomplish. Fighting Maven is always a bad thing. Antonio 2010/12/1 Gajo Csaba: Hello, I'm trying to create a custom lifecycle. In thi

Re: Creating a custom lifecycle

2010-12-01 Thread Antonio Petrelli
It's best to tell us what you want to accomplish. Fighting Maven is always a bad thing. Antonio 2010/12/1 Gajo Csaba : > Hello, > > I'm trying to create a custom lifecycle. In this case, I don't mean > providing custom classes for one of the defined phases, but redefining the > phases themselves.

Creating a custom lifecycle

2010-12-01 Thread Gajo Csaba
Hello, I'm trying to create a custom lifecycle. In this case, I don't mean providing custom classes for one of the defined phases, but redefining the phases themselves. For example, the DefaultLifecycleMapping seems to support clean, compile, test etc... How can I, for example, make it so th

Re: Creating a Custom Lifecycle

2010-07-09 Thread asookazian
nabble.com/Creating-a-Custom-Lifecycle-tp1044781p1045597.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mai

Re: Creating a Custom Lifecycle

2010-07-09 Thread asookazian
4.2.2.GA (nor does the packaged EAR). There are several NPEs in the server.log and I'm not sure why... -- View this message in context: http://maven.40175.n5.nabble.com/Creating-a-Custom-Lifecycle-tp1044781p1045577.html Sent from

Re: Creating a Custom Lifecycle

2010-07-08 Thread Martin Höller
Am Freitag, 9. Juli 2010 08:04:20 schrieb Martin Höller: > Am Freitag, 9. Juli 2010 00:38:37 schrieb asookazian: > > Thanks! Now I just need to write a simple Mojo/plugin that will copy the > > exploded EAR directory to the server/default/deploy directory in JBoss. > > cool. > > Or you use the mav

Re: Creating a Custom Lifecycle

2010-07-08 Thread Martin Höller
Am Freitag, 9. Juli 2010 00:38:37 schrieb asookazian: > Thanks! Now I just need to write a simple Mojo/plugin that will copy the > exploded EAR directory to the server/default/deploy directory in JBoss. > cool. Or you use the maven-antrun-plugin and save yourself some work :) hth, - martin sig

Re: Creating a Custom Lifecycle

2010-07-08 Thread asookazian
exploded EAR directory to the server/default/deploy directory in JBoss. cool. -- View this message in context: http://maven.40175.n5.nabble.com/Creating-a-Custom-Lifecycle-tp1044781p1045261.html Sent from the Maven - Users mailing list archive a

Re: Creating a Custom Lifecycle

2010-07-08 Thread Stephen Connolly
have you had a look at the unpackTypes configuration option of m-ear-p? On 8 July 2010 16:28, asookazian wrote: > > > Martin Höller wrote: > > > > Am Mittwoch, 7. Juli 2010 18:46:34 schrieb asookazian: > >> There is some limited coverage of creating a cust

Re: Creating a Custom Lifecycle

2010-07-08 Thread Justin Edelson
On 7/8/10 11:28 AM, asookazian wrote: > I just realized something very basic after reading first chapter of Maven 2: > Effective Implementation. "The web application archive is produced in the > target directory, which is Maven's default working directory. There you > will find both the target/si

Re: Creating a Custom Lifecycle

2010-07-08 Thread asookazian
Martin Höller wrote: > > Am Mittwoch, 7. Juli 2010 18:46:34 schrieb asookazian: >> There is some limited coverage of creating a custom lifecycle here: >> http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-cu >>stom-lifecycle.html >> >

Re: Creating a Custom Lifecycle

2010-07-08 Thread Martin Höller
Am Mittwoch, 7. Juli 2010 18:46:34 schrieb asookazian: > There is some limited coverage of creating a custom lifecycle here: > http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-cu >stom-lifecycle.html > > but it also covers forking and parallel lifecycles, I

Re: Creating a Custom Lifecycle

2010-07-07 Thread asookazian
e.maven.plugins:maven-war-plugin:exploded -- View this message in context: http://maven.40175.n5.nabble.com/Creating-a-Custom-Lifecycle-tp1044781p1044822.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: Creating a Custom Lifecycle

2010-07-07 Thread asookazian
phases in the lifecycle are missing in the components.xml descriptor. I tried to add validate which is not valid: org.apache.maven.plugins:maven-validate-plugin:validate b/c that plugin does not exist. How do you know which plugin a lifecycle phase is associated with? mvn help:d

Re: Creating a Custom Lifecycle

2010-07-07 Thread asookazian
ell. Any ideas how to fix this so the override actually works? thx. -- View this message in context: http://maven.40175.n5.nabble.com/Creating-a-Custom-Lifecycle-tp1044781p1044808.html Sent from the Maven - Users mailing list archive at Nabble.com. -