Does there need to be an "air-framework" artifact with classifier
"2.0" built? Would that solve this?

On Mar 4, 5:42 pm, TizzyTool <[email protected]> wrote:
> 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.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.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>
> > >> > > > >                      
>
> ...
>
> read 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://flexmojos.sonatype.org/

Reply via email to