You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
1
+
# O11n-deploy-maven-plugin
2
+
3
+
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.
4
+
5
+
[](https://vimeo.com/201562030"Using o11n-maven-deploy Mojo")
6
+
7
+
#### New in version 0.2.0
8
+
- Added Orchestrator service restart option
9
+
- Added better permission control
10
+
- Maven debug mode will now provide verbose output
11
+
- Replaced *Unirest* with *Jersey 2.0* and *JSON-P*
12
+
13
+
#### New in version 0.2.1
14
+
- Added option to delete plug-in packages (thanks @gvart)
15
+
- Minor formatting and spelling fixes
16
+
17
+
#### New in version 0.2.2
18
+
- Minor Javadoc fixes
19
+
- Added option to wait for pending configuration changes
20
+
21
+
## Install
22
+
You may download this Mojo as a binary and add it to your local Maven repository for usage. In addition this Mojo is available in the public OSSRH repository hosted by Sonatype and will automatically be pulled from there when added to your project's Maven POM.
23
+
If you have not yet added the Sonatype OSSRH you can do so by adding the following to your POM.
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.
39
+
40
+
41
+
#### Mandatory Parameters
42
+
-**o11nServer**: VMware Orchestrator server hostname or IP-address.
43
+
-**o11nPluginServiceUser**: Username of a user with sufficient permissions to import Orchestrator plug-ins. *Note: when using integrated LDAP this will be `vcoadmin` and `root` has no permissions to use the plug-in service API by default.*
44
+
-**o11nPluginServicePassword**: Password of the provided `o11nPluginServiceUser`.
45
+
46
+
#### Optional Parameters
47
+
-**o11nServicePort**: VMware Orchestrator Plugin Service REST API Port. Defaults to `8281`.
48
+
-**o11nConfigPort**: VMware Orchestrator Config Service REST API Port. Defaults to `8283`.
49
+
-**o11nOverwrite**: If set to `true` this option will trigger a Orchestrator service restart after the plug-in was installed. Defaults to `true`.
50
+
-**o11nPluginType**: The Orchestrator plug-in bundle format. Might be `DAR` or `VMOAPP`. Defaults to `VMOAPP`. *Note*: the value for this parameter is case-sensitive!
51
+
-**o11nRestartService**: If set to `true` this option will trigger a Orchestrator service restart after the plug-in was installed.
52
+
-**o11nConfigServiceUser**: Username of a user with sufficient permissions to restart Orchestrator services. **Required if `o11nRestartService` was set to `true`**. *Note: when using integrated LDAP this will be `root` and `vcoadmin` has no permissions to use the config service API by default.*
53
+
-**o11nConfigServicePassword**: Password of the provided `o11nConfigServiceUser`. **Required if `o11nRestartService` was set to `true`**.
54
+
-**o11nDeletePackage**: If set to `true` this option will delete all of the plug-ins packages before installing the new plug-in. *Note*: any changes done to the plug-in workflows and not synced with the packages in the plug-in bundle will be lost! The Orchestrator API option `deletePackageKeepingShared` is used internally for safety.
55
+
-**o11nPackageName**: The package name of the plug-in package to be deleted. **Required if `o11nDeletePackage` was set to `true`**. *Note*: this is the package name as specified in the `pkg-name` attribute of the `dunes-meta-inf.xml` file. If the package is not found on the server the goal execution will continue but a warning will be logged.
56
+
-**o11nWaitForPendingChanges**: If set to `true` this option will make this Mojo wait up to 240 seconds till the pending configuration changes have been applied. Note*: this option will only be processed if `o11nRestartService` is set to `true`.
57
+
-**o11nPluginFilePath**: Path to the plug-in file that should be installed. Defaults to `${project.build.directory}`. The filename will be taken from the configured *o11nPluginFileName*.
58
+
-**o11nPluginFileName**: The plug-in filename of the plug-in that should be installed omitting any file extension. Defaults to `${project.build.finalName}`. The extension will be taken from the configured *o11nPluginType*.
59
+
60
+
#### Parameter Formatting
61
+
All parameters are provided as Strings inside your POM file and will be converted into the required format internally. A simple `mvn install` will then trigger the upload of the compiled plugin if the execution goal has been set, see [example configuration](#example-configuration).
62
+
63
+
### Example configuration
64
+
A example that uses all currently available parameters. Note that for illustration purpose we also configured the optional parameters which would use the documented default values if omitted.
[INFO] Configuration changes are still pending. Waiting...
124
+
[INFO] Configuration changes are still pending. Waiting...
125
+
[INFO] Configuration changes are still pending. Waiting...
126
+
[INFO] Configuration changes are still pending. Waiting...
127
+
[INFO] Pending configuration changes have been applied. All done.
128
+
[INFO] Finished Orchestrator service restart.
129
+
[INFO] Successfully updated plug-in in VMware Orchestrator.
130
+
...
131
+
```
132
+
133
+
## Licensing & Legal
134
+
O11n-deploy-maven-plugin – from now on “this project”, “this program” or “this software” – is an open source project.
135
+
136
+
*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.*
137
+
138
+
*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.*
139
+
140
+
*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/.*
141
+
142
+
143
+
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.
144
+
145
+
It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.
146
+
147
+
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.
0 commit comments