Flexmojos를 사용하여 유닛 테스트를 실행하고 SWC를 빌드하는 Maven 프로젝트가 있습니다. 이 단위 테스트를 실행, 나는 내가 settings.xml
를 통해 할 수있는, 내 플래시 플레이어가 어디 Flexmojos을 알려줄 필요가 :Maven 릴리스 중에 Flexmojos와 함께 사용하도록 Flash Player 구성 : 수행
<profiles>
<profile>
<id>dev</id>
<properties>
<flex.flashPlayer.command>/Applications/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger</flex.flashPlayer.command>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>dev</activeProfile>
</activeProfiles>
이 개발에서 잘 작동하지만, 내가 메이븐 release:perform
을 수행 할 때, 그것은 실패 :
[INFO] [WARNING] The requested profile "release" could not be activated because it does not exist.
[INFO] [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.1-beta:test-run (default-test-run) on project swf-module: Failed to launch Flash Player. Probably java was not able to find flashplayer.
[INFO] [ERROR] Make sure flashplayer is available on PATH
[INFO] [ERROR] or use -DflashPlayer.command=${flashplayer executable}
[INFO] [ERROR] Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests: Cannot run program "flashplayer": error=2, No such file or directory
release:perform
은 settings.xml
에 지정된 플래시 플레이어를 찾지 못하는 이유는 무엇입니까? 이 문제를 어떻게 해결할 수 있습니까?
는 UPDATE :
- 받는
flashplayer
추가 (이 맥에 있습니다).swf
파일의 기본 프로그램으로 플래시 플레이어를 설정 - :
은 또한 다음을 시도 경로
... 모두 사용할 수 없습니다. 내가 이름 flashplayer
과 경로에 Flash Player의 디버거를 넣으면
는 다음에 에러 변경 :
UPDATE 2로 더 이상의 단서와
[INFO] [WARNING] The requested profile "release" could not be activated because it does not exist.
[INFO] [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.1-beta:test-run (default-test-run) on project swf-module: Unexpected return code 1 - /Users/blah/blah/swf-module/target/test-classes/TestRunner.swf -> [Help 1]
는 ... 실패 무엇 .