<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>
<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>
</goals>
</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>
-->
<!--
<class stash.storable="true"
- jpox.table="REPOSITORIES"
- jpox.not-persisted-fields="modelEncoding">
+ jpox.table="REPOSITORIES">
<name>ArchivaRepositoryModel</name>
<version>1.0.0+</version>
<fields>
<class stash.storable="true"
jpox.table="ARTIFACT"
- jpox.not-persisted-fields="modelEncoding"
jpox.use-identifiers-as-primary-key="false"
jpox.identity-type="application"
jpox.identity-class="org.apache.maven.archiva.model.jpox.ArchivaArtifactModelKey">
</class>
<class stash.storable="true"
jpox.table="JAVA_ARTIFACT"
- jpox.not-persisted-fields="modelEncoding"
jpox.use-identifiers-as-primary-key="false"
jpox.identity-type="application"
jpox.identity-class="org.apache.maven.archiva.model.jpox.ArchivaArtifactJavaDetailsKey">
<class stash.storable="true"
jpox.use-identifiers-as-primary-key="false"
- jpox.not-persisted-fields="modelEncoding"
jpox.identity-type="application"
jpox.identity-class="org.apache.maven.archiva.model.jpox.ArchivaRepositoryMetadataKey"
jpox.table="REPOSITORY_METADATA">
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="REPOSITORY_METADATA_SNAPSHOTS">
<name>SnapshotVersion</name>
<description>The Snapshot Version</description>
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="REPOSITORY_METADATA_PLUGINS">
<name>Plugin</name>
<description>The Plugin</description>
-->
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="PROJECT_REFERENCE">
<name>ProjectReference</name>
<description>A reference to another (unversioned) Project</description>
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="VERSIONED_REFERENCE">
<name>VersionedReference</name>
<description>A reference to another Versioned Project</description>
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="ARTIFACT_REFERENCE">
<name>ArtifactReference</name>
<version>1.0.0+</version>
<class stash.storable="true"
jpox.table="PROJECT"
- jpox.not-persisted-fields="modelEncoding"
jpox.use-identifiers-as-primary-key="false"
jpox.identity-type="application"
jpox.identity-class="org.apache.maven.archiva.model.jpox.ArchivaProjectModelKey">
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="MAILING_LISTS">
<name>MailingList</name>
<description>A Mailing List</description>
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="ORGANIZATION">
<name>Organization</name>
<description>Specifies the organization that produces this project.</description>
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="LICENSES">
<name>License</name>
<description><![CDATA[
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="ISSUE_MANAGEMENT">
<name>IssueManagement</name>
<description>
</codeSegments>
</class>
- <class jpox.not-persisted-fields="modelEncoding">
+ <class>
<name>CiManagement</name>
<version>1.0.0+</version>
<fields>
</codeSegments>
</class>
- <class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding">
+ <class stash.storable="true">
<name>Individual</name>
<description>
Description of a person who has contributed to the project.
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="DEPENDENCY">
<name>Dependency</name>
<version>1.0.0+</version>
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="EXCLUSIONS">
<name>Exclusion</name>
<version>1.0.0+</version>
</class>
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="SCM">
<name>Scm</name>
<version>1.0.0+</version>
</codeSegments>
</class>
- <class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
- jpox.table="PROJECT_REPOSITORIES">
+ <class stash.storable="true" jpox.table="PROJECT_REPOSITORIES">
<name>ProjectRepository</name>
<version>1.0.0+</version>
<fields>
-->
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="REPOSITORY_PROBLEMS">
<name>RepositoryProblem</name>
<version>1.0.0+</version>
-->
<class stash.storable="true"
- jpox.not-persisted-fields="modelEncoding"
jpox.table="REPOSITORY_STATS">
<name>RepositoryContentStatistics</name>
<version>1.0.0+</version>
m.getPlugins().add( p );
}
- m.setModelEncoding( null );
RepositoryMetadataWriter.write( m, expectedMetadataXml );
// Compare the file to the actual contents.
m.getAvailableVersions().addAll( Arrays.asList( expectedVersions ) );
}
- m.setModelEncoding( null );
RepositoryMetadataWriter.write( m, expectedMetadataXml );
// Compare the file to the actual contents.
m.setGroupId( metadata.getGroupId() );
m.setArtifactId( metadata.getArtifactId() );
m.setVersion( metadata.getVersion() );
- m.setModelEncoding( null );
RepositoryMetadataWriter.write( m, expectedMetadataXml );
// Compare the file to the actual contents.
m.setLastUpdated( expectedDate + expectedTime );
- m.setModelEncoding( null );
RepositoryMetadataWriter.write( m, expectedMetadataXml );
// Compare the file to the actual contents.
m.getAvailableVersions().addAll( Arrays.asList( expectedProxyVersions ) );
}
- m.setModelEncoding( null );
RepositoryMetadataWriter.write( m, expectedMetadataXml );
// Compare the file to the actual contents.
m.setGroupId( metadata.getGroupId() );
m.setArtifactId( metadata.getArtifactId() );
m.setVersion( metadata.getVersion() );
- m.setModelEncoding( null );
RepositoryMetadataWriter.write( m, expectedMetadataXml );
// Compare the file to the actual contents.