Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from robsykes24/JENKINS-47069
[JENKINS-47069] Add sample maven-bundle-plugin project
- Loading branch information
Showing
5 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...insci/plugins/pipeline/maven/test/test_maven_projects/multi_module_bundle_project/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>jenkins.mvn.test.bundle</groupId> | ||
<artifactId>bundle-parent</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<name>${project.artifactId}</name> | ||
<description>Test pipeline triggering when dependency is produced with 'bundle' packaging</description> | ||
|
||
<modules> | ||
<module>print-api</module> | ||
<module>print-impl</module> | ||
</modules> | ||
|
||
</project> |
31 changes: 31 additions & 0 deletions
31
...ins/pipeline/maven/test/test_maven_projects/multi_module_bundle_project/print-api/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>jenkins.mvn.test.bundle</groupId> | ||
<artifactId>bundle-parent</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>print-api</artifactId> | ||
<packaging>bundle</packaging> | ||
<name>${project.artifactId}</name> | ||
<description>An OSGI bundle that defines an API</description> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<instructions> | ||
<Export-Package>jenkins.mvn.test.bundle.print</Export-Package> | ||
</instructions> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
7 changes: 7 additions & 0 deletions
7
...le_bundle_project/print-api/src/main/java/jenkins/mvn/test/bundle/print/PrintService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package jenkins.mvn.test.bundle.print; | ||
|
||
public interface PrintService | ||
{ | ||
public void print(String msg); | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...ns/pipeline/maven/test/test_maven_projects/multi_module_bundle_project/print-impl/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>jenkins.mvn.test.bundle</groupId> | ||
<artifactId>bundle-parent</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>print-impl</artifactId> | ||
<name>${project.artifactId}</name> | ||
<description>A project that consumes an API jar that happens to be an OSGi bundle</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>print-api</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
17 changes: 17 additions & 0 deletions
17
...project/print-impl/src/main/java/jenkins/mvn/test/bundle/print/impl/PrintServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package jenkins.mvn.test.bundle.print.impl; | ||
|
||
import jenkins.mvn.test.bundle.print.PrintService; | ||
|
||
public class PrintServiceImpl implements PrintService | ||
{ | ||
public void print( String msg ) | ||
{ | ||
System.out.println( msg ); | ||
} | ||
|
||
public static void main( String[] args ) | ||
{ | ||
PrintService printer = new PrintServiceImpl(); | ||
printer.print( "Hello World" ); | ||
} | ||
} |