Skip to content

Commit 89b4004

Browse files
author
David Saff
committed
Merge pull request #511 from Tibor17/junit.mavenize3
Maven project junit:junit:jar
2 parents 32c60ea + 561fb84 commit 89b4004

File tree

6 files changed

+376
-1
lines changed

6 files changed

+376
-1
lines changed

LICENSE renamed to LICENSE.txt

File renamed without changes.

pom.xml

+319
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,319 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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+
<modelVersion>4.0.0</modelVersion>
4+
5+
<groupId>junit</groupId>
6+
<artifactId>junit</artifactId>
7+
<version>4.12-SNAPSHOT</version>
8+
9+
<name>JUnit</name>
10+
<url>http://junit.org</url>
11+
<description>JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.</description>
12+
<organization>
13+
<name>JUnit</name>
14+
<url>http://www.junit.org</url>
15+
</organization>
16+
<inceptionYear>2002</inceptionYear>
17+
<mailingLists>
18+
<mailingList>
19+
<name>JUnit Mailing List</name>
20+
<post>[email protected]</post>
21+
<archive>http://tech.groups.yahoo.com/group/junit/</archive>
22+
</mailingList>
23+
</mailingLists>
24+
<licenses>
25+
<license>
26+
<name>Common Public License Version 1.0</name>
27+
<url>http://www.opensource.org/licenses/cpl1.0.txt</url>
28+
<distribution>repo</distribution>
29+
</license>
30+
</licenses>
31+
<scm>
32+
<connection>scm:git:git://github.com/KentBeck/junit.git</connection>
33+
<developerConnection>scm:git:[email protected]:KentBeck/junit.git</developerConnection>
34+
<url>http://github.com/KentBeck/junit/tree/master</url>
35+
</scm>
36+
<developers>
37+
<developer>
38+
<id>dsaff</id>
39+
<name>David Saff</name>
40+
<email>[email protected]</email>
41+
</developer>
42+
</developers>
43+
<contributors>
44+
<contributor>
45+
<name>JUnit contributors</name>
46+
<organization>JUnit</organization>
47+
<email>[email protected]</email>
48+
<url>https://github.com/KentBeck/junit/graphs/contributors</url>
49+
<roles>
50+
<role>developers</role>
51+
</roles>
52+
</contributor>
53+
</contributors>
54+
<properties>
55+
<hamcrestVersion>1.3</hamcrestVersion>
56+
<jdkVersion>1.5</jdkVersion>
57+
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
58+
</properties>
59+
<prerequisites>
60+
<maven>3.0.4</maven>
61+
</prerequisites>
62+
<dependencies>
63+
<dependency>
64+
<groupId>org.hamcrest</groupId>
65+
<artifactId>hamcrest-core</artifactId>
66+
<version>${hamcrestVersion}</version>
67+
</dependency>
68+
</dependencies>
69+
<distributionManagement>
70+
<downloadUrl>https://github.com/KentBeck/junit/wiki/Download-and-Install</downloadUrl>
71+
<!--
72+
Currently the deployment is under development and enabled for
73+
the Snapshot Repository of the Maven Central.
74+
-->
75+
<snapshotRepository>
76+
<id>maven-central-snapshots</id>
77+
<name>upload.to.maven.central.snapshots</name>
78+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
79+
</snapshotRepository>
80+
<!--
81+
Remote Release Repository.
82+
-->
83+
<repository>
84+
<id>maven-central</id>
85+
<name>upload.to.maven.central</name>
86+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
87+
</repository>
88+
</distributionManagement>
89+
<build>
90+
<resources>
91+
<resource>
92+
<directory>${project.basedir}/src/main/resources</directory>
93+
</resource>
94+
<resource>
95+
<directory>${project.basedir}</directory>
96+
<includes>
97+
<include>LICENSE.txt</include>
98+
</includes>
99+
</resource>
100+
</resources>
101+
<extensions>
102+
<!--
103+
Specify HTTP providers.
104+
The Maven Wagon is a transport abstraction.
105+
For more information see http://maven.apache.org/wagon/index.html
106+
and the guide
107+
http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html
108+
-->
109+
<extension>
110+
<groupId>org.apache.maven.wagon</groupId>
111+
<artifactId>wagon-http</artifactId>
112+
<version>1.0</version>
113+
</extension>
114+
</extensions>
115+
<plugins>
116+
<!--
117+
Both "org.apache" and "org.codehaus" are default providers of MOJO plugins
118+
which are especially dedicated to Maven projects.
119+
The MOJO stands for "Maven plain Old Java Object".
120+
Each mojo is an executable goal in Maven, and a plugin is a distribution of
121+
one or more related mojos.
122+
For more information see http://maven.apache.org/plugin-developers/index.html
123+
124+
The following plugins are ordered according the Maven build lifecycle.
125+
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
126+
-->
127+
<plugin>
128+
<!--
129+
Checks that the version of user's maven installation is 3.0.4,
130+
the JDK is 1.5+, no non-standard repositories are specified in
131+
the project, requires only release versions of dependencies of other artifacts.
132+
-->
133+
<artifactId>maven-enforcer-plugin</artifactId>
134+
<version>1.1.1</version>
135+
<executions>
136+
<execution>
137+
<id>enforce-versions</id>
138+
<phase>initialize</phase>
139+
<goals>
140+
<goal>enforce</goal>
141+
</goals>
142+
<configuration>
143+
<fail>true</fail>
144+
<rules>
145+
<requireMavenVersion>
146+
<!-- Some plugin features require a recent Maven runtime to work properly -->
147+
<message>Current version of Maven ${maven.version} required to build the project should be ${project.prerequisites.maven}, or higher!</message>
148+
<version>[${project.prerequisites.maven},)</version>
149+
</requireMavenVersion>
150+
<requireJavaVersion>
151+
<message>Current JDK version ${java.version} should be ${jdkVersion}, or higher!</message>
152+
<version>${jdkVersion}</version>
153+
</requireJavaVersion>
154+
<requireNoRepositories>
155+
<message>Best Practice is to never define repositories in pom.xml (use a repository manager instead).</message>
156+
</requireNoRepositories>
157+
<requireReleaseDeps>
158+
<message>No Snapshots Dependencies Allowed!</message>
159+
</requireReleaseDeps>
160+
</rules>
161+
</configuration>
162+
</execution>
163+
</executions>
164+
</plugin>
165+
<plugin>
166+
<!--
167+
Updates Version#id().
168+
-->
169+
<groupId>com.google.code.maven-replacer-plugin</groupId>
170+
<artifactId>maven-replacer-plugin</artifactId>
171+
<version>1.3.8</version>
172+
<executions>
173+
<execution>
174+
<phase>process-sources</phase>
175+
<goals>
176+
<goal>replace</goal>
177+
</goals>
178+
</execution>
179+
</executions>
180+
<configuration>
181+
<ignoreMissingFile>false</ignoreMissingFile>
182+
<file>src/main/java/junit/runner/Version.java.template</file>
183+
<outputFile>src/main/java/junit/runner/Version.java</outputFile>
184+
<regex>false</regex>
185+
<token>@version@</token>
186+
<value>${project.version}</value>
187+
</configuration>
188+
</plugin>
189+
<plugin><!-- Using jdk 1.5.0_22, package-info.java files are compiled correctly. -->
190+
<!--
191+
java compiler plugin forked in extra process
192+
-->
193+
<artifactId>maven-compiler-plugin</artifactId>
194+
<version>2.5.1</version>
195+
<configuration>
196+
<encoding>${project.build.sourceEncoding}</encoding>
197+
<source>${jdkVersion}</source>
198+
<target>${jdkVersion}</target>
199+
<compilerVersion>1.5</compilerVersion>
200+
<showDeprecation>true</showDeprecation>
201+
<showWarnings>true</showWarnings>
202+
<debug>true</debug>
203+
<fork>true</fork>
204+
<compilerArgument>-Xlint:unchecked</compilerArgument>
205+
<maxmem>128m</maxmem>
206+
</configuration>
207+
</plugin>
208+
<plugin>
209+
<!--
210+
A plugin which uses the JUnit framework in order to start
211+
our junit suite "AllTests" after the sources are compiled.
212+
-->
213+
<artifactId>maven-surefire-plugin</artifactId>
214+
<version>2.12.3</version>
215+
<configuration>
216+
<test>org/junit/tests/AllTests.java</test>
217+
<useSystemClassLoader>true</useSystemClassLoader>
218+
<enableAssertions>false</enableAssertions>
219+
</configuration>
220+
</plugin>
221+
<plugin>
222+
<!--
223+
This plugin can package the main artifact's sources (src/main/java)
224+
in to jar archive. See target/junit-*-sources.jar.
225+
-->
226+
<artifactId>maven-source-plugin</artifactId>
227+
<version>2.2</version>
228+
<executions>
229+
<execution>
230+
<id>attach-sources</id>
231+
<phase>prepare-package</phase>
232+
<goals>
233+
<goal>jar-no-fork</goal>
234+
</goals>
235+
</execution>
236+
</executions>
237+
</plugin>
238+
<plugin>
239+
<!--
240+
This plugin can generate Javadoc by a forked
241+
process and then package the Javadoc
242+
in jar archive target/junit-*-javadoc.jar.
243+
-->
244+
<artifactId>maven-javadoc-plugin</artifactId>
245+
<version>2.8.1</version>
246+
<executions>
247+
<execution>
248+
<id>attach-javadoc</id>
249+
<phase>package</phase>
250+
<goals>
251+
<goal>jar</goal>
252+
</goals>
253+
<configuration>
254+
<stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>
255+
<show>protected</show>
256+
<author>false</author>
257+
<version>false</version>
258+
<detectLinks>false</detectLinks>
259+
<linksource>true</linksource>
260+
<keywords>true</keywords>
261+
<use>false</use>
262+
<windowtitle>JUnit API</windowtitle>
263+
<encoding>UTF-8</encoding>
264+
<locale>en</locale>
265+
<javadocVersion>1.5</javadocVersion>
266+
<javaApiLinks>
267+
<property>
268+
<name>api_1.5</name>
269+
<value>http://docs.oracle.com/javase/1.5.0/docs/api/index.html</value>
270+
</property>
271+
</javaApiLinks>
272+
<excludePackageNames>junit.*,*.internal,*.internal.*</excludePackageNames>
273+
<verbose>true</verbose>
274+
<minmemory>32m</minmemory>
275+
<maxmemory>128m</maxmemory>
276+
<failOnError>true</failOnError>
277+
<includeDependencySources>true</includeDependencySources>
278+
<dependencySourceIncludes>
279+
<dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude>
280+
</dependencySourceIncludes>
281+
</configuration>
282+
</execution>
283+
</executions>
284+
</plugin>
285+
</plugins>
286+
</build>
287+
<profiles>
288+
<profile>
289+
<id>sign</id>
290+
<!--
291+
Signs all artifacts before deploying to Maven Central.
292+
-->
293+
<build>
294+
<plugins>
295+
<plugin>
296+
<!--
297+
The goal is to sign all artifacts so that the user may verify them before downloading.
298+
The automatic build system may reuire your key ID, and passphrase specified using system properties:
299+
-Dgpg.passphrase="<passphrase>" -Dgpg.keyname="<your key ID>"
300+
In order to create the key pair, use the command "gpg &ndash;&ndash;gen-key".
301+
(&ndash;&ndash; stands for double dash)
302+
-->
303+
<artifactId>maven-gpg-plugin</artifactId>
304+
<version>1.4</version>
305+
<executions>
306+
<execution>
307+
<id>gpg-sign</id>
308+
<phase>install</phase>
309+
<goals>
310+
<goal>sign</goal>
311+
</goals>
312+
</execution>
313+
</executions>
314+
</plugin>
315+
</plugins>
316+
</build>
317+
</profile>
318+
</profiles>
319+
</project>

src/main/config/settings.xml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
The JUnit build system is using this file.
4+
All users should ignore it.
5+
6+
Settings Reference: http://maven.apache.org/ref/3.0.4/maven-settings/settings.html
7+
-->
8+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
9+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
11+
12+
<!-- localRepository
13+
The path to the local repository maven will use to store artifacts.
14+
Default: ~/.m2/repository
15+
<localRepository>${user.home}/.m2/repository</localRepository>
16+
-->
17+
18+
<servers>
19+
<!--
20+
Specifies the authentication information to use when connecting to a particular server, identified by
21+
a unique name within the system (referred to by the 'id' attribute below).
22+
-->
23+
<server>
24+
<id>maven-central</id>
25+
<username>???</username>
26+
<password>???</password>
27+
<filePermissions>664</filePermissions>
28+
<directoryPermissions>775</directoryPermissions>
29+
<configuration>
30+
<timeout>15000</timeout> <!-- 15 seconds -->
31+
<httpConfiguration>
32+
<put>
33+
<connectionTimeout>15000</connectionTimeout> <!-- 15 seconds -->
34+
<readTimeout>15000</readTimeout> <!-- 15 seconds -->
35+
</put>
36+
</httpConfiguration>
37+
</configuration>
38+
</server>
39+
<server>
40+
<id>maven-central-snapshots</id>
41+
<username>???</username>
42+
<password>???</password>
43+
<filePermissions>664</filePermissions>
44+
<directoryPermissions>775</directoryPermissions>
45+
<configuration>
46+
<timeout>15000</timeout> <!-- 15 seconds -->
47+
<httpConfiguration>
48+
<put>
49+
<connectionTimeout>15000</connectionTimeout> <!-- 15 seconds -->
50+
<readTimeout>15000</readTimeout> <!-- 15 seconds -->
51+
</put>
52+
</httpConfiguration>
53+
</configuration>
54+
</server>
55+
</servers>
56+
</settings>

stylesheet.css renamed to src/main/javadoc/stylesheet.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)