Skip to content

Commit 5fb452d

Browse files
committed
Simplify maven-bundle-plugin setup
The only downside to defining it in `<plugins>` in the parent pom is that there's a warning when running the plugin on the parent pom: [INFO] --- bundle:5.1.9:manifest (bundle-manifest) @ commonmark-parent --- [WARNING] Ignoring project type pom - supportedProjectTypes = [jar, bundle] The upside is we don't have to remember to put the plugin into all the poms. The configuration is as recommended here: https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html#_adding_osgi_metadata_to_existing_projects_without_changing_the_packaging_type Compared to the previous one, the only differences are: - Import-Package adds imports for java packages, which seems to be recommended, see bndtools/bnd#2507 - Import-Package of own packages that were exported (e.g. org.commonmark in core) don't have the version number, not sure what's recommended there
1 parent 4e62517 commit 5fb452d

File tree

11 files changed

+20
-126
lines changed

11 files changed

+20
-126
lines changed

commonmark-ext-autolink/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,4 @@
3333
</dependency>
3434
</dependencies>
3535

36-
<build>
37-
<plugins>
38-
<plugin>
39-
<groupId>org.apache.felix</groupId>
40-
<artifactId>maven-bundle-plugin</artifactId>
41-
</plugin>
42-
</plugins>
43-
</build>
44-
4536
</project>

commonmark-ext-footnotes/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,4 @@
2424
</dependency>
2525
</dependencies>
2626

27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
35-
3627
</project>

commonmark-ext-gfm-strikethrough/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,4 @@
2424
</dependency>
2525
</dependencies>
2626

27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
35-
3627
</project>

commonmark-ext-gfm-tables/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,5 @@
2323
<scope>test</scope>
2424
</dependency>
2525
</dependencies>
26-
27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
3526

3627
</project>

commonmark-ext-heading-anchor/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,5 @@
2323
<scope>test</scope>
2424
</dependency>
2525
</dependencies>
26-
27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
3526

3627
</project>

commonmark-ext-image-attributes/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,4 @@
2424
</dependency>
2525
</dependencies>
2626

27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
35-
3627
</project>

commonmark-ext-ins/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,4 @@
2424
</dependency>
2525
</dependencies>
2626

27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
35-
3627
</project>

commonmark-ext-task-list-items/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,4 @@
2424
</dependency>
2525
</dependencies>
2626

27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
35-
3627
</project>

commonmark-ext-yaml-front-matter/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,4 @@
2424
</dependency>
2525
</dependencies>
2626

27-
<build>
28-
<plugins>
29-
<plugin>
30-
<groupId>org.apache.felix</groupId>
31-
<artifactId>maven-bundle-plugin</artifactId>
32-
</plugin>
33-
</plugins>
34-
</build>
35-
3627
</project>

commonmark/pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@
5454
</profile>
5555
</profiles>
5656

57-
<build>
58-
<plugins>
59-
<plugin>
60-
<groupId>org.apache.felix</groupId>
61-
<artifactId>maven-bundle-plugin</artifactId>
62-
</plugin>
63-
</plugins>
64-
</build>
65-
6657
<licenses>
6758
<license>
6859
<name>BSD-2-Clause</name>

0 commit comments

Comments
 (0)