Good morning all,
I'm just starting my journey down the vRO plugin development path.
I've followed the directions on these two blogs
https://www.helloitscraig.co.uk/2016/04/getting-started-vro-plugin-development-part-1.html
&
https://www.helloitscraig.co.uk/2016/04/getting-started-vro-plugin-development-part-2.html
And have been able to update the build number using the maven plugin. This is the only change I made to the base archtype I downloaded.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<buildNumberPropertyName>build.number</buildNumberPropertyName>
<revisionOnScmFailure>no.scm.config.in.pom</revisionOnScmFailure>
<doCheck>true</doCheck>
<doUpdate>true</doUpdate>
<format>{0,date,yyyyDHmm}</format>
<items>
<item>timestamp</item>
</items>
</configuration>
</plugin>
However when I try to upload the new version, vRO rejects it saying the new version is the same as the old one, even though the build number is higher. I get the same error if I update to 1.0.2-SNAPSHOT.blah.
What, and where (and how) do I need to add to update the vRO version?
Currently using vRO 7.0.1
Thanks in advance.
Hi,
This could be an issue with Control Center UI. Could you try to install the plug-in manually? Here are the steps:
BTW, previous vRO releases (before vRO 7) didn't take into account plug-in build numbers (only version numbers) when comparing the newly installed plug-in with the existing plug-in. The newer releases, including vRO 7.0.1, should use build numbers also when comparing versions.
Also, there is a property controlling the installation mode of the plug-in (eg. compare versions or install always) - check the code in the auto-generated class <Pluginname>ModuleBuilder.java located in o11nplugin-<pluginname>-core project; there should be something referencing InstallationMode enum.
Hi,
This could be an issue with Control Center UI. Could you try to install the plug-in manually? Here are the steps:
BTW, previous vRO releases (before vRO 7) didn't take into account plug-in build numbers (only version numbers) when comparing the newly installed plug-in with the existing plug-in. The newer releases, including vRO 7.0.1, should use build numbers also when comparing versions.
Also, there is a property controlling the installation mode of the plug-in (eg. compare versions or install always) - check the code in the auto-generated class <Pluginname>ModuleBuilder.java located in o11nplugin-<pluginname>-core project; there should be something referencing InstallationMode enum.
Uploading the new plugin manually worked.
There may be a bug in the new control center they have.
The default installationMode was BUILD. Changing it to ALWAYS made no difference.
installation(InstallationMode.ALWAYS).action(ActionType.INSTALL_PACKAGE,
"packages/${project.artifactId}-package-${project.version}.package");