Export to GitHub

spock - issue #339

spock-maven 0.7-groovy-2.0 has SNAPSHOT version in maven/plugin.xml


Posted on Jan 9, 2014 by Swift Ox

I added all dependencies and plugins from the sample of http://nzhu.blogspot.nl/2011/01/sample-pomxml-for-groovy-project-with.html and upgraded it to the following versions: - spock 0.7-groovy-2.0 - groovy 2.2.1 - gmaven 1.5 - gmaven providerSelection 2.0

When running mvn test I receive the following Maven error: [ERROR] Invalid plugin descriptor for org.spockframework:spock-maven:0.7-groovy-2.0 (/home/pvdissel/.m2/repository/org/spockframework/spock-maven/0.7-groovy-2.0/spock-maven-0.7-groovy-2.0.jar), Plugin's descriptor contains the wrong version: 0.7-groovy-2.0-SNAPSHOT -> [Help 1]

I unpacked the plugin jar file: ~/.m2/repository/org/spockframework/spock-maven/0.7-groovy-2.0/spock-maven-0.7-groovy-2.0.jar And found "0.7-groovy-2.0-SNAPSHOT" in the file: META-INF/maven/plugin.xml

I think it's best to automaticly update that version in the plugin.xml during the creation of a new release.

I will see if I can implement this over the weekend.

Comment #1

Posted on Jan 26, 2014 by Swift Ox

Comment deleted

Comment #2

Posted on Jan 26, 2014 by Swift Ox

Created pull request with the fix: https://github.com/spockframework/spock/pull/35

Status: New

Labels:
Type-Defect Module-Core