|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
2 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 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"> |
3 | 2 | <modelVersion>4.0.0</modelVersion> |
4 | 3 |
|
5 | | - <groupId>org.jboss.test</groupId> |
| 4 | + <groupId>com.github.kwart.syslog</groupId> |
6 | 5 | <artifactId>simple-syslog-server</artifactId> |
7 | | - <version>1.0-SNAPSHOT</version> |
| 6 | + <version>1.1.0-SNAPSHOT</version> |
8 | 7 | <packaging>jar</packaging> |
9 | 8 |
|
10 | 9 | <name>${project.artifactId}</name> |
11 | | - <url>https://github.com/kwart/simple-syslog-server</url> |
| 10 | + <url>https://github.com/intoolswetrust/simple-syslog-server</url> |
12 | 11 |
|
13 | 12 | <properties> |
14 | 13 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 14 | + <version.junit>4.13.2</version.junit> |
| 15 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 16 | + <maven.compiler.target>${maven.compiler.source}</maven.compiler.target> |
| 17 | + <exec.mainClass>com.github.kwart.syslog.Server</exec.mainClass> |
15 | 18 | </properties> |
16 | 19 |
|
17 | 20 | <build> |
18 | 21 | <finalName>${project.artifactId}</finalName> |
19 | | - <resources> |
20 | | - <resource> |
21 | | - <directory>src/main/java</directory> |
22 | | - <includes> |
23 | | - <include>**/*.java</include> |
24 | | - </includes> |
25 | | - </resource> |
26 | | - <resource> |
27 | | - <directory>src/main/resources</directory> |
28 | | - </resource> |
29 | | - </resources> |
30 | 22 | <plugins> |
31 | | - <plugin> |
32 | | - <groupId>org.apache.maven.plugins</groupId> |
33 | | - <artifactId>maven-compiler-plugin</artifactId> |
34 | | - <version>3.1</version> |
35 | | - <configuration> |
36 | | - <source>1.6</source> |
37 | | - <target>1.6</target> |
38 | | - </configuration> |
39 | | - </plugin> |
40 | | - <plugin> |
41 | | - <groupId>org.codehaus.mojo</groupId> |
42 | | - <artifactId>exec-maven-plugin</artifactId> |
43 | | - <version>1.2.1</version> |
44 | | - <configuration> |
45 | | - <mainClass>org.jboss.test.App</mainClass> |
46 | | - </configuration> |
47 | | - </plugin> |
48 | 23 | <plugin> |
49 | 24 | <groupId>org.apache.maven.plugins</groupId> |
50 | 25 | <artifactId>maven-shade-plugin</artifactId> |
51 | | - <version>2.2</version> |
| 26 | + <version>3.2.4</version> |
52 | 27 | <executions> |
53 | 28 | <execution> |
54 | 29 | <phase>package</phase> |
55 | 30 | <goals> |
56 | 31 | <goal>shade</goal> |
57 | 32 | </goals> |
58 | 33 | <configuration> |
| 34 | + <filters> |
| 35 | + <filter> |
| 36 | + <artifact>*:*</artifact> |
| 37 | + <excludes> |
| 38 | + <exclude>META-INF/*.SF</exclude> |
| 39 | + <exclude>META-INF/*.DSA</exclude> |
| 40 | + <exclude>META-INF/*.RSA</exclude> |
| 41 | + </excludes> |
| 42 | + </filter> |
| 43 | + </filters> |
59 | 44 | <transformers> |
60 | | - <transformer |
61 | | - implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
62 | | - <mainClass>org.jboss.test.syslog.Server</mainClass> |
| 45 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 46 | + <mainClass>${exec.mainClass}</mainClass> |
63 | 47 | </transformer> |
64 | 48 | </transformers> |
65 | | - <createDependencyReducedPom>false</createDependencyReducedPom> |
66 | 49 | </configuration> |
67 | 50 | </execution> |
68 | 51 | </executions> |
69 | 52 | </plugin> |
| 53 | + <plugin> |
| 54 | + <groupId>org.codehaus.mojo</groupId> |
| 55 | + <artifactId>exec-maven-plugin</artifactId> |
| 56 | + <version>3.0.0</version> |
| 57 | + </plugin> |
| 58 | + <plugin> |
| 59 | + <groupId>org.apache.maven.plugins</groupId> |
| 60 | + <artifactId>maven-compiler-plugin</artifactId> |
| 61 | + <version>3.8.1</version> |
| 62 | + </plugin> |
70 | 63 | </plugins> |
71 | 64 | </build> |
72 | 65 |
|
|
83 | 76 | </dependency> |
84 | 77 |
|
85 | 78 | <dependency> |
86 | | - <!-- http://maven.apache.org/plugins/maven-surefire-plugin/examples/junit.html --> |
87 | 79 | <groupId>junit</groupId> |
88 | 80 | <artifactId>junit</artifactId> |
89 | | - <version>4.8.1</version> |
| 81 | + <version>${version.junit}</version> |
90 | 82 | <scope>test</scope> |
91 | 83 | </dependency> |
92 | 84 | </dependencies> |
| 85 | + |
| 86 | + <licenses> |
| 87 | + <license> |
| 88 | + <name>The Apache License, Version 2.0</name> |
| 89 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 90 | + </license> |
| 91 | + </licenses> |
| 92 | + |
| 93 | + <developers> |
| 94 | + <developer> |
| 95 | + <id>kwart</id> |
| 96 | + <name>Josef Cacek</name> |
| 97 | + |
| 98 | + </developer> |
| 99 | + </developers> |
| 100 | + |
| 101 | + <scm> |
| 102 | + <connection>scm:git:git://github.com/intoolswetrust/ldap-server.git</connection> |
| 103 | + < developerConnection>scm:git: [email protected]:intoolswetrust/ldap-server.git</ developerConnection> |
| 104 | + <url>http://github.com/intoolswetrust/ldap-server/</url> |
| 105 | + <tag>HEAD</tag> |
| 106 | + </scm> |
| 107 | + |
| 108 | + <distributionManagement> |
| 109 | + <snapshotRepository> |
| 110 | + <id>ossrh</id> |
| 111 | + <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> |
| 112 | + </snapshotRepository> |
| 113 | + <repository> |
| 114 | + <id>ossrh</id> |
| 115 | + <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 116 | + </repository> |
| 117 | + </distributionManagement> |
| 118 | + |
| 119 | + <repositories> |
| 120 | + <repository> |
| 121 | + <id>snapshot-repository</id> |
| 122 | + <name>Maven2 Snapshot Repository</name> |
| 123 | + <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
| 124 | + <releases> |
| 125 | + <enabled>false</enabled> |
| 126 | + </releases> |
| 127 | + <snapshots> |
| 128 | + <enabled>true</enabled> |
| 129 | + </snapshots> |
| 130 | + </repository> |
| 131 | + </repositories> |
| 132 | + |
| 133 | + <profiles> |
| 134 | + <profile> |
| 135 | + <id>release</id> |
| 136 | + <build> |
| 137 | + <plugins> |
| 138 | + <plugin> |
| 139 | + <groupId>org.sonatype.plugins</groupId> |
| 140 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 141 | + <version>1.6.8</version> |
| 142 | + <extensions>true</extensions> |
| 143 | + <configuration> |
| 144 | + <serverId>ossrh</serverId> |
| 145 | + <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
| 146 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 147 | + </configuration> |
| 148 | + </plugin> |
| 149 | + <plugin> |
| 150 | + <groupId>org.apache.maven.plugins</groupId> |
| 151 | + <artifactId>maven-source-plugin</artifactId> |
| 152 | + <version>3.2.1</version> |
| 153 | + <executions> |
| 154 | + <execution> |
| 155 | + <goals> |
| 156 | + <goal>jar-no-fork</goal> |
| 157 | + </goals> |
| 158 | + </execution> |
| 159 | + </executions> |
| 160 | + </plugin> |
| 161 | + <plugin> |
| 162 | + <groupId>org.apache.maven.plugins</groupId> |
| 163 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 164 | + <version>3.3.0</version> |
| 165 | + <executions> |
| 166 | + <execution> |
| 167 | + <goals> |
| 168 | + <goal>jar</goal> |
| 169 | + </goals> |
| 170 | + </execution> |
| 171 | + </executions> |
| 172 | + <configuration> |
| 173 | + <doclint>none</doclint> |
| 174 | + </configuration> |
| 175 | + </plugin> |
| 176 | + <plugin> |
| 177 | + <groupId>org.apache.maven.plugins</groupId> |
| 178 | + <artifactId>maven-gpg-plugin</artifactId> |
| 179 | + <version>3.0.1</version> |
| 180 | + <executions> |
| 181 | + <execution> |
| 182 | + <phase>verify</phase> |
| 183 | + <goals> |
| 184 | + <goal>sign</goal> |
| 185 | + </goals> |
| 186 | + </execution> |
| 187 | + </executions> |
| 188 | + <configuration> |
| 189 | + <gpgArguments> |
| 190 | + <gpgArgument>--pinentry-mode</gpgArgument> |
| 191 | + <gpgArgument>loopback</gpgArgument> |
| 192 | + </gpgArguments> |
| 193 | + </configuration> |
| 194 | + </plugin> |
| 195 | + <plugin> |
| 196 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 197 | + <executions> |
| 198 | + <execution> |
| 199 | + <id>enforce-java</id> |
| 200 | + <goals> |
| 201 | + <goal>enforce</goal> |
| 202 | + </goals> |
| 203 | + <phase>compile</phase> |
| 204 | + <configuration> |
| 205 | + <rules> |
| 206 | + <requireJavaVersion> |
| 207 | + <version>[1.8,1.9)</version> |
| 208 | + </requireJavaVersion> |
| 209 | + </rules> |
| 210 | + </configuration> |
| 211 | + </execution> |
| 212 | + </executions> |
| 213 | + </plugin> |
| 214 | + </plugins> |
| 215 | + </build> |
| 216 | + </profile> |
| 217 | + </profiles> |
| 218 | + |
93 | 219 | </project> |
0 commit comments