dev@hk2.java.net

maven plugin changes

From: Romain Grecourt <romain.grecourt_at_oracle.com>
Date: Tue, 05 Feb 2013 14:42:25 +0100

Hi,

Could you please review the attached diff file.

The goals of those changes is to create separate goals for the "test"
usecase instead of passing test=true via plugin configuration.
I've created 2 abstract Mojo for both config-generator
(AbstractConfigGeneratorMojo) and inhabitant-generator
(AbstractInhabitantsGeneratorMojo).

Each of them has two sub-classes, one for regular use case and one for test
  - InhabitantsGeneratorMojo and ConfigGeneratorMojo
  - TestInhabitantsGeneratorMojo and TestConfigGeneratorMojo

Also, I've changed the usage of the following maven-jar-plugin
configuration as follow:
              <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
                  <configuration>
- <archive>
- <!-- This is needed so that the manifest
generated by
- maven-bundle-plugin:manifest goal is picked up by
- maven-jar-plugin. -->
-
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
+ <useDefaultManifestFile>true</useDefaultManifestFile>
                  </configuration>

Thanks,
Romain