Issue Type: Bug Bug
Affects Versions: 2.1-alpha-1
Assignee: Unassigned
Components: rpm
Created: 20/Jun/12 8:59 AM
Description:

When an attempt is made to "mvn install", at random, the build will fail complaining that the artificat just built cannot be found:

[INFO] Wrote: /home/machine/minfrin/src/code/trunk/platform/platform-httpd/platform-httpd2.4-template/target/rpm/platform-httpd2.4-template/RPMS/noarch/platform-httpd2.4-template-0.0.1-SNAPSHOT20120620141048.noarch.rpm
[INFO] 
[INFO] --- maven-install-plugin:2.1:install (default-install) @ platform-httpd2.4-template ---
[INFO] Installing /home/machine/minfrin/src/code/trunk/platform/platform-httpd/platform-httpd2.4-template/target/rpm/platform-httpd2.4-template/RPMS/noarch/platform-httpd2.4-template-0.0.1-SNAPSHOT20120620141047.noarch.rpm to /home/machine/minfrin/.m2/repository/fm/sharp/platform/platform-httpd2.4-template/0.0.1-SNAPSHOT/platform-httpd2.4-template-0.0.1-SNAPSHOT.rpm
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.318s
[INFO] Finished at: Wed Jun 20 16:10:49 SAST 2012
[INFO] Final Memory: 7M/75M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.1:install (default-install) on project platform-httpd2.4-template: Failed to install artifact fm.sharp.platform:platform-httpd2.4-template:rpm:0.0.1-SNAPSHOT: /home/machine/minfrin/src/code/trunk/platform/platform-httpd/platform-httpd2.4-template/target/rpm/platform-httpd2.4-template/RPMS/noarch/platform-httpd2.4-template-0.0.1-SNAPSHOT20120620141047.noarch.rpm (No such file or directory) -> [Help 1]

This is caused by the embedded timestamp in the filename being constructed and resolved twice:

SNAPSHOT20120620141048
SNAPSHOT20120620141047

Environment: java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-10M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
Project: Mojo RPM Plugin
Priority: Major Major
Reporter: Graham Leggett
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

Reply via email to