|
5 | 5 | <artifactId>java-lib</artifactId> |
6 | 6 | <version>1.0-SNAPSHOT</version> |
7 | 7 | <name>java-lib</name> |
8 | | - <!-- FIXME change it to the project's website --> |
9 | 8 | <url>http://www.example.com</url> |
| 9 | + |
10 | 10 | <properties> |
11 | 11 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
12 | 12 | <maven.compiler.source>1.7</maven.compiler.source> |
13 | 13 | <maven.compiler.target>1.7</maven.compiler.target> |
14 | 14 | </properties> |
| 15 | + |
15 | 16 | <dependencies> |
16 | 17 | <dependency> |
17 | 18 | <groupId>junit</groupId> |
|
25 | 26 | <version>0.13.7</version> |
26 | 27 | </dependency> |
27 | 28 | </dependencies> |
| 29 | + |
28 | 30 | <build> |
| 31 | + <plugins> |
| 32 | + <plugin> |
| 33 | + <groupId>org.apache.maven.plugins</groupId> |
| 34 | + <artifactId>maven-assembly-plugin</artifactId> |
| 35 | + <version>3.3.0</version> |
| 36 | + <configuration> |
| 37 | + <descriptorRefs> |
| 38 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 39 | + </descriptorRefs> |
| 40 | + <archive> |
| 41 | + <manifest> |
| 42 | + <addClasspath>true</addClasspath> |
| 43 | + </manifest> |
| 44 | + </archive> |
| 45 | + <appendAssemblyId>true</appendAssemblyId> |
| 46 | + <ignoreDirFormatExtensions>false</ignoreDirFormatExtensions> |
| 47 | + <includeProjectArtifact>false</includeProjectArtifact> |
| 48 | + </configuration> |
| 49 | + <executions> |
| 50 | + <execution> |
| 51 | + <id>make-assembly</id> |
| 52 | + <phase>package</phase> |
| 53 | + <goals> |
| 54 | + <goal>single</goal> |
| 55 | + </goals> |
| 56 | + </execution> |
| 57 | + </executions> |
| 58 | + </plugin> |
| 59 | + </plugins> |
| 60 | + |
29 | 61 | <pluginManagement> |
30 | | - <!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> |
31 | 62 | <plugins> |
32 | | - <plugin> |
33 | | - <groupId>org.apache.maven.plugins</groupId> |
34 | | - <artifactId>maven-shade-plugin</artifactId> |
35 | | - <version>3.2.4</version> |
36 | | - <executions> |
37 | | - <execution> |
38 | | - <phase>package</phase> |
39 | | - <goals> |
40 | | - <goal>shade</goal> |
41 | | - </goals> |
42 | | - <configuration> |
43 | | - <artifactSet> |
44 | | - <excludes> |
45 | | - <exclude>classworlds:classworlds</exclude> |
46 | | - <exclude>junit:junit</exclude> |
47 | | - <exclude>jmock:*</exclude> |
48 | | - <exclude>*:xml-apis</exclude> |
49 | | - <exclude>org.apache.maven:lib:tests</exclude> |
50 | | - <exclude>log4j:log4j:jar:</exclude> |
51 | | - </excludes> |
52 | | - </artifactSet> |
53 | | - </configuration> |
54 | | - </execution> |
55 | | - </executions> |
56 | | - </plugin> |
57 | | - <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> |
58 | 63 | <plugin> |
59 | 64 | <artifactId>maven-clean-plugin</artifactId> |
60 | 65 | <version>3.1.0</version> |
61 | 66 | </plugin> |
62 | | - <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> |
63 | 67 | <plugin> |
64 | 68 | <artifactId>maven-resources-plugin</artifactId> |
65 | 69 | <version>3.0.2</version> |
|
84 | 88 | <artifactId>maven-deploy-plugin</artifactId> |
85 | 89 | <version>2.8.2</version> |
86 | 90 | </plugin> |
87 | | - <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> |
88 | 91 | <plugin> |
89 | 92 | <artifactId>maven-site-plugin</artifactId> |
90 | 93 | <version>3.7.1</version> |
|
0 commit comments