Browse Source

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
pull/477/head
Jerry Lee 4 months ago
parent
commit
da2e3dd3be
1 changed files with 28 additions and 2 deletions
  1. 28
    2
      pom.xml

+ 28
- 2
pom.xml View File

simple. It is a class library for editing bytecodes in Java. simple. It is a class library for editing bytecodes in Java.
</description> </description>
<url>https://www.javassist.org/</url> <url>https://www.javassist.org/</url>
<inceptionYear>1999</inceptionYear>


<licenses> <licenses>
<!-- this is the license under which javassist is usually distributed <!-- this is the license under which javassist is usually distributed
<attach>true</attach> <attach>true</attach>
<excludePackageNames>javassist.compiler:javassist.convert:javassist.scopedpool:javassist.bytecode.stackmap</excludePackageNames> <excludePackageNames>javassist.compiler:javassist.convert:javassist.scopedpool:javassist.bytecode.stackmap</excludePackageNames>
<bottom><![CDATA[<i>Javassist, a Java-bytecode translator toolkit.<br> <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> <show>public</show>
<nohelp>true</nohelp> <nohelp>true</nohelp>
<doclint>none</doclint> <doclint>none</doclint>
<source>8</source> <source>8</source>
</configuration> </configuration>
</plugin> </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> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId> <artifactId>maven-bundle-plugin</artifactId>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<configuration> <configuration>
<passphrase>${gpg.passphrase}</passphrase> <passphrase>${gpg.passphrase}</passphrase>
<useAgent>${gpg.useAgent}</useAgent> <useAgent>${gpg.useAgent}</useAgent>
</profile> </profile>
<!-- profiles to add tools jar containing com.sun.jdi code <!-- profiles to add tools jar containing com.sun.jdi code
needed by sample code needed by sample code
-->
-->
<profile> <profile>
<id>default-tools</id> <id>default-tools</id>
<activation> <activation>

Loading…
Cancel
Save