Today I tried with version 4.0.0.14159 of Flex SDK
I always have the same error at runtime : VerifyError: Error #1014: La
classe flashx.textLayout.container::TextContainerManager est
introuvable.
I tried to use a different version of textLayout artifact (same as
flex.config : 1.0.0.595) but it's not on repository so compilation
failed.
I tried scope caching instead of rsl : same result.
It makes two days I try to configure rsls, and nothing work.
It worked very well with Flex 3.
Here is a part of my pom.xml
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>textLayout</artifactId>
<version>${flex.version}</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
<version>${flex.version}</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<version>${flex.version}</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>sparkskins</artifactId>
<version>${flex.version}</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>rpc</artifactId>
<version>${flex.version}</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>datavisualization</artifactId>
<version>${flex.version}</version>
<type>swc</type>
<scope>rsl</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<configuration>
<rslUrls>
<url>/rsl/{artifactId}-{version}.{extension}</url>
</rslUrls>
<targetplayer>${flash.version}</targetplayer>
<compiledLocales>
<locale>en_US</locale>
</compiledLocales>
<resourceBundlePath>${basedir}/locales/{locale}</
resourceBundlePath>
</configuration>
</plugin>
</plugins>
</build>
And I copy the rsls in my directory like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution><id>copyRsls</id>
<phase>process-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>rsl</outputDirectory>
<excludeTransitive>true</excludeTransitive>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<includeTypes>swf,swz,swc</includeTypes>
<includeArtifactIds>flex-commons,flex-generated-
model,rpc,framework,datavisualization,textLayout,spark,sparkskins</
includeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
...
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>textLayout</artifactId>
<version>${flex.version}</version>
<type>swf</type>
<scope>rsl</scope>
</dependency>
...
If you have any idea :(
--
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
http://flexmojos.sonatype.org/