Update poms to fully load into M2E. Thanks dkulp

This commit is contained in:
Hadrian Zbarcea 2014-07-10 13:41:41 -04:00
parent 06bb7a2716
commit 5b7bc9057f
2 changed files with 4 additions and 50 deletions

View File

@ -99,59 +99,14 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${maven-dependency-plugin-version}</version>
<executions>
<execution>
<id>unpack-xsd</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-spring</artifactId>
<version>${project.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<includes>activemq.xsd</includes>
</artifactItem>
</artifactItems>
<outputDirectory>src/main/resources</outputDirectory>
</configuration>
</execution>
<execution>
<id>unpack-spring-xsd</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring-version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<includes>org/springframework/beans/factory/xml/spring-beans-3.0.xsd</includes>
</artifactItem>
</artifactItems>
<outputDirectory>src/main/resources</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-xjc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>compile-xsd</id>
<phase>generate-sources</phase>
<goals>
<goal>xsdtojava</goal>
</goals>
@ -163,7 +118,7 @@
</extensions>
<xsdOptions>
<xsdOption>
<xsd>${basedir}/src/main/resources/activemq.xsd</xsd>
<xsd>${basedir}/../activemq-spring/target/classes/activemq.xsd</xsd>
<bindingFile>${basedir}/src/main/resources/binding.xjb</bindingFile>
<extensionArgs>
<extensionArgs>-XtoString</extensionArgs>
@ -196,7 +151,6 @@
</includes>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>

View File

@ -19,7 +19,7 @@
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<jxb:bindings schemaLocation="activemq.xsd" node="/xs:schema">
<jxb:bindings schemaLocation="../../../../activemq-spring/target/classes/activemq.xsd" node="/xs:schema">
<jxb:schemaBindings>
<jxb:nameXmlTransform>