dozer-core
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.github.dozermapper</groupId> <artifactId>dozer-core</artifactId> <version>6.5.2</version> </dependency>
<?xml version="1.0"?> <!-- Copyright 2005-2019 Dozer Project 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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.github.dozermapper</groupId> <artifactId>dozer-plugins-parent</artifactId> <version>6.5.2</version> <relativePath>../plugins-parent</relativePath> </parent> <artifactId>dozer-core</artifactId> <packaging>jar</packaging> <name>Dozer :: Core</name> <properties> <osgi.Bundle-Activator>com.github.dozermapper.core.osgi.Activator</osgi.Bundle-Activator> <!-- <osgi.additional.Import-Package> org.hibernate.proxy;version="[4.2,6)";resolution:=optional, javassist.util.proxy;version="[3.13,4)";resolution:=optional </osgi.additional.Import-Package> --> <osgi.Export-Package>com.github.dozermapper.core.*</osgi.Export-Package> <!-- ServiceLoader Capability --> <osgi.Require-Capability> osgi.serviceloader; filter:="(osgi.serviceloader=com.github.dozermapper.core.DozerModule)";cardinality:=multiple;resolution:=optional, osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)";resolution:=optional </osgi.Require-Capability> <osgi.SPI-Consumer>*</osgi.SPI-Consumer> <!-- NOTE: Needs to be removed in future --> <spotbugs.skip>true</spotbugs.skip> <!-- ISSUE: https://youtrack.jetbrains.com/issue/IDEA-153410 --> <maven-resources/> </properties> <dependencies> <!-- Commons --> <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId> <exclusions> <exclusion> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> </dependency> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <scope>provided</scope> </dependency> <!-- EL --> <dependency> <groupId>javax.el</groupId> <artifactId>javax.el-api</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.glassfish</groupId> <artifactId>javax.el</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <!-- YAML --> <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-yaml</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>woodstox-core-asl</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <!-- Databases --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <scope>provided</scope> <optional>true</optional> </dependency> <!-- Logging --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> </dependency> <!-- Other Runtimes; OSGi--> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> <scope>provided</scope> </dependency> <!-- Constructing objects without using constructors --> <dependency> <groupId>org.objenesis</groupId> <artifactId>objenesis</artifactId> </dependency> <!-- Testing --> <dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> <resource> <directory>${project.build.directory}/generated-resources/schemagen</directory> <includes> <include>bean-mapping.xsd</include> </includes> <targetPath>schema</targetPath> </resource> </resources> <plugins> <!-- Core Java Plugins; alphabetical order --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <excludes> <exclude>**/com/github/dozermapper/core/vo/**</exclude> <exclude>**/net/pmonks/**</exclude> </excludes> </configuration> </plugin> <!-- Governance Plugins; alphabetical order --> <!-- NOTE: Uses less strict config - should be removed in future --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <inherited>false</inherited> <dependencies> <dependency> <groupId>com.github.dozermapper</groupId> <artifactId>dozer-building-tools</artifactId> <version>${building-tools.version}</version> <scope>compile</scope> </dependency> </dependencies> <executions> <execution> <id>validate</id> <phase>validate</phase> <configuration combine.self="override"> <configLocation>loose-checkstyle.xml</configLocation> <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation> <consoleOutput>true</consoleOutput> <failOnViolation>true</failOnViolation> <failsOnError>true</failsOnError> <encoding>UTF-8</encoding> <sourceDirectory>${basedir}/src</sourceDirectory> </configuration> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <!-- Testing Plugins; alphabetical order --> <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-xjc-plugin</artifactId> <configuration> <extensions> <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:${cxf-xjc-plugin.version}</extension> </extensions> </configuration> <executions> <execution> <id>generate-sources</id> <phase>generate-test-sources</phase> <goals> <goal>xsdtojava-tests</goal> </goals> <configuration> <xsdOptions> <xsdOption> <xsd>src/test/resources/jaxb/Employee.xsd</xsd> </xsdOption> </xsdOptions> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>jdk8-build</id> <activation> <jdk>1.8</jdk> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <executions> <execution> <id>schemagen</id> <phase>generate-resources</phase> <goals> <goal>schemagen</goal> </goals> <configuration> <workDirectory>${project.build.directory}/generated-resources/schemagen</workDirectory> <includes> com/github/dozermapper/core/builder/model/jaxb/** </includes> <transformSchemas> <transformSchema> <uri>http://dozermapper.github.io/schema/bean-mapping</uri> <toFile>bean-mapping.xsd</toFile> </transformSchema> </transformSchemas> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>jdk9-and-above-build</id> <activation> <jdk>[9,)</jdk> </activation> <properties> <!-- Remove once servicemix jaxb-2.3 is released: https://issues.apache.org/jira/browse/SM-3854 --> <osgi.additional.Import-Package> javax.xml.bind;version="[2.2,3)", javax.xml.bind.annotation;version="[2.2,3)" </osgi.additional.Import-Package> </properties> <dependencies> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <executions> <execution> <id>schemagen</id> <phase>generate-resources</phase> <goals> <goal>schemagen</goal> </goals> <configuration> <workDirectory>${project.build.directory}/generated-resources/schemagen</workDirectory> <includes> com/github/dozermapper/core/builder/model/jaxb/** </includes> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.glassfish.jaxb</groupId> <artifactId>jaxb-runtime</artifactId> <version>2.4.0-b180830.0438</version> </dependency> </dependencies> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>copy-schema</id> <phase>generate-resources</phase> <configuration> <target> <echo>Copying XSD schema to be included in JAR</echo> <replace file="${project.build.directory}/generated-resources/schemagen/schema1.xsd" token="xmlns:xs="http://www.w3.org/2001/XMLSchema"" value="xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema""/> <move file="${project.build.directory}/generated-resources/schemagen/schema1.xsd" tofile="${project.build.directory}/generated-resources/schemagen/bean-mapping.xsd"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>