Skip to content

Commit cd1c4f1

Browse files
committed
🔧 maven打包插件
1 parent b623606 commit cd1c4f1

File tree

1 file changed

+46
-47
lines changed

1 file changed

+46
-47
lines changed

pom.xml

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,52 @@
8585

8686
<build>
8787
<plugins>
88+
<!-- Source -->
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-source-plugin</artifactId>
92+
<version>2.2.1</version>
93+
<executions>
94+
<execution>
95+
<phase>package</phase>
96+
<goals>
97+
<goal>jar-no-fork</goal>
98+
</goals>
99+
</execution>
100+
</executions>
101+
</plugin>
102+
<!-- Javadoc -->
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-javadoc-plugin</artifactId>
106+
<version>2.9.1</version>
107+
<executions>
108+
<execution>
109+
<phase>package</phase>
110+
<goals>
111+
<goal>jar</goal>
112+
</goals>
113+
<configuration>
114+
<!-- add this to disable checking -->
115+
<additionalparam>-Xdoclint:none</additionalparam>
116+
</configuration>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<!-- GPG -->
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-gpg-plugin</artifactId>
124+
<version>1.5</version>
125+
<executions>
126+
<execution>
127+
<phase>verify</phase>
128+
<goals>
129+
<goal>sign</goal>
130+
</goals>
131+
</execution>
132+
</executions>
133+
</plugin>
88134
<!-- 支持多个 source -->
89135
<plugin>
90136
<groupId>org.codehaus.mojo</groupId>
@@ -165,53 +211,6 @@
165211
<artifactId>maven-project-info-reports-plugin</artifactId>
166212
<version>3.0.0</version>
167213
</plugin>
168-
169-
<!-- Source -->
170-
<plugin>
171-
<groupId>org.apache.maven.plugins</groupId>
172-
<artifactId>maven-source-plugin</artifactId>
173-
<version>2.2.1</version>
174-
<executions>
175-
<execution>
176-
<phase>package</phase>
177-
<goals>
178-
<goal>jar-no-fork</goal>
179-
</goals>
180-
</execution>
181-
</executions>
182-
</plugin>
183-
<!-- Javadoc -->
184-
<plugin>
185-
<groupId>org.apache.maven.plugins</groupId>
186-
<artifactId>maven-javadoc-plugin</artifactId>
187-
<version>2.9.1</version>
188-
<executions>
189-
<execution>
190-
<phase>package</phase>
191-
<goals>
192-
<goal>jar</goal>
193-
</goals>
194-
<configuration>
195-
<!-- add this to disable checking -->
196-
<additionalparam>-Xdoclint:none</additionalparam>
197-
</configuration>
198-
</execution>
199-
</executions>
200-
</plugin>
201-
<!-- GPG -->
202-
<plugin>
203-
<groupId>org.apache.maven.plugins</groupId>
204-
<artifactId>maven-gpg-plugin</artifactId>
205-
<version>1.5</version>
206-
<executions>
207-
<execution>
208-
<phase>verify</phase>
209-
<goals>
210-
<goal>sign</goal>
211-
</goals>
212-
</execution>
213-
</executions>
214-
</plugin>
215214
</plugins>
216215
</pluginManagement>
217216
</build>

0 commit comments

Comments
 (0)