Skip to content

Commit 8fdc944

Browse files
author
mgeipel
committed
tuned pom for maven central
* added profile for maven central * added javadoc plugin * added source plugin * extended developers desc. * fixed main class in jar
1 parent 0c8a998 commit 8fdc944

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

pom.xml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,30 @@
1414
</licenses>
1515
<developers>
1616
<developer>
17+
<id>mgeipel</id>
1718
<name>Markus M. Geipel</name>
1819
<email>[email protected]</email>
20+
<url>https://github.com/mgeipel</url>
21+
<organization>Deutsche Nationalbibliothek</organization>
22+
<organizationUrl>http://www.dnb.de</organizationUrl>
23+
<roles>
24+
<role>architect</role>
25+
<role>developer</role>
26+
</roles>
27+
<timezone>+1</timezone>
1928
</developer>
2029
<developer>
30+
<id>cboehme</id>
2131
<name>Christoph Böhme</name>
2232
<email>[email protected]</email>
33+
<url>https://github.com/cboehme</url>
34+
<organization>Deutsche Nationalbibliothek</organization>
35+
<organizationUrl>http://www.dnb.de</organizationUrl>
36+
<roles>
37+
<role>architect</role>
38+
<role>developer</role>
39+
</roles>
40+
<timezone>+1</timezone>
2341
</developer>
2442
</developers>
2543

@@ -61,6 +79,25 @@
6179
</configuration>
6280
</plugin>
6381

82+
<plugin>
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-jar-plugin</artifactId>
85+
<version>2.3.1</version>
86+
<configuration>
87+
<archive>
88+
<manifest>
89+
<addClasspath>true</addClasspath>
90+
<!-- Configures the classpath prefix. This configuration option is
91+
used to specify that all needed libraries are found under lib/ directory. -->
92+
<classpathPrefix>lib/</classpathPrefix>
93+
<!-- Specifies the main class of the application -->
94+
<mainClass>org.culturegraph.mf.Flux</mainClass>
95+
</manifest>
96+
</archive>
97+
</configuration>
98+
</plugin>
99+
100+
64101
<plugin>
65102
<artifactId>maven-assembly-plugin</artifactId>
66103
<version>2.2.1</version>
@@ -158,6 +195,59 @@
158195

159196

160197
<profiles>
198+
<profile>
199+
<id>maven-central</id>
200+
<build>
201+
<plugins>
202+
<plugin>
203+
<groupId>org.apache.maven.plugins</groupId>
204+
<artifactId>maven-javadoc-plugin</artifactId>
205+
<version>2.8</version>
206+
<executions>
207+
<execution>
208+
<id>attach-javadocs</id>
209+
<phase>package</phase>
210+
<goals>
211+
<goal>jar</goal>
212+
</goals>
213+
<configuration>
214+
<show>public</show>
215+
<nohelp>true</nohelp>
216+
</configuration>
217+
</execution>
218+
</executions>
219+
</plugin>
220+
<plugin>
221+
<groupId>org.apache.maven.plugins</groupId>
222+
<artifactId>maven-source-plugin</artifactId>
223+
<version>2.1.2</version>
224+
<executions>
225+
<execution>
226+
<id>attach-sources</id>
227+
<phase>verify</phase>
228+
<goals>
229+
<goal>jar-no-fork</goal>
230+
</goals>
231+
</execution>
232+
</executions>
233+
</plugin>
234+
<plugin>
235+
<groupId>org.apache.maven.plugins</groupId>
236+
<artifactId>maven-gpg-plugin</artifactId>
237+
<version>1.4</version>
238+
<executions>
239+
<execution>
240+
<id>sign-artifacts</id>
241+
<phase>verify</phase>
242+
<goals>
243+
<goal>sign</goal>
244+
</goals>
245+
</execution>
246+
</executions>
247+
</plugin>
248+
</plugins>
249+
</build>
250+
</profile>
161251
<profile>
162252
<id>hudson</id>
163253
<activation>

0 commit comments

Comments
 (0)