Koen Aers created FORGE-480:
-------------------------------
Summary: Plugin Creation Results in Unbuildable Project
Key: FORGE-480
URL:
https://issues.jboss.org/browse/FORGE-480
Project: Forge
Issue Type: Bug
Components: Plugin API
Affects Versions: 1.0.0.CR2
Reporter: Koen Aers
Fix For: 1.0.0.Final
Debaser:Temp koen$ ~/Software/JBoss/forge/1.0.0.CR2/bin/forge
Using Forge at /Users/koen/Software/JBoss/forge/1.0.0.CR2
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|___/
[no project] Temp $ new-project --named blah --topLevelPackage org.blah
? Use [/Users/koen/Temp/blah] as project directory? [Y/n]
***SUCCESS*** Created project [blah] in new working directory [/Users/koen/Temp/blah]
Wrote /Users/koen/Temp/blah
Wrote /Users/koen/Temp/blah/pom.xml
Wrote /Users/koen/Temp/blah/src/main/java
Wrote /Users/koen/Temp/blah/src/test/java
Wrote /Users/koen/Temp/blah/src/main/resources
Wrote /Users/koen/Temp/blah/src/test/resources
Wrote /Users/koen/Temp/blah/src/main/resources/META-INF/forge.xml
[blah] blah $ plugins setup
***SUCCESS*** Installed [forge.spec.cdi] successfully.
Install which version of the Forge API?
1 - [org.jboss.forge:forge-shell-api:::1.0.0-SNAPSHOT]
2 - [org.jboss.forge:forge-shell-api:::1.0.0.Alpha4]
3 - [org.jboss.forge:forge-shell-api:::1.0.0.Beta1]
4 - [org.jboss.forge:forge-shell-api:::1.0.0.Beta2]
5 - [org.jboss.forge:forge-shell-api:::1.0.0.Beta3]
6 - [org.jboss.forge:forge-shell-api:::1.0.0.Beta4]
7 - [org.jboss.forge:forge-shell-api:::1.0.0.Beta5]
8 - [org.jboss.forge:forge-shell-api:::1.0.0.CR1]
9 - [org.jboss.forge:forge-shell-api:::1.0.0.CR2]
? Choose an option by typing the number of the selection: 9
***SUCCESS*** Installed [forge.api] successfully.
Wrote /Users/koen/Temp/blah/src/main/resources/META-INF/beans.xml
Wrote /Users/koen/Temp/blah/pom.xml
[blah] blah $ plugins new-plugin --named BlahPlugin
? In which package you'd like to create [BlahPlugin], or enter for default [org.blah]
Picked up type <JavaResource>: org.blah.BlahPlugin
Wrote /Users/koen/Temp/blah/src/main/java/org/blah/BlahPlugin.java
Wrote /Users/koen/Temp/blah/src/test/java/org/blah/BlahPluginTest.java
[blah] BlahPlugin.java $ build
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building blah 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ blah ---
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e.
build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ blah ---
[INFO] Compiling 1 source file to /Users/koen/Temp/blah/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ blah ---
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e.
build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ blah ---
[INFO] Compiling 1 source file to /Users/koen/Temp/blah/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ blah ---
[INFO] Surefire report directory: /Users/koen/Temp/blah/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.blah.BlahPluginTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 10.721 sec <<<
FAILURE!
Results :
Tests in error:
testDefaultCommand(org.blah.BlahPluginTest): No such command: BlahPlugin
testCommand(org.blah.BlahPluginTest): No such command: BlahPlugin
testPrompt(org.blah.BlahPluginTest): No such command: BlahPlugin
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.307s
[INFO] Finished at: Thu Feb 23 10:11:03 CET 2012
[INFO] Final Memory: 16M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test
(default-test) on project blah: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/koen/Temp/blah/target/surefire-reports for the individual
test results.
[ERROR] -> [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
***ERROR*** [build] Build failed.
[blah] BlahPlugin.java $
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira