Ok, maybe I am doing something wrong in my project structure.   If I have a
grails project I was also trying to compile the flex code (someone else had
suggested this approach).  So I need to have a separate sourceDirectory from
the main build where the grails code is.  Should I have two separate maven
projects (pom.xml's - sorry if wrong terminology).   Or is there a clean way
to do this together.  I am actually leaning towards separate client vs
server projects anyhow for future growth.
Thanks for your feedback!

On Sun, Jul 26, 2009 at 7:08 PM, Marvin Froeder <[email protected]> wrote:

> sourceDirectory != sourcePaths....
> First of all, please, do not set sourcePaths manually, when you do that you
> prevents flexmojos from doing, and that will lead into problems.
>
> Just set sourceDirectory on build section
> Like this:
>
> http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-harness/projects/intro/hello-world-no-inherit/pom.xml
>
>
>
> <http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-harness/projects/intro/hello-world-no-inherit/pom.xml>
> VELO
>
> On Sun, Jul 26, 2009 at 7:07 PM, Tim <[email protected]> wrote:
>
>>
>> In using the plugin, it does not appear that my config values get
>> injected into the mojo properly.  Any suggestions:
>>
>> I have following in my pom.xml:
>>
>>           <plugin>
>>                <groupId>org.sonatype.flexmojos</groupId>
>>                <artifactId>flexmojos-maven-plugin</artifactId>
>>                <version>3.2.0</version>
>>                <extensions>true</extensions>
>>                 <executions>
>>                    <execution>
>>                        <phase>generate-sources</phase>
>>                        <configuration>
>>                            <locales>
>>                                <locale>en_US</locale>
>>                            </locales>
>>                            <sourcePaths>
>>                                <path>${baseDir}/src/main/flex/</path>
>>                            </sourcePaths>
>>                            <sourceFile>TestB.mxml</sourceFile>
>>                            <debug>true</debug>
>>                            <configurationReport>true</
>> configurationReport>
>>                        </configuration>
>>                        <goals>
>>                            <goal>compile-swf</goal>
>>                        </goals>
>>                     </execution>
>>                </executions>
>>            </plugin>
>>
>> and when I try to execute "mvn generate-sources" I get the following
>> error:
>>
>> [ERROR] BUILD FAILED
>> [ERROR] Unable to found sourceDirectory: /Users/timgriesbach/
>> IdeaProjects/my-app/src/main/java
>>
>> org.apache.maven.plugin.PluginExecutionException: Mojo execution
>> failed.
>>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
>> (DefaultPluginManager.java:601)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
>> (DefaultLifecycleExecutor.java:498)
>>        at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject
>> (DefaultLifecycleExecutor.java:265)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
>> (DefaultLifecycleExecutor.java:191)
>>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
>> (DefaultLifecycleExecutor.java:149)
>>        at org.apache.maven.DefaultMaven.execute_aroundBody0
>> (DefaultMaven.java:223)
>>        at org.apache.maven.DefaultMaven.execute_aroundBody1$advice
>> (DefaultMaven.java:304)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
>>        at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2
>> (MavenEmbedder.java:904)
>>        at
>> org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice
>> (MavenEmbedder.java:304)
>>        at
>> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:
>> 1)
>>        at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper$2.execute
>> (MavenEmbedderWrapper.java:85)
>>        at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper$7.execute
>> (MavenEmbedderWrapper.java:184)
>>        at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper$7.execute
>> (MavenEmbedderWrapper.java:182)
>>        at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper$8.run
>> (MavenEmbedderWrapper.java:197)
>>        at com.intellij.openapi.application.impl.ApplicationImpl$5.run
>> (ApplicationImpl.java:8)
>>        at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
>> 417)
>>        at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>>        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
>> (ThreadPoolExecutor.java:651)
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.run
>> (ThreadPoolExecutor.java:676)
>>        at java.lang.Thread.run(Thread.java:613)
>>        at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run
>> (ApplicationImpl.java:5)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to
>> found sourceDirectory: /Users/timgriesbach/IdeaProjects/my-app/src/
>> main/java
>>        at org.sonatype.flexmojos.compiler.ApplicationMojo.setUp
>> (ApplicationMojo.java:140)
>>        at org.sonatype.flexmojos.AbstractIrvinMojo.execute
>> (AbstractIrvinMojo.java:167)
>>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo
>> (DefaultPluginManager.java:579)
>>        ... 22 more
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to