Hello,

Thanks for the reply!  At present, there is no build machine, and so I'm
just running Maven commands on the project locally, and have not sent the
project to be configured for continuous integration until I can figure out
running unit tests via Maven for an AIR library.

So, I blew away the target files by cleaning, so as to freshly create
new Testrunner
files, and now I receive:

[ERROR] Failed to execute goal
org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:test-run
(default-test-run) on project myProject: Unexpected return code 9 -
C:\Users\myUser\workspace\as3\lib\myProject\target\test-classes\TestRunner.swf

Exit code 9, according to Adobe, means:

The main application content file is not a valid SWF or HTML file.

This may have something to do with the fact that this is a library swc, not
at AIR application? Is there some other configuration required for this?
Any ideas

Thanks, adq.

On Tue, Sep 25, 2012 at 1:13 AM, <[email protected]> wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/flex-mojos/topics
>
>    - Unable to run unit test Maven goal on AIR library 
> project!<#139fbd7d4f158dbb_group_thread_0>[2 Updates]
>
>   Unable to run unit test Maven goal on AIR library 
> project!<http://groups.google.com/group/flex-mojos/t/367edd9bfd503e52>
>
>    Asking Dumbquestions <[email protected]> Sep 24 07:43AM
>    -0700
>
>    Hello Flexmojos group,
>
>    I'm building an AIR library and cannot seem to run the unit test goal
>    from
>    the command line using flexmojos. I'm fairly comfortable with
>    flexmojos
>    and have built numerous projects using the plugin, and in fact,
>    loading the
>    project into IntelliJ, I can test/develop no problem thru the IDE.
>    When I
>    try to pass thru the test goal from the command line, however, I'm met
>    with
>    the following error.
>    [ERROR] Failed to execute goal<br>
>    org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:test-run<br>
>    (default-test-run) on project myProject: Address already in use:
>    JVM_Bind
>    I don't quite understand the error: it's not related to an IDE using
>    the
>    ADL - I receive this error even if I've just booted do nothing else
>    but run
>    any Maven command on the project.
>
>    I do have the Flex SDK on my path so that the ADL is available, etc.
>    Is
>    there another configuration I need to set up in the pom to enable unit
>    testing via the AIR debugger? Given this is a library, there's no
>    application.xml file, etc.
>
>    I'd greatly appreciate any help! Thanks!
>
>
>    The pom.xml does specify using ADL under the build tag and includes
>    the AIR
>    SDK as a dependency.
>
>    <build>
>    <plugins>
>    <plugin>
>    <groupId>org.sonatype.flexmojos</groupId>
>    <artifactId>flexmojos-maven-plugin</artifactId>
>    <version>${flexmojos.version}</version>
>    <extensions>true</extensions>
>
>    <dependencies>
>    <dependency>
>    <groupId>com.adobe.flex</groupId>
>    <artifactId>compiler</artifactId>
>    <version>${flex.version}</version>
>    <type>pom</type>
>    </dependency>
>    <dependency>
>    <groupId>com.adobe.flex.compiler</groupId>
>    <artifactId>adt</artifactId>
>    <version>${flex.version}</version>
>    <scope>compile</scope>
>    </dependency>
>    </dependencies>
>    </plugin>
>    </plugins>
>    </build>
>
>    ... and of course, in dependencies I'm specifying the AIR SDK:
>
>    <dependencies>
>    <!-- Air SDK -->
>    <dependency>
>    <groupId>com.adobe.flex.framework</groupId>
>    <artifactId>air-framework</artifactId>
>    <version>${flex.version}</version>
>    <type>pom</type>
>    </dependency>
>    </dependencies>
>
>
>
>
>    Christofer Dutz <[email protected]> Sep 24 05:29PM +0200
>
>    The problem is probably related with the connection of the Testrunner
>    and the Flexmojos build as the Flexmojos requests a free port number
>    from the OS and compiles that into the testrunner. In the test
>    execution phase the Flexmojos opens a port on that port number and
>    waits for the client test runner to connect. I guess in the time
>    between getting a free port number and opening the port some other
>    process might be grabbing that port, causing the above failure.
>
>    Is the build machine under heavy load? Is this failure reproduceable?
>
>    Chris
>
>
>
>
>  You received this message because you are subscribed to the Google Group
> flex-mojos.
> You can post via email <[email protected]>.
> To unsubscribe from this group, 
> send<[email protected]>an empty message.
> For more options, visit 
> <http://groups.google.com/group/flex-mojos/topics>this group.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to