Skip to content

Commit f2ed172

Browse files
committed
More simplifications to pom to make it more like AntiSamy pom.
1 parent 7b78214 commit f2ed172

File tree

1 file changed

+40
-26
lines changed

1 file changed

+40
-26
lines changed

pom.xml

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,14 @@
276276
</dependencies>
277277

278278
<build>
279+
<pluginManagement>
280+
<plugins>
281+
<plugin>
282+
<groupId>org.apache.maven.plugins</groupId>
283+
<artifactId>maven-dependency-plugin</artifactId>
284+
</plugin>
285+
</plugins>
286+
</pluginManagement>
279287
<plugins>
280288
<plugin>
281289
<artifactId>maven-compiler-plugin</artifactId>
@@ -318,8 +326,9 @@
318326
</plugin>
319327

320328
<plugin>
329+
<groupId>org.apache.maven.plugins</groupId>
321330
<artifactId>maven-jar-plugin</artifactId>
322-
<version>2.6</version>
331+
<version>3.1.0</version>
323332
<configuration>
324333
<archive>
325334
<manifest>
@@ -330,6 +339,32 @@
330339
</configuration>
331340
</plugin>
332341

342+
<plugin>
343+
<groupId>org.apache.maven.plugins</groupId>
344+
<artifactId>maven-javadoc-plugin</artifactId>
345+
<version>3.0.1</version>
346+
<executions>
347+
<execution>
348+
<id>attach-javadocs</id>
349+
<phase>package</phase>
350+
<goals><goal>jar</goal></goals>
351+
</execution>
352+
</executions>
353+
</plugin>
354+
355+
<plugin>
356+
<groupId>org.apache.maven.plugins</groupId>
357+
<artifactId>maven-source-plugin</artifactId>
358+
<version>3.0.1</version>
359+
<executions>
360+
<execution>
361+
<id>attach-sources</id>
362+
<phase>package</phase>
363+
<goals><goal>jar-no-fork</goal></goals>
364+
</execution>
365+
</executions>
366+
</plugin>
367+
333368
<!-- Check for updates to dependencies and report on them. -->
334369
<plugin>
335370
<groupId>org.codehaus.mojo</groupId>
@@ -485,11 +520,6 @@
485520
<artifactId>maven-site-plugin</artifactId>
486521
<version>3.4</version>
487522
</plugin>
488-
<plugin>
489-
<groupId>org.apache.maven.plugins</groupId>
490-
<artifactId>maven-deploy-plugin</artifactId>
491-
<version>2.8.2</version>
492-
</plugin>
493523
</plugins>
494524
</reporting>
495525

@@ -557,26 +587,6 @@
557587
<build>
558588
<plugins>
559589

560-
<!-- Signs all artifacts prior to deploying to maven central -->
561-
<plugin>
562-
<groupId>org.apache.maven.plugins</groupId>
563-
<artifactId>maven-gpg-plugin</artifactId>
564-
<version>1.6</version>
565-
<executions>
566-
<execution>
567-
<id>sign-artifacts</id>
568-
<phase>deploy</phase>
569-
<goals>
570-
<goal>sign</goal>
571-
</goals>
572-
<configuration>
573-
<!-- Refers to Kevin Wall's GPG signing key. -->
574-
<keyname>8A2A524F</keyname>
575-
</configuration>
576-
</execution>
577-
</executions>
578-
</plugin>
579-
580590
<plugin>
581591
<groupId>org.apache.maven.plugins</groupId>
582592
<artifactId>maven-jar-plugin</artifactId>
@@ -674,6 +684,9 @@
674684

675685
<!-- Performs a full release. See release documentation for information on how to
676686
perform an ESAPI release using Maven -->
687+
<!--
688+
mvn release:prepare was not working as expected, so I'm commenting this out and we
689+
are doing all this SCM magic manually for now. - kevin wall, 2019-04-09
677690
<plugin>
678691
<groupId>org.apache.maven.plugins</groupId>
679692
<artifactId>maven-release-plugin</artifactId>
@@ -682,6 +695,7 @@
682695
<tagBase>https://github.com/ESAPI/esapi-java-legacy/tags</tagBase>
683696
</configuration>
684697
</plugin>
698+
-->
685699

686700
</plugins>
687701
</build>

0 commit comments

Comments
 (0)