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

commit 27243a5faf6311ae6b53cc661c811afeec4c7b2a
Author: Francesco Chicchiriccò <ilgro...@apache.org>
AuthorDate: Tue Oct 18 17:04:43 2022 +0200

    [SYNCOPE-1701] Fixing SRA deployment on Maven central
---
 sra/pom.xml | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/sra/pom.xml b/sra/pom.xml
index 5d280b4687..e3f63741da 100644
--- a/sra/pom.xml
+++ b/sra/pom.xml
@@ -242,6 +242,15 @@ under the License.
           <include>banner.txt</include>
         </includes>
       </resource>
+
+      <resource>
+        <directory>${basedir}</directory>
+        <targetPath>META-INF</targetPath>
+        <includes>
+          <include>LICENSE</include>
+          <include>NOTICE</include>
+        </includes>
+      </resource>
     </resources>
     
     <testResources>
@@ -362,14 +371,26 @@ under the License.
       <id>apache-release</id>
 
       <build>
-        <plugins>      
+        <plugins>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-deploy-plugin</artifactId>
-            <configuration>
-              <skip>true</skip>
-            </configuration>
-          </plugin>           
+            <artifactId>maven-source-plugin</artifactId>
+            <inherited>false</inherited>
+            <executions>
+              <execution>
+                <id>attach-sources</id>
+                <goals>
+                  <goal>jar-no-fork</goal>
+                </goals>
+                <configuration>
+                  <includes>
+                    <include>${basedir}/LICENSE</include>
+                    <include>${basedir}/NOTICE</include>
+                  </includes>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
         </plugins>
       </build>
     </profile>

Reply via email to