aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry Lee <oldratlee@gmail.com>2023-12-30 18:53:14 +0800
committerJerry Lee <oldratlee@gmail.com>2023-12-30 18:58:39 +0800
commitda2e3dd3bed7939cb213d48f402849c8fb8e3411 (patch)
tree374aeea3d4a28199a5050dc1becc81d367295cc2
parent9ad05535d365fe5e39b221ed59516eaceb7e37ad (diff)
downloadjavassist-da2e3dd3bed7939cb213d48f402849c8fb8e3411.tar.gz
javassist-da2e3dd3bed7939cb213d48f402849c8fb8e3411.zip
improve pom
- add `inceptionYear` element, and use it in `copyright bottom` - add missing version declaration for `maven-gpg-plugin` more stable build and fix related warning message - add `maven-enforcer-plugin` more straightforward error message when `maven`/`java` version is not satisfied
-rw-r--r--pom.xml30
1 files changed, 28 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index 01e9f88c..d13fee29 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,7 @@
simple. It is a class library for editing bytecodes in Java.
</description>
<url>https://www.javassist.org/</url>
+ <inceptionYear>1999</inceptionYear>
<licenses>
<!-- this is the license under which javassist is usually distributed
@@ -224,7 +225,7 @@
<attach>true</attach>
<excludePackageNames>javassist.compiler:javassist.convert:javassist.scopedpool:javassist.bytecode.stackmap</excludePackageNames>
<bottom><![CDATA[<i>Javassist, a Java-bytecode translator toolkit.<br>
-Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
+Copyright (C) ${project.inceptionYear}- Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
<show>public</show>
<nohelp>true</nohelp>
<doclint>none</doclint>
@@ -232,6 +233,30 @@ Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>3.4.1</version>
+ <executions>
+ <execution>
+ <id>enforces</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <!-- official docs: https://maven.apache.org/enforcer/enforcer-rules/index.html -->
+ <requireMavenVersion>
+ <version>3.2.5</version>
+ </requireMavenVersion>
+ <requireJavaVersion>
+ <version>11</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.9</version>
@@ -281,6 +306,7 @@ Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
+ <version>3.1.0</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
<useAgent>${gpg.useAgent}</useAgent>
@@ -300,7 +326,7 @@ Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
</profile>
<!-- profiles to add tools jar containing com.sun.jdi code
needed by sample code
- -->
+ -->
<profile>
<id>default-tools</id>
<activation>