3

构建失败说它找不到我的 Flash 播放器但是安装了 Flash 播放器我什至把它放在我的 Path 变量中我只是想运行 mvn 包我在我的 Eclipse SDK 中安装了 maven 但我不能让它弹出但在大多数情况下,我只是担心这个问题,这里有什么建议吗?

C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaApp>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavenFlexJavaApp Flex 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MavenFlexJ
avaApp ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- flexmojos-maven-plugin:4.1-beta:compile-swf (default-compile-swf) @ M
avenFlexJavaApp ---
[INFO] Flexmojos 4.1-beta
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[WARNING] No themes are explicitly defined in the <theme> section or in any scop
e="theme" dependencies. Flexmojos is now attempting to figure out which themes t
o include. (to avoid this warning you should explicitly state your theme depende
ncies      [WARNING] Adding spark.css theme because spark.swc was included               asa          dependency
[INFO] Writing configuration dump to C:\Program Files\apache-maven-3.0.3\my-app\
jason\MavenFlexJavaApp\target\MavenFlexJavaApp-1.0-SNAPSHOT-configs.xml
[INFO] C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaApp\target\
MavenFlexJavaApp-1.0-SNAPSHOT.swf (570344 bytes)
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ Ma
venFlexJavaApp ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Program Files\apache-maven-3.0.3\m
y-app\jason\MavenFlexJavaApp\src\test\resources
[INFO]
[INFO] --- flexmojos-maven-plugin:4.1-beta:test-compile (default-test-compile) @
MavenFlexJavaApp ---
[INFO] Flexmojos 4.1-beta
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[INFO] Compiling test class: [org.JasonThomas.ShadowInnovations.TestApp]
[WARNING] No themes are explicitly defined in the <theme> section or in any scop
e="theme" dependencies. Flexmojos is now attempting to figure out which themes t
o include. (to avoid this warning you should explicitly state your theme depende
ncies)
[WARNING] Adding spark.css theme because spark.swc was included as a dependency
[INFO] Writing configuration dump to C:\Program Files\apache-maven-3.0.3\my-app\
jason\MavenFlexJavaApp\target\test-classes\TestRunner-configs.xml
[INFO] C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaApp\target\
test-classes\TestRunner.swf (960078 bytes)
[INFO]
[INFO] --- flexmojos-maven-plugin:4.1-beta:test-run (default-test-run) @ MavenFl
exJavaApp ---
[INFO] Flexmojos 4.1-beta
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[INFO] Running tests C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJ
avaApp\target\test-classes\TestRunner.swf
[WARNING] [LAUNCHER] Using regular flashplayer tests
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.588s
[INFO] Finished at: Sun Dec 18 21:20:58 CST 2011
[INFO] Final Memory: 18M/342M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.1
-beta:test-run (default-test-run) on project MavenFlexJavaApp: Failed to launch
Flash Player. Probably java was not able to find flashplayer.
[ERROR] Make sure flashplayer is available on PATH
[ERROR] or use -DflashPlayer.command=${flashplayer executable}
[ERROR] Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+t
ests: Cannot run program "flashplayer": CreateProcess error=2, The system cannot
find the file specified
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
`enter code here`C:\Program Files\apache-maven-3.0.3\my-app\jason\MavenFlexJavaApp>
4

2 回答 2

2

我通常只是简单地将调试播放器重命名为“flashplayer.exe”,并确保包含它的目录位于我的系统路径中……仅此而已。

于 2012-09-28T15:05:03.387 回答
0

您必须将 flashplayer_10_sa_debug.exe 重命名为 FlashPlayer.exe

于 2012-01-20T03:03:35.987 回答