├── _config.yml
├── images
├── cmd.png
└── eclipse.png
├── cics-bundle-maven-plugin
└── src
│ ├── it
│ ├── test-bundle-deploy
│ │ ├── postbuild.bsh
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ └── pom.xml
│ ├── test-reactor-ear
│ │ ├── postbuild.bsh
│ │ ├── test-bundle
│ │ │ └── pom.xml
│ │ ├── pom.xml
│ │ └── test-ear
│ │ │ └── pom.xml
│ ├── test-reactor-eba
│ │ ├── postbuild.bsh
│ │ ├── test-osgi
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── java
│ │ │ │ └── test_osgi
│ │ │ │ └── TestEndpoint.java
│ │ ├── pom.xml
│ │ ├── test-bundle
│ │ │ └── pom.xml
│ │ └── test-eba
│ │ │ └── pom.xml
│ ├── test-reactor-osgi
│ │ ├── postbuild.bsh
│ │ ├── test-tycho
│ │ │ ├── META-INF
│ │ │ │ └── MANIFEST.MF
│ │ │ ├── build.properties
│ │ │ ├── src
│ │ │ │ └── main
│ │ │ │ │ └── java
│ │ │ │ │ └── test_tycho
│ │ │ │ │ └── TestEndpoint.java
│ │ │ └── pom.xml
│ │ ├── test-osgi
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── java
│ │ │ │ └── test_osgi
│ │ │ │ └── TestEndpoint.java
│ │ ├── pom.xml
│ │ └── test-bundle
│ │ │ └── pom.xml
│ ├── test-bundle-deploy-neither-smss
│ │ ├── postbuild.bsh
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ └── pom.xml
│ ├── test-bundle-deploy-pwd-in-pom
│ │ ├── postbuild.bsh
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ └── pom.xml
│ ├── test-bundle-ear
│ │ ├── postbuild.bsh
│ │ └── pom.xml
│ ├── test-bundle-eba
│ │ └── postbuild.bsh
│ ├── test-bundle-osgi
│ │ ├── postbuild.bsh
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── build.properties
│ │ ├── src
│ │ │ └── main
│ │ │ │ └── java
│ │ │ │ └── test_tycho
│ │ │ │ └── TestEndpoint.java
│ │ └── pom.xml
│ ├── test-bundle-war
│ │ ├── postbuild.bsh
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── test_war
│ │ │ └── TestEndpoint.java
│ ├── test-reactor-ear-jvmserver
│ │ ├── postbuild.bsh
│ │ ├── pom.xml
│ │ ├── test-ear
│ │ │ └── pom.xml
│ │ └── test-bundle
│ │ │ └── pom.xml
│ ├── test-reactor-osgi-jvmserver
│ │ ├── postbuild.bsh
│ │ ├── test-tycho
│ │ │ ├── META-INF
│ │ │ │ └── MANIFEST.MF
│ │ │ ├── build.properties
│ │ │ ├── src
│ │ │ │ └── main
│ │ │ │ │ └── java
│ │ │ │ │ └── test_tycho
│ │ │ │ │ └── TestEndpoint.java
│ │ │ └── pom.xml
│ │ ├── invoker.properties
│ │ ├── test-osgi
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── java
│ │ │ │ └── test_osgi
│ │ │ │ └── TestEndpoint.java
│ │ └── pom.xml
│ ├── test-reactor-war-jvmserver
│ │ ├── postbuild.bsh
│ │ └── pom.xml
│ ├── test-no-transitive
│ │ ├── postbuild.bsh
│ │ ├── pom.xml
│ │ ├── bundle
│ │ │ └── pom.xml
│ │ ├── war1
│ │ │ └── pom.xml
│ │ └── war2
│ │ │ └── pom.xml
│ ├── test-reactor-resourcedef
│ │ ├── postbuild.bsh
│ │ ├── test-bundle
│ │ │ ├── src
│ │ │ │ └── main
│ │ │ │ │ └── bundleParts
│ │ │ │ │ ├── noextension
│ │ │ │ │ ├── PROG1.program
│ │ │ │ │ ├── mymap.urimap
│ │ │ │ │ └── EventBinding.evbind
│ │ │ └── pom.xml
│ │ └── pom.xml
│ ├── test-reactor-war
│ │ ├── postbuild.bsh
│ │ ├── pom.xml
│ │ └── test-bundle
│ │ │ └── pom.xml
│ ├── test-bundle-ear-bundle-parts
│ │ ├── postbuild.bsh
│ │ └── src
│ │ │ └── main
│ │ │ └── bundleParts
│ │ │ ├── JVE1.transaction
│ │ │ └── JAVAVES1.program
│ ├── test-bundle-eba-bundle-parts
│ │ ├── postbuild.bsh
│ │ └── src
│ │ │ └── main
│ │ │ └── bundleParts
│ │ │ ├── JVE1.transaction
│ │ │ └── JAVAVES1.program
│ ├── test-bundle-war-bundle-parts
│ │ ├── postbuild.bsh
│ │ └── src
│ │ │ └── main
│ │ │ ├── bundleParts
│ │ │ ├── JVE1.transaction
│ │ │ └── JAVAVES1.program
│ │ │ └── java
│ │ │ └── test_war
│ │ │ └── TestEndpoint.java
│ ├── test-bundle-war-final-name
│ │ ├── postbuild.bsh
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── test_war
│ │ │ └── TestEndpoint.java
│ ├── test-reactor-bundlePartDirectory
│ │ ├── postbuild.bsh
│ │ ├── test-bundle
│ │ │ ├── src
│ │ │ │ └── main
│ │ │ │ │ ├── bundleParts
│ │ │ │ │ ├── noextensionWrongDir
│ │ │ │ │ ├── PROG1WrongDir.program
│ │ │ │ │ ├── mymapWrongDir.urimap
│ │ │ │ │ └── EventBindingWrongDir.evbind
│ │ │ │ │ └── differentDirectory
│ │ │ │ │ ├── noextension
│ │ │ │ │ ├── PROG1.program
│ │ │ │ │ ├── mymap.urimap
│ │ │ │ │ └── EventBinding.evbind
│ │ │ └── pom.xml
│ │ └── pom.xml
│ ├── test-bundle-osgi-bundle-parts
│ │ ├── postbuild.bsh
│ │ ├── META-INF
│ │ │ └── MANIFEST.MF
│ │ ├── src
│ │ │ └── main
│ │ │ │ ├── bundleParts
│ │ │ │ ├── JVE1.transaction
│ │ │ │ └── JAVAVES1.program
│ │ │ │ └── java
│ │ │ │ └── test_tycho
│ │ │ │ └── TestEndpoint.java
│ │ ├── build.properties
│ │ └── pom.xml
│ ├── test-bundle-osgi-versionrange
│ │ ├── postbuild.bsh
│ │ ├── osgi
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── java
│ │ │ │ └── com
│ │ │ │ └── ibm
│ │ │ │ └── cics
│ │ │ │ └── Main.java
│ │ ├── pom.xml
│ │ └── bundle
│ │ │ └── pom.xml
│ ├── test-bundle-deploy-noCICSplex
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-bundle-deploy-noRegion
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-bundle-deploy_invalid-server-ID
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-bundle-deploy_missing-invalid_url
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-reactor-war-deploy
│ │ ├── prebuild.bsh
│ │ ├── postbuild.bsh
│ │ └── pom.xml
│ ├── test-bundle-deploy-neither
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-bundle-deploy_missing-required-attribute
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-bundle-war-deploy-userprops
│ │ ├── prebuild.bsh
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── test_war
│ │ │ └── TestEndpoint.java
│ ├── test-bundle-deploy-insecure
│ │ ├── prebuild.bsh
│ │ ├── test-app-bundle-0.0.1-SNAPSHOT.zip
│ │ ├── invoker.properties
│ │ └── postbuild.groovy
│ ├── test-reactor-debug-logging
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ ├── war
│ │ │ ├── src
│ │ │ │ └── main
│ │ │ │ │ └── java
│ │ │ │ │ └── test_war
│ │ │ │ │ └── TestEndpoint.java
│ │ │ └── pom.xml
│ │ ├── pom.xml
│ │ └── bundle
│ │ │ └── pom.xml
│ ├── test-missing-binding
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-bundle-war-no-jvmserver
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── test_war
│ │ │ └── TestEndpoint.java
│ ├── test-reactor-ear-nodefaultjvmserver
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ ├── test-bundle
│ │ │ └── pom.xml
│ │ ├── pom.xml
│ │ └── test-ear
│ │ │ └── pom.xml
│ ├── test-reactor-war-nodefaultjvmserver
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ └── pom.xml
│ ├── test-reactor-osgi-no-defaultjvmserver
│ │ ├── invoker.properties
│ │ ├── postbuild.groovy
│ │ ├── test-osgi
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── java
│ │ │ │ └── test_osgi
│ │ │ │ └── TestEndpoint.java
│ │ ├── pom.xml
│ │ └── test-bundle
│ │ │ └── pom.xml
│ ├── test-repeat-bundle-war
│ │ ├── invoker.properties
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── test_war
│ │ │ └── TestEndpoint.java
│ └── setup-test-war
│ │ └── pom.xml
│ ├── test
│ ├── resources
│ │ └── test-app-bundle-0.0.1-SNAPSHOT.zip
│ └── java
│ │ └── com
│ │ └── ibm
│ │ └── cics
│ │ └── cbmp
│ │ ├── EarbundleTest.java
│ │ ├── EbabundleTest.java
│ │ ├── WarbundleTest.java
│ │ ├── OsgibundleTest.java
│ │ ├── OsgibundleJarTest.java
│ │ └── OsgibundleDirTest.java
│ ├── main
│ ├── java
│ │ └── com
│ │ │ └── ibm
│ │ │ └── cics
│ │ │ └── cbmp
│ │ │ ├── DefaultsProvider.java
│ │ │ ├── MojoExecutionRuntimeException.java
│ │ │ ├── Earbundle.java
│ │ │ ├── Warbundle.java
│ │ │ ├── Ebabundle.java
│ │ │ ├── BundleEarMojo.java
│ │ │ ├── BundleEbaMojo.java
│ │ │ ├── BundleOSGiMojo.java
│ │ │ ├── BundleWarMojo.java
│ │ │ ├── AuthenticationInfo.java
│ │ │ ├── AbstractJavaBundlePartBinding.java
│ │ │ ├── ServerConfig.java
│ │ │ └── BundlePartBinding.java
│ └── resources
│ │ └── META-INF
│ │ ├── m2e
│ │ └── lifecycle-mapping-metadata.xml
│ │ └── plexus
│ │ └── components.xml
│ └── site
│ └── site.xml
├── .gitignore
├── samples
├── bundle-war-deploy
│ └── demo-war
│ │ └── src
│ │ └── main
│ │ ├── webapp
│ │ ├── images
│ │ │ └── cics.png
│ │ ├── WEB-INF
│ │ │ └── web.xml
│ │ ├── index.html
│ │ ├── index.js
│ │ └── style.css
│ │ └── java
│ │ └── demo
│ │ └── SimpleServlet.java
├── bundle-reactor-deploy
│ ├── demo-war
│ │ └── src
│ │ │ └── main
│ │ │ ├── webapp
│ │ │ ├── images
│ │ │ │ └── cics.png
│ │ │ ├── WEB-INF
│ │ │ │ └── web.xml
│ │ │ ├── index.html
│ │ │ ├── index.js
│ │ │ └── style.css
│ │ │ └── java
│ │ │ └── demo
│ │ │ └── SimpleServlet.java
│ └── pom.xml
└── src
│ └── main
│ └── resources
│ └── mappings
│ └── acceptAll.json
├── cics-bundle-deploy-reactor-archetype
├── src
│ └── main
│ │ └── resources
│ │ ├── archetype-resources
│ │ ├── __rootArtifactId__-bundle
│ │ │ ├── settings.xml
│ │ │ └── pom.xml
│ │ ├── pom.xml
│ │ └── __rootArtifactId__-war
│ │ │ └── src
│ │ │ └── main
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── servlet
│ │ │ │ └── HelloServlet.java
│ │ │ └── webapp
│ │ │ └── index.html
│ │ └── META-INF
│ │ └── maven
│ │ └── archetype-metadata.xml
└── README.md
├── SECURITY.md
├── cics-bundle-reactor-archetype
└── src
│ └── main
│ └── resources
│ ├── archetype-resources
│ ├── pom.xml
│ ├── __rootArtifactId__-war
│ │ └── src
│ │ │ └── main
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── servlet
│ │ │ │ └── HelloServlet.java
│ │ │ └── webapp
│ │ │ └── index.html
│ └── __rootArtifactId__-bundle
│ │ └── pom.xml
│ └── META-INF
│ └── maven
│ └── archetype-metadata.xml
├── .github
└── workflows
│ ├── maven-scheduled-build.yml
│ └── maven-build.yml
└── .pre-commit-config.yaml
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/images/cmd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/images/cmd.png
--------------------------------------------------------------------------------
/images/eclipse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/images/eclipse.png
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy/postbuild.bsh:
--------------------------------------------------------------------------------
1 | context.get("wireMockServer").shutdownServer();
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildEar.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-eba/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildEba.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildOsgi.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither-smss/postbuild.bsh:
--------------------------------------------------------------------------------
1 | context.get("wireMockServer").shutdownServer();
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-pwd-in-pom/postbuild.bsh:
--------------------------------------------------------------------------------
1 | context.get("wireMockServer").shutdownServer();
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-ear/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleEar.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-eba/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleEba.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleOSGi.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleWar.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-jvmserver/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildEar.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildOsgi.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-jvmserver/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildWar.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-no-transitive/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestNoTransitive.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-resourcedef/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildResourcedef.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-resourcedef/test-bundle/src/main/bundleParts/noextension:
--------------------------------------------------------------------------------
1 | this file should have no file extension.
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildWar.assertOutput(new File(basedir, "test-bundle"));
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-ear-bundle-parts/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleEarBundleParts.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-eba-bundle-parts/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleEbaBundleParts.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-bundle-parts/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleWarBundleParts.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-final-name/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleWarFinalName.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildBundlePartDirectory.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-bundle-parts/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleOSGiBundleParts.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-versionrange/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildTestBundleOSGiVersionRange.assertOutput(basedir);
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/bundleParts/noextensionWrongDir:
--------------------------------------------------------------------------------
1 | this file should have no file extension.
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/differentDirectory/noextension:
--------------------------------------------------------------------------------
1 | this file should have no file extension.
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | build.log
2 | target/
3 | **/*.DS_Store
4 | .project
5 | .classpath
6 | .settings
7 | .factorypath
8 | .idea
9 | **/*.iml
10 | .scans/
11 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupSMSSWiremock(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither-smss/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupSMSSWiremock(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-pwd-in-pom/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort)));
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_invalid-server-ID/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-invalid_url/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-deploy/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremockWithoutBinary(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/samples/bundle-war-deploy/demo-war/src/main/webapp/images/cics.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/samples/bundle-war-deploy/demo-war/src/main/webapp/images/cics.png
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremockNoCICSplexRegion(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/samples/bundle-reactor-deploy/demo-war/src/main/webapp/images/cics.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/samples/bundle-reactor-deploy/demo-war/src/main/webapp/images/cics.png
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-required-attribute/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-SymbolicName: test-bundle-osgi
4 | Bundle-Version: 0.0.1.qualifier
5 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-deploy-userprops/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremockWithoutBinary(Integer.parseInt(wiremockPort)));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-deploy/postbuild.bsh:
--------------------------------------------------------------------------------
1 | com.ibm.cics.cbmp.PostBuildWar.assertOutput(new File(basedir, "test-bundle"));
2 | context.get("wireMockServer").shutdownServer();
3 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/test-tycho/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-SymbolicName: test-tycho
4 | Bundle-Version: 0.0.1.qualifier
5 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/test/resources/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/test/resources/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/test-tycho/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-SymbolicName: test-tycho
4 | Bundle-Version: 0.0.1.qualifier
5 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-insecure/prebuild.bsh:
--------------------------------------------------------------------------------
1 | context.put("wireMockServer", com.ibm.cics.cbmp.DeployPreBuild.setupWiremock(Integer.parseInt(wiremockPort), com.ibm.cics.cbmp.DeployPreBuild.Protocol.HTTPS));
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-bundle-parts/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Bundle-ManifestVersion: 2
3 | Bundle-SymbolicName: test-bundle-osgi-bundle-parts
4 | Bundle-Version: 0.0.1.qualifier
5 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-insecure/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy-insecure/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither-smss/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither-smss/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-pwd-in-pom/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy-pwd-in-pom/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-resourcedef/test-bundle/src/main/bundleParts/PROG1.program:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_invalid-server-ID/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy_invalid-server-ID/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-invalid_url/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-invalid_url/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/differentDirectory/PROG1.program:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/bundleParts/PROG1WrongDir.program:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-required-attribute/test-app-bundle-0.0.1-SNAPSHOT.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/IBM/cics-bundle-maven/HEAD/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-required-attribute/test-app-bundle-0.0.1-SNAPSHOT.zip
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-ear-bundle-parts/src/main/bundleParts/JVE1.transaction:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-eba-bundle-parts/src/main/bundleParts/JVE1.transaction:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-bundle-parts/src/main/bundleParts/JVE1.transaction:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-bundle-parts/src/main/bundleParts/JVE1.transaction:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-ear-bundle-parts/src/main/bundleParts/JAVAVES1.program:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-eba-bundle-parts/src/main/bundleParts/JAVAVES1.program:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-bundle-parts/src/main/bundleParts/JAVAVES1.program:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-bundle-parts/src/main/bundleParts/JAVAVES1.program:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-resourcedef/test-bundle/src/main/bundleParts/mymap.urimap:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/bundleParts/mymapWrongDir.urimap:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/differentDirectory/mymap.urimap:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-debug-logging/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | invoker.debug = true
15 |
--------------------------------------------------------------------------------
/cics-bundle-deploy-reactor-archetype/src/main/resources/archetype-resources/__rootArtifactId__-bundle/settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | deployserver
5 | \${username}
6 | \${password}
7 |
8 | \${deployURL}
9 | \${cicsplex}
10 | \${region}
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/samples/bundle-war-deploy/demo-war/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | CLIENT-CERT
9 |
10 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi/build.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | bin.includes = META-INF/,\
15 | .,\
16 |
--------------------------------------------------------------------------------
/samples/bundle-reactor-deploy/demo-war/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 | CLIENT-CERT
9 |
10 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-bundle-parts/build.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | bin.includes = META-INF/,\
15 | .,\
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/test-tycho/build.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | bin.includes = META-INF/,\
15 | .,\
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/test-tycho/build.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | bin.includes = META-INF/,\
15 | .,\
16 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | The following versions of the CICS bundle Maven plugin are supported:
6 |
7 | | Version | Supported |
8 | | ------- | ------------------ |
9 | | 1.x.x | :white_check_mark: |
10 | | 0.0.1 | :x: |
11 |
12 | ## Reporting a Vulnerability
13 |
14 | To report a vulnerability, use any of the methods detailed on the [IBM Trust Center](https://www.ibm.com/trust/security-psirt).
15 |
16 | We will then work with you to resolve the vulnerability.
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-missing-binding/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-insecure/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2022 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2022 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2022 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-no-jvmserver/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = success
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-nodefaultjvmserver/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-nodefaultjvmserver/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_invalid-server-ID/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-invalid_url/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-no-defaultjvmserver/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-required-attribute/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.buildResult = failure
16 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/DefaultsProvider.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | public interface DefaultsProvider {
18 |
19 | String getJVMServer();
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-debug-logging/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | File buildLog = new File(basedir, 'build.log')
15 |
16 | assert buildLog.text.contains("[DEBUG] Wrote resource to war-0.0.1-SNAPSHOT.war")
17 |
--------------------------------------------------------------------------------
/samples/src/main/resources/mappings/acceptAll.json:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * samples
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | {
15 | "request": {
16 | "method": "POST",
17 | "url": "/managedcicsbundles"
18 | },
19 | "response": {
20 | "status": 200,
21 | "body": "API response\n"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-resourcedef/test-bundle/src/main/bundleParts/EventBinding.evbind:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/bundleParts/EventBindingWrongDir.evbind:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/src/main/differentDirectory/EventBinding.evbind:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-repeat-bundle-war/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2022 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # We run the build more than once by using the xxx.N syntax for any property.
15 | # We don't actually want to change the properties, just run it twice.
16 | invoker.profiles.1=
17 | invoker.profiles.2=
18 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-no-jvmserver/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2024 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | File buildLog = new File(basedir, 'build.log')
15 |
16 | assert buildLog.exists()
17 | assert buildLog.text.contains("The parameters 'jvmserver' for goal ${pluginString}:bundle-war are missing or invalid")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-versionrange/osgi/src/main/java/com/ibm/cics/Main.java:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 - 2023 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 |
15 | package com.ibm.cics;
16 |
17 | public class Main {
18 | public static void main(String[] args) {
19 | System.out.println("Hello world!");
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/cics-bundle-deploy-reactor-archetype/src/main/resources/archetype-resources/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 | \${groupId}
4 | \${artifactId}
5 | \${version}
6 | pom
7 | Example reactor module
8 |
9 |
10 | \${rootArtifactId}-war
11 | \${rootArtifactId}-bundle
12 |
13 |
--------------------------------------------------------------------------------
/cics-bundle-reactor-archetype/src/main/resources/archetype-resources/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | \${groupId}
6 | \${artifactId}
7 | \${version}
8 | pom
9 | Example reactor module
10 |
11 |
12 | \${rootArtifactId}-war
13 | \${rootArtifactId}-bundle
14 |
15 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-deploy-userprops/invoker.properties:
--------------------------------------------------------------------------------
1 | ###
2 | # #%L
3 | # CICS Bundle Maven Plugin
4 | # %%
5 | # Copyright (C) 2019 IBM Corp.
6 | # %%
7 | # This program and the accompanying materials are made
8 | # available under the terms of the Eclipse Public License 2.0
9 | # which is available at https://www.eclipse.org/legal/epl-2.0/
10 | #
11 | # SPDX-License-Identifier: EPL-2.0
12 | # #L%
13 | ###
14 | # The expected result of the build, possible values are "success" (default) and "failure"
15 | invoker.mavenOpts = -Dcicsbundle.jvmserver=UPROPJVM -Dcicsbundle.bunddef=bundle -Dcicsbundle.csdgroup=BAR -Dcicsbundle.cicsplex=cicsplex -Dcicsbundle.region=region -Dcicsbundle.classifier=cics-bundle
16 |
--------------------------------------------------------------------------------
/cics-bundle-deploy-reactor-archetype/README.md:
--------------------------------------------------------------------------------
1 | # Archetype Maven Settings
2 |
3 | Running the Maven project that the cics-bundle-deploy-reactor-archetype has generated will provide the following error:
4 | "[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:0.0.1-SNAPSHOT:deploy (deploy) on project {artifactId}-bundle: Server 'deployserver' does not exist"
5 |
6 | The Maven settings for 'deployserver' are in the included settings.xml of this project, in the {artifactId}-bundle directory. By default the run configuration will be pointing at the global m2 user settings, so you either need to copy the settings into your global m2 settings.xml file, or change the run configuration for this project to set the user settings as the settings.xml file in this project.
7 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-deploy-userprops/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 |
16 | context.get("wireMockServer").shutdownServer()
17 |
18 | File warBundle = new File(basedir, 'target/test-bundle-war-0.0.1-SNAPSHOT-cics-bundle/test-bundle-war-0.0.1-SNAPSHOT.warbundle')
19 |
20 | assert warBundle.exists()
21 | assert warBundle.text.contains("jvmserver=\"UPROPJVM\"")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-nodefaultjvmserver/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2024 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | File buildLog = new File(basedir, 'build.log')
15 |
16 | assert buildLog.exists()
17 | assert buildLog.text.contains("[ERROR] Failed to execute goal ${pluginString}:build (default-build) on project test-bundle: Bundle part for artifact com.ibm.cics:test-war:war:1.0.0:compile did not specify a JVM server explicitly, and no default was configured")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/test/java/com/ibm/cics/cbmp/EarbundleTest.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | public class EarbundleTest extends AbstractJavaBundlePartBindingTestCase {
18 |
19 | @Override
20 | protected AbstractJavaBundlePartBinding createBinding() {
21 | return new Earbundle();
22 | }
23 |
24 | @Override
25 | protected String getRootElementName() {
26 | return "earbundle";
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/test/java/com/ibm/cics/cbmp/EbabundleTest.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | public class EbabundleTest extends AbstractJavaBundlePartBindingTestCase {
18 |
19 | @Override
20 | protected AbstractJavaBundlePartBinding createBinding() {
21 | return new Ebabundle();
22 | }
23 |
24 | @Override
25 | protected String getRootElementName() {
26 | return "ebabundle";
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/test/java/com/ibm/cics/cbmp/WarbundleTest.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | public class WarbundleTest extends AbstractJavaBundlePartBindingTestCase {
18 |
19 | @Override
20 | protected AbstractJavaBundlePartBinding createBinding() {
21 | return new Warbundle();
22 | }
23 |
24 | @Override
25 | protected String getRootElementName() {
26 | return "warbundle";
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-nodefaultjvmserver/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2024 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | File buildLog = new File(basedir, 'build.log')
15 |
16 | assert buildLog.exists()
17 | assert buildLog.text.contains("[ERROR] Failed to execute goal ${pluginString}:build (default-build) on project test-bundle: Bundle part for artifact test-reactor-ear-nodefaultjvmserver:test-ear:ear:0.0.1-SNAPSHOT:compile did not specify a JVM server explicitly, and no default was configured")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-no-defaultjvmserver/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2024 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | File buildLog = new File(basedir, 'build.log')
15 |
16 | assert buildLog.exists()
17 | assert buildLog.text.contains("[ERROR] Failed to execute goal ${pluginString}:build (default-build) on project test-bundle: Bundle part for artifact com.ibm.cics.test-reactor-osgi-nodefaultjvmserver:test-osgi:jar:0.0.1-SNAPSHOT:compile did not specify a JVM server explicitly, and no default was configured")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/MojoExecutionRuntimeException.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | public class MojoExecutionRuntimeException extends RuntimeException {
18 |
19 | private static final long serialVersionUID = 1L;
20 |
21 | public MojoExecutionRuntimeException(String message) {
22 | super(message);
23 | }
24 |
25 | public MojoExecutionRuntimeException(String message, Throwable e) {
26 | super(message, e);
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/samples/bundle-war-deploy/demo-war/src/main/webapp/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Java Web Starter Application
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | |
14 |
15 |
16 |
17 |
18 | Thanks for creating a Liberty for Java Starter Application.
19 | |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/samples/bundle-reactor-deploy/demo-war/src/main/webapp/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Java Web Starter Application
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | |
14 |
15 |
16 |
17 |
18 | Thanks for creating a Liberty for Java Starter Application.
19 | |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-missing-binding/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import java.util.regex.*
15 |
16 | File buildLog = new File(basedir, 'build.log')
17 |
18 | assert buildLog.exists()
19 |
20 | assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:")
21 | assert buildLog.text.contains("Some bundle part overrides did not correspond to any of the project artifacts: [Earbundle: Artifact [groupId=com.ibm.cics, artifactId=banana, version=1.2.3, type=blob, classifier=apple]]")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/Earbundle.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | import org.apache.maven.plugin.MojoExecutionException;
4 |
5 | import com.ibm.cics.bundle.parts.EarBundlePart;
6 |
7 | /*-
8 | * #%L
9 | * CICS Bundle Maven Plugin
10 | * %%
11 | * Copyright (C) 2019 IBM Corp.
12 | * %%
13 | * This program and the accompanying materials are made
14 | * available under the terms of the Eclipse Public License 2.0
15 | * which is available at https://www.eclipse.org/legal/epl-2.0/
16 | *
17 | * SPDX-License-Identifier: EPL-2.0
18 | * #L%
19 | */
20 |
21 | public class Earbundle extends AbstractJavaBundlePartBinding {
22 |
23 | @Override
24 | public EarBundlePart toBundlePartImpl() throws MojoExecutionException {
25 | return new EarBundlePart(
26 | getName(),
27 | getJvmserver(),
28 | resolvedArtifact.getFile()
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/Warbundle.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | import org.apache.maven.plugin.MojoExecutionException;
4 |
5 | import com.ibm.cics.bundle.parts.WarBundlePart;
6 |
7 | /*-
8 | * #%L
9 | * CICS Bundle Maven Plugin
10 | * %%
11 | * Copyright (C) 2019 IBM Corp.
12 | * %%
13 | * This program and the accompanying materials are made
14 | * available under the terms of the Eclipse Public License 2.0
15 | * which is available at https://www.eclipse.org/legal/epl-2.0/
16 | *
17 | * SPDX-License-Identifier: EPL-2.0
18 | * #L%
19 | */
20 |
21 | public class Warbundle extends AbstractJavaBundlePartBinding {
22 |
23 | @Override
24 | public WarBundlePart toBundlePartImpl() throws MojoExecutionException {
25 | return new WarBundlePart(
26 | getName(),
27 | getJvmserver(),
28 | resolvedArtifact.getFile()
29 | );
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/Ebabundle.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | import org.apache.maven.plugin.MojoExecutionException;
4 |
5 | import com.ibm.cics.bundle.parts.EbaBundlePart;
6 |
7 | /*-
8 | * #%L
9 | * CICS Bundle Maven Plugin
10 | * %%
11 | * Copyright (C) 2019 IBM Corp.
12 | * %%
13 | * This program and the accompanying materials are made
14 | * available under the terms of the Eclipse Public License 2.0
15 | * which is available at https://www.eclipse.org/legal/epl-2.0/
16 | *
17 | * SPDX-License-Identifier: EPL-2.0
18 | * #L%
19 | */
20 |
21 | public class Ebabundle extends AbstractJavaBundlePartBinding {
22 |
23 | @Override
24 | public EbaBundlePart toBundlePartImpl() throws MojoExecutionException {
25 | return new EbaBundlePart(
26 | getName(),
27 | getJvmserver(),
28 | resolvedArtifact.getFile()
29 | );
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2022 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 |
16 | context.get("wireMockServer").shutdownServer()
17 |
18 | File buildLog = new File(basedir, 'build.log')
19 |
20 | assert buildLog.exists()
21 | assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:")
22 | assert buildLog.text.contains("(deploy) on project test-bundle-deploy-noRegion: Specify both or neither of cicsplex and region in plugin configuration or server configuration")
23 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2022 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 |
16 | context.get("wireMockServer").shutdownServer()
17 |
18 | File buildLog = new File(basedir, 'build.log')
19 |
20 | assert buildLog.exists()
21 | assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:")
22 | assert buildLog.text.contains("(deploy) on project test-bundle-deploy-noCICSplex: Specify both or neither of cicsplex and region in plugin configuration or server configuration")
23 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2022 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 |
16 | context.get("wireMockServer").shutdownServer()
17 |
18 | File buildLog = new File(basedir, 'build.log')
19 |
20 | assert buildLog.exists()
21 | assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:")
22 | assert buildLog.text.contains("com.ibm.cics.bundle.deploy.BundleDeployException: Some of the supplied parameters were invalid")
23 | assert buildLog.text.contains("- cicsplex: CICSplex could not be found")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-invalid_url/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 | import java.util.regex.*
16 |
17 | context.get("wireMockServer").shutdownServer()
18 |
19 | File buildLog = new File(basedir, 'build.log')
20 |
21 | assert buildLog.exists()
22 |
23 | assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:")
24 | assert buildLog.text.contains("Unknown host invalid:")
25 | assert buildLog.text.contains("Caused by: org.apache.maven.plugin.MojoExecutionException: invalid:")
--------------------------------------------------------------------------------
/.github/workflows/maven-scheduled-build.yml:
--------------------------------------------------------------------------------
1 | name: Scheduled Build
2 | on:
3 | schedule:
4 | - cron: '0 2 * * 0' # Every Sunday at 2am
5 | jobs:
6 |
7 | build:
8 | name: Maven Build
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - name: Checkout
13 | uses: actions/checkout@v4
14 |
15 | - name: Setup Java
16 | uses: actions/setup-java@v4
17 | with:
18 | java-version: '8'
19 | distribution: 'temurin'
20 | cache: maven
21 | server-id: ossrh
22 | server-username: OSSRH_USERNAME
23 | server-password: OSSRH_PASSWORD
24 | gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
25 | gpg-passphrase: MAVEN_GPG_PASSPHRASE
26 |
27 | - name: Build with Maven
28 | run: mvn -Dstyle.color=always -B -U verify
29 |
30 | - name: Build site
31 | run: mvn -Dstyle.color=always -B -U site site:stage post-site
32 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-resourcedef/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-resourcedef
18 | test-reactor-resourcedef
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-bundle
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_invalid-server-ID/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 |
16 | context.get("wireMockServer").shutdownServer()
17 |
18 | File buildLog = new File(basedir, 'build.log')
19 |
20 | assert buildLog.exists()
21 | assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:")
22 | assert buildLog.text.contains(":deploy (deploy) on project test-bundle-deploy_invalid-server-ID: Server 'INVALID' does not exist")
23 | assert buildLog.text.contains("Caused by: org.apache.maven.plugin.MojoExecutionException: Server 'INVALID' does not exist")
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-bundlePartDirectory
18 | test-reactor-bundlePartDirectory
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-bundle
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-no-transitive/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-no-transitive
18 | test-no-transitive
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | war1
25 | war2
26 | bundle
27 |
28 |
29 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | build
22 |
23 |
24 |
25 |
26 | true
27 | true
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-versionrange/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-osgi-versionrange
18 | test-bundle-osgi-versionrange
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | osgi
25 | bundle
26 |
27 |
28 |
--------------------------------------------------------------------------------
/cics-bundle-reactor-archetype/src/main/resources/archetype-resources/__rootArtifactId__-war/src/main/java/com/example/servlet/HelloServlet.java:
--------------------------------------------------------------------------------
1 | package com.example.servlet;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.ServletException;
6 | import javax.servlet.annotation.WebServlet;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 |
11 | import com.ibm.cics.server.Task;
12 |
13 | @WebServlet("/hello")
14 | public class HelloServlet extends HttpServlet {
15 |
16 | private static final long serialVersionUID = 1L;
17 |
18 | @Override
19 | protected void doGet(HttpServletRequest request, HttpServletResponse response)
20 | throws ServletException, IOException {
21 | response.setContentType("application/json");
22 |
23 | response.getWriter().print("{\"message\": \"Hello World! This message is provided by HelloServlet, running on CICS task " + Task.getTask().getTaskNumber() + ".\"}");
24 | }
25 |
26 | }
--------------------------------------------------------------------------------
/cics-bundle-deploy-reactor-archetype/src/main/resources/archetype-resources/__rootArtifactId__-war/src/main/java/com/example/servlet/HelloServlet.java:
--------------------------------------------------------------------------------
1 | package com.example.servlet;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.ServletException;
6 | import javax.servlet.annotation.WebServlet;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 |
11 | import com.ibm.cics.server.Task;
12 |
13 | @WebServlet("/hello")
14 | public class HelloServlet extends HttpServlet {
15 |
16 | private static final long serialVersionUID = 1L;
17 |
18 | @Override
19 | protected void doGet(HttpServletRequest request, HttpServletResponse response)
20 | throws ServletException, IOException {
21 | response.setContentType("application/json");
22 |
23 | response.getWriter().print("{\"message\": \"Hello World! This message is provided by HelloServlet, running on CICS task " + Task.getTask().getTaskNumber() + ".\"}");
24 | }
25 |
26 | }
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war/src/main/java/test_war/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_war;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi/src/main/java/test_tycho/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_tycho;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-final-name/src/main/java/test_war/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_war;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2024 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-repeat-bundle-war/src/main/java/test_war/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_war;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2022 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-bundle-parts/src/main/java/test_war/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_war;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-no-jvmserver/src/main/java/test_war/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_war;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-debug-logging/war/src/main/java/test_war/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_war;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-eba/test-osgi/src/main/java/test_osgi/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_osgi;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/test-osgi/src/main/java/test_osgi/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_osgi;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-bundle-parts/src/main/java/test_tycho/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_tycho;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-war-deploy-userprops/src/main/java/test_war/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_war;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/test-tycho/src/main/java/test_tycho/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_tycho;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/test-osgi/src/main/java/test_osgi/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_osgi;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/test-tycho/src/main/java/test_tycho/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_tycho;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-reactor-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | defaultjvmserver
5 |
6 |
7 |
8 |
10 |
11 |
12 | src
13 |
14 | **/*.java
15 | **/*.xml
16 | **/*.png
17 | **/*.html
18 | **/*.js
19 | **/*.css
20 |
21 |
22 |
23 |
24 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-no-defaultjvmserver/test-osgi/src/main/java/test_osgi/TestEndpoint.java:
--------------------------------------------------------------------------------
1 | package test_osgi;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.util.Optional;
18 |
19 | import javax.ws.rs.ApplicationPath;
20 | import javax.ws.rs.GET;
21 | import javax.ws.rs.Path;
22 | import javax.ws.rs.Produces;
23 | import javax.ws.rs.core.MediaType;
24 | import javax.ws.rs.core.Response;
25 |
26 | @ApplicationPath("")
27 | @Path("")
28 | public class TestEndpoint extends javax.ws.rs.core.Application {
29 |
30 | public TestEndpoint() {
31 | }
32 |
33 | @GET
34 | @Produces(MediaType.APPLICATION_OCTET_STREAM)
35 | public Response get() {
36 | return Response.ok().build();
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/site/site.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
19 |
20 | org.apache.maven.skins
21 | maven-fluido-skin
22 | 1.8
23 |
24 |
25 |
26 | false
27 | false
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-required-attribute/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 |
16 | context.get("wireMockServer").shutdownServer()
17 |
18 | File buildLog = new File(basedir, 'build.log')
19 |
20 | assert buildLog.exists()
21 | assert buildLog.text.contains("[ERROR] Failed to execute goal com.ibm.cics:cics-bundle-maven-plugin:")
22 | assert buildLog.text.contains(":deploy (deploy) on project test-bundle-deploy_missing-required-attribute: The parameters 'bunddef' for goal com.ibm.cics:cics-bundle-maven-plugin:")
23 | assert buildLog.text.contains(":deploy are missing or invalid")
24 | assert buildLog.text.contains("Caused by: org.apache.maven.plugin.PluginParameterException: The parameters 'bunddef' for goal com.ibm.cics:cics-bundle-maven-plugin")
--------------------------------------------------------------------------------
/cics-bundle-reactor-archetype/src/main/resources/archetype-resources/__rootArtifactId__-war/src/main/webapp/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello World example
5 |
6 |
7 |
8 |
19 |
20 |
21 | Welcome to the example web application.
22 |
23 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/cics-bundle-deploy-reactor-archetype/src/main/resources/archetype-resources/__rootArtifactId__-war/src/main/webapp/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello World example
5 |
6 |
7 |
8 |
19 |
20 |
21 | Welcome to the example web application.
22 |
23 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/BundleEarMojo.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import org.apache.maven.plugins.annotations.LifecyclePhase;
18 | import org.apache.maven.plugins.annotations.Mojo;
19 | import org.apache.maven.plugins.annotations.ResolutionScope;
20 |
21 | /**
22 | * This mojo packages the produced EAR project as a CICS bundle.
23 | * Use this mojo to add configuration to an existing EAR project so that it is packaged as a CICS bundle, without creating an additional Maven module.
24 | */
25 | @Mojo(name = "bundle-ear", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.VERIFY)
26 | public class BundleEarMojo extends AbstractBundleJavaMojo {
27 |
28 | @Override
29 | protected AbstractJavaBundlePartBinding getBundlePartBinding() {
30 | return new Earbundle();
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/BundleEbaMojo.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import org.apache.maven.plugins.annotations.LifecyclePhase;
18 | import org.apache.maven.plugins.annotations.Mojo;
19 | import org.apache.maven.plugins.annotations.ResolutionScope;
20 |
21 | /**
22 | * This mojo packages the produced EBA project as a CICS bundle.
23 | * Use this mojo to add configuration to an existing EBA project so that it is packaged as a CICS bundle, without creating an additional Maven module.
24 | */
25 | @Mojo(name = "bundle-eba", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.VERIFY)
26 | public class BundleEbaMojo extends AbstractBundleJavaMojo {
27 |
28 | @Override
29 | protected AbstractJavaBundlePartBinding getBundlePartBinding() {
30 | return new Ebabundle();
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/BundleOSGiMojo.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import org.apache.maven.plugins.annotations.LifecyclePhase;
18 | import org.apache.maven.plugins.annotations.Mojo;
19 | import org.apache.maven.plugins.annotations.ResolutionScope;
20 |
21 | /**
22 | * This mojo packages the produced OSGi project as a CICS bundle.
23 | *
Use this mojo to add configuration to an existing OSGi project so that it is packaged as a CICS bundle, without creating an additional Maven module.
24 | */
25 | @Mojo(name = "bundle-osgi", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.VERIFY)
26 | public class BundleOSGiMojo extends AbstractBundleJavaMojo {
27 |
28 | @Override
29 | protected AbstractJavaBundlePartBinding getBundlePartBinding() {
30 | return new Osgibundle();
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/BundleWarMojo.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import org.apache.maven.plugins.annotations.LifecyclePhase;
18 | import org.apache.maven.plugins.annotations.Mojo;
19 | import org.apache.maven.plugins.annotations.ResolutionScope;
20 |
21 | /**
22 | * This mojo packages the produced WAR project as a CICS bundle.
23 | * Use this mojo to add configuration to an existing WAR project so that it is packaged as a CICS bundle, without creating an additional Maven module.
24 | */
25 | @Mojo(name = "bundle-war", requiresDependencyResolution = ResolutionScope.TEST, defaultPhase = LifecyclePhase.VERIFY)
26 | public class BundleWarMojo extends AbstractBundleJavaMojo {
27 |
28 | @Override
29 | protected AbstractJavaBundlePartBinding getBundlePartBinding() {
30 | return new Warbundle();
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-insecure/postbuild.groovy:
--------------------------------------------------------------------------------
1 | /*-
2 | * #%L
3 | * CICS Bundle Maven Plugin
4 | * %%
5 | * Copyright (C) 2019 IBM Corp.
6 | * %%
7 | * This program and the accompanying materials are made
8 | * available under the terms of the Eclipse Public License 2.0
9 | * which is available at https://www.eclipse.org/legal/epl-2.0/
10 | *
11 | * SPDX-License-Identifier: EPL-2.0
12 | * #L%
13 | */
14 | import com.ibm.cics.cbmp.DeployPreBuild
15 |
16 | context.get("wireMockServer").shutdownServer()
17 |
18 | File buildLog = new File(basedir, 'build.log')
19 |
20 | assert buildLog.exists()
21 | // Deployment with set
22 | assert buildLog.text.contains("""\
23 | (deploy-with-insecure) @ test-bundle-deploy-insecure ---
24 | [INFO] Deploying test-app-bundle-0.0.1-SNAPSHOT.zip to https://localhost:${wiremockPort} into region cicsplex/region
25 | [INFO] Bundle deployed
26 | """)
27 |
28 | // Deployment without set
29 | assert buildLog.text.contains("""\
30 | (deploy-and-fail-because-self-signed) @ test-bundle-deploy-insecure ---
31 | [INFO] Deploying test-app-bundle-0.0.1-SNAPSHOT.zip to https://localhost:${wiremockPort} into region cicsplex/region
32 | [INFO] ------------------------------------------------------------------------
33 | [INFO] BUILD FAILURE
34 | """)
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/test/java/com/ibm/cics/cbmp/OsgibundleTest.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import java.io.IOException;
18 |
19 | import org.junit.Before;
20 | import org.junit.Rule;
21 | import org.junit.rules.TemporaryFolder;
22 |
23 | public abstract class OsgibundleTest extends AbstractJavaBundlePartBindingTestCase {
24 |
25 | @Rule
26 | public TemporaryFolder tempFolder = new TemporaryFolder();
27 |
28 | @Override
29 | protected AbstractJavaBundlePartBinding createBinding() {
30 | return new Osgibundle();
31 | }
32 |
33 | @Override
34 | protected String getRootElementName() {
35 | return "osgibundle";
36 | }
37 |
38 | @Before
39 | public abstract void createArtifactFile() throws IOException;
40 |
41 | @Override
42 | public void nameOverride() throws Exception {
43 | // OSGi symbolic name can't be overridden, so this name change should have no effect.
44 | binding.setName("bananas");
45 |
46 | assertBundleResources();
47 | }
48 | }
--------------------------------------------------------------------------------
/samples/bundle-reactor-deploy/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | com.ibm.cics
6 | cics-bundle-demo
7 | 0.0.1-SNAPSHOT
8 | pom
9 |
10 |
12 |
13 | demo-war
14 | demo-bundle
15 |
16 |
17 |
18 |
31 |
--------------------------------------------------------------------------------
/samples/bundle-war-deploy/demo-war/src/main/java/demo/SimpleServlet.java:
--------------------------------------------------------------------------------
1 | package demo;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.ServletException;
6 | import javax.servlet.annotation.WebServlet;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 |
11 | import com.ibm.cics.server.InvalidRequestException;
12 | import com.ibm.cics.server.Task;
13 |
14 | /**
15 | * Servlet implementation class SimpleServlet
16 | */
17 | @WebServlet("/SimpleServlet")
18 | public class SimpleServlet extends HttpServlet {
19 | private static final long serialVersionUID = 1L;
20 |
21 | /**
22 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
23 | */
24 | @Override
25 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
26 | response.setContentType("text/html");
27 |
28 | response.getWriter().print("Hello world!");
29 | Task task = Task.getTask();
30 |
31 | try {
32 | String userid = task.getUSERID();
33 | response.setContentType("text/html");
34 | response.getWriter().print("\nI am " + userid);
35 | } catch (InvalidRequestException e) {
36 | throw new RuntimeException(e);
37 | }
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/AuthenticationInfo.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | public class AuthenticationInfo {
18 |
19 | private String username;
20 | private char[] password;
21 | private String privateKey;
22 | private String passphrase;
23 |
24 | public void setUsername(String username) {
25 | this.username = username;
26 | }
27 |
28 | public void setPassword(char[] password) {
29 | this.password = password;
30 | }
31 |
32 | public void setPrivateKey(String privateKey) {
33 | this.privateKey = privateKey;
34 | }
35 |
36 | public void setPassphrase(String passphrase) {
37 | this.passphrase = passphrase;
38 | }
39 |
40 | public String getUsername() {
41 | return username;
42 | }
43 |
44 | public char[] getPassword() {
45 | return password;
46 | }
47 |
48 | public String getPrivateKey() {
49 | return privateKey;
50 | }
51 |
52 | public String getPassphrase() {
53 | return passphrase;
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/cics-bundle-reactor-archetype/src/main/resources/archetype-resources/__rootArtifactId__-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 | \${groupId}
7 | \${rootArtifactId}
8 | \${version}
9 |
10 |
11 | \${artifactId}
12 | cics-bundle
13 | Example CICS bundle
14 |
15 |
16 |
17 | \${groupId}
18 | \${rootArtifactId}-war
19 | \${version}
20 | war
21 |
22 |
23 |
24 |
25 |
26 |
27 | ${project.groupId}
28 | cics-bundle-maven-plugin
29 | ${project.version}
30 | true
31 |
32 | \${defaultjvmserver}
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/samples/bundle-reactor-deploy/demo-war/src/main/java/demo/SimpleServlet.java:
--------------------------------------------------------------------------------
1 | package demo;
2 |
3 | import java.io.IOException;
4 |
5 | import javax.servlet.ServletException;
6 | import javax.servlet.annotation.WebServlet;
7 | import javax.servlet.http.HttpServlet;
8 | import javax.servlet.http.HttpServletRequest;
9 | import javax.servlet.http.HttpServletResponse;
10 |
11 | import com.ibm.cics.server.InvalidRequestException;
12 | import com.ibm.cics.server.Task;
13 |
14 | /**
15 | * Servlet implementation class SimpleServlet
16 | */
17 | @WebServlet("/SimpleServlet")
18 | public class SimpleServlet extends HttpServlet {
19 | private static final long serialVersionUID = 1L;
20 |
21 | /**
22 | * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
23 | */
24 | @Override
25 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
26 | response.setContentType("text/html");
27 |
28 | response.getWriter().print("Hello world!");
29 | Task task = Task.getTask();
30 |
31 | try {
32 | String userid = task.getUSERID();
33 | response.setContentType("text/html");
34 | response.getWriter().print("\nI am " + userid);
35 | } catch (InvalidRequestException e) {
36 | throw new RuntimeException(e);
37 | }
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-resourcedef/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-resourcedef
18 | test-reactor-resourcedef
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 |
28 | @project.groupId@
29 | @project.artifactId@
30 | @project.version@
31 | true
32 |
33 | EYUCMCIJ
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-nodefaultjvmserver/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-war-nodefaultjvmserver
18 | test-bundle
19 | 0.0.1-SNAPSHOT
20 | cics-bundle
21 |
22 |
23 |
24 | com.ibm.cics
25 | test-war
26 | 1.0.0
27 | war
28 |
29 |
30 |
31 |
32 |
33 |
34 | @project.groupId@
35 | @project.artifactId@
36 | @project.version@
37 | true
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/samples/bundle-war-deploy/demo-war/src/main/webapp/index.js:
--------------------------------------------------------------------------------
1 | // index.js
2 |
3 | // request message on server
4 | //Calls SimpleServlet to get the "Hello World" message
5 | xhrGet("SimpleServlet", function(responseText){
6 | // add to document
7 | var mytitle = document.getElementById('message');
8 | mytitle.innerHTML = responseText;
9 |
10 | }, function(err){
11 | console.log(err);
12 | });
13 |
14 | //utilities
15 | function createXHR(){
16 | if(typeof XMLHttpRequest != 'undefined'){
17 | return new XMLHttpRequest();
18 | }else{
19 | try{
20 | return new ActiveXObject('Msxml2.XMLHTTP');
21 | }catch(e){
22 | try{
23 | return new ActiveXObject('Microsoft.XMLHTTP');
24 | }catch(e){}
25 | }
26 | }
27 | return null;
28 | }
29 | function xhrGet(url, callback, errback){
30 | var xhr = new createXHR();
31 | xhr.open("GET", url, true);
32 | xhr.onreadystatechange = function(){
33 | if(xhr.readyState == 4){
34 | if(xhr.status == 200){
35 | callback(xhr.responseText);
36 | }else{
37 | errback('service not available');
38 | }
39 | }
40 | };
41 | xhr.timeout = 3000;
42 | xhr.ontimeout = errback;
43 | xhr.send();
44 | }
45 | function parseJson(str){
46 | return window.JSON ? JSON.parse(str) : eval('(' + str + ')');
47 | }
48 | function prettyJson(str){
49 | // If browser does not have JSON utilities, just print the raw string value.
50 | return window.JSON ? JSON.stringify(JSON.parse(str), null, ' ') : str;
51 | }
52 |
53 |
--------------------------------------------------------------------------------
/samples/bundle-reactor-deploy/demo-war/src/main/webapp/index.js:
--------------------------------------------------------------------------------
1 | // index.js
2 |
3 | // request message on server
4 | //Calls SimpleServlet to get the "Hello World" message
5 | xhrGet("SimpleServlet", function(responseText){
6 | // add to document
7 | var mytitle = document.getElementById('message');
8 | mytitle.innerHTML = responseText;
9 |
10 | }, function(err){
11 | console.log(err);
12 | });
13 |
14 | //utilities
15 | function createXHR(){
16 | if(typeof XMLHttpRequest != 'undefined'){
17 | return new XMLHttpRequest();
18 | }else{
19 | try{
20 | return new ActiveXObject('Msxml2.XMLHTTP');
21 | }catch(e){
22 | try{
23 | return new ActiveXObject('Microsoft.XMLHTTP');
24 | }catch(e){}
25 | }
26 | }
27 | return null;
28 | }
29 | function xhrGet(url, callback, errback){
30 | var xhr = new createXHR();
31 | xhr.open("GET", url, true);
32 | xhr.onreadystatechange = function(){
33 | if(xhr.readyState == 4){
34 | if(xhr.status == 200){
35 | callback(xhr.responseText);
36 | }else{
37 | errback('service not available');
38 | }
39 | }
40 | };
41 | xhr.timeout = 3000;
42 | xhr.ontimeout = errback;
43 | xhr.send();
44 | }
45 | function parseJson(str){
46 | return window.JSON ? JSON.parse(str) : eval('(' + str + ')');
47 | }
48 | function prettyJson(str){
49 | // If browser does not have JSON utilities, just print the raw string value.
50 | return window.JSON ? JSON.stringify(JSON.parse(str), null, ' ') : str;
51 | }
52 |
53 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-war
18 | test-reactor-war
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-bundle
25 |
26 |
27 |
28 |
29 |
30 |
31 | org.apache.maven.plugins
32 | maven-war-plugin
33 | 3.2.2
34 |
35 |
36 | org.apache.maven.plugins
37 | maven-compiler-plugin
38 | 3.8.1
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-deploy/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-war-deploy
18 | test-reactor-war-deploy
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-bundle
25 |
26 |
27 |
28 |
29 |
30 |
31 | org.apache.maven.plugins
32 | maven-war-plugin
33 | 3.2.2
34 |
35 |
36 | org.apache.maven.plugins
37 | maven-compiler-plugin
38 | 3.8.1
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-bundlePartDirectory/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-bundlePartDirectory
18 | test-reactor-bundlePartDirectory
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 |
28 | @project.groupId@
29 | @project.artifactId@
30 | @project.version@
31 | true
32 |
33 | EYUCMCIJ
34 | differentDirectory
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/.pre-commit-config.yaml:
--------------------------------------------------------------------------------
1 | # This is an example configuration to enable detect-secrets in the pre-commit hook.
2 | # Add this file to the root folder of your repository.
3 | #
4 | # Read pre-commit hook framework https://pre-commit.com/ for more details about the structure of config yaml file and how git pre-commit would invoke each hook.
5 | #
6 | # This line indicates we will use the hook from ibm/detect-secrets to run scan during committing phase.
7 | repos:
8 | - repo: https://github.com/ibm/detect-secrets
9 | # If you desire to use a specific version of detect-secrets, you can replace `master` with other git revisions such as branch, tag or commit sha.
10 | # You are encouraged to use static refs such as tags, instead of branch name
11 | #
12 | # Running "pre-commit autoupdate" automatically updates rev to latest tag
13 | rev: 0.13.1+ibm.61.dss
14 | hooks:
15 | - id: detect-secrets # pragma: whitelist secret
16 | # Add options for detect-secrets-hook binary. You can run `detect-secrets-hook --help` to list out all possible options.
17 | # You may also run `pre-commit run detect-secrets` to preview the scan result.
18 | # when "--baseline" without "--use-all-plugins", pre-commit scan with just plugins in baseline file
19 | # when "--baseline" with "--use-all-plugins", pre-commit scan with all available plugins
20 | # add "--fail-on-unaudited" to fail pre-commit for unaudited potential secrets
21 | args: [--baseline, .secrets.baseline, --use-all-plugins]
22 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-debug-logging/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-debug-logging
18 | test-reactor-debug-logging
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | war
25 | bundle
26 |
27 |
28 |
29 |
30 |
31 |
32 | org.apache.maven.plugins
33 | maven-war-plugin
34 | 3.2.2
35 |
36 |
37 | org.apache.maven.plugins
38 | maven-compiler-plugin
39 | 3.8.1
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-eba/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-eba
18 | test-reactor-eba
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-eba
25 | test-bundle
26 | test-osgi
27 |
28 |
29 |
30 |
31 |
32 |
33 | org.apache.aries
34 | eba-maven-plugin
35 | 1.0.0
36 |
37 |
38 | org.apache.maven.plugins
39 | maven-compiler-plugin
40 | 3.8.1
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-no-defaultjvmserver/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-osgi-nodefaultjvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-osgi
25 | test-bundle
26 |
27 |
28 |
29 |
30 |
31 |
32 | org.apache.maven.plugins
33 | maven-jar-plugin
34 | 3.1.2
35 |
36 |
37 | org.apache.maven.plugins
38 | maven-compiler-plugin
39 | 3.8.1
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-nodefaultjvmserver/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-ear-nodefaultjvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 | ${project.groupId}
28 | test-ear
29 | ${project.version}
30 | ear
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-osgi
18 | test-reactor-osgi
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-osgi
25 | test-tycho
26 | test-bundle
27 |
28 |
29 |
30 |
31 |
32 |
33 | org.apache.maven.plugins
34 | maven-jar-plugin
35 | 3.1.2
36 |
37 |
38 | org.apache.maven.plugins
39 | maven-compiler-plugin
40 | 3.8.1
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-osgi-jvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-osgi
25 | test-bundle
26 | test-tycho
27 |
28 |
29 |
30 |
31 |
32 |
33 | org.apache.maven.plugins
34 | maven-jar-plugin
35 | 3.1.2
36 |
37 |
38 | org.apache.maven.plugins
39 | maven-compiler-plugin
40 | 3.8.1
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-no-defaultjvmserver/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-osgi-nodefaultjvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 | ${project.groupId}
28 | test-osgi
29 | ${project.version}
30 | jar
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/test/java/com/ibm/cics/cbmp/OsgibundleJarTest.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import static org.mockito.Mockito.when;
18 |
19 | import java.io.File;
20 | import java.io.FileOutputStream;
21 | import java.io.IOException;
22 | import java.io.OutputStream;
23 | import java.util.Collections;
24 | import java.util.jar.JarOutputStream;
25 | import java.util.jar.Manifest;
26 |
27 | public class OsgibundleJarTest extends OsgibundleTest {
28 |
29 | @Override
30 | public void createArtifactFile() throws IOException {
31 | File artifactFile = tempFolder.newFile("osgibundle.jar");
32 | when(artifact.getFile()).thenReturn(artifactFile);
33 |
34 | Manifest manifest = new Manifest();
35 | manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
36 | manifest.getMainAttributes().putValue("Bundle-SymbolicName", "some.symbolic.name");
37 | manifest.getMainAttributes().putValue("Bundle-Version", "1.0.1.1234567");
38 |
39 | try (OutputStream os = new JarOutputStream(new FileOutputStream(artifactFile), manifest)) {
40 | }
41 |
42 | setExpectedSymbolicName("some.symbolic.name");
43 | setOtherExpectedAttributes(Collections.singletonMap("version", "1.0.1.1234567"));
44 | }
45 | }
--------------------------------------------------------------------------------
/samples/bundle-war-deploy/demo-war/src/main/webapp/style.css:
--------------------------------------------------------------------------------
1 | /* style.css
2 | * This file provides css styles.
3 | */
4 |
5 | body,html {
6 | background-color: #3b4b54; width : 100%;
7 | height: 100%;
8 | margin: 0 auto;
9 | font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
10 | color: #ffffff;
11 | }
12 |
13 | a {
14 | text-decoration: none;
15 | color: #00aed1;
16 | }
17 |
18 | a:hover {
19 | text-decoration: underline;
20 | }
21 |
22 | .newappIcon {
23 | padding-top: 10%;
24 | display: block;
25 | margin: 0 auto;
26 | padding-bottom: 2em;
27 | max-width:200px;
28 | }
29 |
30 | h1 {
31 | font-weight: bold;
32 | font-size: 2em;
33 | }
34 |
35 | .leftHalf {
36 | float: left;
37 | background-color: #26343f;
38 | width: 45%;
39 | height: 100%;
40 | }
41 |
42 | .rightHalf {
43 | float: right;
44 | width: 55%;
45 | background-color: #313f4a;
46 | height: 100%;
47 | overflow:auto;
48 | }
49 |
50 | .description {
51 | padding-left: 50px;
52 | padding-right: 50px;
53 | text-align: center;
54 | font-size: 1.2em;
55 | }
56 |
57 | .blue {
58 | color: #00aed1;
59 | }
60 |
61 |
62 | table {
63 | table-layout: fixed;
64 | width: 800px;
65 | margin: 0 auto;
66 | word-wrap: break-word;
67 | padding-top:10%;
68 | }
69 |
70 | th {
71 | border-bottom: 1px solid #000;
72 | }
73 |
74 | th, td {
75 | text-align: left;
76 | padding: 2px 20px;
77 | }
78 |
79 | .env-var {
80 | text-align: right;
81 | border-right: 1px solid #000;
82 | width: 30%;
83 | }
84 |
85 | pre {
86 | padding: 0;
87 | margin: 0;
88 | }
89 |
90 |
--------------------------------------------------------------------------------
/samples/bundle-reactor-deploy/demo-war/src/main/webapp/style.css:
--------------------------------------------------------------------------------
1 | /* style.css
2 | * This file provides css styles.
3 | */
4 |
5 | body,html {
6 | background-color: #3b4b54; width : 100%;
7 | height: 100%;
8 | margin: 0 auto;
9 | font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
10 | color: #ffffff;
11 | }
12 |
13 | a {
14 | text-decoration: none;
15 | color: #00aed1;
16 | }
17 |
18 | a:hover {
19 | text-decoration: underline;
20 | }
21 |
22 | .newappIcon {
23 | padding-top: 10%;
24 | display: block;
25 | margin: 0 auto;
26 | padding-bottom: 2em;
27 | max-width:200px;
28 | }
29 |
30 | h1 {
31 | font-weight: bold;
32 | font-size: 2em;
33 | }
34 |
35 | .leftHalf {
36 | float: left;
37 | background-color: #26343f;
38 | width: 45%;
39 | height: 100%;
40 | }
41 |
42 | .rightHalf {
43 | float: right;
44 | width: 55%;
45 | background-color: #313f4a;
46 | height: 100%;
47 | overflow:auto;
48 | }
49 |
50 | .description {
51 | padding-left: 50px;
52 | padding-right: 50px;
53 | text-align: center;
54 | font-size: 1.2em;
55 | }
56 |
57 | .blue {
58 | color: #00aed1;
59 | }
60 |
61 |
62 | table {
63 | table-layout: fixed;
64 | width: 800px;
65 | margin: 0 auto;
66 | word-wrap: break-word;
67 | padding-top:10%;
68 | }
69 |
70 | th {
71 | border-bottom: 1px solid #000;
72 | }
73 |
74 | th, td {
75 | text-align: left;
76 | padding: 2px 20px;
77 | }
78 |
79 | .env-var {
80 | text-align: right;
81 | border-right: 1px solid #000;
82 | width: 30%;
83 | }
84 |
85 | pre {
86 | padding: 0;
87 | margin: 0;
88 | }
89 |
90 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-war
18 | test-reactor-war
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 | com.ibm.cics
28 | test-war
29 | 1.0.0
30 | war
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 | EYUCMCIJ
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/test-tycho/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-osgi
18 | test-reactor-osgi
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-tycho
23 | eclipse-plugin
24 |
25 |
26 | 1.4.0
27 |
28 |
29 |
30 |
31 |
32 | javax.ws.rs
33 | javax.ws.rs-api
34 | 2.0
35 | provided
36 |
37 |
38 |
39 |
40 |
41 |
42 | org.eclipse.tycho
43 | tycho-maven-plugin
44 | ${tycho-version}
45 | true
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-ear
18 | test-reactor-ear
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 | ${project.groupId}
28 | test-ear
29 | ${project.version}
30 | ear
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 | EYUCMCIJ
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-no-transitive/bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-no-transitive
18 | test-no-transitive
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | bundle
23 | cics-bundle
24 |
25 |
26 |
27 | com.ibm.cics.test-no-transitive
28 | war2
29 | ${project.version}
30 | war
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 | EYUCMCIJ
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-eba/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-eba
18 | test-reactor-eba
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 | ${project.groupId}
28 | test-eba
29 | ${project.version}
30 | eba
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 | EYUCMCIJ
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi-jvmserver/test-tycho/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-osgi-jvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-tycho
23 | eclipse-plugin
24 |
25 |
26 | 1.4.0
27 |
28 |
29 |
30 |
31 |
32 | javax.ws.rs
33 | javax.ws.rs-api
34 | 2.0
35 | provided
36 |
37 |
38 |
39 |
40 |
41 |
42 | org.eclipse.tycho
43 | tycho-maven-plugin
44 | ${tycho-version}
45 | true
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-debug-logging/bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-debug-logging
18 | test-reactor-debug-logging
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | bundle
23 | cics-bundle
24 |
25 |
26 |
27 | ${project.groupId}
28 | war
29 | ${project.version}
30 | war
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 | EYUCMCIJ
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-missing-binding/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 | com.ibm.cics.test-missing-binding
17 | test-missing-binding
18 | 1.0.0
19 | cics-bundle
20 |
21 |
22 |
23 |
24 | @project.groupId@
25 | @project.artifactId@
26 | @project.version@
27 | true
28 |
29 | EYUCMCIJ
30 |
31 |
32 |
33 | com.ibm.cics
34 | banana
35 | 1.2.3
36 | blob
37 | apple
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-jvmserver/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-ear-jvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-ear
25 | test-bundle
26 |
27 |
28 |
29 |
30 |
31 |
32 | org.apache.maven.plugins
33 | maven-ear-plugin
34 | 3.0.1
35 |
36 |
37 | org.apache.maven.plugins
38 | maven-war-plugin
39 | 3.2.2
40 |
41 |
42 | org.apache.maven.plugins
43 | maven-compiler-plugin
44 | 3.8.1
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-ear
18 | test-reactor-ear
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-ear
25 | test-bundle
26 |
27 |
28 |
29 |
30 |
31 |
32 | org.apache.maven.plugins
33 | maven-ear-plugin
34 | 3.0.1
35 |
36 |
37 | org.apache.maven.plugins
38 | maven-war-plugin
39 | 3.2.2
40 |
41 |
42 | org.apache.maven.plugins
43 | maven-compiler-plugin
44 | 3.8.1
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-no-transitive/war1/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-no-transitive
18 | test-no-transitive
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | war1
23 | war
24 |
25 |
26 |
27 |
28 |
29 | org.apache.maven.plugins
30 | maven-war-plugin
31 | 3.2.2
32 |
33 | false
34 |
35 |
36 |
37 |
38 |
39 |
40 | org.apache.maven.plugins
41 | maven-compiler-plugin
42 |
43 | 1.8
44 | 1.8
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-nodefaultjvmserver/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-ear-nodefaultjvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 | pom
22 |
23 |
24 | test-ear
25 | test-bundle
26 |
27 |
28 |
29 |
30 |
31 |
32 | org.apache.maven.plugins
33 | maven-ear-plugin
34 | 3.0.1
35 |
36 |
37 | org.apache.maven.plugins
38 | maven-war-plugin
39 | 3.2.2
40 |
41 |
42 | org.apache.maven.plugins
43 | maven-compiler-plugin
44 | 3.8.1
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/AbstractJavaBundlePartBinding.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import org.apache.commons.lang3.StringUtils;
18 | import org.apache.maven.plugin.MojoExecutionException;
19 |
20 | public abstract class AbstractJavaBundlePartBinding extends BundlePartBinding {
21 |
22 | protected String name;
23 | protected String jvmserver;
24 |
25 | public String getName() {
26 | return name;
27 | }
28 |
29 | public void setName(String name) {
30 | this.name = name;
31 | }
32 |
33 | public String getJvmserver() {
34 | return jvmserver;
35 | }
36 |
37 | public void setJvmserver(String jvmserver) {
38 | this.jvmserver = jvmserver;
39 | }
40 |
41 | @Override
42 | protected void applyDefaults(DefaultsProvider defaults) throws MojoExecutionException {
43 |
44 | if (StringUtils.isEmpty(name)) {
45 | name = resolvedArtifact.getArtifactId() + "-" + resolvedArtifact.getBaseVersion();
46 | }
47 |
48 | if (StringUtils.isEmpty(jvmserver)) {
49 | String defaultJVMServer = defaults.getJVMServer();
50 | if (StringUtils.isEmpty(defaultJVMServer)) {
51 | throw new MojoExecutionException("Bundle part for artifact " + resolvedArtifact + " did not specify a JVM server explicitly, and no default was configured");
52 | } else {
53 | jvmserver = defaultJVMServer;
54 | }
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/test/java/com/ibm/cics/cbmp/OsgibundleDirTest.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import static org.junit.Assert.assertTrue;
18 | import static org.mockito.Mockito.when;
19 |
20 | import java.io.File;
21 | import java.io.FileOutputStream;
22 | import java.io.IOException;
23 | import java.io.OutputStream;
24 | import java.util.Collections;
25 | import java.util.jar.Manifest;
26 |
27 | public class OsgibundleDirTest extends OsgibundleTest {
28 |
29 | @Override
30 | public void createArtifactFile() throws IOException {
31 | File artifactFile = tempFolder.newFolder("osgibundle");
32 | when(artifact.getFile()).thenReturn(artifactFile);
33 |
34 | File mi = new File(artifactFile, "META-INF");
35 | assertTrue(mi.mkdirs());
36 |
37 | File manifestFile = new File(mi, "MANIFEST.MF");
38 |
39 | Manifest manifest = new Manifest();
40 | manifest.getMainAttributes().putValue("Manifest-Version", "1.0");
41 | manifest.getMainAttributes().putValue("Bundle-SymbolicName", "some.symbolic.name");
42 | manifest.getMainAttributes().putValue("Bundle-Version", "1.0.2.7654321");
43 |
44 | try (OutputStream os = new FileOutputStream(manifestFile)) {
45 | manifest.write(os);
46 | }
47 |
48 | setExpectedSymbolicName("some.symbolic.name");
49 | setOtherExpectedAttributes(Collections.singletonMap("version", "1.0.2.7654321"));
50 | }
51 | }
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-war-jvmserver/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-war-jvmserver
18 | test-bundle
19 | 0.0.1-SNAPSHOT
20 | cics-bundle
21 |
22 |
23 |
24 | com.ibm.cics
25 | test-war
26 | 1.0.0
27 | war
28 |
29 |
30 |
31 |
32 |
33 |
34 | @project.groupId@
35 | @project.artifactId@
36 | @project.version@
37 | true
38 |
39 |
40 |
41 |
42 | test-war
43 |
44 | EYUCMCIJ
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle.deploy
18 | test-bundle-deploy
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | serverId
39 | bundle
40 | BAR
41 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-required-attribute/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-deploy_missing-required-attribute
18 | test-bundle-deploy_missing-required-attribute
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | serverId
39 | BAR
40 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/setup-test-war/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics
18 | test-war
19 | 1.0.0
20 | war
21 |
22 |
23 |
24 |
25 | javax.ws.rs
26 | javax.ws.rs-api
27 | 2.0
28 | provided
29 |
30 |
31 |
32 |
33 |
34 |
35 | org.apache.maven.plugins
36 | maven-war-plugin
37 | 3.2.3
38 |
39 | false
40 | pom.xml
41 | test-war
42 |
43 |
44 |
45 | maven-compiler-plugin
46 | 3.5.1
47 |
48 | 1.8
49 | 1.8
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_invalid-server-ID/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-deploy_invalid-server-ID
18 | test-bundle-deploy_invalid-server-ID
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | INVALID
39 | bundle
40 | BAR
41 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/ServerConfig.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | import java.net.URI;
4 |
5 | /*-
6 | * #%L
7 | * CICS Bundle Maven Plugin
8 | * %%
9 | * Copyright (C) 2019 IBM Corp.
10 | * %%
11 | * This program and the accompanying materials are made
12 | * available under the terms of the Eclipse Public License 2.0
13 | * which is available at https://www.eclipse.org/legal/epl-2.0/
14 | *
15 | * SPDX-License-Identifier: EPL-2.0
16 | * #L%
17 | */
18 |
19 | public class ServerConfig {
20 |
21 | private String cicsplex;
22 | private String region;
23 | private URI endpointUrl;
24 | private String username;
25 | private char[] password;
26 | private boolean allowSelfSignedCertificate;
27 |
28 | public String getUsername() {
29 | return username;
30 | }
31 |
32 | public void setUsername(String username) {
33 | this.username = username;
34 | }
35 |
36 | public char[] getPassword() {
37 | return password;
38 | }
39 |
40 | public void setPassword(char[] password) {
41 | this.password = password;
42 | }
43 |
44 | public void setCicsplex(String cicsplex) {
45 | this.cicsplex = cicsplex;
46 | }
47 |
48 | public void setRegion(String region) {
49 | this.region = region;
50 | }
51 |
52 | public void setEndpointUrl(URI endpointUrl) {
53 | this.endpointUrl = endpointUrl;
54 | }
55 |
56 | public void setAllowSelfSignedCertificate(boolean allowSelfSignedCertificate) {
57 | this.allowSelfSignedCertificate = allowSelfSignedCertificate;
58 | }
59 | public String getCicsplex() {
60 | return cicsplex;
61 | }
62 |
63 | public String getRegion() {
64 | return region;
65 | }
66 |
67 | public URI getEndpointUrl() {
68 | return endpointUrl;
69 | }
70 |
71 | public boolean isAllowSelfSignedCertificate() {
72 | return allowSelfSignedCertificate;
73 | }
74 |
75 | }
76 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy_missing-invalid_url/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-deploy_missing-invalid_url
18 | test-bundle-deploy_missing-invalid_url
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | invalidURL
39 | bundle
40 | BAR
41 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-jvmserver/test-ear/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-ear-jvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-ear
23 | ear
24 |
25 |
26 |
27 |
28 | javax.ws.rs
29 | javax.ws.rs-api
30 | 2.0
31 | provided
32 |
33 |
34 | com.ibm.cics
35 | test-war
36 | 1.0.0
37 | war
38 |
39 |
40 |
41 |
42 |
43 |
44 | org.apache.maven.plugins
45 | maven-ear-plugin
46 |
47 | false
48 | pom.xml
49 | test-ear
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-osgi/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-osgi
18 | test-reactor-osgi
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 | ${project.groupId}
28 | test-osgi
29 | ${project.version}
30 | jar
31 |
32 |
33 | ${project.groupId}
34 | test-tycho
35 | ${project.version}
36 | jar
37 |
38 |
39 |
40 |
41 |
42 |
43 | @project.groupId@
44 | @project.artifactId@
45 | @project.version@
46 | true
47 |
48 | EYUCMCIJ
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-deploy-neither
18 | test-bundle-deploy-neither
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | neither
39 | bundle
40 | BAR
41 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear/test-ear/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-ear
18 | test-reactor-ear
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-ear
23 | ear
24 |
25 |
26 |
27 |
28 | javax.ws.rs
29 | javax.ws.rs-api
30 | 2.0
31 | provided
32 |
33 |
34 | com.ibm.cics
35 | test-war
36 | 1.0.0
37 | war
38 |
39 |
40 |
41 |
42 |
43 |
44 | org.apache.maven.plugins
45 | maven-ear-plugin
46 |
47 | false
48 | pom.xml
49 | test-ear
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-neither-smss/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-deploy-neither-smss
18 | test-bundle-deploy-neither-smss
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | neither
39 | bundle
40 | BAR
41 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-nodefaultjvmserver/test-ear/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-ear-nodefaultjvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-ear
23 | ear
24 |
25 |
26 |
27 |
28 | javax.ws.rs
29 | javax.ws.rs-api
30 | 2.0
31 | provided
32 |
33 |
34 | com.ibm.cics
35 | test-war
36 | 1.0.0
37 | war
38 |
39 |
40 |
41 |
42 |
43 |
44 | org.apache.maven.plugins
45 | maven-ear-plugin
46 |
47 | false
48 | pom.xml
49 | test-ear
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-ear-jvmserver/test-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-reactor-ear-jvmserver
18 | parent
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-bundle
23 | cics-bundle
24 |
25 |
26 |
27 | ${project.groupId}
28 | test-ear
29 | ${project.version}
30 | ear
31 |
32 |
33 |
34 |
35 |
36 |
37 | @project.groupId@
38 | @project.artifactId@
39 | @project.version@
40 | true
41 |
42 |
43 |
44 |
45 | test-ear
46 |
47 | EYUCMCIJ
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/cics-bundle-deploy-reactor-archetype/src/main/resources/archetype-resources/__rootArtifactId__-bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 |
4 | \${groupId}
5 | \${rootArtifactId}
6 | \${version}
7 |
8 |
9 | \${artifactId}
10 | cics-bundle
11 | Example CICS bundle
12 |
13 |
14 |
15 | \${groupId}
16 | \${rootArtifactId}-war
17 | \${version}
18 | war
19 |
20 |
21 |
22 |
23 |
24 |
25 | ${project.groupId}
26 | cics-bundle-maven-plugin
27 | ${project.version}
28 | true
29 |
30 | \${defaultjvmserver}
31 |
32 |
33 |
34 | deploy
35 | verify
36 |
37 | deploy
38 |
39 |
40 | deployserver
41 | \${bunddef}
42 | \${csdgroup}
43 | \${project.build.directory}/\${artifactId}-\${version}.zip
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noRegion/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | test-bundle-deploy-noRegion
18 | Example CICS bundle
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | noRegion
39 | bundle
40 | BAR
41 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | com.ibm.cics.test-bundle-deploy-noRegion
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-eba/test-eba/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-eba
18 | test-reactor-eba
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | test-eba
23 | eba
24 |
25 |
26 |
27 |
28 | javax.ws.rs
29 | javax.ws.rs-api
30 | 2.0
31 | provided
32 |
33 |
34 | com.ibm.cics.test-reactor-eba
35 | test-osgi
36 | 0.0.1-SNAPSHOT
37 |
38 |
39 |
40 |
41 |
42 |
43 | org.apache.aries
44 | eba-maven-plugin
45 | true
46 |
47 | true
48 |
49 | ${project.artifactId}
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-noCICSplex/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-deploy-noCICSplex
18 | test-bundle-deploy-noCICSplex
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 |
27 | @project.groupId@
28 | @project.artifactId@
29 | @project.version@
30 | true
31 |
32 |
33 | deploy
34 | verify
35 |
36 | deploy
37 |
38 |
39 | noCICSplex
40 | bundle
41 | BAR
42 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-reactor-debug-logging/war/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-reactor-debug-logging
18 | test-reactor-debug-logging
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | war
23 | war
24 |
25 |
26 |
27 |
28 | javax.ws.rs
29 | javax.ws.rs-api
30 | 2.0
31 | provided
32 |
33 |
34 |
35 |
36 |
37 |
38 | org.apache.maven.plugins
39 | maven-war-plugin
40 |
41 | false
42 | pom.xml
43 | test-war
44 |
45 |
46 |
47 | maven-compiler-plugin
48 | 3.5.1
49 |
50 | 1.8
51 | 1.8
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-versionrange/bundle/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
18 | 4.0.0
19 |
20 | com.ibm.cics.test-bundle-osgi-versionrange
21 | test-bundle-osgi-versionrange
22 | 0.0.1-SNAPSHOT
23 |
24 |
25 | com.ibm.cics.test-bundle-osgi-versionrange
26 | bundle
27 | 1.0
28 | cics-bundle
29 |
30 |
31 |
32 |
33 | @project.groupId@
34 | @project.artifactId@
35 | @project.version@
36 | true
37 |
38 | HELLO
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | com.ibm.cics.test-bundle-osgi-versionrange
47 | osgi
48 | [1.0, 2.0)
49 | jar
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-no-transitive/war2/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-no-transitive
18 | test-no-transitive
19 | 0.0.1-SNAPSHOT
20 |
21 |
22 | war2
23 | war
24 |
25 |
26 |
27 | com.ibm.cics.test-no-transitive
28 | war1
29 | ${project.version}
30 | war
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | org.apache.maven.plugins
39 | maven-war-plugin
40 | 3.2.2
41 |
42 | false
43 |
44 |
45 |
46 |
47 |
48 |
49 | org.apache.maven.plugins
50 | maven-compiler-plugin
51 |
52 | 1.8
53 | 1.8
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/.github/workflows/maven-build.yml:
--------------------------------------------------------------------------------
1 | name: Build
2 | on: [ push, pull_request ]
3 | jobs:
4 |
5 | build:
6 | name: Maven Build
7 | runs-on: ubuntu-latest
8 |
9 | steps:
10 | - name: Checkout
11 | uses: actions/checkout@v4
12 |
13 | - name: Setup Java
14 | uses: actions/setup-java@v4
15 | with:
16 | java-version: '8'
17 | distribution: 'temurin'
18 | cache: maven
19 | server-id: ossrh
20 | server-username: OSSRH_USERNAME
21 | server-password: OSSRH_PASSWORD
22 | gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
23 | gpg-passphrase: MAVEN_GPG_PASSPHRASE
24 |
25 | - name: Build and deploy with Maven
26 | if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/1.x'
27 | run: mvn -Dstyle.color=always -B -U -P sign deploy
28 | env:
29 | OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30 | OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
31 | MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
32 |
33 | - name: Build with Maven
34 | if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/1.x'
35 | run: mvn -Dstyle.color=always -B -U verify
36 |
37 | - name: Build site
38 | run: mvn -Dstyle.color=always -B -U site site:stage post-site
39 |
40 | - name: Upload GitHub Pages artifact
41 | uses: actions/upload-pages-artifact@v3
42 | with:
43 | path: target/staging/cics-bundle-maven-plugin
44 |
45 | pages:
46 | name: Deploy to GitHub Pages
47 | runs-on: ubuntu-latest
48 | needs: build
49 | if: github.ref == 'refs/heads/main'
50 |
51 | permissions:
52 | pages: write
53 | id-token: write
54 |
55 | environment:
56 | name: github-pages
57 | url: ${{ steps.deployment.outputs.page_url }}
58 |
59 | steps:
60 | - name: Deploy site to GitHub Pages
61 | id: deployment
62 | uses: actions/deploy-pages@v4
63 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/resources/META-INF/plexus/components.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 | org.apache.maven.lifecycle.mapping.LifecycleMapping
21 | cics-bundle
22 | org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
23 |
24 |
25 |
26 | default
27 |
28 |
29 | com.ibm.cics:cics-bundle-maven-plugin:build,
30 | com.ibm.cics:cics-bundle-maven-plugin:package
31 |
32 |
33 | org.apache.maven.plugins:maven-install-plugin:install
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | org.apache.maven.artifact.handler.ArtifactHandler
42 | cics-bundle
43 |
44 | org.apache.maven.artifact.handler.DefaultArtifactHandler
45 |
46 |
47 | zip
48 | cics-bundle
49 | cics-bundle
50 | none
51 | false
52 | true
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
17 | 4.0.0
18 |
19 | com.ibm.cics.test-bundle-osgi
20 | test-bundle-osgi
21 | 0.0.1-SNAPSHOT
22 | eclipse-plugin
23 |
24 |
25 | 1.4.0
26 |
27 |
28 |
29 |
30 |
31 | javax.ws.rs
32 | javax.ws.rs-api
33 | 2.0
34 | provided
35 |
36 |
37 |
38 |
39 |
40 |
41 | org.eclipse.tycho
42 | tycho-maven-plugin
43 | ${tycho-version}
44 | true
45 |
46 |
47 |
48 | @project.groupId@
49 | @project.artifactId@
50 | @project.version@
51 |
52 |
53 |
54 | bundle-osgi
55 |
56 |
57 | EYUCMCIJ
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-deploy-pwd-in-pom/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-deploy-pwd-in-pom
18 | test-bundle-deploy-pwd-in-pom
19 | Example CICS bundle
20 | 0.0.1-SNAPSHOT
21 |
22 |
23 |
24 |
25 |
26 | @project.groupId@
27 | @project.artifactId@
28 | @project.version@
29 | true
30 |
31 |
32 | deploy
33 | verify
34 |
35 | deploy
36 |
37 |
38 | ituser
39 | itpassword
40 | http://localhost:@wiremockPort@
41 | cicsplex
42 | region
43 | bundle
44 | region
45 | BAR
46 | ${basedir}/test-app-bundle-0.0.1-SNAPSHOT.zip
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-ear/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
15 | 4.0.0
16 |
17 | com.ibm.cics.test-bundle-ear
18 | test-bundle-ear
19 | 0.0.1-SNAPSHOT
20 | ear
21 |
22 |
23 |
24 | com.ibm.cics
25 | test-war
26 | 1.0.0
27 | war
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | org.apache.maven.plugins
36 | maven-ear-plugin
37 | 3.0.2
38 |
39 | false
40 | pom.xml
41 | test-ear
42 |
43 |
44 |
45 |
46 | @project.groupId@
47 | @project.artifactId@
48 | @project.version@
49 |
50 |
51 |
52 | bundle-ear
53 |
54 |
55 | EYUCMCIJ
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/it/test-bundle-osgi-bundle-parts/pom.xml:
--------------------------------------------------------------------------------
1 |
14 |
17 | 4.0.0
18 |
19 | com.ibm.cics.test-bundle-osgi-bundle-parts
20 | test-bundle-osgi-bundle-parts
21 | 0.0.1-SNAPSHOT
22 | eclipse-plugin
23 |
24 |
25 | 1.4.0
26 |
27 |
28 |
29 |
30 |
31 | javax.ws.rs
32 | javax.ws.rs-api
33 | 2.0
34 | provided
35 |
36 |
37 |
38 |
39 |
40 |
41 | org.eclipse.tycho
42 | tycho-maven-plugin
43 | ${tycho-version}
44 | true
45 |
46 |
47 |
48 | @project.groupId@
49 | @project.artifactId@
50 | @project.version@
51 |
52 |
53 |
54 | bundle-osgi
55 |
56 |
57 | EYUCMCIJ
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/cics-bundle-maven-plugin/src/main/java/com/ibm/cics/cbmp/BundlePartBinding.java:
--------------------------------------------------------------------------------
1 | package com.ibm.cics.cbmp;
2 |
3 | /*-
4 | * #%L
5 | * CICS Bundle Maven Plugin
6 | * %%
7 | * Copyright (C) 2019 IBM Corp.
8 | * %%
9 | * This program and the accompanying materials are made
10 | * available under the terms of the Eclipse Public License 2.0
11 | * which is available at https://www.eclipse.org/legal/epl-2.0/
12 | *
13 | * SPDX-License-Identifier: EPL-2.0
14 | * #L%
15 | */
16 |
17 | import org.apache.maven.plugin.MojoExecutionException;
18 |
19 | import com.ibm.cics.bundle.parts.BundleResource;
20 |
21 | public abstract class BundlePartBinding {
22 |
23 | /**
24 | * This object is instantiated by Maven using the values in the pom that
25 | * are provided by the user when they explicitly configure a bundle part
26 | * using .
27 | */
28 | private com.ibm.cics.cbmp.Artifact artifact;
29 |
30 | /**
31 | * This is the actual Maven artifact. If using an explicitly configured
32 | * bundle part, this will be set by matching to the values in the above
33 | * artifact. Otherwise it will just be set directly.
34 | */
35 | protected org.apache.maven.artifact.Artifact resolvedArtifact;
36 |
37 | public void setArtifact(com.ibm.cics.cbmp.Artifact artifact) {
38 | this.artifact = artifact;
39 | }
40 |
41 | public void setResolvedArtifact(org.apache.maven.artifact.Artifact resolvedArtifact) {
42 | this.resolvedArtifact = resolvedArtifact;
43 | }
44 |
45 | public boolean matches(org.apache.maven.artifact.Artifact target) {
46 | return artifact.matches(target);
47 | }
48 |
49 | public final BundleResource toBundlePart(DefaultsProvider mojo) throws MojoExecutionException {
50 | applyDefaults(mojo);
51 | return toBundlePartImpl();
52 | }
53 |
54 | protected abstract void applyDefaults(DefaultsProvider mojo) throws MojoExecutionException;
55 |
56 | protected abstract BundleResource toBundlePartImpl() throws MojoExecutionException;
57 |
58 | @Override
59 | public String toString() {
60 | return getClass().getSimpleName() + ": " + artifact;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/cics-bundle-deploy-reactor-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | defaultjvmserver
5 |
6 |
7 | bundledefinition
8 |
9 |
10 | csdgroup
11 |
12 |
13 | username
14 |
15 |
16 | password
17 |
18 |
19 | deployURL
20 |
21 |
22 | cicsplex
23 |
24 |
25 | region
26 |
27 |
28 |
29 |
30 |
31 |
32 | src
33 |
34 | **/*.java
35 | **/*.xml
36 | **/*.png
37 | **/*.html
38 | **/*.js
39 | **/*.css
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | **/*.xml
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------