Note that there are some explanatory texts on larger screens.

plurals
  1. POConfiguring the Flash player for use with Flexmojos executed during a Maven release:perform
    primarykey
    data
    text
    <p>I have a Maven project that uses Flexmojos to execute unit tests and build a SWC. As it executes unit tests, I need to tell Flexmojos where my Flash player is, which I do via <code>settings.xml</code>:</p> <pre><code>&lt;profiles&gt; &lt;profile&gt; &lt;id&gt;dev&lt;/id&gt; &lt;properties&gt; &lt;flex.flashPlayer.command&gt;/Applications/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger&lt;/flex.flashPlayer.command&gt; &lt;/properties&gt; &lt;/profile&gt; &lt;/profiles&gt; &lt;activeProfiles&gt; &lt;activeProfile&gt;dev&lt;/activeProfile&gt; &lt;/activeProfiles&gt; </code></pre> <p>This works nicely in development, but when I perform a Maven <code>release:perform</code>, it fails with:</p> <pre><code>[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 </code></pre> <p>Why does <code>release:perform</code> not find the Flash player specified in <code>settings.xml</code>? How can I fix this?</p> <p>UPDATE:</p> <p>I have also tried the following:</p> <ul> <li>Setting the Flash player as the default program for <code>.swf</code> files (note that this is on a Mac)</li> <li>Adding <code>flashplayer</code> to the path</li> </ul> <p>... all to no avail.</p> <p>UPDATE 2:</p> <p>If I put the Flash Player debugger onto the path with the name <code>flashplayer</code>, then the error changes to:</p> <pre><code>[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 -&gt; [Help 1] </code></pre> <p>... with no further clue as to what failed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload