Added project.

This commit is contained in:
Willem Cazander 2024-06-15 16:45:21 +02:00
commit d724e15907
4 changed files with 452 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
#
# Ignore files in the parent-jedi-pom project.
#
*
!.gitignore
!.project
!pom.xml
!README.md

17
.project Normal file
View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>parent-jedi-pom</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>

4
README.md Normal file
View file

@ -0,0 +1,4 @@
# Parent Jedi POEM
Manages build dep + profiles.

423
pom.xml Normal file
View file

@ -0,0 +1,423 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>love.distributedrebirth.jedi</groupId>
<artifactId>parent-jedi-pom</artifactId>
<version>〇一。壬寅。一〄-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Parent JediDiah POEM</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.sourceVersion>11</project.build.sourceVersion>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>target/generated-resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
<testResource>
<directory>target/generated-test-resources</directory>
</testResource>
</testResources>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.16.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.12.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
</plugins>
</build>
<profiles>
<profile>
<id>test-none</id>
<properties>
<skipTests>true</skipTests>
</properties>
</profile>
<profile>
<id>auto-poop-enforcer</id>
<activation>
<file>
<exists>${basedir}/.pom-poop-enforcer</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<!-- Sick this is not documented in examples but works fine, after i looked at the source code -->
<!-- TODO: Maven4 adds xml namespace + xsd to each plugin so auto complete works in embedded plugin xml
<enforcer:requireMavenVersion>
<enforce:version>3.2.2</enforce:version>
<enforce:message>Needs maven ${rule.version} or ${this.version} for: maven.build.timestamp is in UTC</enforce:message>
</enforcer:requireMavenVersion>
-->
<requireMavenVersion>
<version>3.2.2</version>
<message>Needs maven 3.2.2 for: maven.build.timestamp is in UTC</message>
</requireMavenVersion>
<requireMavenVersion>
<version>3.6.3</version>
<message>Needs maven 3.6.3 for: current build plugins</message>
</requireMavenVersion>
<!--
<requireMavenVersion>
<version>3.9.0</version>
<message>Needs maven 3.9.0 for: profile activation by pom packaging type</message>s
</requireMavenVersion>
-->
<requireJavaVersion>
<version>${project.build.sourceVersion}</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>auto-m2e-mapping</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins</groupId>
<artifactId>
maven-assembly-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>single</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-plugin-plugin
</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>descriptor</goal>
<goal>helpmojo</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>auto-resources-copy</id>
<activation>
<file>
<exists>${basedir}/src/main/resources</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>auto-compile-jar</id>
<activation>
<file>
<exists>${basedir}/src/main/java</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>${project.build.sourceVersion}</source>
<target>${project.build.sourceVersion}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>auto-javadoc-jar</id>
<activation>
<file>
<exists>${basedir}/src/main/java</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<show>private</show>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Eclipse M2E error, loops build forever
<profile>
<id>auto-manifest-jar</id>
<activation>
<file>
<exists>${basedir}/src/main/java</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestSection>
<name>Maven-Git</name>
<manifestEntries>
<Commit>${GIT_COMMIT}</Commit>
<Branch>${GIT_BRANCH}</Branch>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>Maven-Build</name>
<manifestEntries>
<Date>${maven.build.timestamp}</Date>
<Number>${BUILD_NUMBER}</Number>
<NodeId>${BUILD_NODE_NAME}</NodeId>
<User>${user.name}</User>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>Maven-Build-VM</name>
<manifestEntries>
<Runtime>${java.runtime.name}</Runtime>
<Vendor>${java.vm.specification.vendor}</Vendor>
<Version>${java.runtime.version}</Version>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>Maven-Build-OS</name>
<manifestEntries>
<Type>${os.name}</Type>
<Arch>${os.arch}</Arch>
<Version>${os.version}</Version>
</manifestEntries>
</manifestSection>
<manifestSection>
<name>Maven-Artifact</name>
<manifestEntries>
<GroupId>${project.groupId}</GroupId>
<ArtifactId>${project.artifactId}</ArtifactId>
<Version>${project.version}</Version>
</manifestEntries>
</manifestSection>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</profile>
-->
<profile>
<id>auto-test-jar</id>
<activation>
<file>
<exists>${basedir}/src/test/java</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>auto-attach-sources-jar</id>
<activation>
<file>
<exists>${basedir}/src/main/java</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>auto-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>