Could not resolve mx:AdvancedDataGrid to a component implementation
Today my daily maven build was broken with wierd message:
[ERROR] Could not resolve <mx:AdvancedDataGrid> to a component implementation
This happened after adding <mx:AdvancedDataGrid> component to project mxml file. In Flex Builder all compiled fine, but build with maven failed. After spending some time with google, i’ve found the root of a problem. The problem is that this component isn’t included in Flex SDK, that was installed in my repository. The files needed for successful compilation are ‘datavisualization.swc’ and ‘datavisualization_rb.swc’. So i took these files from Flex SDK version 3.2 and installed two artifacts to maven repository:
mvn install:install-file -DgroupId=com.adobe.flex.sdk -DartifactId=datavisualization -Dversion=3.2.0.3958 -Dpackaging=swc -Dfile=datavisualization.swc mvn install:install-file -DgroupId=com.adobe.flex.sdk -DartifactId=datavisualization_rb -Dversion=3.2.0.3958 -Dclassifier=en_US -Dpackaging=swc -Dfile=datavisualization_rb.swc
And added two dependencies to project pom.xml:
<dependency>
<groupId>com.adobe.flex.sdk</groupId>
<artifactId>datavisualization</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.sdk</groupId>
<artifactId>datavisualization_rb</artifactId>
<version>${flex.sdk.version}</version>
<type>swc</type>
<classifier>en_US</classifier>
</dependency>
That’s all, hope it will be helpful for somebody.











Gut!
Great! thanks.