OK, I figured out that the Sonatype repo browser is incorrect and
didn't list the AIR 2 airglobal. Here is the working one:
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>airglobal</artifactId>
<version>${flex.version}</version>
<classifier>2.0</classifier>
<type>swc</type>
</dependency>
But now I run into this error:
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Invalid player version 2.0
I've tried setting the <targetPlayer /> value to 2.0, 2, and 10.1, but
none work (the 2's aren't valid player values; 10.1 doesn't match 2.0)
Here's the complete POM again for clarity.
<?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.susslin.test</groupId>
<artifactId>air2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>swf</packaging>
<name>AIR 2 Test</name>
<properties>
<flex.version>4.0.0.13875</flex.version>
</properties>
<repositories>
<repository>
<id>flex-mojos-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>flex-mojos-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
<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.6-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<sourceFile>FileTile.mxml</sourceFile>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>air-framework</artifactId>
<version>${flex.version}</version>
<type>pom</type>
<exclusions>
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>airglobal</artifactId>
</exclusion>
<exclusion>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>airglobal</artifactId>
<version>${flex.version}</version>
<classifier>2.0</classifier>
<type>swc</type>
</dependency>
</dependencies>
</project>
On Mar 4, 5:12 pm, Marvin Froeder <[email protected]> wrote:
> Would be nice if you could drop a few lines on wiki after you figuted that
> out.
>
> VELO
>
> On Thu, Mar 4, 2010 at 10:12 PM, Marvin Froeder <[email protected]> wrote:
> > This is like playerglobal 10.... so where is the classifier?
>
> > On Thu, Mar 4, 2010 at 10:07 PM, TizzyTool <[email protected]> wrote:
>
> >> When I change it to this:
>
> >> <dependency>
> >> <groupId>com.adobe.flex.framework</groupId>
> >> <artifactId>airglobal</artifactId>
> >> <version>${flex.version}</version>
> >> <type>swc</type>
> >> </dependency>
>
> >> I get told that the AIR 2 events can't be found
>
> >> [ERROR] /Users/scotts/Desktop/flexmojos-air2/src/main/flex/
> >> FileTile.mxml:[98,-1] Type was not found or was not a compile-time
> >> constant: StorageVolumeChangeEvent.
> >> [ERROR] /Users/scotts/Desktop/flexmojos-air2/src/main/flex/
> >> FileTile.mxml:[110,-1] Type was not found or was not a compile-time
> >> constant: StorageVolumeChangeEvent.
>
> >> On Mar 4, 4:47 pm, Marvin Froeder <[email protected]> wrote:
> >> > Did you fixed the 0.swc ?
>
> >> > On Thu, Mar 4, 2010 at 9:39 PM, TizzyTool <[email protected]> wrote:
> >> > > That's the artifact I saw in the Sonatype repo:
>
> >>http://repository.sonatype.org/index.html#nexus-search;quick~airglobal<http://repository.sonatype.org/index.html#nexus-search;quick%7Eairglobal>
> >> <http://repository.sonatype.org/index.html#nexus-search;quick%7Eairglobal
>
> >> > > Looked weird, but I assumed that's how you got airglobal 1 and 2 in
> >> > > the same spot.
>
> >> > > What should I be using to be able to link to the AIR 2.0 functions/
> >> > > classes?
>
> >> > > Thanks again
> >> > > - Scott
>
> >> > > On Mar 4, 4:35 pm, Marvin Froeder <[email protected]> wrote:
> >> > > > type 0.swc???
>
> >> > > > On Thu, Mar 4, 2010 at 8:27 PM, TizzyTool <[email protected]>
> >> wrote:
> >> > > > > I'm trying to get AIR 2.0 working, but am running into issues.
>
> >> > > > > I tried to set up the POM similarly to how the "playerglobal"
> >> people
> >> > > > > have been doing it, but instead referencing the airglobal 2.0 I
> >> found
> >> > > > > on the Sonatype repo browser. You'll see I've excluded both
> >> airglobal
> >> > > > > and playerglobal from the air-framework dependency.
>
> >> > > > > POM:
>
> >> > > > > <?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.0http://maven.apache.org/maven-v4_0_0.xsd">
> >> > > > > <modelVersion>4.0.0</modelVersion>
>
> >> > > > > <groupId>com.susslin.test</groupId>
> >> > > > > <artifactId>air2</artifactId>
> >> > > > > <version>1.0-SNAPSHOT</version>
> >> > > > > <packaging>swf</packaging>
>
> >> > > > > <name>AIR 2 Test</name>
>
> >> > > > > <properties>
> >> > > > > <flex.version>4.0.0.13875</flex.version>
> >> > > > > </properties>
>
> >> > > > > <repositories>
> >> > > > > <repository>
> >> > > > > <id>flex-mojos-repository</id>
> >> > > > > <url>
> >> > > > >http://repository.sonatype.org/content/groups/flexgroup/</url>
>
> >> <releases><enabled>true</enabled></releases>
>
> >> <snapshots><enabled>true</enabled></snapshots>
> >> > > > > </repository>
> >> > > > > </repositories>
> >> > > > > <pluginRepositories>
> >> > > > > <pluginRepository>
> >> > > > > <id>flex-mojos-repository</id>
> >> > > > > <url>
> >> > > > >http://repository.sonatype.org/content/groups/flexgroup/</url>
>
> >> <releases><enabled>true</enabled></releases>
>
> >> <snapshots><enabled>true</enabled></snapshots>
> >> > > > > </pluginRepository>
> >> > > > > </pluginRepositories>
>
> >> > > > > <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.6-SNAPSHOT</version>
> >> > > > > <extensions>true</extensions>
>
> >> > > > > <configuration>
>
> >> > > > > <sourceFile>FileTile.mxml</sourceFile>
> >> > > > > </configuration>
>
> >> > > > > <dependencies>
> >> > > > > <dependency>
>
> >> > > > > <groupId>com.adobe.flex</groupId>
>
> >> > > > > <artifactId>compiler</artifactId>
>
> >> > > > > <version>${flex.version}</version>
> >> > > > > <type>pom</type>
> >> > > > > </dependency>
> >> > > > > </dependencies>
> >> > > > > </plugin>
> >> > > > > </plugins>
> >> > > > > </build>
>
> >> > > > > <dependencies>
> >> > > > > <dependency>
> >> > > > > <groupId>com.adobe.flex.framework</groupId>
> >> > > > > <artifactId>air-framework</artifactId>
> >> > > > > <version>${flex.version}</version>
> >> > > > > <type>pom</type>
> >> > > > > <exclusions>
> >> > > > > <exclusion>
>
> >> > > > > <groupId>com.adobe.flex.framework</groupId>
>
> >> > > <artifactId>airglobal</artifactId>
> >> > > > > </exclusion>
> >> > > > > <exclusion>
>
> >> > > > > <groupId>com.adobe.flex.framework</groupId>
>
> >> > > > > <artifactId>playerglobal</artifactId>
> >> > > > > </exclusion>
> >> > > > > </exclusions>
> >> > > > > </dependency>
> >> > > > > <dependency>
> >> > > > > <groupId>com.adobe.flex.framework</groupId>
> >> > > > > <artifactId>airglobal</artifactId>
> >> > > > > <version>${flex.version}</version>
> >> > > > > <classifier>2</classifier>
> >> > > > > <type>0.swc</type>
> >> > > > > </dependency>
> >> > > > > </dependencies>
>
> >> > > > > </project>
>
> >> > > > > OUTPUT:
>
> >> > > > > [INFO] Scanning for projects...
> >> > > > > [INFO]
>
> >> ------------------------------------------------------------------------
> >> > > > > [INFO] Building AIR 2 Test
> >> > > > > [INFO] task-segment: [clean, package]
> >> > > > > [INFO]
>
> >> ------------------------------------------------------------------------
> >> > > > > [INFO] [clean:clean {execution: default-clean}]
> >> > > > > [INFO] Deleting directory /Users/scotts/Desktop/test/target
> >> > > > > [INFO] [resources:resources {execution: default-resources}]
> >> > > > > [WARNING] Using platform encoding (MacRoman actually) to copy
> >> filtered
> >> > > > > resources, i.e. build is platform dependent!
> >> > > > > [INFO] skip non existing resourceDirectory
> >> /Users/scotts/Desktop/test/
> >> > > > > src/main/resources
> >> > > > > [INFO] [flexmojos:compile-swf {execution: default-compile-swf}]
> >> > > > > [INFO] Flexmojos 3.6-SNAPSHOT
> >> > > > > [INFO] Apache License - Version 2.0 (NO WARRANTY) - See
> >> COPYRIGHT
> >> > > > > file
> >> > > > > [INFO]
>
> >> ------------------------------------------------------------------------
> >> > > > > [ERROR] BUILD ERROR
> >> > > > > [INFO]
>
> >> ------------------------------------------------------------------------
> >> > > > > [INFO] Player/Air Global dependency not found.
> >> > > > > [INFO]
>
> >> ------------------------------------------------------------------------
> >> > > > > [INFO] For more information, run Maven with the -e switch
> >> > > > > [INFO]
>
> >> ------------------------------------------------------------------------
> >> > > > > [INFO] Total time: 20 seconds
> >> > > > > [INFO] Finished at: Thu Mar 04 15:20:18 PST 2010
> >> > > > > [INFO] Final Memory: 33M/204M
> >> > > > > [INFO]
>
> >> ------------------------------------------------------------------------
>
> >> > > > > When I don't exclude them, the -compiler.external-library-path
> >> > > > > variable is always set to airglobal.swc, and I get a compile error
> >> on
> >> > > > > the AIR-2.0-specific classes that it can't find.
>
> >> > > > > Thanks!
> >> > > > > - Scott
>
> >> > > > > On Feb 23, 4:12 am, velo <[email protected]> wrote:
> >> > > > > > Hi folks,
>
> >> > > > > > Last night it did deployed the latest Flex 4 stable version
> >> available
> >> > > > > > (4.0.0.13875) on Flexmojos maven repository. (http://
> >> > > > > > repository.sonatype.org/content/groups/flexgroup/)
>
> >> > > > > > For this version I did include playerglobal 10.1 (from Adobe
> >> SVN) and
> >> > > > > > renamed player global 10 to 10.0
>
> >> > > > > > Also, I included airglobal 2.0 for those that are playing
> >> withair 2.
>
> >> > > > > > Some locales where not included this time, due to missing rb.swc
> >> > > files
> >> > > > > > (namely playerglobal_rb.swc and flash-integration_rb.swc.
> >> Hopefully
> >> > > > > > adobe will fix that on future releases.
>
> >> > > > > > VELO
>
> >> > > > > --
> >> > > > > 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%[email protected]>
> >> <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> >> > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
> >> <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> >> > > > > For more options, visit this group at
> >> > > > >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> >> > > > >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]<flex-mojos%[email protected]>
> >> <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> >> > > For more options, visit this group at
> >> > >http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> >> > >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]<flex-mojos%[email protected]>
> >> For more options, visit this group at
> >>http://groups.google.com/group/flex-mojos?hl=en?hl=en
>
> >>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?hl=en?hl=en
http://flexmojos.sonatype.org/