I do not know why my previous messages are posted now.
When i tried to post that day, there was some problem in posting and
hence i tried to post three times.

and now i see all my three messages.

Pls Ignore these messages AND If possible moderator can delete them to
look clean.

Thanks


On Aug 17, 6:54 pm, kb <[email protected]> wrote:
> Chris,
>
> can u post a snippet of pom file as to how u r using rsls.
> This would help a lot.
>
> On Aug 17, 4:48 pm, Christofer Dutz <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > Well all I'm saying is that I'm using the rslUrls differently and it works 
> > fine.
>
> > Chris
>
> > 2011/8/17 kb <[email protected]>:
>
> > > Hi Chris,
>
> > > Thanks for ur response.
>
> > > Yes, I'm aware of the fact that textlayout comes with different
> > > version and hence i had specified 2 ursls in rsl list.
> > > The second one is for text layout, and it picks up the required
> > > dependency and build works fine. ( i.e compilation of swf is
> > > successful )
> > >  <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>
> > > So, there is NO problem in compiling the swf file using rsl.
>
> > > But the problem is when copying these dependencies into web app using
> > > copy-flex-resources. Then it gives an error saying it could not find
> > > the
> > > swz file.
>
> > > I added ur flexmojos-threadlocaltoolkit-wrapper dependency, but still
> > > its failing.
> > > added foll:
> > > <dependency>
> > >    <groupId>org.sonatype.flexmojos</groupId>
> > >    <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > >    <version>4.0-RC1</version>
> > > </dependency>
>
> > > Still its the same problem
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [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\repo
> > > sitory\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]
>
> > > My Question is :
> > > Does copy-flex-resources enable to copy the rsls and all dependent swz
> > > of a particular swf project ?
> > > to be more clear, in the war project, i've specified foll dependency
> > >        <dependency>
> > >     <groupId>com.ab.cd</groupId>
> > >    <artifactId>cd</artifactId>
> > >      <version>1.0</version>
> > >      <type>swf</type>
> > >        </dependency>
>
> > > so, does copy-flex-resources also copy all the dependent rsls of
> > > artifact cd ?
>
> > > Thanks,
>
> > > 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>
> > >> >                          ...
>
> 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/

Reply via email to