Re: Where can find a working plugin test example

2022-06-28 Thread Florent Biville
Hello,

I recently published a simple Maven example with working tests and a modern
site skin: https://github.com/learning-maven/simple-plugin.

It uses the awesome integration test framework of Karl Heinz Marbaise. It
requires a few dependencies and plugins but the usage is quite
straightforward.

Hope it helps!
Florent



On Tue, Jun 28, 2022, 07:03 Thomas Broyer  wrote:

> TL;DR: it doesn't use the maven-plugin-testing-harness but
> maven-invoker-plugin, and that's what I've been using as well.
>
> Le mar. 28 juin 2022 à 07:59, Martin Höller  a écrit :
>
> > Hi! Stephan!
> >
> > Some years ago I had a similar problem while developing
> > vdldoc-maven-plugin [1]. I found all the necessary information, but it
> > was a rather hard search.
> >
> > Have a look at this plugin's source-code at github [2]. It is a very
> > simple plugin which has unit tests, integration-tests, uses checkstyle,
> pmd
> > and findbugs (which should now be replaced by spotbugs). I'd say it could
> > be good starting point for you.
> >
> > hth,
> > - martin
> >
> > [1] http://matinh.github.io/vdldoc-maven-plugin/
> > [2] https://github.com/matinh/vdldoc-maven-plugin
> >
> >
> > Am 28. Jun. 2022 schrieb Stephan Wissel:
> >
> > > Trying to write a plugin following TDD practices.
> > > Tried to follow:
> > >
> >
> https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html
> > >
> > > which already fails on maven archetype:create (generate works, but
> > doesn't
> > > create a test case).
> > >
> > > last published version of
> > > org.apache.maven.plugin-testing/maven-plugin-testing-harness
> > > was 2014:
> > >
> >
> https://search.maven.org/artifact/org.apache.maven.plugin-testing/maven-plugin-testing-harness/3.3.0/jar
> > >
> > > However there's a 2021
> > > com.github.codeteapot.maven.plugin-testing:maven-plugin-testing-harness
> > >
> > > Where can I find a working example of a plugin-test with contemporary
> > > dependencies?
> > >
> > > Create a nice day!
> > > Stephan H. Wissel
> > >
> > > Phone: +65 96673269
> > > Blog  Twitter <
> > http://twitter.com/notessensei>
> > > LinkedIn  Xing
> > > 
> >
>


Re: Where can find a working plugin test example

2022-06-27 Thread Thomas Broyer
TL;DR: it doesn't use the maven-plugin-testing-harness but
maven-invoker-plugin, and that's what I've been using as well.

Le mar. 28 juin 2022 à 07:59, Martin Höller  a écrit :

> Hi! Stephan!
>
> Some years ago I had a similar problem while developing
> vdldoc-maven-plugin [1]. I found all the necessary information, but it
> was a rather hard search.
>
> Have a look at this plugin's source-code at github [2]. It is a very
> simple plugin which has unit tests, integration-tests, uses checkstyle, pmd
> and findbugs (which should now be replaced by spotbugs). I'd say it could
> be good starting point for you.
>
> hth,
> - martin
>
> [1] http://matinh.github.io/vdldoc-maven-plugin/
> [2] https://github.com/matinh/vdldoc-maven-plugin
>
>
> Am 28. Jun. 2022 schrieb Stephan Wissel:
>
> > Trying to write a plugin following TDD practices.
> > Tried to follow:
> >
> https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html
> >
> > which already fails on maven archetype:create (generate works, but
> doesn't
> > create a test case).
> >
> > last published version of
> > org.apache.maven.plugin-testing/maven-plugin-testing-harness
> > was 2014:
> >
> https://search.maven.org/artifact/org.apache.maven.plugin-testing/maven-plugin-testing-harness/3.3.0/jar
> >
> > However there's a 2021
> > com.github.codeteapot.maven.plugin-testing:maven-plugin-testing-harness
> >
> > Where can I find a working example of a plugin-test with contemporary
> > dependencies?
> >
> > Create a nice day!
> > Stephan H. Wissel
> >
> > Phone: +65 96673269
> > Blog  Twitter <
> http://twitter.com/notessensei>
> > LinkedIn  Xing
> > 
>


Re: Where can find a working plugin test example

2022-06-27 Thread Martin Höller
Hi! Stephan!

Some years ago I had a similar problem while developing
vdldoc-maven-plugin [1]. I found all the necessary information, but it
was a rather hard search.

Have a look at this plugin's source-code at github [2]. It is a very
simple plugin which has unit tests, integration-tests, uses checkstyle, pmd
and findbugs (which should now be replaced by spotbugs). I'd say it could
be good starting point for you.

hth,
- martin

[1] http://matinh.github.io/vdldoc-maven-plugin/
[2] https://github.com/matinh/vdldoc-maven-plugin


Am 28. Jun. 2022 schrieb Stephan Wissel:

> Trying to write a plugin following TDD practices.
> Tried to follow:
> https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html
> 
> which already fails on maven archetype:create (generate works, but doesn't
> create a test case).
> 
> last published version of
> org.apache.maven.plugin-testing/maven-plugin-testing-harness
> was 2014:
> https://search.maven.org/artifact/org.apache.maven.plugin-testing/maven-plugin-testing-harness/3.3.0/jar
> 
> However there's a 2021
> com.github.codeteapot.maven.plugin-testing:maven-plugin-testing-harness
> 
> Where can I find a working example of a plugin-test with contemporary
> dependencies?
> 
> Create a nice day!
> Stephan H. Wissel
> 
> Phone: +65 96673269
> Blog  Twitter 
> LinkedIn  Xing
> 


pgprLFmqq8GAN.pgp
Description: Digitale Signatur von OpenPGP


Where can find a working plugin test example

2022-06-27 Thread Stephan Wissel
Trying to write a plugin following TDD practices.
Tried to follow:
https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html

which already fails on maven archetype:create (generate works, but doesn't
create a test case).

last published version of
org.apache.maven.plugin-testing/maven-plugin-testing-harness
was 2014:
https://search.maven.org/artifact/org.apache.maven.plugin-testing/maven-plugin-testing-harness/3.3.0/jar

However there's a 2021
com.github.codeteapot.maven.plugin-testing:maven-plugin-testing-harness

Where can I find a working example of a plugin-test with contemporary
dependencies?

Create a nice day!
Stephan H. Wissel

Phone: +65 96673269
Blog  Twitter 
LinkedIn  Xing