Well as far as I know you can't deploy any swc as rsl library. At least I know that I have several commercial libs, that are provided as "swc" and "rsl.swc", so I bet there is a difference. So If you don't have an rsl-version, simply use it as ordinary library.
Chris 2011/8/17 kb <[email protected]>: > Chris, > > Sorry that i copied a different error message. > The message is > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- > plugin:4.0-RC1:copy-flex-resources (copy-flex-resources) on project > smh: Execution copy-flex-resources of goal > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex- > resources failed: Failed to resolve artifact > org.puremvc.pipes:Utility_AS3_MultiCore_Pipes:swf:1.1 -> [Help 1] > > i.e there are no custom dependencies. > I've added thse dependencies in my swf project pom file > <dependency> > <groupId>org.puremvc.pipes</groupId> > <artifactId>Utility_AS3_MultiCore_Pipes</artifactId> > <version>1.1</version> > <type>swc</type> > <scope>rsl</scope> > </dependency> > <dependency> > <groupId>org.puremvc.multicore</groupId> > <artifactId>PureMVC_AS3_MultiCore</artifactId> > <version>1.0.5</version> > <type>swc</type> > <scope>rsl</scope> > </dependency> > > and copy-flex-resources is throwing error when attempting to copy one > of these. > > On Aug 17, 12:46 pm, Christofer Dutz <[email protected]> > wrote: >> I assume that the missing lib is referenced by one of your custom >> dependencies. >> In this case you set their scope to "rsl" but this scope is not >> automatically applied to the dependencies of the libs that module >> references (It's a Maven limitation). >> You would have to explicitly define the dependency to >> com.hp.ci:ci-ui-lib:swf: >> 0.0.1-SNAPSHOT with scope rsl ... I think ... >> >> Chris >> >> 2011/8/17 kb <[email protected]>: >> >> >> >> >> >> >> >> > UPDATE 1 : >> > I somehow got that to work with combination of 4.0-RC1 and correcting >> > the pom. But there is another problem. The custom dependencies i had >> > added like >> >> > <dependency> >> > <groupId>org.puremvc.pipes</groupId> >> > <artifactId>Utility_AS3_MultiCore_Pipes</artifactId> >> > <version>1.1</version> >> > <type>swc</type> >> > <scope>rsl</scope> >> > </dependency> >> >> > <dependency> >> > <groupId>org.puremvc.multicore</groupId> >> > <artifactId>PureMVC_AS3_MultiCore</artifactId> >> > <version>1.0.5</version> >> > <type>swc</type> >> > <scope>rsl</scope> >> > </dependency> >> > are not getting copied. getting following error >> >> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- >> > plugin:4.0-RC1:copy-flex-resources (copy-flex-resources) on project >> > smh: Execution copy-flex-resources of goal >> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC1:copy-flex- >> > resources failed: Failed to resolve artifact com.hp.ci:ci-ui-lib:swf: >> > 0.0.1-SNAPSHOT -> [Help 1] >> >> > I believe the flex-mojos plugin shud automatically extract the swf >> > from respective swc and copy to destination instead of we installing >> > into repository. Am i correct on this ? >> >> > On Aug 17, 3:05 am, Christofer Dutz <[email protected]> >> > wrote: >> >> I know, that I used to use an older FM version for copying the >> >> resources, in one of my projects. Even with FM4 there are some issues >> >> with that project. >> >> On another project there are no problems at all. >> >> >> While debugging the problem, I narrowed it down, that it was a result >> >> of FM being unable to load the pom of my project for some reasons and >> >> this caused a NPE while resolving the name of the project. >> >> Unfortunately I didn't manage to narrow it down to what the actual >> >> problem was. But as I resolved it by using an ollde version (3.7.1) I >> >> quit searching. >> >> >> But reading your error message, seems to be a different issue. I >> >> remember that there are 2 libs in the SDK that don't folllow the usual >> >> versioning rule and are deployed in the FM repo with a version-number >> >> that is different from the one used by Adobe ... textLayout is one of >> >> them. So the problem is that you provide the artifact url template in >> >> the rslUrls property so flexmojos will try to download a textLayout in >> >> version 4.1.0.16076 but no Adobe Server contains such an artifact (I >> >> think I remeber the version to be something 2.xxx). I think this might >> >> be causing your problems. I use the following config with FM4.0-RC1 >> >> fogether with Fllex 4.5.0.20967 and it works great: >> >> >> <plugin> >> >> <groupId>org.sonatype.flexmojos</groupId> >> >> <artifactId>flexmojos-maven-plugin</artifactId> >> >> <version>${flexmojos.version}</version> >> >> <configuration> >> >> <debug>${flex.debug}</debug> >> >> <swfVersion>11</swfVersion> >> >> <licenses> >> >> >> >> <flashbuilder4>${flex.serial-number}</flashbuilder4> >> >> </licenses> >> >> <themes> >> >> <theme> >> >> >> ${settings.localRepository}/com/adobe/flex/framework/framework/${flex.versi >> >> on}/configs_zip/themes/Spark/spark.css >> >> </theme> >> >> </themes> >> >> <rslUrls> >> >> >> >> <url>rsl/{artifactId}-{version}.{extension}</url> >> >> </rslUrls> >> >> </configuration> >> >> <dependencies> >> >> <!-- This handles a bug in maven which causes >> >> problems with flex resources --> >> >> <dependency> >> >> <groupId>org.sonatype.flexmojos</groupId> >> >> >> <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId> >> >> <version>${flexmojos.version}</version> >> >> </dependency> >> >> <!-- Without this FM will use the compiler >> >> configured in its >> >> master pom, which will result in version >> >> conflicts --> >> >> <dependency> >> >> <groupId>com.adobe.flex</groupId> >> >> <artifactId>compiler</artifactId> >> >> <version>${flex.version}</version> >> >> <type>pom</type> >> >> </dependency> >> >> </dependencies> >> >> </plugin> >> >> >> The main difference ist, that I use the rsls provided by maven and it >> >> works great :-) >> >> >> Chris >> >> >> 2011/8/16 kb <[email protected]>: >> >> >> > Hi, >> >> >> > I am trying to copy the the dependent rsls into war using the copy- >> >> > flex-resources plugin. However I'm getting the following error : >> >> >> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- >> >> > plugin:3.8:copy-flex-resources (copy-flex-resources) on project smh: >> >> > Failure to find com.adobe.flex.fram >> >> > textLayout:swz:4.1.0.16076 >> >> > inhttps://repository.sonatype.org/content/groups/flexgroup >> >> > was cached in the local repository, resolution will not be reattempted >> >> > until the update >> >> > val of sonatype-flex-repository has elapsed or updates are forced >> >> > ............ >> >> > [ERROR] Then, install it using the command: >> >> > [ERROR] mvn install:install-file -DgroupId=com.adobe.flex.framework - >> >> > DartifactId=textLayout -Dversion=4.1.0.16076 -Dpackaging=swz -Dfile=/ >> >> > path/to/file >> >> >> > I've already gone through the links( so pls suggest an alternate link >> >> > in case u want to suggest :) ) : >> >> >http://groups.google.com/group/flex-mojos/browse_thread/thread/6f47b2... >> >> >http://groups.google.com/group/flex-mojos/browse_thread/thread/2aa96d... >> >> > https://repository.sonatype.org/content/sites/maven-sites/flexmojos/3... >> >> >> > I've followed listing of poms as specified in >> >> >https://docs.sonatype.org/pages/viewpage.action?pageId=7045277 >> >> >> > to resolve the above issue, I installed the swz file onto local >> >> > repository using >> >> > mvn install:install-file -DgroupId=com.adobe.flex.framework - >> >> > DartifactId=textLayout -Dversion=4.1.0.16076 -Dpackaging=swz - >> >> > Dfile=textLayout_1.1.0.604.swz >> >> > (Side effect of this was this overwrote the existing pom config in >> >> > repository ) >> >> >> > and then ran mvn compile. I got the following error >> >> >> > [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- >> >> > plugin:3.8:copy-flex-resources (copy-flex-resources) on project smh: >> >> > Failed to copy C:\Users\bharadke\.m2\repository\com\adobe\flex >> >> > \framework\textLayout\4.1.0.16076\textLayout-4.1.0.16076.swz: The >> >> > filename, directory name, or volume label syntax is incorrect -> [Help >> >> > 1] >> >> >> > Below are my pom.xml snippets >> >> > 1. flex project pom : >> >> > <build> >> >> > <sourceDirectory>src/main/flex</sourceDirectory> >> >> > <testSourceDirectory>src/test/flex</testSourceDirectory> >> >> > <plugins> >> >> > <plugin> >> >> > <groupId>org.sonatype.flexmojos</groupId> >> >> > >> >> > <artifactId>flexmojos-maven-plugin</artifactId> >> >> > >> >> > <version>${flex-mojos-plugin.version}</version> >> >> > <extensions>true</extensions> >> >> > <executions> >> >> > </executions> >> >> > <dependencies> >> >> > <dependency> >> >> > >> >> > <groupId>com.adobe.flex</groupId> >> >> > >> >> > <artifactId>compiler</artifactId> >> >> > >> >> > <version>${flex.sdk.version}</version> >> >> > <type>pom</type> >> >> > </dependency> >> >> > </dependencies> >> >> > <configuration> >> >> > <policyFileUrls> >> >> > <url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url> >> >> > <url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</url> >> >> > </policyFileUrls> >> >> >> > <rslUrls> >> >> > <url>http://fpdownload.adobe.com/pub/swz/flex/$ >> >> > {flex.sdk.version}/{artifactId}_{version}.{extension}</url> >> >> > <url>http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/ >> >> > {artifactId}_1.1.0.604.{extension}</url> >> >> > </rslUrls> >> >> > >> >> ... >> >> read more » > > -- > 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/ > -- 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/
