Пакет mvn (сбой сборки) flexmojos - как правильно выбрать флэш-плеер - PullRequest
3 голосов
/ 18 декабря 2011

ошибка сборки говорит о том, что он не может найти мой флеш-плеер, но флеш-плеер установлен. Я даже поместил его в свою переменную Path прямо здесь. Я просто пытался запустить пакет mvn, также у меня установлен maven в моем eclipse SDK, но я не могу его получитьвсплывающее окно, но по большей части я просто беспокоюсь об этой проблеме прямо здесь какие-либо предложения?

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>

Ответы [ 2 ]

2 голосов
/ 28 сентября 2012

Обычно я просто переименовываю проигрыватель отладки "flashplayer.exe" и проверяю, что каталог, в котором он находится, находится в пути моей системы ... ничего более.

0 голосов
/ 20 января 2012

Вы должны переименовать flashplayer_10_sa_debug.exe в FlashPlayer.exe

...