Promote modello plugin

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@526982 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2007-04-10 01:12:11 +00:00
1 parent aa373c3b32
commit e5ca1ab8be
16 files changed
+4271

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
<?xml version="1.0"?>
<!--
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<project xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns:assert="assert">
<!-- Register Modello -->
<preGoal name="java:compile">
<attainGoal name="modello"/>
</preGoal>
<goal name="testPlugin" prereqs="clean,testJava,testSite"/>
<goal name="testJava" prereqs="jar">
<!-- Java Plugin -->
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/Model.class"/>
<!-- XPP3 Plugin -->
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/io/xpp3/MavenXpp3Reader.class"/>
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/io/xpp3/MavenXpp3Writer.class"/>
<!-- Stax Plugin -->
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/io/stax/MavenStaxReader.class"/>
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/io/stax/MavenStaxWriter.class"/>
<!-- Dom4J Plugin -->
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/io/dom4j/MavenDom4jReader.class"/>
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/io/dom4j/MavenDom4jWriter.class"/>
<!-- JPox Plugin -->
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/MavenJPoxStore.class"/>
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/MavenModelloMetadata.class"/>
<!-- JDom Plugin -->
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/model/io/jdom/MavenJDOMWriter.class"/>
</goal>
<goal name="testSite" prereqs="site">
<assert:assertFileExists file="${maven.gen.docs}/${maven_modello_model_id}.xml"/>
<assert:assertFileExists file="${maven.gen.docs}/${maven_modello_model_id}-${maven.modello.version}.xsd"/>
<assert:assertFileContains file="${maven.gen.docs}/${maven_modello_model_id}-${maven.modello.version}.xsd" match="xmlns=&quot;http://maven.apache.org/POM/3.0.0&quot;" msg="xmlns invalid in schema"/>
<assert:assertFileContains file="${maven.gen.docs}/${maven_modello_model_id}-${maven.modello.version}.xsd" match="targetNamespace=&quot;http://maven.apache.org/POM/3.0.0&quot;" msg="targetNamespace invalid in schema"/>
<assert:assertFileExists file="${maven.docs.dest}/${maven_modello_model_id}.html"/>
<assert:assertFileExists file="${maven.docs.dest}/${maven_modello_model_id}-${maven.modello.version}.xsd"/>
</goal>
</project>
@@ -0,0 +1,20 @@
# -------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -------------------------------------------------------------------
maven.modello.model=${basedir}/src/main/mdo/model.mdo
maven.modello.packageWithVersion=false
maven.modello.version=3.0.0
maven.modello.plugins=xpp3,stax,dom4j,jpox,jdom
+86
View File
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<project xmlns="http://maven.apache.org/POM/3.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/3.0.0 http://maven.apache.org/maven-v3_0_0.xsd">
<pomVersion>3</pomVersion>
<groupId>maven</groupId>
<artifactId>maven-modello-plugin-tests</artifactId>
<currentVersion>1.0</currentVersion>
<name>Test project for Modello</name>
<description>This project is used to test capabilities of the modello plugin</description>
<package>org.apache.maven.model</package>
<dependencies>
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo2-api</artifactId>
<version>2.0</version>
<properties>
<comment>Required for modello JDO/JPOX storage</comment>
</properties>
</dependency>
<dependency>
<groupId>maven</groupId>
<artifactId>dom4j</artifactId>
<version>1.7-20060614</version>
<properties>
<comment>Required for modello DOM4J Reader/Writer</comment>
</properties>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>1.0.5</version>
<properties>
<comment>Required for modello DOM4J Reader/Writer</comment>
</properties>
</dependency>
<dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
<version>1.0.1</version>
<properties>
<comment>Required for modello STAX Reader/Writer</comment>
</properties>
</dependency>
<dependency>
<groupId>net.java.dev.stax-utils</groupId>
<artifactId>stax-utils</artifactId>
<version>20060502</version>
<properties>
<comment>Required for modello STAX Reader/Writer</comment>
</properties>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.0</version>
<properties>
<comment>Required for modello JDOM Writer</comment>
</properties>
</dependency>
</dependencies>
<build>
<sourceDirectory>${maven.build.dir}/generated-src/main/modello</sourceDirectory>
</build>
<reports>
<report>maven-javadoc-plugin</report>
<report>maven-modello-plugin</report>
</reports>
</project>
File diff suppressed because it is too large. Load diff