mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
308 lines
12 KiB
XML
308 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
Copyright 2012-2014 Gunnar Morling (http://www.gunnarmorling.de/)
|
|
and/or other contributors as indicated by the @authors tag. See the
|
|
copyright.txt file in the distribution for a full listing of all
|
|
contributors.
|
|
|
|
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 xmlns="http://maven.apache.org/POM/4.0.0" 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-parent</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<relativePath>../parent/pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>mapstruct-integrationtest</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>MapStruct Integration Test</name>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.easytesting</groupId>
|
|
<artifactId>fest-assert</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- CDI, Weld, Arquillian -->
|
|
<dependency>
|
|
<groupId>javax.enterprise</groupId>
|
|
<artifactId>cdi-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.inject</groupId>
|
|
<artifactId>javax.inject</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.junit</groupId>
|
|
<artifactId>arquillian-junit-container</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.container</groupId>
|
|
<artifactId>arquillian-weld-se-embedded-1.1</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.container</groupId>
|
|
<artifactId>arquillian-container-test-api</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.junit</groupId>
|
|
<artifactId>arquillian-junit-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.shrinkwrap</groupId>
|
|
<artifactId>shrinkwrap-api</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.weld</groupId>
|
|
<artifactId>weld-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.glassfish</groupId>
|
|
<artifactId>javax.el</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Spring -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-beans</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<!--
|
|
As a workaround to a bug in JDK8, where a security error is thrown for "xjc.xsd"
|
|
being loaded with protocol 'file', even though we specified '-disableXmlSecurity',
|
|
we set a system property to suppress the error
|
|
-->
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>properties-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>set-system-properties</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<properties>
|
|
<property>
|
|
<name>javax.xml.accessExternalSchema</name>
|
|
<value>file</value>
|
|
</property>
|
|
</properties>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jvnet.jaxb2.maven2</groupId>
|
|
<artifactId>maven-jaxb2-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<schemaDirectory>${project.build.resources[0].directory}/schema/</schemaDirectory>
|
|
<schemaIncludes>
|
|
<include>**/test1.xsd</include>
|
|
</schemaIncludes>
|
|
<bindingDirectory>${project.build.resources[0].directory}/binding</bindingDirectory>
|
|
<bindingIncludes>
|
|
<include>**/binding.xjb</include>
|
|
</bindingIncludes>
|
|
<extension>true</extension>
|
|
<verbose>true</verbose>
|
|
<specVersion>2.1</specVersion>
|
|
<args>
|
|
<arg>-disableXmlSecurity</arg>
|
|
</args>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.bsc.maven</groupId>
|
|
<artifactId>maven-processor-plugin</artifactId>
|
|
<configuration>
|
|
<defaultOutputDirectory>${project.build.directory}/generated-sources/mapstruct</defaultOutputDirectory>
|
|
<processors>
|
|
<processor>org.mapstruct.ap.MappingProcessor</processor>
|
|
</processors>
|
|
<options>
|
|
<!-- suppressGeneratorTimestamp=false is the default -->
|
|
<suppressGeneratorTimestamp>false</suppressGeneratorTimestamp>
|
|
</options>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>process</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>process</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>check-style</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>checkstyle</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>jdk-lt-8</id>
|
|
<activation>
|
|
<jdk>[,1.8)</jdk>
|
|
</activation>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>mapstruct</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>default-compile</id>
|
|
<phase>compile</phase>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/java8/</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>default-testCompile</id>
|
|
<phase>test-compile</phase>
|
|
<configuration>
|
|
<testExcludes>
|
|
<exclude>**/java8/</exclude>
|
|
</testExcludes>
|
|
</configuration>
|
|
<goals>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.bsc.maven</groupId>
|
|
<artifactId>maven-processor-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>process</id>
|
|
<phase>generate-sources</phase>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>**/java8/</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<goals>
|
|
<goal>process</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>jdk-geq-8</id>
|
|
<activation>
|
|
<jdk>1.8</jdk>
|
|
</activation>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>mapstruct-jdk8</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>1.8</source>
|
|
<target>1.8</target>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|