File: pom.xml

package info (click to toggle)
libwikidata-toolkit-java 0.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,996 kB
  • sloc: java: 38,944; xml: 1,662; sql: 52; makefile: 2
file content (173 lines) | stat: -rw-r--r-- 5,601 bytes parent folder | download
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
<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.wikidata.wdtk</groupId>
		<artifactId>wdtk-parent</artifactId>
		<version>0.17.0</version>
	</parent>

	<artifactId>wdtk-distribution</artifactId>
	<!-- "pom" would be correct, but "jar" seems to be needed for shade which otherwise creates jar files with a pom extension -->
	<packaging>jar</packaging>

	<name>Wikidata Toolkit Distribution</name>
	<description>Module to package Wikidata Toolkit for releases</description>

	<dependencies>
		<!-- For binary dependencies, we only need the main functional packages; 
			others are included transitively -->
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>wdtk-dumpfiles</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>wdtk-rdf</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>wdtk-wikibaseapi</artifactId>
			<version>${project.version}</version>
		</dependency>
	</dependencies>

	<profiles>
		<profile>
			<id>library</id>
			<build>
				<plugins>
			      <plugin>
			        <groupId>org.apache.maven.plugins</groupId>
			        <artifactId>maven-shade-plugin</artifactId>
			        <version>3.6.0</version>
			        <executions>
			          <execution>
			          	<id>wdtk-library</id>
			            <phase>package</phase>
			            <goals>
			              <goal>shade</goal>
			            </goals>
						<configuration>
							<createDependencyReducedPom>true</createDependencyReducedPom>
							<shadedGroupFilter>org.wikidata.wdtk</shadedGroupFilter>
							<finalName>wikidata-toolkit-${project.version}</finalName>
							<minimizeJar>false</minimizeJar>
						</configuration>
			          </execution>
			          <execution>
			          	<id>wdtk-library-deps</id>
			            <phase>package</phase>
			            <goals>
			              <goal>shade</goal>
			            </goals>
						<configuration>
							<createDependencyReducedPom>false</createDependencyReducedPom>
							<finalName>wikidata-toolkit-with-dependencies-${project.version}</finalName>
							<!-- Minimization just does not work; removes many relevant classes -->
							<minimizeJar>false</minimizeJar>
							<transformers>
								<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
			            	</transformers>
						</configuration>
			          </execution>
			        </executions>
			      </plugin>
			    </plugins>
			  </build>
		</profile>
		<profile>
			<id>sign</id>
			<dependencies>
				<!-- For source dependencies, all sources need to be listed (no transitive 
					depencency) -->
				<dependency>
					<groupId>${project.groupId}</groupId>
					<artifactId>wdtk-datamodel</artifactId>
					<version>${project.version}</version>
					<classifier>sources</classifier>
				</dependency>
				<dependency>
					<groupId>${project.groupId}</groupId>
					<artifactId>wdtk-dumpfiles</artifactId>
					<version>${project.version}</version>
					<classifier>sources</classifier>
				</dependency>
				<dependency>
					<groupId>${project.groupId}</groupId>
					<artifactId>wdtk-rdf</artifactId>
					<version>${project.version}</version>
					<classifier>sources</classifier>
				</dependency>
				<dependency>
					<groupId>${project.groupId}</groupId>
					<artifactId>wdtk-storage</artifactId>
					<version>${project.version}</version>
					<classifier>sources</classifier>
				</dependency>
				<dependency>
					<groupId>${project.groupId}</groupId>
					<artifactId>wdtk-util</artifactId>
					<version>${project.version}</version>
					<classifier>sources</classifier>
				</dependency>
				<dependency>
					<groupId>${project.groupId}</groupId>
					<artifactId>wdtk-wikibaseapi</artifactId>
					<version>${project.version}</version>
					<classifier>sources</classifier>
				</dependency>
				<!-- For javadocs, we only use the aggregate javadoc from parent -->
				<dependency>
					<groupId>${project.groupId}</groupId>
					<artifactId>wdtk-parent</artifactId>
					<version>${project.version}</version>
					<classifier>javadoc</classifier>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-assembly-plugin</artifactId>
						<version>3.7.1</version>
						<executions>
							<execution>
								<id>create-source-jar</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<finalName>wikidata-toolkit-${project.version}</finalName>
									<descriptors>
										<descriptor>${basedir}/src/main/assembly/sources.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
							<execution>
								<id>create-javadoc-jar</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<finalName>wikidata-toolkit-${project.version}</finalName>
									<descriptors>
										<descriptor>${basedir}/src/main/assembly/javadoc.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

</project>