In my FlexMojos poms, in the <configuration/> block for the FlexMojos
plugin, we have this:
<sourcePaths>
<path>${basedir}/src/main/flex</path>
<path>${basedir}/src/main/assets</path>
<path>${basedir}/src/main/resources/locale/{locale}</path>
<path>${basedir}/src/main/styles</path>
<path>${basedir}/target/generated-resources</path>
</sourcePaths>
You may only need src/main/flex in yours, but you might try adding
<sourcePaths/>
On Mon, Aug 16, 2010 at 11:25 AM, David Vree <[email protected]> wrote:
> I moved some files around inside a SWF project and it no longer builds
> from the Maven command line. Here is a snippet of error output:
>
> [WARNING] Source file was not defined, flexmojos will guess one.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Source file not expecified and no default found!
>
> This is a multi-module maven project and the directory structure of
> the flex SWF modules uses the standards "/src/main/flex" directory as
> the root of all the sources -- which are themselves divided up into
> packages -- e.g. "com.company.flex.yadda.yadda".
>
> I guess I would have assumed that Flexmojos would recursively search
> all the subdirectories of "src/main/flex" for MXML and Actionscript
> classes, like the maven-compiler-plugin does for Java. Perhaps I need
> some extra configuration in my pom.xml. I found the attribute
> "sourceFile" in the Maven docs for flexmojos, but I don't
> understand...it just says "The file to be compiled. The path must be
> relative with source folder". What does this mean? Do I have to
> really list every source file?
>
> Here is the relevant snippet from my pom.xml:
>
> <build>
> <sourceDirectory>src/main/flex</sourceDirectory>
> <testSourceDirectory>src/test/flex</testSourceDirectory>
> <plugins>
> <plugin>
> <groupId>org.sonatype.flexmojos</groupId>
>
> <artifactId>flexmojos-maven-plugin</artifactId>
> <version>3.7.1</version>
> <extensions>true</extensions>
> <configuration>
> <locales>
> <locale>en_US</locale>
> </locales>
> </configuration>
> <dependencies>
> <dependency>
>
> <groupId>com.adobe.flex</groupId>
>
> <artifactId>compiler</artifactId>
>
> <version>${adobe.flex.version}</version>
> <type>pom</type>
> </dependency>
> </dependencies>
> </plugin>
> </plugins>
> </build>
>
>
> Any help is appreciated!
>
> --
> 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]<flex-mojos%[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/