Have a look at the documentation or consult the source code for the
maven-compiler-plugin to see it in action.

Regards
Jeff


On Sat, Dec 19, 2009 at 10:20 AM, Donszelmann Mark <
[email protected]> wrote:

> Hi
>
> do you have an example ?
>
> Regards
> Mark Donszelmann
>
> On Dec 19, 2009, at 9:36 AM, Stephen Connolly wrote:
>
> > i'd use the invoker plugin
> >
> > 2009/12/18 JavaGeek <[email protected]>
> >
> >>
> >> Hello All,
> >> Does anyone have advice on automating the testing of an archetype?
> >>
> >> I am a community volunteer helping out the JBoss folks with their Weld
> Java
> >> EE 6 archetypes.  I currently have a bash script I use to test it, but
> it
> >> requires *NIX and presently requires manually running a selenium test.
>  I'd
> >> like to automate it so Hudson can catch my mistakes.
> >>
> >> Surely I am not the first guy who built an archetype and wanted to test
> it
> >> from Continuous Integration, has someone already solved this problem?
> >>
> >> I would guess the ideal would be to have a TestNG/JUnit test that does
> the
> >> following:
> >> 1.  Create new project from archetype in memory or a temp directory
> >> somewhere.  It won't be needed once the test has finished running.
> >> 2.  Run maven commands on the new project (mvn test jetty:run) to
> confirm
> >> the unit tests pass.
> >> 3.  Trigger an HttpUnit test to confirm the JSF code renders correctly.
> >>
> >> If there's no pre-canned solution to this problem, how difficult would
> it
> >> be
> >> to have one project run maven from TestNG to trigger the
> archetype:generate
> >> and then a maven build from JUnit or TestNG?
> >>
> >> Thanks in advance,
> >> Steven
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/How-can-I-automate-the-testing-of-my-archetype---Maven-Build-from-TestNG--tp26850764p26850764.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.lastfm.fr/listen/user/jeffmaury/personal

Reply via email to