Created
June 30, 2014 15:04
-
-
Save sjaakd/78336d18b19dc05cde89 to your computer and use it in GitHub Desktop.
build warnings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>org.tst</groupId> | |
<artifactId>warning_ex</artifactId> | |
<version>1.0</version> | |
</parent> | |
<artifactId>dto</artifactId> | |
<name>warning problem - dto</name> | |
<dependencies> | |
<dependency> | |
<groupId>javax.validation</groupId> | |
<artifactId>validation-api</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-validator</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>org.tst</groupId> | |
<artifactId>warning_ex</artifactId> | |
<version>1.0</version> | |
</parent> | |
<artifactId>mapper</artifactId> | |
<name>warning problem - mapper</name> | |
<dependencies> | |
<dependency> | |
<groupId>org.tst</groupId> | |
<artifactId>source</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.tst</groupId> | |
<artifactId>dto</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.mapstruct</groupId> | |
<artifactId>mapstruct</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.bsc.maven</groupId> | |
<artifactId>maven-processor-plugin</artifactId> | |
<version>2.2.4</version> | |
<configuration> | |
<defaultOutputDirectory>${project.build.directory}/generated-sources</defaultOutputDirectory> | |
<processors> | |
<processor>org.mapstruct.ap.MappingProcessor</processor> | |
</processors> | |
<options> | |
<unmappedTargetPolicy>WARN</unmappedTargetPolicy> | |
</options> | |
</configuration> | |
<executions> | |
<execution> | |
<id>process</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>process</goal> | |
</goals> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.mapstruct</groupId> | |
<artifactId>mapstruct-processor</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<groupId>org.tst</groupId> | |
<artifactId>warning_ex</artifactId> | |
<version>1.0</version> | |
<packaging>pom</packaging> | |
<name>warning problem</name> | |
<modules> | |
<module>dto</module> | |
<module>source</module> | |
<module>mapper</module> | |
</modules> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.tst</groupId> | |
<artifactId>source</artifactId> | |
<version>${project.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.tst</groupId> | |
<artifactId>dto</artifactId> | |
<version>${project.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.validation</groupId> | |
<artifactId>validation-api</artifactId> | |
<version>1.0.0.GA</version> | |
</dependency> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-validator</artifactId> | |
<version>5.1.1.Final</version> | |
</dependency> | |
<dependency> | |
<groupId>org.mapstruct</groupId> | |
<artifactId>mapstruct</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>org.tst</groupId> | |
<artifactId>warning_ex</artifactId> | |
<version>1.0</version> | |
</parent> | |
<artifactId>source</artifactId> | |
<name>warning problem - source</name> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package org.tst; | |
import org.mapstruct.Mapper; | |
import src.test.Test; | |
import src.test.TestDto; | |
/** | |
* | |
* @author Sjaak Derksen | |
*/ | |
@Mapper | |
public interface SourceToTargetMapper { | |
Test map(TestDto source); | |
TestDto map(Test source); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package src.test; | |
/** | |
* | |
* @author Sjaak Derksen | |
*/ | |
public class Test { | |
private Long testLong; | |
public Long getTestLong() { | |
return testLong; | |
} | |
public void setTestLong( Long testLong ) { | |
this.testLong = testLong; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package src.test; | |
import javax.validation.constraints.NotNull; | |
import org.hibernate.validator.constraints.Range; | |
/** | |
* | |
* @author Sjaak Derksen | |
*/ | |
public class TestDto { | |
@NotNull | |
@Range( min=5, max=10 ) | |
private Long testLong; | |
public Long getTestLong() { | |
return testLong; | |
} | |
public void setTestLong( Long testLong ) { | |
this.testLong = testLong; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment