Flex + Maven(flexmojos) – swc プロジェクト(コンパイラの設定2)
ここでは
- locales
- targetPlayer
- configurationReport
の設定と、swf プロジェクトでは rsl でこのライブラリを使用する予定なので war プロジェクトで swf ファイルを含めることができるようにコンパイル時に optimize ゴールを実行し swf ファイルも生成するように設定する。
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2008 Marvin Herman Froeder Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <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> <parent> <groupId>jp.wd3</groupId> <artifactId>flex-maven-sample</artifactId> <version>1.0-SNAPSHOT</version> </parent> <groupId>jp.wd3</groupId> <artifactId>flex-maven-sample-lib</artifactId> <version>1.0-SNAPSHOT</version> <packaging>swc</packaging> <name>Flex Maven Sample Library</name> <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.4-SNAPSHOT</version> <extensions>true</extensions> <executions> <execution> <goals> <goal>optimize</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.adobe.flex</groupId> <artifactId>compiler</artifactId> <version>3.4.0.9271</version> <type>pom</type> </dependency> </dependencies> <configuration> <compiledLocales> <locale>ja_JP</locale> </compiledLocales> <configurationReport>true</configurationReport> <defaultLocale>ja_JP</defaultLocale> <locales> <locale>ja_JP</locale> </locales> <targetPlayer>10.0.0</targetPlayer> </configuration> </plugin> </plugins> </build> <repositories> <repository> <id>flexmojos-repository</id> <url>http://repository.sonatype.org/content/groups/flexgroup</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>flexmojos-repository</id> <url>http://repository.sonatype.org/content/groups/flexgroup</url> </pluginRepository> </pluginRepositories> <dependencies> <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>flex-framework</artifactId> <version>3.4.0.9271</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>3.4.0.9271</version> <type>swc</type> <classifier>10</classifier> </dependency> <dependency> <groupId>com.adobe.flexunit</groupId> <artifactId>flexunit</artifactId> <version>0.85</version> <type>swc</type> <scope>test</scope> </dependency> </dependencies> </project>
- About the application compiler options:http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
- flexmojos:compile-swc:http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swc-mojo.html
ディスカッション
コメント一覧
まだ、コメントがありません