]> source.dussan.org Git - aspectj.git/commitdiff
POM cosmetics, e.g. plugin version management
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 9 Apr 2021 07:07:09 +0000 (14:07 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 9 Apr 2021 07:07:09 +0000 (14:07 +0700)
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
bridge/pom.xml
build/pom.xml
pom.xml
run-all-junit-tests/pom.xml
tests/pom.xml

index 2ab25be17f4b90abe769e73e63b3a014dc3700e9..2ea3932fac9ec16d9bc29367637df3313f56be9d 100644 (file)
@@ -26,7 +26,6 @@
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>build-helper-maven-plugin</artifactId>
-                               <version>1.9.1</version>
                                <executions>
                                        <execution>
                                                <id>build.time</id>
                                                        <goal>timestamp-property</goal>
                                                </goals>
                                                <configuration>
+                                                       <!-- Timestamp format: Thursday Apr 8, 2021 at 20:04:07 PDT -->
                                                        <name>version.time_text</name>
                                                        <pattern>EEEE MMM d, yyyy 'at' HH:mm:ss z</pattern>
                                                        <timeZone>America/Los_Angeles</timeZone>
                                                        <locale>en_US</locale>
-                                                       <!-- build.time: Monday Feb 4, 2019 at 23:50:25 GMT -->
                                                </configuration>
                                        </execution>
                                </executions>
index fe6b41cb06442d2d8e6dca3e33999fc18880534f..6fa02a049a5c460a232eac57ac9696ed7788e945 100644 (file)
@@ -33,7 +33,6 @@
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>build-helper-maven-plugin</artifactId>
-                               <version>1.9.1</version>
                                <executions>
                                        <execution>
                                                <id>build.date</id>
                                                        <goal>timestamp-property</goal>
                                                </goals>
                                                <configuration>
+                                                       <!-- Timestamp format: Thu Apr 8, 2021 -->
                                                        <name>build.date</name>
                                                        <pattern>E MMM d, YYYY</pattern>
                                                        <timeZone>America/Los_Angeles</timeZone>
                                                        <locale>en_US</locale>
-                                                       <!-- build.date: Monday Feb 4, 2019 -->
                                                </configuration>
                                        </execution>
                                        <execution>
                                                        <goal>timestamp-property</goal>
                                                </goals>
                                                <configuration>
+                                                       <!-- Timestamp format: Thursday Apr 8, 2021 at 20:20:16 PDT -->
                                                        <name>build.time</name>
-                                                       <!--
-                                                       <pattern>E MMM d, YYYY 'at' HH:MM:SS z</pattern>
-                                                        -->
                                                        <pattern>EEEE MMM d, yyyy 'at' HH:mm:ss z</pattern>
                                                        <timeZone>America/Los_Angeles</timeZone>
                                                        <locale>en_US</locale>
-                                                       <!-- build.time: Monday Feb 4, 2019 at 23:50:25 GMT -->
                                                </configuration>
                                        </execution>
                                        <execution>
                                                        <goal>timestamp-property</goal>
                                                </goals>
                                                <configuration>
+                                                       <!-- Timestamp format: 2021 -->
                                                        <name>build.year</name>
                                                        <pattern>YYYY</pattern>
                                                        <timeZone>America/Los_Angeles</timeZone>
                                                        <locale>en_US</locale>
-                                                       <!-- year: 2019 -->
                                                </configuration>
                                        </execution>
                                </executions>
diff --git a/pom.xml b/pom.xml
index ade7b903d11c9924f439c771d1b8f4d9a5bdd56c..8c21ca6db186f19de2e17907600cfc804522b604 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,7 @@
        <properties>
                <revision>1.9.7.BUILD-SNAPSHOT</revision>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+               <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
                <jdt.core.version>3.25.0-SNAPSHOT</jdt.core.version>
                <lib.ant.version>1.6.3</lib.ant.version>
                <lib.ant.xerces.version>2.6.2</lib.ant.xerces.version>
@@ -57,7 +58,6 @@
                <module>bcel-builder</module>
                <module>weaver</module>
                <module>loadtime</module>
-               <module>org.eclipse.jdt.core</module>
                <module>org.aspectj.ajdt.core</module>
                <module>ajde.core</module>
                <module>ajde</module>
                                        <artifactId>maven-help-plugin</artifactId>
                                        <version>3.2.0</version>
                                </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-source-plugin</artifactId>
+                                       <version>3.2.0</version>
+                                       <executions>
+                                               <execution>
+                                                       <id>attach-sources</id>
+                                                       <phase>package</phase>
+                                                       <goals>
+                                                               <goal>jar-no-fork</goal>
+                                                       </goals>
+                                               </execution>
+                                       </executions>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-jar-plugin</artifactId>
+                                       <version>3.2.0</version>
+                                       <configuration>
+                                               <archive>
+                                                       <addMavenDescriptor>false</addMavenDescriptor>
+                                               </archive>
+                                       </configuration>
+                                       <executions>
+                                               <execution>
+                                                       <id>test-jar</id>
+                                                       <goals>
+                                                               <goal>test-jar</goal>
+                                                       </goals>
+                                               </execution>
+                                       </executions>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-shade-plugin</artifactId>
+                                       <!-- TODO: upgrade after https://issues.apache.org/jira/browse/MSHADE-366 is fixed -->
+                                       <version>3.2.4</version>
+                                       <configuration>
+                                               <createSourcesJar>true</createSourcesJar>
+                                               <createDependencyReducedPom>false</createDependencyReducedPom>
+                                               <shadedArtifactAttached>false</shadedArtifactAttached>
+                                       </configuration>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-install-plugin</artifactId>
+                                       <version>2.5.2</version>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-enforcer-plugin</artifactId>
+                                       <version>3.0.0-M3</version>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.codehaus.mojo</groupId>
+                                       <artifactId>build-helper-maven-plugin</artifactId>
+                                       <version>3.2.0</version>
+                               </plugin>
+                               <plugin>
+                                       <groupId>org.apache.maven.plugins</groupId>
+                                       <artifactId>maven-clean-plugin</artifactId>
+                                       <version>3.1.0</version>
+                               </plugin>
                        </plugins>
                </pluginManagement>
 
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
-                                       <version>3.2.0</version>
-                               <configuration>
-                                       <archive>
-                                               <addMavenDescriptor>false</addMavenDescriptor>
-                                       </archive>
-                               </configuration>
-                               <executions>
-                                       <execution>
-                                               <id>test-jar</id>
-                                               <goals>
-                                                       <goal>test-jar</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
                        </plugin>
 
                        <plugin>
                                <artifactId>maven-clean-plugin</artifactId>
-                               <version>3.1.0</version>
                                <configuration>
                                        <filesets>
                                                <fileset>
                                                        <includes>
                                                                <include>**/ajcore.*.txt</include>
                                                        </includes>
-<!--
-                                                       <excludes>
-                                                               <exclude>**/important.log</exclude>
-                                                               <exclude>**/another-important.log</exclude>
-                                                       </excludes>
--->
                                                        <followSymlinks>false</followSymlinks>
                                                </fileset>
                                                <fileset>
                                                        <directory>aj-build</directory>
-<!--
+                                                       <followSymlinks>false</followSymlinks>
+                                               </fileset>
+                                       </filesets>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <artifactId>maven-clean-plugin</artifactId>
+                               <configuration>
+                                       <filesets>
+                                               <fileset>
+                                                       <directory>.</directory>
                                                        <includes>
-                                                               <include>**/*.tmp</include>
-                                                               <include>**/*.log</include>
+                                                               <include>**/ajcore.*.txt</include>
                                                        </includes>
-                                                       <excludes>
-                                                               <exclude>**/important.log</exclude>
-                                                               <exclude>**/another-important.log</exclude>
-                                                       </excludes>
--->
+                                                       <followSymlinks>false</followSymlinks>
+                                               </fileset>
+                                               <fileset>
+                                                       <directory>aj-build</directory>
                                                        <followSymlinks>false</followSymlinks>
                                                </fileset>
                                        </filesets>
index 6abd8610ba7b5b8551aa71315f75f3a9a4410c56..f2613d996763b8a56ac359ed0461890a75603bbb 100644 (file)
                        <artifactId>ant</artifactId>
                        <version>${lib.ant.version}</version>
                </dependency>
-    <dependency>
+               <dependency>
                        <groupId>jrockit</groupId>
                        <artifactId>jrockit</artifactId>
                        <version>1.0</version>
index 0f766d006f09db95753021271173dadfe544b81f..f330e5f1ae893bf6f6cb08f0090aa9e9358db999 100644 (file)
                        <scope>system</scope>
                        <systemPath>${project.basedir}/../lib/commons/commons.jar</systemPath>
                </dependency>
+-->
+<!--
+               <dependency>
+                       <groupId>commons-digester</groupId>
+                       <artifactId>commons-digester</artifactId>
+                       <version>${lib.commons.digester.version}</version>
+               </dependency>
 -->
        </dependencies>