Skip to content

Commit 522a9fd

Browse files
author
Mani Moayedi
committed
WIP: migrating into maven
1 parent 4325cf1 commit 522a9fd

File tree

3 files changed

+198
-1
lines changed

3 files changed

+198
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
/debug
55
/data
66
/nbproject/private/
7-
/Pacts
7+
/Pacts
8+
/target/

pom.xml

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
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/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.acidmanic</groupId>
5+
<artifactId>pact-doc</artifactId>
6+
<packaging>jar</packaging>
7+
<version>1.2.8</version>
8+
9+
<developers>
10+
<developer>
11+
<email>[email protected]</email>
12+
<organization>Acidmanic</organization>
13+
<name>Mani Moayedi</name>
14+
<organizationUrl>http://acidmanic.com</organizationUrl>
15+
</developer>
16+
</developers>
17+
18+
<properties>
19+
<maven.compiler.source>1.8</maven.compiler.source>
20+
<maven.compiler.target>1.8</maven.compiler.target>
21+
</properties>
22+
23+
24+
<build>
25+
<sourceDirectory>src</sourceDirectory>
26+
<testSourceDirectory>test</testSourceDirectory>
27+
28+
<testResources>
29+
<testResource>
30+
<directory>${basedir}/test/resources</directory>
31+
</testResource>
32+
</testResources>
33+
<plugins>
34+
<plugin>
35+
<artifactId>maven-assembly-plugin</artifactId>
36+
<executions>
37+
<execution>
38+
<phase>package</phase>
39+
<goals>
40+
<goal>single</goal>
41+
</goals>
42+
</execution>
43+
</executions>
44+
<configuration>
45+
<archive>
46+
<manifest>
47+
<addClasspath>true</addClasspath>
48+
<mainClass>com.acidmanic.pactdoc.PactDoc</mainClass>
49+
</manifest>
50+
</archive>
51+
<descriptors>
52+
<descriptor>src/assembly/standalone.xml</descriptor>
53+
</descriptors>
54+
<finalName>application</finalName>
55+
</configuration>
56+
</plugin>
57+
<plugin>
58+
<groupId>org.apache.maven.plugins</groupId>
59+
<artifactId>maven-surefire-plugin</artifactId>
60+
<version>2.7.2</version>
61+
<configuration>
62+
<workingDirectory>${project.build.directory}/test-env</workingDirectory>
63+
</configuration>
64+
</plugin>
65+
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
67+
<artifactId>maven-jar-plugin</artifactId>
68+
<version>3.2.0</version>
69+
<configuration>
70+
<archive>
71+
<manifestFile>manifest.mf</manifestFile>
72+
</archive>
73+
</configuration>
74+
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-source-plugin</artifactId>
78+
<version>2.2.1</version>
79+
<executions>
80+
<execution>
81+
<id>attach-sources</id>
82+
<goals>
83+
<goal>jar-no-fork</goal>
84+
</goals>
85+
</execution>
86+
</executions>
87+
</plugin>
88+
<plugin>
89+
<groupId>org.apache.maven.plugins</groupId>
90+
<artifactId>maven-javadoc-plugin</artifactId>
91+
<version>2.9.1</version>
92+
<executions>
93+
<execution>
94+
<id>attach-javadocs</id>
95+
<goals>
96+
<goal>jar</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
<configuration>
101+
<additionalparam>-Xdoclint:none</additionalparam>
102+
<additionalOptions>-Xdoclint:none</additionalOptions>
103+
<additionalJOption>-Xdoclint:none</additionalJOption>
104+
</configuration>
105+
</plugin>
106+
<plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-gpg-plugin</artifactId>
109+
<version>1.6</version>
110+
<executions>
111+
<execution>
112+
<id>sign-artifacts</id>
113+
<phase>deploy</phase>
114+
<goals>
115+
<goal>sign</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
<configuration>
120+
121+
</configuration>
122+
</plugin>
123+
<plugin>
124+
<groupId>org.sonatype.plugins</groupId>
125+
<artifactId>nexus-staging-maven-plugin</artifactId>
126+
<version>1.6.8</version>
127+
<extensions>true</extensions>
128+
<configuration>
129+
<serverId>ossrh</serverId>
130+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
131+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
132+
</configuration>
133+
</plugin>
134+
</plugins>
135+
</build>
136+
137+
138+
<dependencies>
139+
<dependency>
140+
<groupId>com.acidmanic</groupId>
141+
<artifactId>lightweight-jsonstorage</artifactId>
142+
<version>1.0.0</version>
143+
</dependency>
144+
145+
<dependency>
146+
<groupId>com.acidmanic</groupId>
147+
<artifactId>document</artifactId>
148+
<version>1.0.0</version>
149+
</dependency>
150+
151+
<dependency>
152+
<groupId>com.acidmanic</groupId>
153+
<artifactId>pact-models</artifactId>
154+
<version>1.0.0</version>
155+
</dependency>
156+
157+
<dependency>
158+
<groupId>com.acidmanic</groupId>
159+
<artifactId>lightweight-logger</artifactId>
160+
<version>1.1.0</version>
161+
</dependency>
162+
163+
<dependency>
164+
<groupId>com.acidmanic</groupId>
165+
<artifactId>delegates</artifactId>
166+
<version>1.0.0</version>
167+
</dependency>
168+
169+
170+
<dependency>
171+
<groupId>com.acidmanic</groupId>
172+
<artifactId>easyplug</artifactId>
173+
<version>1.0.0</version>
174+
</dependency>
175+
176+
</dependencies>
177+
178+
</project>

src/assembly/standalone.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
4+
<!-- TODO: a jarjar format would be better -->
5+
<id>standalone</id>
6+
<formats>
7+
<format>jar</format>
8+
</formats>
9+
<includeBaseDirectory>false</includeBaseDirectory>
10+
<dependencySets>
11+
<dependencySet>
12+
<outputDirectory>/</outputDirectory>
13+
<useProjectArtifact>true</useProjectArtifact>
14+
<unpack>true</unpack>
15+
<scope>runtime</scope>
16+
</dependencySet>
17+
</dependencySets>
18+
</assembly>

0 commit comments

Comments
 (0)