source: junit/pom.xml@ 1403

Last change on this file since 1403 was 1403, checked in by wouter, 2 days ago

#429 use newer maven artifactory plugin, add maven source plugin

File size: 4.7 KB
Line 
1<project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4 <modelVersion>4.0.0</modelVersion>
5
6 <groupId>tudelft.utilities</groupId>
7 <artifactId>junit</artifactId>
8 <version>1.0.5</version>
9 <packaging>jar</packaging>
10
11
12 <properties>
13 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14 <maven.compiler.target>1.8</maven.compiler.target>
15 <maven.compiler.source>1.8</maven.compiler.source>
16 <basedir>.</basedir>
17 <passwd>${env.ARTIFACTORY_PASS}</passwd>
18 </properties>
19
20 <distributionManagement>
21 <repository>
22 <id>artifactory.ewi.tudelft.nl</id>
23 <url>https://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
24 </repository>
25 </distributionManagement>
26
27
28 <dependencies>
29 <dependency>
30 <groupId>junit</groupId>
31 <artifactId>junit</artifactId>
32 <version>4.12</version>
33 </dependency>
34
35 </dependencies>
36
37 <repositories>
38 <repository>
39 <id>artifactory.ewi.tudelft.nl</id>
40 <url>https://artifactory.ewi.tudelft.nl/artifactory/libs-release</url>
41 <snapshots>
42 <enabled>false</enabled>
43 </snapshots>
44 </repository>
45
46 </repositories>
47
48 <pluginRepositories>
49 <pluginRepository>
50 <id>central</id>
51 <url>https://repo1.maven.org/</url>
52 </pluginRepository>
53 <pluginRepository>
54 <id>jfrog-plugins-release</id>
55 <name>plugins-release</name>
56 <url>https://oss.jfrog.org/artifactory/plugins-release</url>
57 </pluginRepository>
58 </pluginRepositories>
59
60
61 <build>
62
63 <plugins>
64 <plugin>
65 <groupId>org.apache.maven.plugins</groupId>
66 <artifactId>maven-compiler-plugin</artifactId>
67 <version>3.6.1</version>
68 <configuration>
69 <source>1.8</source>
70 <target>1.8</target>
71 </configuration>
72 </plugin>
73 <plugin>
74 <groupId>org.apache.maven.plugins</groupId>
75 <artifactId>maven-source-plugin</artifactId>
76 <version>3.1.0</version>
77 <executions>
78 <execution>
79 <id>attach-sources</id>
80 <goals>
81 <goal>jar</goal>
82 </goals>
83 </execution>
84 </executions>
85 </plugin>
86
87 <plugin>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-javadoc-plugin</artifactId>
90 <version>2.10.1</version>
91 <executions>
92 <execution>
93 <id>attach-javadocs</id>
94 <goals>
95 <goal>jar</goal>
96 </goals>
97 <configuration>
98 <additionalparam>${javadoc.opts}</additionalparam>
99 <additionalparam>-Xdoclint:none</additionalparam>
100 </configuration>
101 </execution>
102 </executions>
103 </plugin>
104
105 <plugin>
106 <groupId>org.jfrog.buildinfo</groupId>
107 <artifactId>artifactory-maven-plugin</artifactId>
108 <version>3.6.1</version>
109 <executions>
110 <execution>
111 <id>build-info</id>
112 <goals>
113 <goal>publish</goal>
114 </goals>
115 <configuration>
116 <publisher>
117 <contextUrl>http://artifactory.ewi.tudelft.nl/artifactory</contextUrl>
118 <repoKey>libs-release</repoKey>
119 <username>wouter</username>
120 <password>${passwd}</password>
121 </publisher>
122 </configuration>
123 </execution>
124 </executions>
125 </plugin>
126
127 <plugin>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-assembly-plugin</artifactId>
130 <version>2.4.1</version>
131 <configuration>
132 <!-- get all project dependencies -->
133 <descriptorRefs>
134 <descriptorRef>jar-with-dependencies</descriptorRef>
135 </descriptorRefs>
136 <archive>
137 <manifest>
138 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
139 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
140 </manifest>
141 </archive>
142 </configuration>
143 <executions>
144 <execution>
145 <id>make-assembly</id>
146 <!-- bind to the packaging phase -->
147 <phase>package</phase>
148 <goals>
149 <goal>single</goal>
150 </goals>
151 </execution>
152 </executions>
153 </plugin>
154
155
156 </plugins>
157
158 <pluginManagement>
159 <plugins>
160 <plugin>
161 <groupId>org.eclipse.m2e</groupId>
162 <artifactId>lifecycle-mapping</artifactId>
163 <version>1.0.0</version>
164 <configuration>
165 <lifecycleMappingMetadata>
166 <pluginExecutions>
167 <pluginExecution>
168 <pluginExecutionFilter>
169 <groupId>org.jfrog.buildinfo</groupId>
170 <artifactId>artifactory-maven-plugin</artifactId>
171 <versionRange>[1.0.0,)</versionRange>
172 <goals>
173 <goal>publish</goal>
174 </goals>
175 </pluginExecutionFilter>
176 <action>
177 <ignore />
178 </action>
179 </pluginExecution>
180 </pluginExecutions>
181 </lifecycleMappingMetadata>
182 </configuration>
183 </plugin>
184 </plugins>
185 </pluginManagement>
186
187
188 </build>
189</project>
Note: See TracBrowser for help on using the repository browser.