Hi, On 01/03/16 18:21, "Davide Giannella" wrote: >Good morning team, > >I'm kind-of stuck in the release process as oak-examples contains >dependencies to oak-1.4-SNAPSHOT. The problem is the -SNAPSHOT bit. > >mvn release plugin complains about it as it's -SNAPSHOT and asks if I'd >like to fix it.
I think it works if you change the version from 1.4-SNAPSHOT to 1.4.0-SNAPSHOT as you did with for the other modules. the release plugin will take care of rewriting it to the release version. see previous release: http://svn.apache.org/viewvc?rev=1730666&view=rev Regards Marcel > >While we could potentially proceed without fixing, I think, I'd rather >have a clean solution if we have. > >I tried setting the latest unstable (1.3.16) but it complains with > >[ERROR] Failed to execute goal >org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare >(default-cli) on project jackrabbit-oak: The artifact >(org.apache.jackrabbit:oak-jcr) requires a different version (1.4.0) >than what is found (1.3.16) for the expression (oak.version) in the >project (org.apache.jackrabbit:oak-webapp). -> [Help 1] > >If we set something like ${project.version} it will of course complain >about it during the release process as it will be converted to 1.4.0 and >it doesn't exists. > >We could potentially set it to 1.6-SNAPSHOT (didn't try it yet) but >still it's a SNAPSHOT and it's referring to a different, more advanced >oak version. > >I tried as well to see if there are any flags of the maven release >plugin to completely skip a module but found only for the deployment part. > >Possible solutions I have in mind from here > >1) we delete the module from 1.4. In the end is an example and could >live in trunk only. > >2) we give it something like, 1.4-SNAPSHOT or 1.6-SNAPSHOT for allowing >the release to proceed (assuming it will). Then once 1.4.0 is public we >switch it back to 1.4.0 and then it should be set. > >Any ideas? > >Cheers >Davide > >On 01/03/2016 16:59, [email protected] wrote: >> Author: davide >> Date: Tue Mar 1 16:59:00 2016 >> New Revision: 1733103 >> >> URL: http://svn.apache.org/viewvc?rev=1733103&view=rev >> Log: >> OAK-4073 - Release Oak 1.4.0 >> >> trying to address circular snapshot dependencies in >> oak-examples. Setting the oak version to 1.3.16: last known unstable >> cut. >> >> It should not be a problem as this is not part of the release. When >> 1.4.0 will be available we can set it to the stable version. >> >> >> Modified: >> jackrabbit/oak/branches/1.4/oak-examples/standalone/pom.xml >> jackrabbit/oak/branches/1.4/oak-examples/webapp/pom.xml >> >> Modified: jackrabbit/oak/branches/1.4/oak-examples/standalone/pom.xml >> URL: >>http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.4/oak-examples/sta >>ndalone/pom.xml?rev=1733103&r1=1733102&r2=1733103&view=diff >> >>========================================================================= >>===== >> --- jackrabbit/oak/branches/1.4/oak-examples/standalone/pom.xml >>(original) >> +++ jackrabbit/oak/branches/1.4/oak-examples/standalone/pom.xml Tue Mar >> 1 16:59:00 2016 >> @@ -35,7 +35,7 @@ >> <description>Standalone application based on Spring Boot then embeds >>a Jackrabbit Oak content repository</description> >> >> <properties> >> - <oak.version>1.4-SNAPSHOT</oak.version> >> + <oak.version>1.3.16</oak.version> >> <tika.version>1.7</tika.version> >> <skip.deployment>true</skip.deployment> >> <spring.boot.version>1.3.0.RELEASE</spring.boot.version> >> >> Modified: jackrabbit/oak/branches/1.4/oak-examples/webapp/pom.xml >> URL: >>http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.4/oak-examples/web >>app/pom.xml?rev=1733103&r1=1733102&r2=1733103&view=diff >> >>========================================================================= >>===== >> --- jackrabbit/oak/branches/1.4/oak-examples/webapp/pom.xml (original) >> +++ jackrabbit/oak/branches/1.4/oak-examples/webapp/pom.xml Tue Mar 1 >>16:59:00 2016 >> @@ -35,7 +35,7 @@ >> <description>Web application that hosts and serves a Jackrabbit Oak >>content repository</description> >> >> <properties> >> - <oak.version>1.4-SNAPSHOT</oak.version> >> + <oak.version>1.3.16</oak.version> >> <tomcat.version>7.0.40</tomcat.version> >> <tika.version>1.7</tika.version> >> <skip.deployment>true</skip.deployment> >> >> >
