Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.gvart:o11n-deploy-maven-plugin:0.1.2'
}
dependencies {
implementation("com.github.gvart:o11n-deploy-maven-plugin:0.1.2")
}
<dependency>
<groupId>com.github.gvart</groupId>
<artifactId>o11n-deploy-maven-plugin</artifactId>
<version>0.1.2</version>
</dependency>
libraryDependencies += "com.github.gvart" % "o11n-deploy-maven-plugin" % "0.1.2"
:dependencies [[com.github.gvart/o11n-deploy-maven-plugin "0.1.2"]]
A Maven plug-in that helps you develop Java plug-ins for VMware vRealize Orchestrator by automatically installing the compiled *.vmoapp or *.dar files on the configured vRealize Orchestrator server.
Note: due to the lack of a API endpoint to restart the orchestration service you will still have to restart it manually e.g. using service vco-server restart. You may further automate the deployment by executing a SSH command to do the job once the build was successfull.
1.Add Repository
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
2.Add dependency
<dependency>
<groupId>com.github.gvart</groupId>
<artifactId>o11n-deploy-maven-plugin</artifactId>
<version>0.1.2-alpha</version>
</dependency>
This Mojo should be configured within your o11nplugin-pluginname/pom.xml Maven module. It has a single goal deployplugin and usually you should run it in the install phase. The deployplugin goal has the following parameters:
All parameters are provided as Strings and converted into the required format internally. A simple mvn install
will then trigger the upload of the compiled plugin.
A example that uses all currently available parameters.
<plugin>
<groupId>com.github.gvart</groupId>
<artifactId>o11n-deploy-maven-plugin</artifactId>
<version>0.1.2-alpha</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deployplugin</goal>
</goals>
</execution>
</executions>
<configuration>
<o11nServer>localhost</o11nServer>
<o11nPort>8281</o11nPort>
<o11nUser>vcoadmin</o11nUser>
<o11nPassword>vcoadmin</o11nPassword>
<o11nOverwrite>true</o11nOverwrite>
<o11nDeletePackage>true</o11nDeletePackage>
<o11nPluginType>vmoapp</o11nPluginType>
<o11nPluginFilePath>${project.build.directory}</o11nPluginFilePath>
<o11nPluginFileName>${project.build.finalName}</o11nPluginFileName>
</configuration>
</plugin>
An example output of a successfully run may look like this:
[INFO] --- o11n-deploy-maven-plugin:0.1.2-alpha:deployplugin (default) @ o11nplugin-SIEM ---
[INFO] Configured plugin: '/home/pika/workspace/git/siem/o11nplugin-SIEM/target/o11nplugin-SIEM-1.0.0.vmoapp'.
[INFO] Configured server: 'https://172.28.36.143:8281/vco/api/plugins'.
[INFO] START DELETING!
[INFO] HTTP 200. Successfully deleted package in VMware Orchestrator.
[INFO] HTTP 204. Successfully updated plug-in in VMware Orchestrator.
O11n-deploy-maven-plugin – from now on “this project”, “this program” or “this software” – is an open source project.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.
This software may include “Open Source Software”, which means various open source software components licensed under the terms of applicable open source license agreements included in the materials relating to such software. Open Source Software is composed of individual software components, each of which has its own copyright and its own applicable license conditions. Information about the used Open Source Software and their licenses can be found in the pom.xml file. The Product may also include other components, which may contain additional open source software packages. One or more such license files may therefore accompany this Product.
It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.
All product and company names are trademarks ™ or registered ® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.