maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wells" <>
Subject [M2] Configuration parameters for my Mojo(s)
Date Mon, 16 Jan 2006 12:44:35 GMT
I have a plugin that defines a new packaging type.  This is basically
the same as the jar packaging type, except it does nothing in the test
phase, has a special packaging phase (where some manifest entries are
added) and an integration-test phase that runs an integration test.

I am able to modify parameters in the "packaging" phase with no problem.
However, in the integration-test phase, for some reason, my parameters
are not getting set from the pom.xml.  Here is the XML snippet from my

              <bundleName>Jetty HTTP</bundleName>
              <bundleDescription>OSGi HTTP service using
              <bundleName>Jetty HTTP Tests</bundleName>
              <bundleDescription>OSGi HTTP service using Jetty Testing

With no problem at all the various variables I set in the "packaging"
phase are being set.  There are two mojo's there, with the goals
osgi-bundle and test-osgi-bundle.  Both of those things seem to be
getting their configuration parameters just fine from the pom.xml.

However, my run-osgi-test goal that happens from the integration-test
phase is NOT getting the configuration parameter.

Here is the output from "mvn -X integration-test" (well, some of it)...

[DEBUG] Configuring mojo
1.0.0-SNAPSHOT:run-osgi-test' -->
[DEBUG]   (f) buildDirectory = C:\weblogic\dev\core\modules\jetty\target
[DEBUG]   (f) integrationDirectoryName = integration-test
[DEBUG]   (f) loadFileName = loader.xml
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@b4ee3822
[DEBUG]   (f) skip = false
[DEBUG]   (f) testTimeout = 300000

Etc.  At this point, shouldn't "skip" be "true" since I set it to "true"
in the pom.xml?

Here is the java:

 * Should these tests be skipped?
 * @parameter expression="false"
private boolean skip;

I have tried several things:

1) Making it a "String" rather than a Boolean
2) Moving it to the same package as the other mojo's that *are* getting
their variables configured properly
3) Having multiple "plugin" definitions in the pom file

Any help would be appreciated.

John Wells (Aziz)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message