![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
2.1-alpha-2 |
|
Assignee:
|
Unassigned |
|
Attachments:
|
mavenproject1.zip |
|
Components:
|
rpm |
|
Created:
|
11/Feb/13 12:51 PM
|
|
Description:
|
I have a Maven project that builds a jar and I'm building an RPM as a Secondary Artifact.
The jar version is 1.0.0-SNAPSHOT.
I want the RPM to have version 1.0.0 and release 1
However the maven-rpm-plugin has a bug whereby it fails if you add <release>1</release> and the jar created is a SNAPSHOT. The error is:
[rpm:rpm]
Creating directory /home/mavenproject1/target/rpm/mavenproject1
Creating directory /home/mavenproject1/target/rpm/mavenproject1/BUILD
Creating directory /home/mavenproject1/target/rpm/mavenproject1/RPMS
Creating directory /home/mavenproject1/target/rpm/mavenproject1/SOURCES
Creating directory /home/mavenproject1/target/rpm/mavenproject1/SPECS
Creating directory /home/mavenproject1/target/rpm/mavenproject1/SRPMS
Creating directory /home/mavenproject1/target/rpm/mavenproject1/tmp-buildroot
Creating directory /home/mavenproject1/target/rpm/mavenproject1/buildroot
Copying files to /home/mavenproject1/target/rpm/mavenproject1/tmp-buildroot/opt/myproj
Creating spec file /home/mavenproject1/target/rpm/mavenproject1/SPECS/mavenproject1.spec
error: line 2: Illegal char '-' in: Version: 1.0.0-SNAPSHOT
Building target platforms: noarch-unknown-linux
Building for target noarch-unknown-linux
I have attached a Maven project that can be used to reproduce. Just run mvn clean install
|
|
Environment:
|
Red Hat Linux
|
|
Project:
|
Mojo RPM Plugin
|
|
Priority:
|
Major
|
|
Reporter:
|
DK
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email