Thanks Christian. That does work. However, for my swf build, I was able to override the default source location using
<flex.compiler.source>src</flex.compiler.source> But it doesn't work for my swc build. Unless I misunderstand, the documentation says it should work: http://www.israfil.net/projects/mojo/maven-flex2-plugin/compile-swc-mojo.html If it's simply a bug, I can enter an issue at http://code.google.com/p/israfil/ Thanks, Brian ________________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christian Gruber Sent: Friday, May 11, 2007 1:17 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Problem building swc with israfil maven plugin 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