Thanks!
That solved the problem.

Is there an overview somewhere which versions are compatible with
which flex version?
I thought i had the latest plugin version working but missed the fact
that there had been a release of flexmojos 4 (great work by the way).

I know it's because i'm to lazy to keep track of all latest
announcements but since laziness is a good programming skill :), i'm
betting more people would benefit from such a list.
Off course it's my own fault for using a beta releas of the flex sdk
but it might help some more people.


On Dec 6, 2:37 pm, Marvin Froeder <[email protected]> wrote:
> Try flexmojos 4
>
>
>
>
>
>
>
> On Mon, Dec 6, 2010 at 11:34 AM, Persyval <[email protected]> wrote:
> > Hi everyone,
>
> > I have a problem with the new 4.5 framework version.
> > Wheb ik try to build my flex application i get the following error:
>
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO]
> > org.codehaus.plexus.component.configurator.BasicComponentConfigurator
> > cannot be cast to
> > org.codehaus.plexus.component.configurator.ComponentConfigurator
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > java.lang.ClassCastException:
> > org.codehaus.plexus.component.configurator.BasicComponentConfigurator
> > cannot be cast to
> > org.codehaus.plexus.component.configurator.ComponentConfigurator
> >        at
>
> > org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPl 
> > uginManager.java:
> > 1351)......
>
> > When i switch back to the 4.1.0.16076 version the build works fine.
>
> > My pom looks like this:
>
> > <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
> >www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
> >  <modelVersion>4.0.0</modelVersion>
>
> >  <groupId>myGroupid</groupId>
> >  <artifactId>myArtifactid</artifactId>
> >  <version>0.1</version>
> >  <packaging>swf</packaging>
>
> >  <name>description</name>
>
> >  <properties>
> >    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >    <flex.framework.version>4.5.0.17689</flex.framework.version>
> >  </properties>
>
> >  <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.8</version>
> >        <extensions>true</extensions>
> >                <configuration>
> >                        <targetPlayer>10.1</targetPlayer>
> >                        <sourceFile>Main.mxml</sourceFile>
> >                </configuration>
> >                <dependencies>
> >          <dependency>
> >            <groupId>com.adobe.flex</groupId>
> >            <artifactId>compiler</artifactId>
> >            <version>${flex.framework.version}</version>
> >            <type>pom</type>
> >          </dependency>
> >          <dependency>
> >            <groupId>com.adobe.flex.compiler</groupId>
> >            <artifactId>asdoc</artifactId>
> >            <version>${flex.framework.version}</version>
> >            <classifier>template</classifier>
> >            <type>zip</type>
> >          </dependency>
> >        </dependencies>
>
> >      </plugin>
> >    </plugins>
> >  </build>
>
> >  <dependencies>
>
> >    <dependency>
> >      <groupId>com.adobe.flex.framework</groupId>
> >      <artifactId>flex-framework</artifactId>
> >      <version>${flex.framework.version}</version>
> >      <exclusions>
> >              <exclusion>
> >                      <groupId>com.adobe.flex.framework</groupId>
> >                      <artifactId>playerglobal</artifactId>
> >              </exclusion>
> >     </exclusions>
> >      <type>pom</type>
> >    </dependency>
>
> >        <dependency>
> >                <groupId>com.adobe.flex.framework</groupId>
> >                <artifactId>playerglobal</artifactId>
> >                <version>${flex.framework.version}</version>
> >                <type>swc</type>
> >                <classifier>10.1</classifier>
> >        </dependency>
>
> >        <dependency>
> >                <groupId>com.adobe.flex.framework</groupId>
> >                <artifactId>sparkskins</artifactId>
> >                <version>${flex.framework.version}</version>
> >                <type>swc</type>
> >                <scope>theme</scope>
> >        </dependency>
>
> >    <dependency>
> >      <groupId>com.adobe.flexunit</groupId>
> >      <artifactId>flexunit</artifactId>
> >      <version>4.0-beta-2</version>
> >      <type>swc</type>
> >      <scope>test</scope>
> >    </dependency>
>
> >  </dependencies>
>
> > </project>
>
> > Can anybody give me a hint as to what i'm doing wrong?
>
> > with kind regards,
> > Peter Bierman
>
> > --
> > 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%2bunsubscr...@googlegrou 
> > ps.com>
> > 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