All,
I am using Maven to deploy application using Flex components (using
felxmojos) along with other Java webapp components. Running into below
issues while trying to build the flex project..
I have seen the similar issues posted by few people, I have tried
below options to resolve the issues and none seem to work.
1) Giving absolute path for the images in mxmls
2) Moving the css folder (with styles definition and images) into src/
resources and src/asset/resources directory
3) Changed the images relative path to point to asset/css/...
Below is the code of pom.xml
<build>
<sourceDirectory>${basedir}/src</sourceDirectory>
<defaultGoal>install</defaultGoal>
<resources>
<resource>
<directory>${basedir}/src/resources</directory>
<includes>
<include>*.xml</include>
<include>*.png</include>
<include>*.css</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/resources</directory>
</resource>
<resource>
<directory>${basedir}/target/generated-resources</
directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}/resources</
source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-beta-3</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>compile-swf</goal>
</goals>
</execution>
</executions>
<configuration>
<locales>
<param>en_US</param>
</locales>
<contextRoot>epv</contextRoot>
<sourcefile>EPV.mxml</sourcefile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-config</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<outputDirectory>$
{project.build.directory}/generated-resources</outputDirectory>
<includeArtifacIds>epv-flex-config</
includeArtifacIds>
<includeGroupIds>${project.groupId}</
includeGroupIds>
<excludeTransitive>true</
excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Below is the exception raised by the flex compiler..
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Membership_Approvals.mxml:[-1,-1] unable to resolve 'asset/css/
asset/image/attendee.png' for transcoding
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Membership_Approvals.mxml:[-1,-1] Unable to transcode asset/
css/asset/image/attendee.png.
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Directory_Tab.mxml:[-1,-1] unable to resolve 'css/asset/image/
account.png' for transcoding
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Directory_Tab.mxml:[-1,-1] Unable to transcode css/asset/image/
account.png.
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Directory_Tab.mxml:[-1,-1] unable to resolve 'css/asset/image/
attendee.png' for transcoding
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Directory_Tab.mxml:[-1,-1] Unable to transcode css/asset/image/
attendee.png.
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Membership_Members.mxml:[-1,-1] unable to resolve 'asset/css/
asset/image/attendee.png' for transcoding
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\tab\detail
\Detail_Membership_Members.mxml:[-1,-1] Unable to transcode asset/css/
asset/image/attendee.png.
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\skin\myListRenderer.mxml:
[-1,-1] unable to resolve 'css/asset/image/appButtonX.png' for
transcoding
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\skin\myListRenderer.mxml:
[-1,-1] Unable to transcode css/asset/image/appButtonX.png.
[WARNING] C:\EPV\epv-flex\src\com\parrimark\epv\view\dashboard
\DashboardPortlet_Calendar.mxml:[245,-1] Data binding will not be able
to detect assignments to "calendarModes".
[WARNING] C:\EPV\epv-flex\src\com\parrimark\epv\view\dashboard
\DashboardPortlet_Calendar.mxml:[247,-1] Data binding will not be able
to detect assignments to "calendarModes".
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\renderer
\ContactsForAccountListRenderer.mxml:[-1,-1] unable to resolve 'css/
asset/image/right_arrow.png' for transcoding
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\renderer
\ContactsForAccountListRenderer.mxml:[-1,-1] Unable to transcode css/
asset/image/right_arrow.png.
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\folderPortlet
\ContactsPortlets\FolderPortlet_Contacts_Overview_Account.mxml:[-1,-1]
unable to resolve 'css/asset/image/account.png' for transcoding
[ERROR] C:\EPV\epv-flex\src\com\parrimark\epv\view\folderPortlet
\ContactsPortlets\FolderPortlet_Contacts_Overview_Account.mxml:[-1,-1]
Unable to
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-beta-3:compile-swf (default-compile-swf) on project epv-
flex: Got 20 errors building project, check logs -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
beta-3:compile-swf (default-compile-swf) on project epv-flex: Got 20
errors building project, check logs
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
199)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
148)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
140)
Please help me resolve this..
Thanks in advance
Regards
Girish S C
--
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/