As I told the other guy, add it to wiki =D
Now that you got help, you can give some help as well.


VELO

On Wed, Sep 9, 2009 at 3:09 PM, savage <[email protected]> wrote:

>
> Velo,
>
> Thank you for your quick response.
> I did search and attempt to find the solution to this problem for
> hours before posting, but of course I only ran across this article
> containing the solution after I submitted the post :-)
>
> http://groups.google.com/group/flex-mojos/browse_thread/thread/ced26dc1596609a4
>
> Hopefully my post adds some additional search criteria that can be
> picked up for Google search for other that may encounter this same
> issue :-)
>
> Thanks again!!!
>
>
> For further reference the updated (working) POM below contains the
> necessary exclusion and targets compiling with flex SDK 3.4.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <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.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>        <modelVersion>4.0.0</modelVersion>
>        <groupId>com.company</groupId>
>        <artifactId>test</artifactId>
>        <version>1.0.0-SNAPSHOT</version>
>        <packaging>swf</packaging>
>        <name>TEST</name>
>
>    <!--  CUSTOM PROPERTIES  -->
>        <properties>
>
>                <!--  FLEX SDK VERSION -->
>                 <flex.sdk.version>3.4.0.9271</flex.sdk.version>
>
>                <!-- FLEX MOJO VERSION -->
>                <flex.mojo.version>3.4-SNAPSHOT</flex.mojo.version>
>
>                <!--  FLASH TARGET PLAYER VERSION -->
>                <flash.player.version>10.0.0</flash.player.version>
>
>        </properties>
>
>
>    <!--  FLEX DEPENDENCIES -->
>    <dependencies>
>
>        <!--  Flex SDK dependencies -->
>        <dependency>
>            <groupId>com.adobe.flex.framework</groupId>
>            <artifactId>flex-framework</artifactId>
>            <version>${flex.sdk.version}</version>
>            <type>pom</type>
>             <exclusions>
>               <exclusion>
>                    <groupId>com.adobe.flex.framework</groupId>
>                   <artifactId>playerglobal</artifactId>
>                </exclusion>
>            </exclusions>
>         </dependency>
>        <dependency>
>           <groupId>com.adobe.flex.framework</groupId>
>           <artifactId>playerglobal</artifactId>
>            <version>${flex.sdk.version}</version>
>            <classifier>10</classifier>
>           <type>swc</type>
>        </dependency>
>    </dependencies>
>
>
>    <!--  MAVEN BUILD  -->
>        <build>
>                <defaultGoal>install</defaultGoal>
>                <finalName>${project.artifactId}</finalName>
>                <sourceDirectory>src/main/flex</sourceDirectory>
>                <testSourceDirectory>src/test/flex</testSourceDirectory>
>
>                <plugins>
>
>                        <!-- FLEXMOJO MAVEN COMPILER PLUGIN -->
>             <plugin>
>               <groupId>org.sonatype.flexmojos</groupId>
>               <artifactId>flexmojos-maven-plugin</artifactId>
>               <version>${flex.mojo.version}</version>
>               <extensions>true</extensions>
>
>               <!--  explicitly define the Flex SDK compiler version
> to use -->
>               <dependencies>
>                         <dependency>
>                            <groupId>com.adobe.flex</groupId>
>                            <artifactId>compiler</artifactId>
>                            <version>${flex.sdk.version}</version>
>                            <type>pom</type>
>                         </dependency>
>               </dependencies>
>
>                <!--  configuration for the Flex compilation -->
>                <configuration>
>                    <targetPlayer>${flash.player.version}</
> targetPlayer>
>                    <incremental>false</incremental>
>                    <debug>false</debug>
>                    <locale>en_US</locale>
>                    <optimize>true</optimize>
>                    <showWarnings>true</showWarnings>
>                    <strict>true</strict>
>                    <useNetwork>true</useNetwork>
>                    <allowSourcePathOverlap>true</
> allowSourcePathOverlap>
>                    <sourcePaths>
>                        <path>${basedir}/src/main/flex</path>
>                    </sourcePaths>
>                </configuration>
>
>             </plugin>
>                </plugins>
>        </build>
>
>    <!--  MAVEN REPOSITORIES -->
>        <repositories>
>                <repository>
>                        <id>flex-mojos-repository</id>
>                        <url>
> http://repository.sonatype.org/content/groups/flexgroup/</url>
>                </repository>
>        </repositories>
>        <pluginRepositories>
>                <pluginRepository>
>                        <id>flex-mojos-repository</id>
>                        <url>
> http://repository.sonatype.org/content/groups/flexgroup/</url>
>                </pluginRepository>
>        </pluginRepositories>
>
> </project>
>
>
>
>
>
>
>
> On Sep 9, 1:01 pm, Marvin Froeder <[email protected]> wrote:
> > The problem here is that flex-framework already "injects" another
> > playerglobal....
> > So you must exclude the on coming from flex-framework before including
> > another.
> >
> > Honestly, I think think playerglobal should be kept outside
> > com/adobe/flex/framework tree, with their own versions...  But I have no
> way
> > of knowing what is the playerglobal/airglobal real version. =/
> >
> > The old approach worked around this problem fine, but then I had to rely
> on
> > parsing the version to know if was a flash 9 or 10 project.
> >
> > VELO
> >
> >
> >
> > On Wed, Sep 9, 2009 at 2:53 PM, savage <[email protected]> wrote:
> >
> > > First thank you for all your great efforts on this mojo!
> >
> > > I am working on upgrading my POM to use the latest flex SDK version
> > > 3.4.0.9271, but first I need to refactor the "playerglobal" dependency
> > > to use the newer "<classifier>" convention to specify the use of Flash
> > > Player 10 since the convention "<version>10-3.3.0.4852</version>" is
> > > no longer used in the newer repo artifact for "playerglobal" version
> > > 3.4.0.9271 at
> > >http://repository.sonatype.org/content/groups/flexgroup/com/adobe/fle.
> ..
> >
> > > When I specify the dependency like this (still using SDK version
> > > 3.3.0.4852) all works perfectly with no build errors:
> >
> > >        <dependency>
> > >            <groupId>com.adobe.flex.framework</groupId>
> > >            <artifactId>playerglobal</artifactId>
> > >            <version>10-3.3.0.4852</version>
> > >            <type>swc</type>
> > >        </dependency>
> >
> > > However, if I try to change the dependency definition to use the newer
> > > "<classifier>" convention, I get a build error.
> >
> > >        <dependency>
> > >            <groupId>com.adobe.flex.framework</groupId>
> > >            <artifactId>playerglobal</artifactId>
> > >            <version>3.3.0.4852</version>
> > >            <classifier>10</classifier>
> > >            <type>swc</type>
> > >        </dependency>
> >
> > > This is the build error I get:
> >
> > >      [INFO]
> > >
> ------------------------------------------------------------------------
> > >      [INFO] Building
> > > TEST
> > >      [INFO]    task-segment: [clean,
> > > package]
> > >      [INFO]
> > >
> ------------------------------------------------------------------------
> > >      [INFO]
> > > [clean:clean]
> > >      [INFO] Deleting directory D:\repo\source\test
> > > \target
> > >      [INFO]
> > > [resources:resources]
> > >      [WARNING] Using platform encoding (Cp1252 actually) to copy
> > > filtered resources, i.e. build is platform
> > > dependent!
> > >      [INFO] skip non existing resourceDirectory D:\repo\source\test
> > > \src\main
> > > \resources
> > >      [INFO] [flexmojos:compile-
> > > swf]
> > >      [INFO] Flexmojos 3.4-SNAPSHOT - Apache License (NO WARRANTY) -
> > > See COPYRIGHT
> > > file
> > >      [INFO]
> > >
> ------------------------------------------------------------------------
> > >      [ERROR] BUILD
> > > ERROR
> > >      [INFO]
> > >
> ------------------------------------------------------------------------
> > >      [INFO] Player/Air Global dependency already
> > > specified.
> > >      First:  com.adobe.flex.framework:playerglobal:swc:
> > > 9-3.3.0.4852:compile
> > >      Second: com.adobe.flex.framework:playerglobal:swc:
> > > 10:3.3.0.4852:compile
> > >      [INFO]
> > >
> ------------------------------------------------------------------------
> > >      [INFO] For more information, run Maven with the -e
> > > switch
> > >      [INFO]
> > >
> ------------------------------------------------------------------------
> > >      [INFO] Total time: 18
> > > seconds
> > >      [INFO] Finished at: Wed Sep 09 12:48:21 CDT
> > > 2009
> > >      [INFO] Final Memory: 18M/
> > > 39M
> > >      [INFO]
> > >
> ------------------------------------------------------------------------
> >
> > > Here is the entire POM file for reference:
> >
> > >
> ---------------------------------------------------------------------------
> --------------
> >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <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.0
> > >http://maven.apache.org/maven-v4_0_0.xsd";>
> > >        <modelVersion>4.0.0</modelVersion>
> > >        <groupId>com.company</groupId>
> > >        <artifactId>test</artifactId>
> > >        <version>1.0.0-SNAPSHOT</version>
> > >        <packaging>swf</packaging>
> > >        <name>TEST</name>
> >
> > >    <!--  CUSTOM PROPERTIES  -->
> > >        <properties>
> >
> > >                <!--  FLEX SDK VERSION -->
> > >                <flex.sdk.version>3.3.0.4852</flex.sdk.version>
> >
> > >                <!-- FLEX MOJO VERSION -->
> > >                <flex.mojo.version>3.4-SNAPSHOT</flex.mojo.version>
> >
> > >                <!--  FLASH TARGET PLAYER VERSION -->
> > >                <flash.player.version>10.0.0</flash.player.version>
> >
> > >        </properties>
> >
> > >    <!--  FLEX DEPENDENCIES -->
> > >    <dependencies>
> >
> > >        <!--  Flex SDK dependencies -->
> > >        <dependency>
> > >            <groupId>com.adobe.flex.framework</groupId>
> > >            <artifactId>flex-framework</artifactId>
> > >            <version>${flex.sdk.version}</version>
> > >            <type>pom</type>
> > >        </dependency>
> >
> > >        <dependency>
> > >            <groupId>com.adobe.flex.framework</groupId>
> > >            <artifactId>playerglobal</artifactId>
> > >            <version>3.3.0.4852</version>
> > >            <classifier>10</classifier>
> > >            <type>swc</type>
> > >        </dependency>
> > >    </dependencies>
> >
> > >    <!--  MAVEN BUILD  -->
> > >        <build>
> > >                <defaultGoal>install</defaultGoal>
> > >                <finalName>${project.artifactId}</finalName>
> > >                <sourceDirectory>src/main/flex</sourceDirectory>
> > >                <testSourceDirectory>src/test/flex</testSourceDirectory>
> >
> > >                <plugins>
> >
> > >                        <!-- FLEXMOJO MAVEN COMPILER PLUGIN -->
> > >             <plugin>
> > >               <groupId>org.sonatype.flexmojos</groupId>
> > >               <artifactId>flexmojos-maven-plugin</artifactId>
> > >               <version>${flex.mojo.version}</version>
> > >               <extensions>true</extensions>
> >
> > >               <!--  explicitly define the Flex SDK compiler version
> > > to use -->
> > >               <dependencies>
> > >                         <dependency>
> > >                           <groupId>com.adobe.flex</groupId>
> > >                           <artifactId>compiler</artifactId>
> > >                           <version>${flex.sdk.version}</version>
> > >                           <type>pom</type>
> > >                         </dependency>
> > >               </dependencies>
> >
> > >                <!--  configuration for the Flex compilation -->
> > >                <configuration>
> > >                    <targetPlayer>${flash.player.version}</
> > > targetPlayer>
> > >                    <incremental>false</incremental>
> > >                    <debug>false</debug>
> > >                    <locale>en_US</locale>
> > >                    <optimize>true</optimize>
> > >                    <showWarnings>true</showWarnings>
> > >                    <strict>true</strict>
> > >                    <useNetwork>true</useNetwork>
> > >                    <allowSourcePathOverlap>true</
> > > allowSourcePathOverlap>
> > >                    <sourcePaths>
> > >                        <path>${basedir}/src/main/flex</path>
> > >                    </sourcePaths>
> > >                </configuration>
> >
> > >             </plugin>
> > >                </plugins>
> > >        </build>
> >
> > >    <!--  MAVEN REPOSITORIES -->
> > >        <repositories>
> > >                <repository>
> > >                        <id>flex-mojos-repository</id>
> > >                        <url>
> > >http://repository.sonatype.org/content/groups/flexgroup/</url>
> > >                </repository>
> > >        </repositories>
> > >        <pluginRepositories>
> > >                <pluginRepository>
> > >                        <id>flex-mojos-repository</id>
> > >                        <url>
> > >http://repository.sonatype.org/content/groups/flexgroup/</url>
> > >                </pluginRepository>
> > >        </pluginRepositories>
> > > </project>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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