diff options
Diffstat (limited to 'archiva-modules/archiva-base/archiva-model/pom.xml')
-rwxr-xr-x | archiva-modules/archiva-base/archiva-model/pom.xml | 47 |
1 files changed, 39 insertions, 8 deletions
diff --git a/archiva-modules/archiva-base/archiva-model/pom.xml b/archiva-modules/archiva-base/archiva-model/pom.xml index fae3ca346..e6f34f00f 100755 --- a/archiva-modules/archiva-base/archiva-model/pom.xml +++ b/archiva-modules/archiva-base/archiva-model/pom.xml @@ -59,11 +59,12 @@ <plugin> <groupId>org.codehaus.modello</groupId> <artifactId>modello-maven-plugin</artifactId> - <version>1.0-alpha-17</version> <configuration> <version>1.0.0</version> <packageWithVersion>false</packageWithVersion> - <model>src/main/mdo/archiva-base.xml</model> + <models> + <model>src/main/mdo/archiva-base.xml</model> + </models> </configuration> <executions> <execution> @@ -71,14 +72,26 @@ <goals> <goal>java</goal> <goal>xsd</goal> - <goal>jpox-jdo-mapping</goal> - <goal>jpox-metadata-class</goal> - <!-- - <goal>xpp3-writer</goal> - <goal>xpp3-reader</goal> - --> </goals> </execution> + <execution> + <id>archiva-jpox-jdo-mapping</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <generatorId>jpox-jdo-mapping</generatorId> + </configuration> + </execution> + <execution> + <id>archiva-jpox-metadata-class</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <generatorId>jpox-metadata-class</generatorId> + </configuration> + </execution> </executions> </plugin> <plugin> @@ -139,6 +152,24 @@ </execution> </executions> </plugin> + <!-- stupid hack because jpox/modello is not supported anymore and it has bugs --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>process-sources</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <copy file="${project.build.directory}/generated-sources/modello/org/apache/maven/archiva/model/package.jdo" todir="${project.build.outputDirectory}/org/apache/maven/archiva/model/" /> + </tasks> + </configuration> + </execution> + </executions> + </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> |