Skip to content

Instantly share code, notes, and snippets.

@hgomez
Created June 29, 2013 17:14
Show Gist options
  • Select an option

  • Save hgomez/5891894 to your computer and use it in GitHub Desktop.

Select an option

Save hgomez/5891894 to your computer and use it in GitHub Desktop.
maven rpm plugin tests (maven 3.0.5, java 1.6.0-43, CentOS 6.4 64bits)
[root@builder-c664 rpm-maven-plugin]# mvn clean verify
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building RPM Maven Plugin 2.1-alpha-3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ rpm-maven-plugin ---
[INFO] Deleting /root/rpm-maven-plugin/target
[INFO]
[INFO] --- cobertura-maven-plugin:2.5.1:clean (default) @ rpm-maven-plugin ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ rpm-maven-plugin ---
[INFO]
[INFO] --- maven-plugin-plugin:2.9:helpmojo (help-mojo) @ rpm-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 3 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO]
[INFO] --- maven-plugin-plugin:2.9:descriptor (default-descriptor) @ rpm-maven-plugin ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 4 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ rpm-maven-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ rpm-maven-plugin ---
[INFO] Compiling 23 source files to /root/rpm-maven-plugin/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ rpm-maven-plugin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/rpm-maven-plugin/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ rpm-maven-plugin ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.9:test (default-test) @ rpm-maven-plugin ---
[INFO] No tests to run.
[INFO] Surefire report directory: /root/rpm-maven-plugin/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ rpm-maven-plugin ---
[INFO] Building jar: /root/rpm-maven-plugin/target/rpm-maven-plugin-2.1-alpha-3-SNAPSHOT.jar
[INFO]
[INFO] --- maven-plugin-plugin:2.9:addPluginArtifactMetadata (default-addPluginArtifactMetadata) @ rpm-maven-plugin ---
[INFO]
[INFO] --- maven-invoker-plugin:1.5:install (integration-test) @ rpm-maven-plugin ---
[INFO] Installing /root/rpm-maven-plugin/pom.xml to /root/rpm-maven-plugin/target/local-repo/org/codehaus/mojo/rpm-maven-plugin/2.1-alpha-3-SNAPSHOT/rpm-maven-plugin-2.1-alpha-3-SNAPSHOT.pom
[INFO] Installing /root/rpm-maven-plugin/target/rpm-maven-plugin-2.1-alpha-3-SNAPSHOT.jar to /root/rpm-maven-plugin/target/local-repo/org/codehaus/mojo/rpm-maven-plugin/2.1-alpha-3-SNAPSHOT/rpm-maven-plugin-2.1-alpha-3-SNAPSHOT.jar
[INFO]
[INFO] --- maven-invoker-plugin:1.5:run (integration-test) @ rpm-maven-plugin ---
[INFO] Building: rpm-1/pom.xml
[INFO] ..FAILED (27.9 s)
[INFO] The post-build script did not succeed. /usr/myusr/app/bin/filter.txt does not exist
[INFO] Building: rpm-3/pom.xml
[INFO] ..SUCCESS (4.9 s)
[INFO] Building: rpm-2/pom.xml
[INFO] ..SUCCESS (6.6 s)
[INFO] Building: rpm-artifact/pom.xml
[INFO] ..SUCCESS (15.5 s)
[INFO] Building: rpm-reactor/pom.xml
[INFO] ..SUCCESS (10.0 s)
[INFO] Building: MRPM-117/pom.xml
[INFO] ..SUCCESS (3.3 s)
[INFO] Building: rpm-macros/pom.xml
[INFO] ..SUCCESS (3.7 s)
[INFO] Building: rpm-disable/pom.xml
[INFO] ..SUCCESS (4.1 s)
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 7, Failed: 1, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] * rpm-1/pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:21.762s
[INFO] Finished at: Sat Jun 29 19:13:07 CEST 2013
[INFO] Final Memory: 16M/69M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:1.5:run (integration-test) on project rpm-maven-plugin: 1 build failed. -> [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/MojoFailureException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment