Skip to content

Commit 480fd23

Browse files
author
Wang Dongxu
committed
feat: support maven plugin
1 parent 0f8c08c commit 480fd23

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.iml
33
.idea
44
out
5+
target

pom.xml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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"
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>com.blankkj</groupId>
7+
<artifactId>leetcode</artifactId>
8+
<version>0.0.1-SNAPSHOT</version>
9+
<packaging>pom</packaging>
10+
11+
<properties>
12+
<java.version>1.8</java.version>
13+
</properties>
14+
15+
<dependencies>
16+
<!--log-->
17+
<dependency>
18+
<groupId>log4j</groupId>
19+
<artifactId>log4j</artifactId>
20+
<version>1.2.17</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>org.slf4j</groupId>
24+
<artifactId>slf4j-api</artifactId>
25+
<version>1.7.21</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>org.slf4j</groupId>
29+
<artifactId>slf4j-log4j12</artifactId>
30+
<version>1.7.21</version>
31+
</dependency>
32+
33+
<!--unit test-->
34+
<dependency>
35+
<groupId>junit</groupId>
36+
<artifactId>junit</artifactId>
37+
<version>4.12</version>
38+
<scope>test</scope>
39+
</dependency>
40+
41+
</dependencies>
42+
43+
<dependencyManagement>
44+
<dependencies>
45+
</dependencies>
46+
</dependencyManagement>
47+
48+
<build>
49+
<plugins>
50+
<plugin>
51+
<groupId>org.apache.maven.plugins</groupId>
52+
<artifactId>maven-compiler-plugin</artifactId>
53+
<version>3.5.1</version>
54+
<configuration>
55+
<!-- or whatever version you use -->
56+
<source>${java.version}</source>
57+
<target>${java.version}</target>
58+
</configuration>
59+
</plugin>
60+
<plugin>
61+
<groupId>org.apache.maven.plugins</groupId>
62+
<artifactId>maven-dependency-plugin</artifactId>
63+
<executions>
64+
<execution>
65+
<id>copy-dependencies</id>
66+
<phase>prepare-package</phase>
67+
<goals>
68+
<goal>copy-dependencies</goal>
69+
</goals>
70+
<configuration>
71+
<excludeScope>provided</excludeScope>
72+
<overWriteReleases>false</overWriteReleases>
73+
<overWriteSnapshots>false</overWriteSnapshots>
74+
<overWriteIfNewer>true</overWriteIfNewer>
75+
<outputDirectory>./target/dependency</outputDirectory>
76+
</configuration>
77+
</execution>
78+
</executions>
79+
</plugin>
80+
</plugins>
81+
</build>
82+
83+
</project>

0 commit comments

Comments
 (0)