Apache flex Flex&;Maven:如何在pom.xml中升级playerglobal版本
我目前正在开发一个flex应用程序,并使用本机游标支持在特定条件下动态更改游标 我的应用程序使用Flex Sdk 4.1.0.16076运行,默认情况下使用flash player 10.0。 为了使用MouseCursorData类,我已经在projectpreferences中将这个版本升级到了10.2 它在eclipse中运行良好,但我使用maven作为依赖项,在进行maven构建时出现编译错误,表示找不到MouseCursorData类 这很正常,因为我在依赖项中使用了player10。因此,我尝试更新pom.xml文件,以便将player升级到10.2:Apache flex Flex&;Maven:如何在pom.xml中升级playerglobal版本,apache-flex,maven,flexmojos,Apache Flex,Maven,Flexmojos,我目前正在开发一个flex应用程序,并使用本机游标支持在特定条件下动态更改游标 我的应用程序使用Flex Sdk 4.1.0.16076运行,默认情况下使用flash player 10.0。 为了使用MouseCursorData类,我已经在projectpreferences中将这个版本升级到了10.2 它在eclipse中运行良好,但我使用maven作为依赖项,在进行maven构建时出现编译错误,表示找不到MouseCursorData类 这很正常,因为我在依赖项中使用了player10。
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<configuration>
<targetPlayer>10.0</targetPlayer>
<compiledLocales>
<locale>en_US</locale>
<locale>fr_FR</locale>
</compiledLocales>
<warnings>
<noConstructor>false</noConstructor>
</warnings>
<sourceFile>Opale.mxml</sourceFile>
<generateHtmlWrapper>true</generateHtmlWrapper>
<contextRoot>opale-web</contextRoot>
<services>${basedir}/src/main/resources/services-config.xml</services>
<output>target/opale-ui.swf</output>
</configuration>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.sdk.version}</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
我是maven新手,所以可能我做得很糟糕。你可以在插件中配置它
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<headlessServer>true</headlessServer>
<verboseStacktraces>true</verboseStacktraces>
<swfVersion>11</swfVersion>
<targetPlayer>10.2</targetPlayer>
...
</configuration>
</plugin>
</plugins>
org.sonatype.flexmojos
flexmojos maven插件
真的
真的
真的
11
10.2
...
和依赖性:
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.5.1.21328</version>
<classifier>10.2</classifier>
<type>swc</type>
</dependency>
com.adobe.flex.framework
玩家全球
4.5.1.21328
10.2
swc
如果您搜索sonatype回购,您会发现您要查找的实际依赖关系是:
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.1.0.16076</version>
<classifier>10</classifier>
<type>1.swc</type>
</dependency>
com.adobe.flex.framework
玩家全球
4.1.0.16076
10
1.swc
请注意类型是如何1.swc,我相信这是为了弥补SDK早期版本的不足。现在似乎可以使用了,谢谢。现在我在运行我的测试时遇到了一些问题,但是项目正在建设中。我有一些问题,我想在11.1播放器上尝试同样的事情。您是如何找到4.5.1.21328、10.2和11值的?感谢玩家11.1,您应该使用swfVersion=13
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.5.1.21328</version>
<classifier>10.2</classifier>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.1.0.16076</version>
<classifier>10</classifier>
<type>1.swc</type>
</dependency>