使用flexmojos进行编译时,我收到警告:
[警告]该部分或任何scope ="theme"依赖项中未明确定义任何主题.Flexmojos现在正试图找出要包含的主题.(为了避免此警告,您应该明确说明您的主题依赖项)
[警告]添加spark.css主题是因为spark.swc作为依赖项包含在内
我试过添加:
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<type>swc</type>
<scope>theme</scope>
<version>${flex.sdk.version}</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
但我只是得到一个错误:
com.adobe.flex.framework:spark:swc必须是[compile,runtime,system]之一,但是'theme'
我只想使用标准的Spark主题.
谢谢
我们的项目非常需要转移到Flexmojos4来获得修复,但这需要Maven 3.我们的项目广泛使用Maven并且我们非常喜欢它,但是已经非常重视它.在十几个模块之间,我们可能有50多页的XML配置.
我们还使用Eclipse并大量使用M2Eclipse插件.我们还使用以下Maven插件:
和其他几个人.阅读这篇博客让我觉得Eclipse Indigo就是它们一起工作的时候.我们什么时候应该花时间来搬家?
我在想以下几点:
然而:
你们如何设法在Ubuntu上开发Flex应用程序?
我个人更喜欢Netbeans和Eclipse.Netbeans拥有非常好的Maven项目支持.所以我在考虑:
有任何想法吗?
我正在使用Flexmojos在IntelliJ设置中运行多项目构建.
所有flex模块都有一个共同的父pom文件,该文件从Artifactory下载.这种依赖似乎得到了妥善解决,但当我点击"重新导入所有Maven项目",或对任何子pom文件进行更改时,我收到错误
Flexmojos Project Import
**Failed to generate Flex compiler configuration file.**
The pipe has been ended
Flexmojos Project Import
**Failed to generate Flex compiler configuration file.**
exit code: 1
Run Code Online (Sandbox Code Playgroud)
在父pom中定义的Globals(使用maven'define'标签)在任何子项目中都不可见,如果我进入"Project Structure",那么
"Build configurations '[child artifactId]': additional compiler configuration file not found: [absolute path]"
Run Code Online (Sandbox Code Playgroud)
,这是缺少配置文件的症状.
我认为这是一个设置(IntelliJ?Maven?Java?)问题,因为我的同事拥有来自SVN的相同代码并且没有相同的问题.
关于从哪里开始寻找的任何线索?
编辑:
摘自idea.log
2013-08-13 16:35:34,213 [1978178] INFO - #org.jetbrains.idea.maven - Generating flex configs pathToBundledJar: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\plugins\flex\lib\flexmojos-flex-configs-generator-server.jar
2013-08-13 16:35:34,214 [1978179] INFO - #org.jetbrains.idea.maven - Generate Flex Configs Task:"c:\program files\java\jdk1.7.0_25\jre\bin\java" -Dfile.encoding=windows-1252 -classpath "C:\Program …
Run Code Online (Sandbox Code Playgroud) 最近我将我的Adobe AIR项目重组为maven项目,这样我就可以连接到我的持续集成服务器了.我发现的大部分信息来自各种博客,这似乎是关于灵活事物的唯一方法.
然而,当我决定从哪个超级pom继承时,我发现有一些不同的人正在使用的不同的flexmojos超级pom.
以下是我发现的一些(其中每一个都被野外的一些例子使用)
各种超级poms之间有什么区别,哪个是事实上的标准?
我正在尝试使用Flash Builder 4作为IDE对Flex项目进行编组.我正在使用flexmojos 4.0-beta-7
和flex sdk 4.5.0.19786
.
在我的pom.xml
身上:
<build>
<sourceDirectory>${basedir}/src/main/flex</sourceDirectory>
...
</build>
Run Code Online (Sandbox Code Playgroud)
我有这个目录结构${basedir}/src/main/flex/assets/icons/**.png
.
我有${basedir}/pom.xml
.我将OpenScales fx示例作为我项目的模型.
FlashBuilder正常编译,但会引发$>mvn clean package
大量unable to resolve 'assets/icons/*.png' for transcoding
错误.
是否assets
必须明确添加文件夹才能进行编译?怎么样?
我正在构建一个Flex 4应用程序(使用flexmojos而不是FlexBuilder).如果我使用mx:Application创建一个测试应用程序,那么我会看到一个按钮,如我所料:
<mx:Application
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="http://www.adobe.com/2006/mxml">
<s:Button
label="Button"/>
</mx:Application>
Run Code Online (Sandbox Code Playgroud)
但是,如果我使用s:应用程序,那么我看到的只是一个空白(白色)屏幕:
<s:Application
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="http://www.adobe.com/2006/mxml">
<s:Button
label="Button"/>
</s:Application>
Run Code Online (Sandbox Code Playgroud)
顺便说一句,我目前没有使用html包装器,我只是直接在浏览器中加载swf.
这是我的pom ......
<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.aaa.bbb</groupId>
<artifactId>app</artifactId>
<packaging>war</packaging>
<version>2.0-SNAPSHOT-1</version>
<name>app</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</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.9</version>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.5.0.20967</version>
<type>pom</type>
</dependency>
</dependencies>
<extensions>true</extensions>
<configuration>
<policyFileUrls>
<url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url>
</policyFileUrls>
<rslUrls>
<url>http://fpdownload.adobe.com/pub/{extension}/flex/4.5.0.20967/{artifactId}_{version}.{extension}</url>
</rslUrls>
</configuration>
<executions>
<execution>
<id>flex-compile</id>
<phase>compile</phase>
<goals>
<goal>compile-swf</goal>
</goals>
<configuration>
<output>src/main/webapp/Main.swf</output>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>textLayout</artifactId>
<version>4.5.0.20967</version>
<type>swc</type>
<scope>compile</scope> …
Run Code Online (Sandbox Code Playgroud) flexmojos ×7
apache-flex ×6
maven ×3
flex4 ×2
maven-2 ×2
air ×1
artifactory ×1
flex-mojos ×1
java ×1
maven-plugin ×1
netbeans ×1
ubuntu ×1