switched to using the xbean-spring plugin

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@421898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-07-14 13:11:42 +00:00
parent 1fd01f0888
commit ea63d69242
1 changed files with 63 additions and 88 deletions

View File

@ -1,25 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2005-2006 The Apache Software Foundation
Copyright 2005-2006 The Apache Software Foundation
Licensed 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
Licensed 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
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.
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
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0">
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
@ -300,73 +298,50 @@
<!-- Use Gram to Gernerate the OpenWire Marshallers -->
<!--
<plugin>
<plugin>
<groupId>incubator-activemq</groupId>
<artifactId>maven-gram-plugin</artifactId>
<version>${pom.version}</version>
<configuration>
<scripts>
GenerateJavaMarshalling.groovy:
GenerateJavaTests.groovy:
GenerateCSharpMarshalling.groovy:
GenerateCSharpClasses.groovy:
GenerateCppMarshallingClasses.groovy:
GenerateCppMarshallingHeaders.groovy:
GenerateCppHeaders.groovy:
GenerateCppClasses.groovy:
GenerateCMarshalling.groovy:
</scripts>
<groovyProperties>
<version>1</version>
</groovyProperties>
<scripts>
GenerateJavaMarshalling.groovy:
GenerateJavaTests.groovy:
GenerateCSharpMarshalling.groovy:
GenerateCSharpClasses.groovy:
GenerateCppMarshallingClasses.groovy:
GenerateCppMarshallingHeaders.groovy:
GenerateCppHeaders.groovy:
GenerateCppClasses.groovy:
GenerateCMarshalling.groovy:
</scripts>
<groovyProperties>
<version>1</version>
</groovyProperties>
</configuration>
<dependencies>
<dependency>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-openwire-generator</artifactId>
<version>${pom.version}</version>
</dependency>
<dependency>
<groupId>incubator-activemq</groupId>
<artifactId>activemq-openwire-generator</artifactId>
<version>${pom.version}</version>
</dependency>
</dependencies>
</plugin>
</plugin>
-->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<groupId>org.apache.xbean</groupId>
<artifactId>maven-xbean-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${basedir}/target/generated</sourceRoot>
<tasks>
<mkdir dir="${basedir}/target/generated"/>
<taskdef name="xsdGenerate" classname="org.apache.xbean.spring.generator.MappingGeneratorTask"/>
<xsdGenerate
destFile="${basedir}/target/activemq-${project.version}.xsd"
namespace="http://activemq.org/config/1.0"
srcdir="${basedir}/src/main/java"
metaInfDir="${basedir}/target/generated/"/>
<copy todir="${basedir}/target/classes">
<fileset dir="${basedir}/target/generated"/>
</copy>
<copy file="${basedir}/target/activemq-${project.version}.xsd" todir="${basedir}/../xdocs"/>
<copy file="${basedir}/target/activemq-${project.version}.xsd.html" todir="${basedir}/../xdocs"/>
</tasks>
<namespace>http://activemq.org/config/1.0</namespace>
<schema>target/activemq.xsd</schema>
</configuration>
<goals>
<goal>run</goal>
<goal>mapping</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.xbean</groupId>
<artifactId>xbean-spring</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
</plugin>
<plugin>