Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orbit-dev] creating new recipe fails with error "version can neither be null, empty nor blank"

You have not specified a version in your pom.xml. You only specified the artifactid. 

Matthias Sohn <matthias.sohn@xxxxxxxxx> schrieb am Fr., 17. Jan. 2020, 00:17:
I am trying to create a new recipe to add junit 4.13.
I added a junit4 folder under the folder junit with the following pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <parent>

    <groupId>org.eclipse.orbit.bundles</groupId>

    <artifactId>junit-parent</artifactId>

    <version>1.0.0-SNAPSHOT</version>

  </parent>

  <artifactId>junit4</artifactId>

  <packaging>pom</packaging>

  <name>Eclipse Orbit :: JUnit 4 Recipes</name>

  <modules>

<!--    <module>org.junit_4.13.0</module> -->

  </modules>

</project>


Creating the new recipe for junit:junit:4.13 fails with the following error:

junit4 (master *)]$ mvn ebr:create-recipe -DgroupId=junit -DartifactId=junit -Dversion=4.13 -DbundleSymbolicName=org.junit
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.eclipse.orbit.bundles:junit4 >------------------
[INFO] Building Eclipse Orbit :: JUnit 4 Recipes 1.0.0-SNAPSHOT
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- ebr-maven-plugin:1.1.0-SNAPSHOT:create-recipe (default-cli) @ junit4 ---
[INFO] Searching for parent pom.xml.
[INFO] Resolving POM for artifact junit:junit:4.13.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.636 s
[INFO] Finished at: 2020-01-17T00:10:31+01:00
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.eclipse.ebr:ebr-maven-plugin:1.1.0-SNAPSHOT:create-recipe (default-cli) on project junit4: Execution default-cli of goal org.eclipse.ebr:ebr-maven-plugin:1.1.0-SNAPSHOT:create-recipe failed: version can neither be null, empty nor blank -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException


I can't find the reason for this failure, AFAICS I added a version for the new recipe

-Matthias
_______________________________________________
orbit-dev mailing list
orbit-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/orbit-dev

Back to the top