Extract manifest element creation into its own class.
[Sone.git] / pom.xml
1 <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">
2         <modelVersion>4.0.0</modelVersion>
3         <groupId>net.pterodactylus</groupId>
4         <artifactId>sone</artifactId>
5         <version>0.8.9</version>
6         <dependencies>
7                 <dependency>
8                         <groupId>net.pterodactylus</groupId>
9                         <artifactId>utils</artifactId>
10                         <version>${version.utils}</version>
11                 </dependency>
12                 <dependency>
13                         <groupId>junit</groupId>
14                         <artifactId>junit</artifactId>
15                         <version>4.11</version>
16                         <scope>test</scope>
17                 </dependency>
18                 <dependency>
19                         <groupId>org.mockito</groupId>
20                         <artifactId>mockito-all</artifactId>
21                         <version>1.9.5</version>
22                         <scope>test</scope>
23                 </dependency>
24                 <dependency>
25                         <groupId>org.hamcrest</groupId>
26                         <artifactId>hamcrest-all</artifactId>
27                         <version>1.3</version>
28                 </dependency>
29                 <dependency>
30                         <groupId>org.freenetproject</groupId>
31                         <artifactId>fred</artifactId>
32                         <version>0.7.5.1405</version>
33                         <scope>provided</scope>
34                 </dependency>
35                 <dependency>
36                         <groupId>org.freenetproject</groupId>
37                         <artifactId>freenet-ext</artifactId>
38                         <version>26</version>
39                         <scope>provided</scope>
40                 </dependency>
41                 <dependency>
42                         <groupId>com.google.inject</groupId>
43                         <artifactId>guice</artifactId>
44                         <version>3.0</version>
45                 </dependency>
46                 <dependency>
47                         <groupId>com.google.guava</groupId>
48                         <artifactId>guava</artifactId>
49                         <version>14.0.1</version>
50                 </dependency>
51                 <dependency>
52                         <groupId>commons-lang</groupId>
53                         <artifactId>commons-lang</artifactId>
54                         <version>2.6</version>
55                 </dependency>
56                 <dependency>
57                         <groupId>com.fasterxml.jackson.core</groupId>
58                         <artifactId>jackson-databind</artifactId>
59                         <version>2.1.2</version>
60                 </dependency>
61                 <dependency>
62                         <groupId>com.google.code.findbugs</groupId>
63                         <artifactId>jsr305</artifactId>
64                         <version>2.0.1</version>
65                 </dependency>
66         </dependencies>
67         <repositories>
68                 <repository>
69                         <id>pterodactylus</id>
70                         <url>http://maven.pterodactylus.net/</url>
71                 </repository>
72         </repositories>
73         <properties>
74                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
75                 <version.utils>0.12.4</version.utils>
76                 <findbugs.timeout>600000</findbugs.timeout>
77         </properties>
78         <build>
79                 <plugins>
80                         <plugin>
81                                 <groupId>org.codehaus.mojo</groupId>
82                                 <artifactId>findbugs-maven-plugin</artifactId>
83                                 <version>2.5.2</version>
84                                 <configuration>
85                                         <timeout>${findbugs.timeout}</timeout>
86                                 </configuration>
87                         </plugin>
88                         <plugin>
89                                 <groupId>org.apache.maven.plugins</groupId>
90                                 <artifactId>maven-compiler-plugin</artifactId>
91                                 <version>2.0.2</version>
92                                 <configuration>
93                                         <source>1.6</source>
94                                         <target>1.6</target>
95                                         <encoding>UTF-8</encoding>
96                                 </configuration>
97                         </plugin>
98                         <plugin>
99                                 <groupId>org.apache.maven.plugins</groupId>
100                                 <artifactId>maven-jar-plugin</artifactId>
101                                 <version>2.2</version>
102                                 <configuration>
103                                         <archive>
104                                                 <manifestEntries>
105                                                         <Plugin-Main-Class>net.pterodactylus.sone.main.SonePlugin</Plugin-Main-Class>
106                                                 </manifestEntries>
107                                         </archive>
108                                 </configuration>
109                         </plugin>
110                         <plugin>
111                                 <groupId>org.apache.maven.plugins</groupId>
112                                 <artifactId>maven-assembly-plugin</artifactId>
113                                 <version>2.2-beta-5</version>
114                                 <configuration>
115                                         <descriptorRefs>
116                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
117                                         </descriptorRefs>
118                                         <archiverConfig>
119                                                 <duplicateBehavior>skip</duplicateBehavior>
120                                         </archiverConfig>
121                                         <archive>
122                                                 <manifestEntries>
123                                                         <Plugin-Main-Class>net.pterodactylus.sone.main.SonePlugin</Plugin-Main-Class>
124                                                 </manifestEntries>
125                                         </archive>
126                                 </configuration>
127                                 <executions>
128                                         <execution>
129                                                 <id>make-assembly</id>
130                                                 <phase>package</phase>
131                                                 <goals>
132                                                         <goal>single</goal>
133                                                 </goals>
134                                         </execution>
135                                 </executions>
136                         </plugin>
137                         <plugin>
138                                 <groupId>org.apache.maven.plugins</groupId>
139                                 <artifactId>maven-javadoc-plugin</artifactId>
140                                 <version>2.7</version>
141                                 <configuration>
142                                         <detectLinks>true</detectLinks>
143                                         <detectJavaApiLink>true</detectJavaApiLink>
144                                         <show>private</show>
145                                         <footer>© 2010–2013 David ‘Bombe’ Roden</footer>
146                                 </configuration>
147                         </plugin>
148                         <plugin>
149                                 <groupId>org.jacoco</groupId>
150                                 <artifactId>jacoco-maven-plugin</artifactId>
151                                 <version>0.7.1.201405082137</version>
152                                 <executions>
153                                         <execution>
154                                                 <id>default-prepare-agent</id>
155                                                 <goals>
156                                                         <goal>prepare-agent</goal>
157                                                 </goals>
158                                         </execution>
159                                         <execution>
160                                                 <id>default-report</id>
161                                                 <phase>prepare-package</phase>
162                                                 <goals>
163                                                         <goal>report</goal>
164                                                 </goals>
165                                         </execution>
166                                         <execution>
167                                                 <id>default-check</id>
168                                                 <goals>
169                                                         <goal>check</goal>
170                                                 </goals>
171                                                 <configuration>
172                                                         <rules>
173                                                                 <!--  implmentation is needed only for Maven 2  -->
174                                                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
175                                                                         <element>BUNDLE</element>
176                                                                         <limits>
177                                                                                 <!--  implmentation is needed only for Maven 2  -->
178                                                                                 <limit implementation="org.jacoco.report.check.Limit">
179                                                                                         <counter>COMPLEXITY</counter>
180                                                                                         <value>COVEREDRATIO</value>
181                                                                                         <minimum>0.60</minimum>
182                                                                                 </limit>
183                                                                         </limits>
184                                                                 </rule>
185                                                         </rules>
186                                                 </configuration>
187                                         </execution>
188                                 </executions>
189                         </plugin>
190                 </plugins>
191         </build>
192 </project>