All source needs to be under src/main/flex, per standard maven layout
style.
> TestLib
>> src
>> main
>> flex
> com
> company
> MyClass.as
> .actionScriptProperties
> .flexLibProperties
> . project
> pom.xml
regards,
Christian.
On May 11, 2007, at 3:11 PM, Sterling, Brian wrote:
> Hi Christian,
>
> I'm not sure what I'm doing wrong. I was able to compile a simple swf
> with the israfil maven plugin, but I'm having trouble compiling a swc.
> I assume there is some setting I'm not getting right.
>
> I have a simple project like so, which builds in Flex Builder:
>
> TestLib
> src
> com
> company
> MyClass.as
> .actionScriptProperties
> .flexLibProperties
> . project
> pom.xml
>
> The .flexLibProperties file looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <flexLibProperties version="1">
> <includeClasses>
> <classEntry path="com.company.MyClass"/>
> </includeClasses>
> <includeResources/>
> <namespaceManifests/>
> </flexLibProperties>
>
> and my pom.xml looks like this:
>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.intuit.sb.sharedUI</groupId>
> <artifactId>TestLib</artifactId>
> <version>1.0-SNAPSHOT</version>
> <packaging>swc</packaging>
> <build>
> <finalName>TestLib</finalName>
> <plugins>
> <plugin>
> <groupId>net.israfil.mojo</groupId>
>
> <artifactId>maven-flex2-plugin</artifactId>
> <version>1.0</version>
> <extensions>true</extensions>
> <configuration>
>
> <flexHome>${flex.home}</flexHome>
> <useNetwork>true</useNetwork>
> <strict>true</strict>
> <warning>true</warning>
>
> <properties>.flexLibProperties</properties>
> </configuration>
> </plugin>
> </plugins>
> <outputDirectory>build</outputDirectory>
> </build>
> <properties>
> <flex.compiler.source>src</flex.compiler.source>
> <flex.home>C:/Program Files/Adobe/Flex Builder 2
> Plug-in/Flex SDK 2</flex.home>
>
> <flexLibPropertiesFile>.flexLibProperties</flexLibPropertiesFile>
> </properties>
> </project>
>
> But when I try to compile with Maven 2, I get the following error:
>
> C:\gemini\testlib>mvn compile
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------
> --
> -
> ---
> [INFO] Building Unnamed -
> com.intuit.sb.sharedUI:TestLib:swc:1.0-SNAPSHOT
> [INFO] task-segment: [compile]
> [INFO]
> ----------------------------------------------------------------------
> --
> -
> ---
> [INFO] [flex2:compile-swc]
> [INFO] Compiling Flex 2 code
> [debug] Parsing document.
> [debug] Parsing tag 'flexLibProperties'
> [debug] Parsing tag 'includeClasses'
> [debug] Parsing tag 'classEntry'
> [debug] Adding class: com.company.MyClass
> [debug] Parsing tag 'includeResources'
> [debug] Parsing tag 'namespaceManifests'
> [INFO] Loading configuration file C:\Program Files\Adobe\Flex
> Builder 2
> Plug-in\
> Flex SDK 2\frameworks\flex-config.xml
> [INFO] Error: could not find source for class com.company.MyClass.
> [INFO]
> [INFO]
> ----------------------------------------------------------------------
> --
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Result of java -classpath "C:\Program Files\Adobe\Flex
> Builder 2
> Plug-in\
>
> Any suggestions?
>
> Thanks,
> Brian
christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES