1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <modelVersion >4.0.0</modelVersion >
6+ <groupId >com.andrebreves.java</groupId >
7+ <artifactId >java-tuple</artifactId >
8+ <version >1.0.0</version >
9+ <packaging >jar</packaging >
10+
11+ <name >${project.groupId} :${project.artifactId} </name >
12+ <description >Yet another Tuple library for Java 8</description >
13+ <url >https://github.com/andrebreves/java-tuple</url >
14+
15+ <licenses >
16+ <license >
17+ <name >The Apache License, Version 2.0</name >
18+ <url >http://www.apache.org/licenses/LICENSE-2.0.txt</url >
19+ </license >
20+ </licenses >
21+
22+ <developers >
23+ <developer >
24+ <name >Andre Breves</name >
25+ <url >https://github.com/andrebreves</url >
26+ </developer >
27+ </developers >
28+
29+ <scm >
30+ <url >http://github.com/andrebreves/java-tuple/tree/master</url >
31+ </scm >
32+
33+ <properties >
34+ <tuple .degrees>15</tuple .degrees>
35+ <maven .compiler.source>1.8</maven .compiler.source>
36+ <maven .compiler.target>1.8</maven .compiler.target>
37+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
38+ </properties >
39+
40+ <dependencies >
41+ <dependency >
42+ <groupId >junit</groupId >
43+ <artifactId >junit</artifactId >
44+ <version >4.12</version >
45+ <scope >test</scope >
46+ </dependency >
47+ </dependencies >
48+
49+ <build >
50+
51+ <!-- Compile the source code generator -->
52+ <plugins >
53+ <plugin >
54+ <groupId >org.apache.maven.plugins</groupId >
55+ <artifactId >maven-compiler-plugin</artifactId >
56+ <version >3.8.0</version >
57+ <executions >
58+ <execution >
59+ <id >compile-tuple-generator</id >
60+ <phase >generate-sources</phase >
61+ <goals >
62+ <goal >compile</goal >
63+ </goals >
64+ <configuration >
65+ <compileSourceRoots >src/main/tuple-generator</compileSourceRoots >
66+ <outputDirectory >target/tuple-generator</outputDirectory >
67+ </configuration >
68+ </execution >
69+ </executions >
70+ </plugin >
71+
72+ <!-- Generate Tuple source code -->
73+ <plugin >
74+ <groupId >org.codehaus.mojo</groupId >
75+ <artifactId >exec-maven-plugin</artifactId >
76+ <version >1.6.0</version >
77+ <executions >
78+ <execution >
79+ <id >generate-tuple-code</id >
80+ <phase >generate-sources</phase >
81+ <goals >
82+ <goal >java</goal >
83+ </goals >
84+ <configuration >
85+ <additionalClasspathElements >target/tuple-generator</additionalClasspathElements >
86+ <mainClass >com.andrebreves.java.tuple.SourceGenerator</mainClass >
87+ <arguments >code,${tuple.degrees} ,src/main/java</arguments >
88+ <addOutputToClasspath >false</addOutputToClasspath >
89+ </configuration >
90+ </execution >
91+ <execution >
92+ <id >generate-tuple-test</id >
93+ <phase >generate-test-sources</phase >
94+ <goals >
95+ <goal >java</goal >
96+ </goals >
97+ <configuration >
98+ <additionalClasspathElements >target/tuple-generator</additionalClasspathElements >
99+ <mainClass >com.andrebreves.java.tuple.SourceGenerator</mainClass >
100+ <arguments >test,${tuple.degrees} ,src/test/java</arguments >
101+ <addOutputToClasspath >false</addOutputToClasspath >
102+ </configuration >
103+ </execution >
104+ </executions >
105+ </plugin >
106+
107+ <!-- Include generated sources to the clean goal -->
108+ <plugin >
109+ <artifactId >maven-clean-plugin</artifactId >
110+ <version >3.1.0</version >
111+ <configuration >
112+ <filesets >
113+ <fileset >
114+ <directory >src/main/java</directory >
115+ <includes >
116+ <include >**/*</include >
117+ </includes >
118+ </fileset >
119+ <fileset >
120+ <directory >src/test/java</directory >
121+ <includes >
122+ <include >**/*</include >
123+ </includes >
124+ </fileset >
125+ </filesets >
126+ </configuration >
127+ </plugin >
128+
129+ <!-- Generate source jar -->
130+ <plugin >
131+ <groupId >org.apache.maven.plugins</groupId >
132+ <artifactId >maven-source-plugin</artifactId >
133+ <version >3.0.1</version >
134+ <executions >
135+ <execution >
136+ <id >attach-sources</id >
137+ <goals >
138+ <goal >jar</goal >
139+ </goals >
140+ </execution >
141+ </executions >
142+ </plugin >
143+
144+ <!-- Generate javadoc jar -->
145+ <plugin >
146+ <groupId >org.apache.maven.plugins</groupId >
147+ <artifactId >maven-javadoc-plugin</artifactId >
148+ <version >3.0.1</version >
149+ <configuration >
150+ <additionalJOption >-Xdoclint:none</additionalJOption >
151+ </configuration >
152+ <executions >
153+ <execution >
154+ <id >attach-javadocs</id >
155+ <goals >
156+ <goal >jar</goal >
157+ </goals >
158+ </execution >
159+ </executions >
160+ </plugin >
161+
162+ </plugins >
163+ </build >
164+ </project >
0 commit comments