Ok, some advance:

this seems to be a flex_sdk (asdoc tool) 4.5 bug and not a flexmojo bug.

I was using flexmojos with 4.5 (having the problem) while generating
asdoc by hand with 4.1 NOT having this problem.

Now I've switched my flexmojos flex-sdk to 4.1 but I'm getting the "classical"

"Flex compiler and flex framework versions doesn't match. Compiler:
'4.5.0.17855' - Framework: '4.1.0.16248'."

error.

Now I perfectly know how to fix this for the compiler the problem is
that apparently I can't write a specific compiler dependency for the
reportPlugin generating asdoc, that is I can't write:

                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-site-plugin</artifactId>
                                <version>3.0-beta-2</version>
                                <configuration>

                                        <reportPlugins>
                                                <
                                                <plugin>
                                                        
<groupId>org.apache.maven.plugins</groupId>
                                                        
<artifactId>maven-project-info-reports-plugin</artifactId>
                                                        <version>2.2</version>
                                                </plugin>

                                                <plugin>
                                                        
<groupId>org.apache.maven.plugins</groupId>
                                                        
<artifactId>maven-surefire-report-plugin</artifactId>
                                                        <version>2.6</version>
                                                </plugin>

                                                <plugin>
                                                        
<groupId>org.sonatype.flexmojos</groupId>
                                                        
<artifactId>flexmojos-maven-plugin</artifactId>
                                                        
<version>${flex-mojos.version}</version>
                                                        <dependencies>
                                                                <dependency>
                                                                        
<groupId>com.adobe.flex</groupId>
                                                                        
<artifactId>compiler</artifactId>
                                                                        
<version>${flex-sdk.version}</version>
                                                                        
<type>pom</type>
                                                                </dependency>
                                                        </dependencies>
                                                        <reportSets>
                                                                <reportSet>
                                                                        
<id>flex-reports</id>
                                                                        
<reports>
                                                                                
<report>asdoc-report</report>
                                                                        
</reports>
                                                                </reportSet>
                                                        </reportSets>
                                                        <configuration>
                                                                
<reportOutputDirectory>target/site/docs/asdoc</reportOutputDirectory>
                                                                
<description>API documentation</description>
                                                                <mainTitle>API 
documentation</mainTitle>
                                                                
<windowTitle>API documentation</windowTitle>
                                                                
<name>As3CommonsDocs</name>
                                                                
<keepXml>true</keepXml>
                                                                
<dumpConfigAttach>true</dumpConfigAttach>
                                                                
<showWarnings>true</showWarnings>
                                                                
<lenient>true</lenient>
                                                        </configuration>
                                                </plugin>

                                        </reportPlugins>
                                </configuration>
                        </plugin>


And if I specify the compiler dependency in the maven site plugin
nothing changes.

Any suggestion on how to specify compiler dependency on flexmojos used
as a reportPlugin?

Thanks

Martino

On Wed, Jan 26, 2011 at 4:01 PM, Martino Piccinato <[email protected]> wrote:
>>
>> I must ask, did you really use the exact same configuration set?
>>
>
>
> I just copy/pasted the options I saw running mvn -X clean site before
> the asdoc report is run. Actually as you can see some options
> (keepXml, lenient and others) are not there even if configured in pom.
>

-- 
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