2019-07-22 23:16:48 -04:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2019-09-14 10:30:41 -04:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
2017-05-12 14:32:54 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>xml</artifactId>
|
|
|
|
<version>0.1-SNAPSHOT</version>
|
|
|
|
<name>xml</name>
|
2016-06-26 05:55:42 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<parent>
|
|
|
|
<groupId>com.baeldung</groupId>
|
|
|
|
<artifactId>parent-modules</artifactId>
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
</parent>
|
2016-06-26 05:55:42 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<dependencies>
|
|
|
|
<!-- xml libraries -->
|
|
|
|
<dependency>
|
2019-07-22 23:16:48 -04:00
|
|
|
<groupId>org.dom4j</groupId>
|
2017-05-12 14:32:54 -04:00
|
|
|
<artifactId>dom4j</artifactId>
|
|
|
|
<version>${dom4j.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>jaxen</groupId>
|
|
|
|
<artifactId>jaxen</artifactId>
|
|
|
|
<version>${jaxen.version}</version>
|
|
|
|
</dependency>
|
2019-07-22 23:16:48 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jooq</groupId>
|
|
|
|
<artifactId>joox-java-6</artifactId>
|
|
|
|
<version>${joox.version}</version>
|
|
|
|
</dependency>
|
2017-05-12 14:32:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jdom</groupId>
|
|
|
|
<artifactId>jdom2</artifactId>
|
|
|
|
<version>${jdom2.version}</version>
|
|
|
|
</dependency>
|
2019-03-12 23:55:59 -04:00
|
|
|
<dependency>
|
2019-07-22 23:16:48 -04:00
|
|
|
<groupId>javax.xml.bind</groupId>
|
2019-03-12 23:55:59 -04:00
|
|
|
<artifactId>jaxb-api</artifactId>
|
2019-07-06 15:38:17 -04:00
|
|
|
<version>${jaxb-api.version}</version>
|
2019-03-12 23:55:59 -04:00
|
|
|
</dependency>
|
2019-07-22 23:16:48 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-impl</artifactId>
|
|
|
|
<version>${jaxb-impl.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.sun.xml.bind</groupId>
|
|
|
|
<artifactId>jaxb-core</artifactId>
|
|
|
|
<version>${jaxb-core.version}</version>
|
|
|
|
</dependency>
|
2019-03-12 23:55:59 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.xml</groupId>
|
|
|
|
<artifactId>jaxp-api</artifactId>
|
2019-07-06 15:38:17 -04:00
|
|
|
<version>${jaxp-api.version}</version>
|
2019-03-12 23:55:59 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.xml.stream</groupId>
|
|
|
|
<artifactId>stax-api</artifactId>
|
2019-07-06 15:38:17 -04:00
|
|
|
<version>${stax-api.version}</version>
|
2019-03-12 23:55:59 -04:00
|
|
|
</dependency>
|
2019-09-14 10:30:41 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.freemarker</groupId>
|
|
|
|
<artifactId>freemarker</artifactId>
|
|
|
|
<version>${freemarker.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.spullara.mustache.java</groupId>
|
|
|
|
<artifactId>compiler</artifactId>
|
|
|
|
<version>${mustache.version}</version>
|
|
|
|
</dependency>
|
2019-07-22 23:16:48 -04:00
|
|
|
<!-- JMH Libraries -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.openjdk.jmh</groupId>
|
|
|
|
<artifactId>jmh-core</artifactId>
|
|
|
|
<version>${jmh.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.openjdk.jmh</groupId>
|
|
|
|
<artifactId>jmh-generator-annprocess</artifactId>
|
|
|
|
<version>${jmh.version}</version>
|
|
|
|
</dependency>
|
2017-05-12 14:32:54 -04:00
|
|
|
<!-- utils -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
|
<version>${commons-io.version}</version>
|
|
|
|
</dependency>
|
2016-06-26 05:55:42 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-collections4</artifactId>
|
|
|
|
<version>${commons-collections4.version}</version>
|
|
|
|
</dependency>
|
2016-06-26 05:55:42 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${commons-lang3.version}</version>
|
|
|
|
</dependency>
|
2017-03-09 03:06:06 -05:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jibx</groupId>
|
|
|
|
<artifactId>jibx-run</artifactId>
|
|
|
|
<version>${jibx-version}</version>
|
|
|
|
</dependency>
|
2018-07-12 03:04:54 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>commons-lang</groupId>
|
|
|
|
<artifactId>commons-lang</artifactId>
|
|
|
|
<version>${commons-lang.version}</version>
|
|
|
|
</dependency>
|
2019-07-22 23:16:48 -04:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
|
<version>${junit-jupiter.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.vintage</groupId>
|
|
|
|
<artifactId>junit-vintage-engine</artifactId>
|
|
|
|
<version>${junit-jupiter.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.assertj</groupId>
|
|
|
|
<artifactId>assertj-core</artifactId>
|
|
|
|
<version>${assertj-core.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.xmlunit</groupId>
|
|
|
|
<artifactId>xmlunit-assertj</artifactId>
|
|
|
|
<version>${xmlunit-assertj.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-05-12 14:32:54 -04:00
|
|
|
</dependencies>
|
2016-06-26 05:55:42 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<build>
|
|
|
|
<finalName>xml</finalName>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
2019-07-22 23:16:48 -04:00
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
2017-05-12 14:32:54 -04:00
|
|
|
</build>
|
2017-03-09 03:06:06 -05:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>schemaGen</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.jibx</groupId>
|
|
|
|
<artifactId>maven-jibx-plugin</artifactId>
|
|
|
|
<version>${maven-jibx-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-java-code-from-schema</id>
|
|
|
|
<goals>
|
|
|
|
<goal>schema-codegen</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>Order.xsd</include>
|
|
|
|
</includes>
|
|
|
|
<verbose>true</verbose>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>compile-binding</id>
|
|
|
|
<goals>
|
|
|
|
<goal>bind</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<directory>target/generated-sources</directory>
|
|
|
|
<load>true</load>
|
|
|
|
<validate>true</validate>
|
|
|
|
<!--<verbose>true</verbose> -->
|
|
|
|
<verify>true</verify>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>generate-test-code-from-schema</id>
|
|
|
|
<phase>generate-test-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-schema-codegen</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>compile-test-binding</id>
|
|
|
|
<phase>process-test-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-bind</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<directory>target/generated-test-sources</directory>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>CustomerTest.java</exclude>
|
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2017-03-09 03:06:06 -05:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<profile>
|
|
|
|
<id>bindGen</id>
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.jibx</groupId>
|
|
|
|
<artifactId>maven-jibx-plugin</artifactId>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.jibx</groupId>
|
|
|
|
<artifactId>maven-jibx-plugin</artifactId>
|
|
|
|
<version>${maven-jibx-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<includes>*-binding.xml</includes>
|
|
|
|
</includes>
|
|
|
|
<excludes>
|
|
|
|
<exclude>template-binding.xml</exclude>
|
|
|
|
</excludes>
|
2018-12-18 16:10:32 -05:00
|
|
|
<schemaBindingDirectory>src/main/resources</schemaBindingDirectory>
|
2018-09-02 02:09:07 -04:00
|
|
|
<includeSchemaBindings>
|
|
|
|
<includeSchemaBindings>*-binding.xml</includeSchemaBindings>
|
|
|
|
</includeSchemaBindings>
|
2017-05-12 14:32:54 -04:00
|
|
|
<verbose>true</verbose>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2018-12-18 16:10:32 -05:00
|
|
|
<id>process-classes</id>
|
2017-05-12 14:32:54 -04:00
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>bind</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
2018-12-18 16:10:32 -05:00
|
|
|
<execution>
|
|
|
|
<id>process-test-classes</id>
|
2017-05-12 14:32:54 -04:00
|
|
|
<phase>process-test-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test-bind</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>${java-version}</source>
|
|
|
|
<target>${java-version}</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2019-07-22 23:16:48 -04:00
|
|
|
<!-- NOTE: We don't need a groupId specification
|
|
|
|
because the group is org.apache.maven.plugins ...which is assumed by default. -->
|
2017-05-12 14:32:54 -04:00
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<archiveBaseDirectory>${project.basedir}</archiveBaseDirectory>
|
|
|
|
<descriptorRefs>
|
|
|
|
<descriptorRef>
|
|
|
|
jar-with-dependencies
|
|
|
|
</descriptorRef>
|
|
|
|
</descriptorRefs>
|
|
|
|
<archive>
|
|
|
|
<manifest>
|
|
|
|
<mainClass>
|
|
|
|
com.baeldung.xml.jibx.JiBXDemoApplication
|
|
|
|
</mainClass>
|
|
|
|
</manifest>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2019-07-22 23:16:48 -04:00
|
|
|
<id>make-assembly</id><!-- this is used for
|
|
|
|
inheritance merges -->
|
|
|
|
<phase>package</phase><!-- append to the
|
|
|
|
packaging phase. -->
|
2017-05-12 14:32:54 -04:00
|
|
|
<goals>
|
|
|
|
<goal>attached</goal><!-- goals == mojos -->
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
2018-07-12 03:04:54 -04:00
|
|
|
</profiles>
|
2017-03-09 03:06:06 -05:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<properties>
|
2019-07-22 23:16:48 -04:00
|
|
|
<dom4j.version>2.1.1</dom4j.version>
|
|
|
|
<jaxen.version>1.2.0</jaxen.version>
|
2017-05-12 14:32:54 -04:00
|
|
|
<jdom2.version>2.0.6</jdom2.version>
|
2019-07-22 23:16:48 -04:00
|
|
|
<joox.version>1.6.2</joox.version>
|
|
|
|
<commons-io.version>2.5</commons-io.version>
|
2017-05-12 14:32:54 -04:00
|
|
|
<commons-collections4.version>4.1</commons-collections4.version>
|
|
|
|
<jibx-version>1.2.4.5</jibx-version>
|
2019-07-22 23:16:48 -04:00
|
|
|
<jaxb-api.version>2.3.1</jaxb-api.version>
|
2019-07-06 15:38:17 -04:00
|
|
|
<jaxp-api.version>1.4.2</jaxp-api.version>
|
2019-07-22 23:16:48 -04:00
|
|
|
<jaxb-core.version>2.3.0.1</jaxb-core.version>
|
|
|
|
<jaxb-impl.version>2.3.2</jaxb-impl.version>
|
2019-07-06 15:38:17 -04:00
|
|
|
<stax-api.version>1.0-2</stax-api.version>
|
2019-07-22 23:16:48 -04:00
|
|
|
<assertj-core.version>3.12.2</assertj-core.version>
|
|
|
|
<xmlunit-assertj.version>2.6.3</xmlunit-assertj.version>
|
|
|
|
<junit-jupiter.version>5.5.0</junit-jupiter.version>
|
|
|
|
<jmh.version>1.21</jmh.version>
|
2019-09-14 10:30:41 -04:00
|
|
|
<freemarker.version>2.3.29</freemarker.version>
|
|
|
|
<mustache.version>0.9.6</mustache.version>
|
2019-07-22 23:16:48 -04:00
|
|
|
<!-- util -->
|
|
|
|
<commons-lang3.version>3.5</commons-lang3.version>
|
|
|
|
<commons-lang.version>2.4</commons-lang.version>
|
|
|
|
<java-version>1.8</java-version>
|
2016-06-26 05:55:42 -04:00
|
|
|
|
2017-05-12 14:32:54 -04:00
|
|
|
<!-- maven plugins -->
|
|
|
|
<maven-jibx-plugin.version>1.3.1</maven-jibx-plugin.version>
|
2019-07-22 23:16:48 -04:00
|
|
|
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
|
|
|
|
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
|
2017-05-12 14:32:54 -04:00
|
|
|
</properties>
|
2016-06-08 17:13:45 -04:00
|
|
|
|
|
|
|
</project>
|