-
Notifications
You must be signed in to change notification settings - Fork 1
/
pom.xml
232 lines (216 loc) · 10.7 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" encoding="UTF-8"?>
<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>com.tinesoft</groupId>
<artifactId>gwt-pixlr-library</artifactId>
<version>1.0.1-SNAPSHOT</version>
</parent>
<artifactId>gwt-pixlr-all</artifactId>
<packaging>jar</packaging>
<!-- ============== -->
<!-- Informations -->
<!-- ============== -->
<name>gwt-pixlr-all</name>
<description>Client-side and Server-side components of the gwt-pixlr-library (compound jar).</description>
<!-- ============ -->
<!-- Properties -->
<!-- ============ -->
<properties>
<maven-assembly-plugin.version>2.2</maven-assembly-plugin.version>
<maven-antrun-plugin.version>1.6</maven-antrun-plugin.version>
</properties>
<!-- ============== -->
<!-- Dependencies -->
<!-- ============== -->
<!-- The compound jar consist of the following dependencies -->
<dependencies>
<!--gwt-pixlr client-Side dependency-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gwt-pixlr-client</artifactId>
<scope>compile</scope>
<version>${project.version}</version>
</dependency>
<!--gwt-pixlr server-Side dependency-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gwt-pixlr-server</artifactId>
<scope>compile</scope>
<version>${project.version}</version>
</dependency>
</dependencies>
<!-- ==================== -->
<!-- Default Operations -->
<!-- ==================== -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<executions>
<!-- Build compound jar -->
<execution>
<id>all-binaries</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/assemble/all-binaries.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<!-- =========== -->
<!-- Reporting -->
<!-- =========== -->
<reporting>
</reporting>
<!-- ========== -->
<!-- Profiles -->
<!-- ========== -->
<profiles>
<!-- Use 'prod' profile to attach to the build the
compound sources jar and the compound javadoc jar. -->
<profile>
<id>prod</id>
<properties>
<unpackedDependenciesDir>${project.build.directory}/exploded-modules</unpackedDependenciesDir>
<unpackedJavadocDir>${project.build.directory}/apidocs</unpackedJavadocDir>
<javadocArtifactFile>${project.build.directory}/${project.build.finalName}-javadoc.jar</javadocArtifactFile>
</properties>
<!-- The sources for each module -->
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gwt-pixlr-client</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>gwt-pixlr-server</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven-assembly-plugin.version}</version>
<executions>
<!-- Build all-sources jar -->
<execution>
<id>all-sources</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/assemble/all-sources.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<!-- Unpack the sources into ${explodedModulesDir}. This is the
first step to create the compound javadoc. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>unpack-dependencies</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<!--<classifier>sources</classifier>-->
<includeClassifiers>sources</includeClassifiers>
<excludeTransitive>true</excludeTransitive>
<excludeArtifactIds>junit</excludeArtifactIds>
<outputDirectory>${unpackedDependenciesDir}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Generate the compound javadoc with the help of ant.
- javadoc target generates the javadoc
- jar target jars the generated javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<!-- Generate the javadoc -->
<execution>
<id>generate-all-javadoc</id>
<phase>compile</phase>
<configuration>
<target>
<javadoc packagenames="com.tinesoft.*" maxmemory="256m" sourcepath="${unpackedDependenciesDir}" defaultexcludes="yes" destdir="${unpackedJavadocDir}" version="true" use="true" windowtitle="${project.name} ${project.version} API.">
<doctitle>
<![CDATA[<h1>${project.name} ${project.version} API</h1>]]>
</doctitle>
<bottom>
<![CDATA[<i>Copyright © ${project.inceptionYear}
<a href="${project.organization.url}">${project.organization.name}</a>.
All Rights Reserved.</i>]]>
</bottom>
<classpath refid="maven.compile.classpath" />
<link href="http://download.oracle.com/javase/6/docs/api/" />
<link href="http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/" />
<link href="http://google-gin.googlecode.com/svn/trunk/javadoc/" />
<link href="http://google-guice.googlecode.com/svn/trunk/javadoc/" />
<link href="http://aopalliance.sourceforge.net/doc/" />
</javadoc>
<jar destfile="${javadocArtifactFile}" basedir="${unpackedJavadocDir}" includes="**/**" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Attach the compound javadoc jar to be installed and deployed -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${javadocArtifactFile}</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>