8000 Added pom.xml · javaxt-project/javaxt-src@ca30e9b · GitHub
[go: up one dir, main page]

Skip to content

Commit ca30e9b

Browse files
committed
Added pom.xml
1 parent 719ab85 commit ca30e9b

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed

pom.xml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
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+
<properties>
5+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6+
<maven.compiler.source>1.8</maven.compiler.source>
7+
<maven.compiler.target>1.8</maven.compiler.target>
8+
9+
<!-- Ant-style directory layout -->
10+
<src.dir>src</src.dir>
11+
12+
13+
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss z</maven.build.timestamp.format>
14+
<buildDate>${maven.build.timestamp}</buildDate>
15+
16+
</properties>
17+
18+
<!-- =========================================================== -->
19+
<!-- Module Description -->
20+
<!-- =========================================================== -->
21+
<groupId>javaxt</groupId>
22+
<artifactId>javaxt-src</artifactId>
23+
<version>dev</version>
24+
<packaging>jar</packaging>
25+
26+
27+
<!-- =========================================================== -->
28+
<!-- Dependency Management -->
29+
<!-- =========================================================== -->
30+
<repositories>
31+
<repository>
32+
<id>javaxt.com</id>
33+
<url>https://www.javaxt.com/maven</url>
34+
</repository>
35+
</repositories>
36+
<dependencies>
37+
<dependency>
38+
<groupId>javaxt</groupId>
39+
<artifactId>javaxt-core</artifactId>
40+
<version>2.1.4</version>
41+
</dependency>
42+
</dependencies>
43+
44+
45+
46+
<!-- =========================================================== -->
47+
<!-- Build Info -->
48+
<!-- =========================================================== -->
49+
<build>
50+
51+
<sourceDirectory>${src.dir}</sourceDirectory>
52+
53+
54+
<plugins>
55+
56+
<!-- Copy dependencies into the lib folder -->
57+
<plugin>
58+
<artifactId>maven-dependency-plugin</artifactId>
59+
<executions>
60+
<execution>
61+
<phase>install</phase>
62+
<goals>
63+
<goal>copy-dependencies</goal>
64+
</goals>
65+
<configuration>
66+
<outputDirectory>${project.build.directory}/lib</outputDirectory>
67+
</configuration>
68+
</execution>
69+
</executions>
70+
</plugin>
71+
72+
73+
<!-- Create main app -->
74+
<plugin>
75+
<artifactId>maven-jar-plugin</artifactId>
76+
<configuration>
77+
<archive>
78+
<manifest>
79+
<addClasspath>true</addClasspath>
80+
<classpathPrefix>lib/</classpathPrefix>
81+
<mainClass>javaxt.utils.src.Parser</mainClass>
82+
</manifest>
83+
<manifestEntries>
84+
<Built-By>JavaXT</Built-By>
85+
<Bundle-Name>JavaXT Docs</Bundle-Name>
86+
<Bundle-Version>${project.version}</Bundle-Version>
87+
<Bundle-Date>${buildDate}</Bundle-Date>
88+
<Implementation-Title>JavaXT Docs</Implementation-Title>
89+
<Implementation-Version>${project.version}</Implementation-Version>
90+
<Implementation-URL>http://javaxt.com</Implementation-URL>
91+
</manifestEntries>
92+
</archive>
93+
</configuration>
94+
</plugin>
95+
96+
97+
<!-- copy jars to the dist directory -->
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-antrun-plugin</artifactId>
101+
<version>1.8</version>
102+
<executions>
103+
<execution>
104+
<phase>install</phase>
105+
<configuration>
106+
<target>
107+
<move file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
108+
todir="${project.basedir}/dist" />
109+
<move todir="${project.basedir}/dist/lib" >
110+
<fileset dir="${project.build.directory}/lib" />
111+
</move>
112+
</target>
113+
</configuration>
114+
<goals>
115+
<goal>run</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
121+
122+
123+
</plugins>
124+
</build>
125+
</project>

0 commit comments

Comments
 (0)
0