[ANN] Apache Maven Plugin Testing version 4.0.0-alpha-2 Released

2023-11-11 Thread Slawomir Jaranowski
The Apache Maven team is pleased to announce the release of the Apache Maven Plugin Testing version, version 4.0.0-alpha-2 https://maven.apache.org/plugin-testing/ You can download the appropriate sources etc. from the download page: https://maven.apache.org/plugin-testing/download.html

[ANN] Maven Plugin Testing 4.0.0-alpha-1

2023-02-27 Thread Guillaume Nodet
The Apache Maven team is pleased to announce the release of the Maven Plugin Testing 4.0.0-alpha-1 https://maven.apache.org/plugin-testing Release Notes - Maven Plugin Testing - Version 4.0.0-alpha-1 ** Bug * [MPLUGINTESTING-47] - Incorrect Mojo Java5 annotations in example

Re: JUnit 5 in maven-plugin-testing-harness

2022-08-15 Thread Benjamin Marwell
ov, wrote: > Hello everyone. > > Maven-plugin maven-plugin-testing-harness > <https://github.com/apache/maven-plugin-testing/tree/master/maven-plugin-testing-harness> > still uses JUnit 4 > <https://github.com/apache/maven-plugin-testing/blob/7d6518b0d32d820efa15f7b4d022b852

JUnit 5 in maven-plugin-testing-harness

2022-08-11 Thread Vladimir V. Bychkov
Hello everyone. Maven-plugin maven-plugin-testing-harness <https://github.com/apache/maven-plugin-testing/tree/master/maven-plugin-testing-harness> still uses JUnit 4 <https://github.com/apache/maven-plugin-testing/blob/7d6518b0d32d820efa15f7b4d022b8524a9b1d1b/maven-plugin-testin

When does maven-plugin-testing-harness-3.4.0-SNAPSHOT go final

2022-06-28 Thread Rebecca Searls
jbossws project jaxws-tools-maven-plugin requires the updates in maven-plugin-testing-harness-3.4.0-SNAPSHOT. When is this version expected to go final

Re: about the new Maven Plugin Testing at https://github.com/khmarbaise/maven-it-extension

2020-08-31 Thread Dan Tran
the user guide does discuss IDE integration :-) -D On Sun, Aug 30, 2020 at 5:19 PM Dan Tran wrote: > > I have been using takari-team for maven-plugin testing for Eclipse, > however, the eclipse feature is currently stalled or not maintained. > > I wonder if the new framework wil

about the new Maven Plugin Testing at https://github.com/khmarbaise/maven-it-extension

2020-08-30 Thread Dan Tran
I have been using takari-team for maven-plugin testing for Eclipse, however, the eclipse feature is currently stalled or not maintained. I wonder if the new framework will work with m2e out of the box where I can debug my plugin testing? -D

Re: Maven Plugin Testing Tools deprecated

2018-03-03 Thread Karl Heinz Marbaise
Hi, On 03/03/18 21:13, Martijn Verburg wrote: Hi all, So is the entirety of http://maven.apache.org/plugin-testing/maven-plugin- testing-tools/ deprecated? We're building a maven plugin arpund detecting split packages for Java9+ and have started down the testing-tools rabbit hole..

Re: Maven Plugin Testing Tools deprecated

2018-03-03 Thread Martijn Verburg
Hi all, So is the entirety of http://maven.apache.org/plugin-testing/maven-plugin- testing-tools/ deprecated? We're building a maven plugin arpund detecting split packages for Java9+ and have started down the testing-tools rabbit hole... Cheers, Martijn On 2 March 2018 at 07:17, Olivier

Re: Maven Plugin Testing Tools deprecated

2018-03-01 Thread Olivier Lamy
rg/plugin-testing/maven-plugin-testing-tools/ was > the right tool, but its javadoc is completly deprecated and no > replacement mentioned. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For

Maven Plugin Testing Tools deprecated

2018-03-01 Thread Basin Ilya
Hi. I want to invoke a maven build as part of the unit test. I thought that http://maven.apache.org/plugin-testing/maven-plugin-testing-tools/ was the right tool, but its javadoc is completly deprecated and no replacement mentioned

Re: maven plugin testing harness

2017-11-09 Thread Stephen Connolly
I recommend that you use invoker for testing plugins. On 9 November 2017 at 13:07, Francois MAROT wrote: > I'm no expert at all, but just to let you know: last time I tried the test > harness plugin, I also gave up... :( > I think some advocate to use the maven-invoker-plugin to test in real > c

Re: maven plugin testing harness

2017-11-09 Thread Francois MAROT
I'm no expert at all, but just to let you know: last time I tried the test harness plugin, I also gave up... :( I think some advocate to use the maven-invoker-plugin to test in real conditions with much less dependency problems. You can have a look there: https://maven.apache.org/plugin-developers/

maven plugin testing harness

2017-11-08 Thread Андрей Родионов
Hi all, I’m trying to run simple test using maven-plugin-testing-harness (3.3.0). But it looks like plugin doesn’t support maven 3 (3.2.2) ( it uses old plexus container and doesn’t support new eclipse sisu). java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.(Lorg

Re: maven-plugin-testing-harness

2017-08-25 Thread ahardy42
maven-invoker-plugin looks very useful, but it just adds to the frustration that the maven website guided me down this path with maven-plugin-testing-harness without a single mention of maven-invoker-plugin. you might want to put a link in there in the "my first mojo resources" section.

Re: maven-plugin-testing-harness

2017-08-23 Thread Olivier Lamy
Hi IMHO using the maven invoker plugin is a better way as you can easily test your plugin with different core versions. but it's only my POV :-) On 23 August 2017 at 18:03, ahardy42 wrote: > After a concentrated stint of experimentation, I have setup my tests using > the maven-plu

Re: maven-plugin-testing-harness

2017-08-23 Thread ahardy42
After a concentrated stint of experimentation, I have setup my tests using the maven-plugin-testing-harness so that the tests run with a live remote repository and have all the resources provided in the target/test-classes directory. The solution is here: https://stackoverflow.com/questions

Re: maven-plugin-testing-harness

2017-08-02 Thread ahardy42
On 26/07/17 20:13, Karl Heinz Marbaise wrote: >> and the link to git repo is 404 > > https://github.com/apache/maven-plugin-testing > > but it's out of date correct... > > I have created an appropriate INFRA ticket to fix this[1]. > > > [1]: https://iss

Re: maven-plugin-testing-harness

2017-08-01 Thread ahardy42
On 26/07/17 11:49, ahardy42 wrote: > Is there life is in this testing harness still? > > I'm looking at > https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/ Hi All, while I've made a lot of progress with my plugin testing with the maven-plugin-testing-ha

Re: maven-plugin-testing-harness

2017-07-26 Thread Karl Heinz Marbaise
Hi, On 26/07/17 20:13, Karl Heinz Marbaise wrote: Hi, On 26/07/17 11:49, ahardy42 wrote: Is there life is in this testing harness still? I'm looking at https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/ The link to JIRA returns 503 - http://jira.codehaus.org/b

Re: maven-plugin-testing-harness

2017-07-26 Thread Karl Heinz Marbaise
Hi, On 26/07/17 11:49, ahardy42 wrote: Is there life is in this testing harness still? I'm looking at https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/ The link to JIRA returns 503 - http://jira.codehaus.org/browse/MPLUGINTESTING Outch that are the old links

maven-plugin-testing-harness

2017-07-26 Thread ahardy42
Is there life is in this testing harness still? I'm looking at https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/ The link to JIRA returns 503 - http://jira.codehaus.org/browse/MPLUGINTESTING and the link to git repo is 404 I can imagine there is a big population of

Problems developing mojo tests with maven-plugin-testing-harness

2017-07-24 Thread adam . hardy
Hi All I'm writing a mojo and using maven-plugin-testing-harness. Is there an issue with Java 8 streams or lambdas? When I include a method on my mojo with some lambda functionality, I get this exception when it tries to generate the mojo: [ERROR] Failed to execute

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-14 Thread org.apache.maven.user
.com/takari/takari-plugin-testing-project Thanks for the assistance. Looks like I'll be switching to Takari today. M - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread Jason van Zyl
You are missing the dependencies which contain the necessary classes. I made a PR for you. The project test now executes. FYI, I use this all the time now for plugin unit and integration testing: https://github.com/takari/takari-plugin-testing-project > On Nov 13, 2015, at 5:30 PM, >

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
On 2015-11-13T17:09:36 -0500 Jason van Zyl wrote: > You must be running with a version of Maven where that class does not exist? > That error means you’re using a library where that class was present during > building but not present at runtime. You running something older than Maven > 2.2.x?

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread Jason van Zyl
You must be running with a version of Maven where that class does not exist? That error means you’re using a library where that class was present during building but not present at runtime. You running something older than Maven 2.2.x? > On Nov 13, 2015, at 4:59 PM, org.apache.maven.u...@io7m.c

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
On 2015-11-13T21:07:23 + wrote: > On 2015-11-13T21:39:06 +0100 > Karl Heinz Marbaise wrote: > > > > Better use at least version 3.0 of this... > > I'll try 3.0. No luck, unfortunately. Same error. M - To unsubscribe, e-

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
'Lo! On 2015-11-13T21:39:06 +0100 Karl Heinz Marbaise wrote: > > Why are you using this: > > >org.apache.maven >maven-plugin-api >2.0 > > > Better use at least version 3.0 of this... Because the documentation says 2.0: https://maven.apache.org/guides/plugi

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread Karl Heinz Marbaise
Hi, On 11/13/15 2:23 PM, org.apache.maven.u...@io7m.com wrote: On 2015-11-13T10:03:54 + wrote: Hello. I'm attempting to add a Maven plugin to a small compiler project: Here's a tiny repro case. https://github.com/io7m/mvn-bug-20151113 Why are you using this: org.apache.mav

Re: maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
On 2015-11-13T10:03:54 + wrote: > Hello. > > I'm attempting to add a Maven plugin to a small compiler project: Here's a tiny repro case. https://github.com/io7m/mvn-bug-20151113 M - To unsubscribe, e-mail: users-unsubscr

maven-plugin-testing-harness: NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest

2015-11-13 Thread org.apache.maven.user
Hello. I'm attempting to add a Maven plugin to a small compiler project: https://github.com/io7m/jpra However, given the following trivial pom.xml: https://github.com/io7m/jpra/blob/develop/io7m-jpra-maven-plugin/pom.xml ... and the following no-op unit test: https://github.com/io7m/jp

[ANN] Apache Maven Plugin Testing 3.1.0 Released

2014-02-16 Thread Igor Fedorenko
The Apache Maven team is pleased to announce the release of the Apache Maven Plugin Testing, version 3.1.0 The Maven Plugin Testing contains the necessary tools to be able to test Maven Plugins. http://maven.apache.org/plugin-testing/ You should specify the version in your project's depen

Re: Plugin Testing?

2013-03-13 Thread Manfred Moser
Check out eg. the source of the Android Maven Plugin on how you can hook this all up. > Hi All, > > > Can anyone actually provide a link to a working example of the plugin > testing framework? > > > I’m using maven 3.0.5, and have even tried compiling the snapshot &

Re: Plugin Testing?

2013-03-13 Thread Baptiste MATHUS
> Hi All, > > > Can anyone actually provide a link to a working example of the plugin > testing framework? > > > I’m using maven 3.0.5, and have even tried compiling the snapshot > 2.2-SNAPSHOT version of maven-plugin-testing-harness, but still receive > errors about n

RE: Plugin Testing?

2013-03-13 Thread Martin Gainty
our le contenu fourni. > Date: Tue, 12 Mar 2013 15:45:00 -0700 > From: mikes...@gmail.com > To: users@maven.apache.org > Subject: Plugin Testing? > > Hi All, > > > Can anyone actually provide a link to a working example of the plugin testing > framework? >

Plugin Testing?

2013-03-12 Thread Michael Sena
Hi All, Can anyone actually provide a link to a working example of the plugin testing framework? I’m using maven 3.0.5, and have even tried compiling the snapshot 2.2-SNAPSHOT version of maven-plugin-testing-harness, but still receive errors about not being able to find the component in my

[ANN] Maven Plugin Testing 1.3/2.1 Released

2012-09-27 Thread Kristian Rosenvold
The Maven team is pleased to announce the release of the Maven Plugin Testing, version 1.3 and 2.1 This release is Java7 compatible and updates all the dependencies of plugin-testing, especially easymock to version 2.5.2. Projects wishing to upgrade to this version will need to update their own

Re: Can't make maven-plugin-testing-harness work...

2012-06-04 Thread Hervé BOUTEMY
juin 2012 10:29:05 Benjamin Reed a écrit : > I'm trying to write a maven plugin. I've added > maven-plugin-testing-harness to my project as a test dependency, and > created a very simple test that right now just tries to load a pom > whose only content is a section to load

Re: Can't make maven-plugin-testing-harness work...

2012-06-04 Thread Benjamin Reed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/4/12 10:29 AM, Benjamin Reed wrote: > ...am I doing something wrong? Seems like the test framework is > breaking on the simplest things, I'm not sure how to start out if > I can't even unit test this. So in attempting to troubleshoot this, it a

Can't make maven-plugin-testing-harness work...

2012-06-04 Thread Benjamin Reed
I'm trying to write a maven plugin. I've added maven-plugin-testing-harness to my project as a test dependency, and created a very simple test that right now just tries to load a pom whose only content is a section to load the plugin. If I have it load like this: > org.opennms.

[ANN] Maven Plugin Testing 2.0 Released

2012-05-28 Thread Igor Fedorenko
The Maven team is pleased to announce the release of the Maven Plugin Testing, version 2.0 The Maven Plugin Testing contains the necessary modules to be able to test Maven Plugins. http://maven.apache.org/plugin-testing/ org.apache.maven.plugin-testing maven-plugin-testing

Re: maven-plugin-testing-harness with Maven 3

2011-01-27 Thread Olivier Lamy
o do this? > > regards, > Oliver > > > Am 27.01.2011 um 22:41 schrieb Olivier Lamy: > >> Hello, >> With maven3, you have to use >> >>     >>      org.apache.maven.plugin-testing >>      maven-plugin-testing-harness >>      2.0-alpha-

Re: maven-plugin-testing-harness with Maven 3

2011-01-27 Thread oliver
llo, > With maven3, you have to use > > > org.apache.maven.plugin-testing > maven-plugin-testing-harness > 2.0-alpha-1 > test > > > > > 2011/1/27 oliver : >> Hi, >> >> I'm working at a Maven plugin for OOo whi

Re: maven-plugin-testing-harness with Maven 3

2011-01-27 Thread Olivier Lamy
Hello, With maven3, you have to use org.apache.maven.plugin-testing maven-plugin-testing-harness 2.0-alpha-1 test 2011/1/27 oliver : > Hi, > > I'm working at a Maven plugin for OOo which uses > maven-plugin-testing-harness-1.2 for testing

maven-plugin-testing-harness with Maven 3

2011-01-27 Thread oliver
Hi, I'm working at a Maven plugin for OOo which uses maven-plugin-testing-harness-1.2 for testing. With Maven-2 it works fine but with Maven-3 I'll get a java.lang.IllegalAccessError: tried to access field org.codehaus.plexus.PlexusTestCase.container

Re: plugin-testing

2011-01-14 Thread oliver
maven-invoker-plugin its usually better for plugin testing. verifier is for > writing plugin tests from eg junit. invoker works differently > > - Stephen > > --- > Sent from my Android phone, so random spelling mistakes, random nonsense > words and other nonsense are a direct re

Re: plugin-testing

2011-01-12 Thread Stephen Connolly
maven-invoker-plugin its usually better for plugin testing. verifier is for writing plugin tests from eg junit. invoker works differently - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on

plugin-testing

2011-01-12 Thread oliver
Hi, I tried the maven-verifier as described in http://maven.apache.org/plugin-developers/plugin-testing.html. The expample shows how an artifact can be deleted from the repository (verifier.deleteArtifact(...)) but does not show how I can use my plugin for testing. Or must I install it manuall

maven-plugin-testing-harness: setting project?

2010-01-03 Thread Stefano Fornari
Hi All, is the maven-plugin-testing-harness supposed to set the project field of a mojo? Or shall we do it ourself? Basically, I lookup the mojo and I get an instance of it; the mojo has an instance field "project", but it does not get initialized. Is this the normal behaviour? Thanks

maven-invoker-plugin, plugin testing, and IT's with plugin snapshot dependencies

2009-12-20 Thread Stevo Slavić
Hello Maven users, If one installs a snapshot of a plugin (P1) in local repository, and for other plugin (P2) an IT, run using maven-invoker-plugin configured as recommended to use isolated local repository for integration tests, is a project which makes use of P1 snapshot, IT will fail since P1 s

[ANN] Maven Plugin Testing 2.0-alpha-1 Released

2009-11-20 Thread Benjamin Bentmann
The Maven team is pleased to announce the release of the Maven Plugin Testing, version 2.0-alpha-1. This harness assists in creating unit or integration tests for Maven plugins. See the component's site for more details: http://maven.apache.org/plugin-testing/ This new version o

maven-plugin-testing in CI

2009-09-23 Thread Mark Hobson
Hi there, I was wondering why the latest CI snapshot of maven-plugin-testing was out of date according to the source: http://svn.apache.org/repos/asf/maven/plugin-testing/trunk/pom.xml https://repository.apache.org/content/repositories/snapshots/org/apache/maven/plugin-testing/maven-plugin

[ANN] Maven Plugin Testing 1.2 Released

2008-07-23 Thread Vincent Siveton
The Maven team is pleased to announce the release of the Maven Plugin Testing, version 1.2 The Maven Plugin Testing contains the necessary modules to be able to test Maven Plugins. http://maven.apache.org/plugin-testing/ Note: This release changes the groupId for the artifacts. You can specify

settings for maven-plugin-testing-harness

2008-03-31 Thread Dominik Heller
I started working with the maven-plugin-testing-harness and right now I am looking for a way to stop the building of the plugin I am testing if the harness has a failure. So basically I have a plugin A which I am testing with the harness plugin. If the harness throws an assertion I want the

Maven plugin testing

2008-01-07 Thread Serge Huber
Hi all, I am developing a plugin that copies some dependencies to a directory. I'm doing this because I need to setup a server by copying some JARs to a deployment directory. I am having lots of problems understanding the different plugin testing methods described on the page :

Maven plugin testing tools/harness

2007-08-06 Thread Arnaud Bailly
Hello, I would like to know where I can find usage examples of the maven-plugin-testing-tools shared component. It looks really interesting Thx PS: Is it possible to connect to irc.codehaus.org using erc on emacs ? I keep getting connection errors... -- OQube < software engineering \ gé

maven-plugin-testing-tools and code coverage?

2007-04-06 Thread Matthew Beermann
Lately, I've been using the maven-plugin-testing-tools to create unit tests for my plugins, and it works like a charm - mostly. However, I've discovered that I can't get code coverage data using either Clover or Cobertura - they always come up with 0% coverage. Is this an inhe

Re: [m2] Two questions on maven-plugin-testing-harness

2007-02-11 Thread franz see
his is a bug... Please file this in jira and we'll have a look at it. >>>> Thanks. >>>> >>> What project, what component? >>> >>> Thanks, >>> >>> Jochen >>> >

Re: [m2] Two questions on maven-plugin-testing-harness

2007-02-11 Thread Edwin Punzalan
franz see wrote: Good day, Re #1. AFAIK, testing harness does not inject values for @parameter. You may want to try something like /** * @component role="org.apache.maven.artifact.repository.ArtifactRepository" */ private ArtifactRepostiory localRepository; I think this won't work. You

Re: [m2] Two questions on maven-plugin-testing-harness

2007-02-11 Thread franz see
n jira and we'll have a look at it. >> Thanks. > > What project, what component? > > Thanks, > > Jochen > > -- > How fast can a year go? As fast as your childs first year. > > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For add

Re: Two questions on maven-plugin-testing-harness

2007-02-11 Thread Jochen Wiedmann
Hi, Edwin, first of all, thanks for your reply. On 2/11/07, Edwin Punzalan <[EMAIL PROTECTED]> wrote: >How do I creare this parameter? I suppose, it's an instance of > DefaultArtifactRepository, >but how do I configure it? I'm pretty sure the testing harness can take care of expression

Re: Two questions on maven-plugin-testing-harness

2007-02-11 Thread Edwin Punzalan
Please see my inline comments below... Jochen Wiedmann wrote: Hi, I am currently trying to use the maven-plugin-testing-harness for testing a report plugin. Two questions came up so far: 1.) When I run the test, I receive the following exception: java.lang.NullPointerException

Two questions on maven-plugin-testing-harness

2007-02-09 Thread Jochen Wiedmann
Hi, I am currently trying to use the maven-plugin-testing-harness for testing a report plugin. Two questions came up so far: 1.) When I run the test, I receive the following exception: java.lang.NullPointerException">java.lang.NullPointerException

maven-plugin-testing-harness: Nonexistent component

2006-11-14 Thread Jochen Wiedmann
Hi, in order to fix some bugs in the javacc plugins JTBMojo, I wrote a little integration test, based on the maven-plugin-testing-harness. However, I am unable to get it running, because I always receive the following error message: [ERROR] Nonexistent component

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t

2006-08-11 Thread Dave Syer
this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5758485 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PR

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t

2006-08-11 Thread Brett Porter
orObject, I think). setVariableValueToObject. Thanks. P.S. there is no javadoc report at http://maven.apache.org/shared/maven-plugin-testing-harness. Would it be easy to add it? P.P.S. It's quite hard to find the URL above. Could someone put a link in the main plugin API guide (http://maven.apache.org/guides/pl

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t

2006-08-10 Thread Dave Syer
> However, if you prefer the private field injection you can also use > the helpers in the abstract test case (setFieldForObject, I think). setVariableValueToObject. Thanks. P.S. there is no javadoc report at http://maven.apache.org/shared/maven-plugin-testing-harness. Would it be e

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t

2006-08-10 Thread Brett Porter
. -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744691 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail:

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t

2006-08-10 Thread Dave Syer
I could add setters for my mojo parameters. -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744691 Sent from the Maven - Users forum at

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t

2006-08-10 Thread Brett Porter
Ah, you might need to just steal the code then. I see what you mean about getting it into a mojo - you'll need to set it directly into there. The plugin testing harness still needs some work... - Brett On 10/08/06, Dave Syer <[EMAIL PROTECTED]> wrote: > Actually, I created

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my t

2006-08-10 Thread Dave Syer
t case extends PlexusTestCase I can't use it and the AbstractMojoTestCase together. Any suggestions? -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5744003 Sent from the Maven - Users

Re: maven-plugin-testing-harness: getting an ArtifactRepository for my test

2006-08-10 Thread Brett Porter
e ${basedir} in a parameter expression resolve? I find I have to override all the parameters that contain ${basedir} in theor expression separately. -- View this message in context: http://www.nabble.com/maven-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5

maven-plugin-testing-harness: getting an ArtifactRepository for my test

2006-08-10 Thread Dave Syer
-plugin-testing-harness%3A-getting-an-ArtifactRepository-for-my-test-tf2084342.html#a5743139 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: maven-plugin-testing-harness usage

2006-06-29 Thread Edwin Punzalan
sedir} to be the directory where the pom.xml is. Jesse McConnell wrote: org.apache.maven.shared maven-plugin-testing-harness 1.0-beta-1 test http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Harness I originally put this harness together with help from jason so that we

Re: maven-plugin-testing-harness usage

2006-06-29 Thread Ernesto S. Tolentino Jr.
Jesse McConnell wrote: org.apache.maven.shared maven-plugin-testing-harness 1.0-beta-1 test http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Harness I originally put this harness together with help from jason so that we could instantiate mojo's easily in test case

maven-plugin-testing-harness usage

2006-06-29 Thread Jesse McConnell
org.apache.maven.shared maven-plugin-testing-harness 1.0-beta-1 test http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Harness I originally put this harness together with help from jason so that we could instantiate mojo's easily in test cases and feed in configur

Re: plugin-testing-harness (3)

2006-06-20 Thread Maria Odea Ching
Jochen Wiedmann wrote: On 6/21/06, Maria Odea Ching <[EMAIL PROTECTED]> wrote: Did you check that you have the correct goal name when you looked up the mojo? :) There seems to be nothing wrong with your configuration.. That's been the problem when you wrote me the last time, wasn't it? :-)

Re: plugin-testing-harness (3)

2006-06-20 Thread Jochen Wiedmann
On 6/21/06, Maria Odea Ching <[EMAIL PROTECTED]> wrote: Did you check that you have the correct goal name when you looked up the mojo? :) There seems to be nothing wrong with your configuration.. That's been the problem when you wrote me the last time, wasn't it? :-) But test-jar is right, isn

Re: plugin-testing-harness (3)

2006-06-20 Thread Maria Odea Ching
Hi Jochen, Did you check that you have the correct goal name when you looked up the mojo? :) There seems to be nothing wrong with your configuration.. Thanks, Odea Jochen Wiedmann wrote: Hi, I am about to write a test case for MJAR-20. Below you find my unit test and my pom. Unfortunately,

plugin-testing-harness (3)

2006-06-19 Thread Jochen Wiedmann
Hi, I am about to write a test case for MJAR-20. Below you find my unit test and my pom. Unfortunately, when I try to execute the unit test, I receive the following exception: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the

Re: RE : More questions on maven-plugin-testing-harness

2006-06-16 Thread Jochen Wiedmann
Olivier Lamy wrote: > setVariableValueToObject( vm , "basedir", new File( getBasedir() ) ); > Before vm.execute(); Thanks, that worked like a charm! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE : More questions on maven-plugin-testing-harness

2006-06-16 Thread Olivier Lamy
1 À : Maven Users List Objet : More questions on maven-plugin-testing-harness Hi, thanks to Odea's help, I managed to get a few steps further. However, I have to return with another question in the end. My plugin contains the following variable: /** * The base director

More questions on maven-plugin-testing-harness

2006-06-16 Thread Jochen Wiedmann
Hi, thanks to Odea's help, I managed to get a few steps further. However, I have to return with another question in the end. My plugin contains the following variable: /** * The base directory, relative to which directory names are * interpreted. * * @parameter expressio

Re: Question on maven-plugin-testing-harness

2006-06-16 Thread Jochen Wiedmann
Maria Odea Ching wrote: > I don't think you need to include the goalPrefix ("xml") when you lookup > the mojo in your test case > when you use the testing harness. > > It should be: > > ValidatorMojo vm = (ValidatorMojo) lookupMojo( "validate", testPom ); Thanks, that worked! Jochen ---

Re: Question on maven-plugin-testing-harness

2006-06-15 Thread Maria Odea Ching
e: Hi, I am attempting to write a plugin test by using the maven-plugin-testing-harness. I have created the following test-POM and am trying to invoke it through File testPom = new File( getBasedir(), "src/test/it1/pom.xml" ); ValidatorMojo vm = (ValidatorMojo) lookupMojo( "xml:v

Question on maven-plugin-testing-harness

2006-06-15 Thread Jochen Wiedmann
Hi, I am attempting to write a plugin test by using the maven-plugin-testing-harness. I have created the following test-POM and am trying to invoke it through File testPom = new File( getBasedir(), "src/test/it1/pom.xml" ); ValidatorMojo vm = (ValidatorMojo) lookupMojo( &qu