Hi there, i'm trying to compile using RSLs. My POM looks like this (cutout):
<?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.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> ... ... ... </parent> <modelVersion>4.0.0</modelVersion> <groupId>mygroup</groupId> <artifactId>Client</artifactId> <packaging>swf</packaging> <version>0.0.1</version> <properties> <flex.unit.version>4.0-rc-1</flex.unit.version> <flex.sdk.version>4.5.0.19786</flex.sdk.version> <flex-mojos.version>3.9</flex-mojos.version> <flex.datavisualization.version>4.5.0.17855</ flex.datavisualization.version> </properties> <build> <directory>target</directory> <outputDirectory>target\classes</outputDirectory> <finalName>${artifactId}-${version}</finalName> <testOutputDirectory>target\test-classes</testOutputDirectory> <sourceDirectory>src\main\flex</sourceDirectory> <testSourceDirectory>src\test\flex</testSourceDirectory> <defaultGoal>install</defaultGoal> <!-- Externe Ressourcen zulassen --> <resources> <resource> <directory>${basedir}\src\main\resources</directory> <filtering>false</filtering> </resource> </resources> <!-- FlexMojo Maven Plugin von Sonatype für Flex Support --> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <version>${flex-mojos.version}</version> <extensions>true</extensions> <configuration> ... ... ... <allowSourcePathOverlap>true</allowSourcePathOverlap> <targetPlayer>10.2.0</targetPlayer> <outputDirectory>${project.build.directory}\classes\</ outputDirectory> ... ... ... <rslUrls> <url>http://fpdownload.adobe.com/pub/swz/flex/$ {flex.sdk.version}/{artifactId}-{version}.{extension}</url> </rslUrls> <policyFileUrls> <url>http://fpdownload.adobe.com/pub/swz/ crossdomain.xml</url> </policyFileUrls> ... ... ... <resourceBundlePath>${basedir}\src\main\resources\locale\{locale} </resourceBundlePath> <compiledLocales> <locale>de_DE</locale> <locale>en_US</locale> </compiledLocales> ... ... ... </configuration> ... ... ... </plugin> </build> <dependencies> ... ... ... <dependency> <groupId>com.adobe.flex.framework</groupId> <artifactId>textLayout</artifactId> <version>${flex.sdk.version}</version> <type>swc</type> <scope>caching</scope> </dependency> ... ... ... </project> Well, now there are 4 little problems i run into: - when using the optimize-mojo with the POM i posted above, i get the error: [FATAL ERROR] org.sonatype.flexmojos.optimizer.OptimizerMojo#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of- date. Check the realms: [FATAL ERROR] Plugin realm = app0.child- container[org.sonatype.flexmojos:flexmojos-maven-plugin:3.9] (i can send you the hole debug if you like) - using http://fpdownload.adobe.com/pub/swz/flex/${flex.sdk.version}/{artifactId}-{version}.{extension} when running the compiled application flash tells me: Error #2032: Stream-Error. URL: http://fpdownload.adobe.com/pub/swz/flex/4.5.0.19786/textLayout-4.5.0.19786.swz looking up the URL there dosnt seem to be a textLayout at that place. Also the repository is not browseable at all, so i cant take a look at whats wrong there. Are there ANY other SWZ repositories? Since Adobe seems to be the only company in the world not using Maven yet. Also: shouldnt Flash fall back to the default swc's when the RSL URL dosnt work? - locales dont seem to work this way, within my target folder i only get {artifactId}-{version}.swc files and not the {artifactId}- {version}-{locale}.swc files, is that normal? - reading https://docs.sonatype.org/display/FLEXMOJOS/Runtime+Shared+Libraries you use <rslUrls><rsl>...</rsl></rslUrls> instead of <rslUrls><URL>...</URL></rslUrls> like in https://repository.sonatype.org/content/sites/maven-sites/flexmojos/3.8/compile-swc-mojo.html#rslUrls - is there a reason why? whats the difference? thanks, Robert -- 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/
