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

cziegeler pushed a commit to branch dynaimcdependencies2
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-fsresource.git


The following commit(s) were added to refs/heads/dynaimcdependencies2 by this 
push:
     new 9c39ee8  Create second bundle without dependencies
9c39ee8 is described below

commit 9c39ee8f9157215cb80e69ca0fb9168c5a90da63
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Fri Nov 15 16:21:03 2024 +0100

    Create second bundle without dependencies
---
 bnd-simple.bnd |  9 +++++++++
 bnd.bnd        | 13 ------------
 pom.xml        | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 70 insertions(+), 15 deletions(-)

diff --git a/bnd-simple.bnd b/bnd-simple.bnd
new file mode 100644
index 0000000..3d163c3
--- /dev/null
+++ b/bnd-simple.bnd
@@ -0,0 +1,9 @@
+-noimportjava: true
+Import-Package: !javax.jcr.*,\
+  !javax.json.*,\
+  !javax.xml.parsers,\
+  !org.apache.jackrabbit.util,\
+  !org.apache.jackrabbit.vault.*,\
+  !org.apache.sling.commons.osgi,\
+  !org.apache.sling.contentparser.*,\
+  *
\ No newline at end of file
diff --git a/bnd.bnd b/bnd.bnd
index cf1d6b6..d032110 100644
--- a/bnd.bnd
+++ b/bnd.bnd
@@ -1,16 +1,3 @@
 -includeresource: 
@org.apache.sling.contentparser.(api|json|xml|xml-jcr)-[0-9.]*.jar
 -exportcontents: !org.apache.sling.contentparser.*
 -noimportjava: true
-Import-Package: javax.jcr;resolution:=dynamic,\
-  javax.jcr.lock;resolution:=dynamic,\
-  javax.jcr.nodetype;resolution:=dynamic,\
-  javax.jcr.version;resolution:=dynamic,\
-  javax.json;resolution:=dynamic,\
-  javax.json.stream;resolution:=dynamic,\
-  javax.xml.parsers;resolution:=dynamic,\
-  org.apache.jackrabbit.util;resolution:=dynamic,\
-  org.apache.jackrabbit.vault.fs.api;resolution:=dynamic,\
-  org.apache.jackrabbit.vault.fs.config;resolution:=dynamic,\
-  org.apache.jackrabbit.vault.util;resolution:=dynamic,\
-  org.apache.sling.commons.osgi;resolution:=dynamic,\
-  *
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index ddde0b5..1e45ada 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,9 +7,9 @@
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at
-    
+
     http://www.apache.org/licenses/LICENSE-2.0
-    
+
     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -65,12 +65,71 @@
                 <artifactId>apache-rat-plugin</artifactId>
                 <configuration>
                     <excludes>
+                      <exclude>bnd-simple.bnd</exclude>
                       <exclude>src/test/resources/fs-test/**</exclude>
                       <exclude>src/test/resources/invalid-test/**</exclude>
                       
<exclude>src/test/resources/vaultfs-test/**/original</exclude>
                     </excludes>
                 </configuration>
             </plugin>
+
+        <!-- Simple JAR -->
+            <plugin>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy-classes-to-simple</id>
+                        <phase>process-classes</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <configuration>
+                            
<outputDirectory>${project.build.directory}/classes-simple</outputDirectory>
+                            <resources>
+                                <resource>
+                                    
<directory>${project.build.outputDirectory}</directory>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>biz.aQute.bnd</groupId>
+                <artifactId>bnd-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>bnd-process-simple</id>
+                        <goals>
+                            <goal>bnd-process</goal>
+                        </goals>
+                        <configuration>
+                            <bndfile>bnd-simple.bnd</bndfile>
+                            
<classesDir>${project.build.directory}/classes-simple</classesDir>
+                            
<outputDir>${project.build.directory}/classes-simple</outputDir>
+                            
<manifestPath>${project.build.directory}/classes-simple/manifest/MANIFEST.MF</manifestPath>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-jar-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>simple-jar</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                        <configuration>
+                            <classifier>simple</classifier>
+                            
<classesDirectory>${project.build.directory}/classes-simple</classesDirectory>
+                            <archive>
+                                
<manifestFile>${project.build.directory}/classes-simple/manifest/MANIFEST.MF</manifestFile>
+                            </archive>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
     <dependencies>

Reply via email to