[java-idp-jetty-base] 04/04: Build jetty-base tarball/zip file
Rod Widdowson
rdw at steadingsoftware.com
Wed Oct 16 13:25:09 UTC 2024
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch dev/IDP-2297
in repository java-idp-jetty-base.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-jetty-base.git;a=commit;h=6416e6bd38f530bbec4650e337a08c003d9291c2
commit 6416e6bd38f530bbec4650e337a08c003d9291c2
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Oct 16 11:18:24 2024 +0100
Build jetty-base tarball/zip file
---
jetty-base-impl/pom.xml | 74 +++++++++++++++++++++++++++
jetty-base-impl/src/main/assembly/testbed.xml | 22 ++++++++
jetty-base-impl/src/main/assembly/tgz.xml | 15 ++++++
jetty-base-impl/src/main/assembly/zip.xml | 38 ++++++++++++++
pom.xml | 2 +-
5 files changed, 150 insertions(+), 1 deletion(-)
diff --git a/jetty-base-impl/pom.xml b/jetty-base-impl/pom.xml
index d5a814d..b36f5f3 100644
--- a/jetty-base-impl/pom.xml
+++ b/jetty-base-impl/pom.xml
@@ -14,6 +14,11 @@
<artifactId>jetty-base-plugin-impl</artifactId>
<packaging>jar</packaging>
+ <properties>
+ <assemblyDirectory>${project.build.directory}/jetty-base</assemblyDirectory>
+ </properties>
+
+
<dependencies>
<!-- Provided Dependencies needed to build the plugin and module -->
<dependency>
@@ -69,6 +74,75 @@
</archive>
</configuration>
</plugin>
+ <!-- Copy files to the jettey base we will create -->
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <!-- Copy Logback logging dependencies to jetty-base/lib/logging directory. -->
+ <execution>
+ <id>copy-jetty-logging-logback</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <outputDirectory>${assemblyDirectory}/lib/logging/</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/../jetty-base-packages/target/staging/logback</directory>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-jetty-base</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <outputDirectory>${assemblyDirectory}</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/resources/net/shibboleth/idp/plugin/jettybase/module/jetty-base</directory>
+ <excludes>
+ <exclude>**/.gitkeep</exclude>
+ </excludes>
+ <filtering>false</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+
+ <!-- Assemble the artifacts. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>src/main/assembly/tgz.xml</descriptor>
+ <descriptor>src/main/assembly/zip.xml</descriptor>
+ <!-- <descriptor>src/main/assembly/testbed.xml</descriptor> -->
+ </descriptors>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
diff --git a/jetty-base-impl/src/main/assembly/testbed.xml b/jetty-base-impl/src/main/assembly/testbed.xml
new file mode 100644
index 0000000..5b3687e
--- /dev/null
+++ b/jetty-base-impl/src/main/assembly/testbed.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
+ <id>testbed</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>${assemblyDirectory}</directory>
+ <excludes>
+ <exclude>**/webapps/idp.xml</exclude>
+ </excludes>
+ <outputDirectory></outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>${assemblyDirectory}-testbed</directory>
+ <outputDirectory></outputDirectory>
+ </fileSet>
+ </fileSets>
+ <includeBaseDirectory>false</includeBaseDirectory>
+</assembly>
diff --git a/jetty-base-impl/src/main/assembly/tgz.xml b/jetty-base-impl/src/main/assembly/tgz.xml
new file mode 100644
index 0000000..8763457
--- /dev/null
+++ b/jetty-base-impl/src/main/assembly/tgz.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
+ <id>tgz</id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>${assemblyDirectory}</directory>
+ <outputDirectory></outputDirectory>
+ </fileSet>
+ </fileSets>
+ <includeBaseDirectory>false</includeBaseDirectory>
+</assembly>
diff --git a/jetty-base-impl/src/main/assembly/zip.xml b/jetty-base-impl/src/main/assembly/zip.xml
new file mode 100644
index 0000000..c6a9413
--- /dev/null
+++ b/jetty-base-impl/src/main/assembly/zip.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
+ <id>zip</id>
+ <formats>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>${assemblyDirectory}</directory>
+ <outputDirectory></outputDirectory>
+ <excludes>
+ <exclude>**/*.bat*</exclude>
+ <exclude>**/*.config*</exclude>
+ <exclude>**/*.ini*</exclude>
+ <exclude>**/*.properties*</exclude>
+ <exclude>**/*.txt*</exclude>
+ <exclude>**/*.vm*</exclude>
+ <exclude>**/*.xml*</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>${assemblyDirectory}</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>**/*.bat*</include>
+ <include>**/*.config*</include>
+ <include>**/*.ini*</include>
+ <include>**/*.properties*</include>
+ <include>**/*.txt*</include>
+ <include>**/*.vm*</include>
+ <include>**/*.xml*</include>
+ </includes>
+ <lineEnding>windows</lineEnding>
+ </fileSet>
+ </fileSets>
+ <includeBaseDirectory>false</includeBaseDirectory>
+</assembly>
diff --git a/pom.xml b/pom.xml
index e6f665f..297b6d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,8 +59,8 @@
</dependencyManagement>
<modules>
- <module>jetty-base-impl</module>
<module>jetty-base-packages</module>
+ <module>jetty-base-impl</module>
<module>jetty-base-dist</module>
</modules>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list