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

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


The following commit(s) were added to refs/heads/master by this push:
     new e6d3c35  JENA-1852: Create sources-jar; add automatic module name
     new b18a09d  Merge pull request #702 from afs/querybuilder
e6d3c35 is described below

commit e6d3c35f22dcefe18be9b126400579680e5458e7
Author: Andy Seaborne <[email protected]>
AuthorDate: Mon Mar 2 18:28:43 2020 +0000

    JENA-1852: Create sources-jar; add automatic module name
---
 jena-extras/jena-querybuilder/pom.xml | 36 ++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/jena-extras/jena-querybuilder/pom.xml 
b/jena-extras/jena-querybuilder/pom.xml
index 373aeb4..d70aa55 100644
--- a/jena-extras/jena-querybuilder/pom.xml
+++ b/jena-extras/jena-querybuilder/pom.xml
@@ -29,6 +29,10 @@
     <version>3.15.0-SNAPSHOT</version>
   </parent>
 
+  <properties>
+    <automatic.module.name>org.apache.jena.querybuilder</automatic.module.name>
+  </properties>
+
   <dependencies>
     <dependency>
       <groupId>org.apache.jena</groupId>
@@ -45,4 +49,34 @@
     </dependency>
   </dependencies>
 
-</project>
\ No newline at end of file
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestEntries>
+              
<Automatic-Module-Name>${automatic.module.name}</Automatic-Module-Name>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <!-- <phase>package</phase> package is the default -->
+            <goals>
+              <goal>jar-no-fork</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Reply via email to