-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
88 lines (75 loc) · 2.95 KB
/
pom.xml
File metadata and controls
88 lines (75 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<!--项目基本信息(必填)-->
<groupId>exp.libs</groupId>
<artifactId>mojo-archetype</artifactId>
<version>1.1-SNAPSHOT</version>
<packaging>maven-archetype</packaging>
<name>经验库-骨架</name>
<description>用于快速构建新项目的程序框架</description>
<url>https://github.com/lyy289065406/expcodes/trunk/java/01-framework/mojo-archetype/trunk</url>
<!-- 软件配置管理 -->
<scm>
<connection>scm:svn:https://github.com/lyy289065406/expcodes/trunk/java/01-framework/mojo-archetype/trunk</connection>
<developerConnection>scm:svn:https://github.com/lyy289065406/expcodes/trunk/java/01-framework/mojo-archetype/trunk</developerConnection>
<url>scm:svn:https://github.com/lyy289065406/expcodes/trunk/java/01-framework/mojo-archetype/trunk</url>
</scm>
<!-- 变量定义 -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
</properties>
<!-- 项目构建 -->
<build>
<plugins>
<!-- 指定项目JDK版本 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
<!-- 版本打包插件,在dos跳转到项目根目录,依次执行(需保证没有引用快照、本地与SVN服务器内容完全一致):
1 发布基线到svn: mvn release:prepare
2 发布引用到私服 : mvn release:perform -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagBase>https://github.com/lyy289065406/expcodes/trunk/java/01-framework/mojo-archetype/tags</tagBase>
</configuration>
</plugin>
</plugins>
<!-- Maven骨架打包插件 -->
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
</extension>
</extensions>
<!-- Maven骨架管理插件 -->
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- 项目发布管理 -->
<distributionManagement>
<!-- 私服地址 ,基线仓库 -->
<repository>
<id>Releases</id>
<url>http://127.0.0.1:8081/nexus/content/repositories/releases</url>
</repository>
<!-- 私服地址 ,快照仓库 -->
<snapshotRepository>
<id>Snapshots</id>
<url>http://127.0.0.1:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
</project>