This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/master by this push:
     new 50c502503b [SYNCOPE-1860] Switching to JAR executables
50c502503b is described below

commit 50c502503bcd08f9d1045d28a9c849b76fd86284
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Sat Feb 1 14:24:20 2025 +0100

    [SYNCOPE-1860] Switching to JAR executables
---
 .../resources/archetype-resources/console/pom.xml  | 12 +++++++--
 .../resources/archetype-resources/core/pom.xml     | 12 +++++++--
 .../resources/archetype-resources/enduser/pom.xml  | 10 +++++++-
 .../main/resources/archetype-resources/wa/pom.xml  | 12 +++++++--
 docker/console/pom.xml                             | 22 +---------------
 docker/console/src/main/resources/Dockerfile       |  2 +-
 docker/console/src/main/resources/startup.sh       |  2 +-
 docker/core/pom.xml                                | 30 ++++------------------
 docker/core/src/main/resources/Dockerfile          |  2 +-
 docker/core/src/main/resources/startup.sh          |  2 +-
 docker/enduser/pom.xml                             | 22 +---------------
 docker/enduser/src/main/resources/Dockerfile       |  2 +-
 docker/enduser/src/main/resources/startup.sh       |  2 +-
 docker/wa/pom.xml                                  | 22 +---------------
 docker/wa/src/main/resources/Dockerfile            |  2 +-
 docker/wa/src/main/resources/startup.sh            |  2 +-
 16 files changed, 55 insertions(+), 103 deletions(-)

diff --git a/archetype/src/main/resources/archetype-resources/console/pom.xml 
b/archetype/src/main/resources/archetype-resources/console/pom.xml
index ec9fddb8d2..79bfd13a83 100644
--- a/archetype/src/main/resources/archetype-resources/console/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/console/pom.xml
@@ -30,7 +30,11 @@ under the License.
   <name>Apache Syncope sample project - Console</name>
   <groupId>${groupId}</groupId>
   <artifactId>${artifactId}</artifactId>
-  <packaging>war</packaging>
+  <packaging>${packaging}</packaging>
+
+  <properties>
+    <packaging>war</packaging>
+  </properties>
 
   <dependencies>
     <dependency>
@@ -122,7 +126,11 @@ under the License.
     
     <profile>
       <id>standalone</id>
-       
+
+      <properties>
+        <packaging>jar</packaging>
+      </properties>
+
       <build>
         <plugins>
           <plugin>
diff --git a/archetype/src/main/resources/archetype-resources/core/pom.xml 
b/archetype/src/main/resources/archetype-resources/core/pom.xml
index 64c1c384a0..39282e92af 100644
--- a/archetype/src/main/resources/archetype-resources/core/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/core/pom.xml
@@ -30,7 +30,11 @@ under the License.
   <name>Apache Syncope sample project - Core</name>
   <groupId>${groupId}</groupId>
   <artifactId>${artifactId}</artifactId>
-  <packaging>war</packaging>
+  <packaging>${packaging}</packaging>
+
+  <properties>
+    <packaging>war</packaging>
+  </properties>
 
   <dependencies>
     <dependency>
@@ -169,7 +173,11 @@ under the License.
     
     <profile>
       <id>standalone</id>
-       
+
+      <properties>
+        <packaging>jar</packaging>
+      </properties>
+
       <build>
         <plugins>
           <plugin>
diff --git a/archetype/src/main/resources/archetype-resources/enduser/pom.xml 
b/archetype/src/main/resources/archetype-resources/enduser/pom.xml
index 79b7f28b6d..9acecc71fd 100644
--- a/archetype/src/main/resources/archetype-resources/enduser/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/enduser/pom.xml
@@ -30,7 +30,11 @@ under the License.
   <name>Apache Syncope sample project - Enduser</name>
   <groupId>${groupId}</groupId>
   <artifactId>${artifactId}</artifactId>
-  <packaging>war</packaging>
+  <packaging>${packaging}</packaging>
+
+  <properties>
+    <packaging>war</packaging>
+  </properties>
 
   <dependencies>
     <dependency>
@@ -150,6 +154,10 @@ under the License.
     <profile>
       <id>standalone</id>
 
+      <properties>
+        <packaging>jar</packaging>
+      </properties>
+
       <build>
         <plugins>
           <plugin>
diff --git a/archetype/src/main/resources/archetype-resources/wa/pom.xml 
b/archetype/src/main/resources/archetype-resources/wa/pom.xml
index 00507a9589..c2619707b5 100644
--- a/archetype/src/main/resources/archetype-resources/wa/pom.xml
+++ b/archetype/src/main/resources/archetype-resources/wa/pom.xml
@@ -30,7 +30,11 @@ under the License.
   <name>Apache Syncope sample project - WA</name>
   <groupId>${groupId}</groupId>
   <artifactId>${artifactId}</artifactId>
-  <packaging>war</packaging>
+  <packaging>${packaging}</packaging>
+
+  <properties>
+    <packaging>war</packaging>
+  </properties>
 
   <dependencyManagement>
     <dependencies>
@@ -114,7 +118,11 @@ under the License.
   <profiles>
     <profile>
       <id>standalone</id>
-        
+
+      <properties>
+        <packaging>jar</packaging>
+      </properties>
+
       <build>
         <plugins>
           <plugin>
diff --git a/docker/console/pom.xml b/docker/console/pom.xml
index 11a332e1a1..2dbf444844 100644
--- a/docker/console/pom.xml
+++ b/docker/console/pom.xml
@@ -31,7 +31,7 @@ under the License.
   <description>Apache Syncope Docker Console</description>
   <groupId>org.apache.syncope</groupId>
   <artifactId>syncope-docker-console</artifactId>
-  <packaging>war</packaging>
+  <packaging>jar</packaging>
 
   <properties>
     <rootpom.basedir>${basedir}/../..</rootpom.basedir>
@@ -87,26 +87,6 @@ under the License.
 
   <build>
     <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <inherited>false</inherited>
-        <configuration>
-          
<webXml>${basedir}/../../fit/console-reference/src/main/webapp/WEB-INF/web.xml</webXml>
-          <webResources>
-            <resource>
-              <directory>${basedir}</directory>
-              <targetPath>META-INF</targetPath>
-              <includes>
-                <include>LICENSE</include>
-                <include>NOTICE</include>
-              </includes>
-            </resource>
-          </webResources>        
-          <outputDirectory>${project.build.outputDirectory}</outputDirectory>  
      
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
diff --git a/docker/console/src/main/resources/Dockerfile 
b/docker/console/src/main/resources/Dockerfile
index 92017151a0..d6ba109082 100644
--- a/docker/console/src/main/resources/Dockerfile
+++ b/docker/console/src/main/resources/Dockerfile
@@ -29,7 +29,7 @@ RUN mkdir /opt/syncope/log
 COPY *.properties /opt/syncope/conf/
 COPY log4j2.xml /opt/syncope/conf/
 
-COPY syncope-docker-console-*war /opt/syncope/lib/syncope-console.war
+COPY syncope-docker-console-*jar /opt/syncope/lib/syncope-console.jar
 
 ENV SPRING_PROFILES_ACTIVE=docker
 ENV LOADER_PATH="/opt/syncope/conf,/opt/syncope/lib"
diff --git a/docker/console/src/main/resources/startup.sh 
b/docker/console/src/main/resources/startup.sh
index 7f35946bfd..229578a90d 100755
--- a/docker/console/src/main/resources/startup.sh
+++ b/docker/console/src/main/resources/startup.sh
@@ -17,4 +17,4 @@
 # specific language governing permissions and limitations
 # under the License.
 
-java $JAVA_OPTS -jar /opt/syncope/lib/syncope-console.war
+java $JAVA_OPTS -jar /opt/syncope/lib/syncope-console.jar
diff --git a/docker/core/pom.xml b/docker/core/pom.xml
index 8438992b4d..611dbccdd2 100644
--- a/docker/core/pom.xml
+++ b/docker/core/pom.xml
@@ -31,7 +31,7 @@ under the License.
   <description>Apache Syncope Docker Core</description>
   <groupId>org.apache.syncope</groupId>
   <artifactId>syncope-docker-core</artifactId>
-  <packaging>war</packaging>
+  <packaging>jar</packaging>
 
   <properties>
     <rootpom.basedir>${basedir}/../..</rootpom.basedir>
@@ -181,26 +181,6 @@ under the License.
         </executions>
       </plugin>
 
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <inherited>false</inherited>
-        <configuration>
-          
<webXml>${basedir}/../../fit/core-reference/src/main/webapp/WEB-INF/web.xml</webXml>
-          <webResources>
-            <resource>
-              <directory>${basedir}</directory>
-              <targetPath>META-INF</targetPath>
-              <includes>
-                <include>LICENSE</include>
-                <include>NOTICE</include>
-              </includes>
-            </resource>
-          </webResources>                
-          
<outputDirectory>${project.build.outputDirectory}/lib</outputDirectory>
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
@@ -231,10 +211,10 @@ under the License.
               <build>
                 <dockerFileDir>${project.build.outputDirectory}</dockerFileDir>
                 <buildx>
-                   <platforms>
-                     <platform>linux/amd64</platform>
-                     <platform>linux/arm64</platform>
-                   </platforms>
+                  <platforms>
+                    <platform>linux/amd64</platform>
+                    <platform>linux/arm64</platform>
+                  </platforms>
                 </buildx>
               </build>
             </image>
diff --git a/docker/core/src/main/resources/Dockerfile 
b/docker/core/src/main/resources/Dockerfile
index ead3d9df67..7978a026d1 100644
--- a/docker/core/src/main/resources/Dockerfile
+++ b/docker/core/src/main/resources/Dockerfile
@@ -34,7 +34,7 @@ COPY saml.keystore.jks /opt/syncope/conf/
 COPY bundles/*.jar /opt/syncope/bundles/
 COPY lib/*.jar /opt/syncope/lib/
 
-COPY lib/syncope-docker-core-*war /opt/syncope/lib/syncope.war
+COPY lib/syncope-docker-core-*jar /opt/syncope/lib/syncope.jar
 
 ENV SPRING_PROFILES_ACTIVE=docker
 ENV LOADER_PATH="/opt/syncope/conf,/opt/syncope/lib"
diff --git a/docker/core/src/main/resources/startup.sh 
b/docker/core/src/main/resources/startup.sh
index a853dc5c46..10a74a3e48 100755
--- a/docker/core/src/main/resources/startup.sh
+++ b/docker/core/src/main/resources/startup.sh
@@ -17,4 +17,4 @@
 # specific language governing permissions and limitations
 # under the License.
 
-java $JAVA_OPTS -jar /opt/syncope/lib/syncope.war
+java $JAVA_OPTS -jar /opt/syncope/lib/syncope.jar
diff --git a/docker/enduser/pom.xml b/docker/enduser/pom.xml
index 2ea5e77d10..3d3681c60e 100644
--- a/docker/enduser/pom.xml
+++ b/docker/enduser/pom.xml
@@ -31,7 +31,7 @@ under the License.
   <description>Apache Syncope Docker Enduser</description>
   <groupId>org.apache.syncope</groupId>
   <artifactId>syncope-docker-enduser</artifactId>
-  <packaging>war</packaging>
+  <packaging>jar</packaging>
 
   <properties>
     <rootpom.basedir>${basedir}/../..</rootpom.basedir>
@@ -76,26 +76,6 @@ under the License.
     
   <build>
     <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <inherited>false</inherited>
-        <configuration>
-          
<webXml>${basedir}/../../fit/enduser-reference/src/main/webapp/WEB-INF/web.xml</webXml>
-          <webResources>
-            <resource>
-              <directory>${basedir}</directory>
-              <targetPath>META-INF</targetPath>
-              <includes>
-                <include>LICENSE</include>
-                <include>NOTICE</include>
-              </includes>
-            </resource>
-          </webResources>        
-          <outputDirectory>${project.build.outputDirectory}</outputDirectory>  
      
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
diff --git a/docker/enduser/src/main/resources/Dockerfile 
b/docker/enduser/src/main/resources/Dockerfile
index 3f94b09a18..d0ac13b6ec 100644
--- a/docker/enduser/src/main/resources/Dockerfile
+++ b/docker/enduser/src/main/resources/Dockerfile
@@ -30,7 +30,7 @@ COPY *.properties /opt/syncope/conf/
 COPY *.json /opt/syncope/conf/
 COPY log4j2.xml /opt/syncope/conf/
 
-COPY syncope-docker-enduser-*war /opt/syncope/lib/syncope-enduser.war
+COPY syncope-docker-enduser-*jar /opt/syncope/lib/syncope-enduser.jar
 
 ENV SPRING_PROFILES_ACTIVE=docker
 ENV LOADER_PATH="/opt/syncope/conf,/opt/syncope/lib"
diff --git a/docker/enduser/src/main/resources/startup.sh 
b/docker/enduser/src/main/resources/startup.sh
index 9dffc6a604..b09d451c36 100755
--- a/docker/enduser/src/main/resources/startup.sh
+++ b/docker/enduser/src/main/resources/startup.sh
@@ -17,4 +17,4 @@
 # specific language governing permissions and limitations
 # under the License.
 
-java $JAVA_OPTS -jar /opt/syncope/lib/syncope-enduser.war
+java $JAVA_OPTS -jar /opt/syncope/lib/syncope-enduser.jar
diff --git a/docker/wa/pom.xml b/docker/wa/pom.xml
index 97a9d07ed6..8c0b762d8a 100644
--- a/docker/wa/pom.xml
+++ b/docker/wa/pom.xml
@@ -31,7 +31,7 @@ under the License.
   <description>Apache Syncope Docker WA</description>
   <groupId>org.apache.syncope</groupId>
   <artifactId>syncope-docker-wa</artifactId>
-  <packaging>war</packaging>
+  <packaging>jar</packaging>
 
   <dependencyManagement>
     <dependencies>
@@ -70,26 +70,6 @@ under the License.
 
   <build>
     <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <inherited>false</inherited>
-        <configuration>
-          
<webXml>${basedir}/../../fit/wa-reference/src/main/webapp/WEB-INF/web.xml</webXml>
-          <webResources>
-            <resource>
-              <directory>${basedir}</directory>
-              <targetPath>META-INF</targetPath>
-              <includes>
-                <include>LICENSE</include>
-                <include>NOTICE</include>
-              </includes>
-            </resource>
-          </webResources>
-          <outputDirectory>${project.build.outputDirectory}</outputDirectory>
-        </configuration>
-      </plugin>
-
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
diff --git a/docker/wa/src/main/resources/Dockerfile 
b/docker/wa/src/main/resources/Dockerfile
index d0dd68e09f..b3c7176693 100644
--- a/docker/wa/src/main/resources/Dockerfile
+++ b/docker/wa/src/main/resources/Dockerfile
@@ -29,7 +29,7 @@ RUN mkdir /opt/syncope/log
 COPY *.properties /opt/syncope/conf/
 COPY log4j2.xml /opt/syncope/conf/
 
-COPY syncope-docker-wa-*war /opt/syncope/lib/syncope-wa.war
+COPY syncope-docker-wa-*jar /opt/syncope/lib/syncope-wa.jar
 
 ENV SPRING_PROFILES_ACTIVE=docker
 ENV LOADER_PATH="/opt/syncope/conf,/opt/syncope/lib"
diff --git a/docker/wa/src/main/resources/startup.sh 
b/docker/wa/src/main/resources/startup.sh
index 71ee91a9e5..35b0d8dab1 100755
--- a/docker/wa/src/main/resources/startup.sh
+++ b/docker/wa/src/main/resources/startup.sh
@@ -17,4 +17,4 @@
 # specific language governing permissions and limitations
 # under the License.
 
-java $JAVA_OPTS -jar /opt/syncope/lib/syncope-wa.war
+java $JAVA_OPTS -jar /opt/syncope/lib/syncope-wa.jar

Reply via email to