I've found another bug regarding the backup of the original artifact: I'm
trying to resolve it right now. To avoid any side effect you need to clean
your local repo from the mangled artifacts and download them again to ensure
everything is ok.

I'll send another email upon commiting on my fork.

On Thu, Feb 17, 2011 at 01:16, Roberto Lo Giacco <[email protected]>wrote:

> Ok, I've figured the error and fixed it in my fork. I'm requesting another
> pull to fix it in the official trunk as well for the upcoming 3.9 release.
>
>
> On Wed, Feb 16, 2011 at 18:18, Roberto Lo Giacco <[email protected]>wrote:
>
>> I still can figure why you are getting an empty swf because the
>> optimization process is being skipped otherwise you should get the following
>> additional messages in your console:
>>
>> [INFO] Attempting to optimize:org.spicefactory:parsley-flex3:swf:2.3.2
>> [INFO]         size reduced from xxxkB to yyykB
>>
>> Where xxx and yyy should be the size before and after optimization.
>>
>> I think something wrong is happening during copy. The install-rsl goal
>> should output the swf file into your current folder and install it into your
>> local repo: can you check the file in your local folder exists and has the
>> same file size of the one in your local repo?
>>
>> On Wed, Feb 16, 2011 at 13:41, Maxime Lem <[email protected]> wrote:
>>
>>> Here is what I'm getting in debug when I run install-rsl on a minimal
>>> pom which does not declare FM plugin :
>>>
>>> mvn -X org.sonatype.flexmojos:flexmojos-maven-plugin:3.9-
>>> SNAPSHOT:install-rsl -DgroupId=org.spicefactory -DartifactId=parsley-
>>> flex3 -Dversion=2.3.2 -DoptimizeRsls=false
>>>
>>> ...
>>> [DEBUG] Configuring mojo 'org.sonatype.flexmojos:flexmojos-maven-
>>> plugin:3.9-SNAPSHOT:install-rsl' -->
>>> [DEBUG]   (f) artifactId = parsley-flex3
>>> [DEBUG]   (f) backup = true
>>> [DEBUG]   (f) build = org.apache.maven.model.Build@945b95
>>> [DEBUG]   (f) context = org.apache.maven.execution.MavenSession@b1684
>>> [DEBUG]   (f) deploy = false
>>> [DEBUG]   (f) excludeGroupIds = com.adobe.*
>>> [DEBUG]   (f) excludeTransitive = false
>>> [DEBUG]   (f) groupId = org.spicefactory
>>> [DEBUG]   (f) includeTypes = swc
>>> [DEBUG]   (f) localRepository = Repository[local|file://D:\maven
>>> \repository]
>>> [DEBUG]   (f) optimizeRsls = false
>>> [DEBUG]   (f) originalClassifier = original
>>> [DEBUG]   (f) originalType = swc
>>> [DEBUG]   (f) outputDirectory = D:\workspaces\java1\corporate-pom
>>> [DEBUG]   (f) project = MavenProject: com.company:corporate-pom:1.0.0
>>> @ D:\workspaces\java1\corporate-pom\pom.xml
>>> [DEBUG]   (f) remoteRepositories =
>>> [Repository[internal.snapshots.flex.repo|http://factory-server-01:8080/
>>> nexus/content/repositories/flex-snapshots<http://factory-server-01:8080/nexus/content/repositories/flex-snapshots>],
>>> ...]
>>> [DEBUG]   (f) rslExtension = swf
>>> [DEBUG]   (f) scope = rsl
>>> [DEBUG]   (f) stripVersion = false
>>> [DEBUG]   (f) version = 2.3.2
>>> [DEBUG] -- end configuration --
>>> [INFO] [flexmojos:install-rsl {execution: default-cli}]
>>> [INFO] Flexmojos 3.9-SNAPSHOT
>>> [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT
>>> file
>>> [INFO] Overwriting RSL Artifact
>>> [DEBUG] Artifact RSL found: org.spicefactory:parsley-flex3:swf:2.3.2
>>>
>>> The resulting swf is empty, except if i use parsley-flex 2.3.1 which
>>> is in my nexus (but in this case, swf is not overwritten, or at least,
>>> it is still optimized)
>>>
>>
>> If you already have an available swf file the install-rsl goal should try
>> to get the swc file with an `original` classifier and try to re-run the
>> process against that one installing a new swf file (so you can re-run
>> install-rsl with a different optimizeRsls or other optimization option, like
>> keep-as3-metadata)
>>
>> Can you check that behavior as well? It works fine on my laptop but as you
>> are getting weird output may be useful to double check.
>>
>>
>>>
>>> --
>>> 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/

Reply via email to