You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by pd...@apache.org on 2006/03/10 21:32:32 UTC
svn commit: r384909 -
/incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/pom.xml
Author: pdodds
Date: Fri Mar 10 12:32:30 2006
New Revision: 384909
URL: http://svn.apache.org/viewcvs?rev=384909&view=rev
Log:
Fixed up the Maven2 pom.xml to support the generation of the JAXB2 classes from the XSD's
Modified:
incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/pom.xml
Modified: incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/pom.xml?rev=384909&r1=384908&r2=384909&view=diff
==============================================================================
--- incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/pom.xml (original)
+++ incubator/servicemix/trunk/tooling/servicemix-packaging-descriptors/pom.xml Fri Mar 10 12:32:30 2006
@@ -1,68 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
-
- Copyright 2005 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
-
- 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.
+
+ Copyright 2005 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
+
+ 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>
+<!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 déc. 2005) $ -->
+<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">
+
<parent>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix</artifactId>
- <version>3.0-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
-
+ <groupId>incubator-servicemix</groupId>
+ <artifactId>servicemix</artifactId>
+ <version>3.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
<modelVersion>4.0.0</modelVersion>
<artifactId>servicemix-packaging-descriptors</artifactId>
<name>ServiceMix :: Packaging Descriptors</name>
-
+
<dependencies>
- <!-- ServiceMix -->
- <dependency>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix-jbi</artifactId>
- </dependency>
<dependency>
- <groupId>incubator-servicemix</groupId>
- <artifactId>servicemix-common</artifactId>
+ <groupId>com.sun.xml</groupId>
+ <artifactId>jaxb-xjc</artifactId>
+ <version>2.0-JAXWS-2.0-EA3</version>
</dependency>
-
- <!-- Activation (req. by JAXB2) -->
- <dependency>
- <groupId>javax.activation</groupId>
- <artifactId>activation</artifactId>
- <version>1.4</version>
- </dependency>
-
- <dependency>
- <groupId>com.sun.xml</groupId>
- <artifactId>jaxb-impl</artifactId>
- </dependency>
- <dependency>
- <groupId>xfire</groupId>
- <artifactId>jaxb-api</artifactId>
- </dependency>
</dependencies>
+
<build>
- <resources>
- <resource>
- <directory>${pom.build.sourceDirectory}</directory>
- <includes>
- <include>**/jaxb.index</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- </resources>
+ <sourceDirectory>${basedir}/target/generated</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -71,6 +50,40 @@
<source>1.5</source>
<target>1.5</target>
</configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <mkdir
+ dir="${basedir}/target/generated" />
+ <taskdef name="xjc"
+ classname="com.sun.tools.xjc.XJCTask">
+ <classpath
+ refid="maven.compile.classpath" />
+ </taskdef>
+ <echo
+ message="Compiling the JBI descriptor schema..." />
+ <xjc
+ schema="${basedir}/src/main/resources/jbi.xsd"
+ package="org.apache.servicemix.descriptors.jbi"
+ destdir="${basedir}/target/generated" />
+ <echo
+ message="Compiling the deployment assets descriptor schema..." />
+ <xjc
+ schema="${basedir}/src/main/resources/packaging-assets.xsd"
+ package="org.apache.servicemix.descriptors.packaging.assets"
+ destdir="${basedir}/target/generated" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>