You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Gautam Pandey <gk...@gmail.com> on 2014/10/08 12:23:41 UTC

Need help on flexmojo

Hi,
   I am in process to evaluate the migration of Flex SDK from 4.0 to 4.6 or
4.13.
I am trying to build small poc project using FDK 4.13. I did follow the
steps given at
https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
 but I am getting errors. I am using FDK 4.13 not 4.12. It will be great if
someone can point out the issue.

*Error as Follow*
D:\FlexMavenTest\MyProject>mvn install
[INFO] Scanning for projects...
[WARNING] The POM for org.apache.flex:compiler:pom:4.12.1.20140427 is
missing, no dependency information available
[WARNING] The POM for org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 is
missing, no dependency information available
[WARNING] The POM for org.apache.flex.compiler:digest:jar:4.12.1.20140427
is missing, no dependency information available
[WARNING] The POM for
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427 is missing, no
dependency information available
[WARNING] The POM for org.apache.flex.compiler:asdoc:jar:4.12.1.20140427 is
missing, no dependency information available
[WARNING] The POM for
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427 is missing, no
dependency information available
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building MyProject Flex 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for com.adobe.flash:playerglobal:swc:11.1 is missing, no
dependency information available
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.412s
[INFO] Finished at: Wed Oct 08 15:43:41 IST 2014
[INFO] Final Memory: 12M/495M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MyProject: Could not resolve
dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: Fai
lure to find com.adobe.flash:playerglobal:swc:11.1 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution wi
ll not be reattempted until the update interval of central has elapsed or
updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

*My pom.xml is*

<?xml version="1.0" encoding="UTF-8"?>
  <!--

    Copyright 2008 Marvin Herman Froeder
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.gkp.app</groupId>
  <artifactId>MyProject</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>swf</packaging>

  <name>MyProject Flex</name>
  <properties>
<flexmojos.version>7.0.1</flexmojos.version>
<flex.version>4.13.0.20140701</flex.version>
<flash.version>11.1</flash.version>
  </properties>

  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flexmojos.version}</version>
        <extensions>true</extensions>
<configuration>
<sourceFile>Main.mxml</sourceFile>
<sourcePaths>
<path>src/main/flex</path>
<path>src/main/resources</path>
</sourcePaths>
<debug>true</debug>
</configuration>
<dependencies>
<dependency>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
<version>${flexmojos.version}</version>
</dependency>
<dependency>
  <groupId>org.apache.flex</groupId>
  <artifactId>compiler</artifactId>
  <version>${flex.version}</version>
  <type>pom</type>
</dependency>
        </dependencies>

      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.apache.flex.framework</groupId>
      <artifactId>flex-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

    <dependency>
      <groupId>com.adobe.flash</groupId>
      <artifactId>playerglobal</artifactId>
      <version>${flash.version}</version>
      <type>swc</type>
    </dependency>
  </dependencies>
</project>



-- 
*Thanks & Regards*
*Gautam Pandey*
*Tegile Systems*
*Ph : (+91) 9243014820*

Re: AW: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
I had talk with my manager and he also said same. So happy to proceed with
FDK 4.6 and flexmojos 6.0.1. :-)

Thanks & Regards
Gautam Pandey


On Wed, Oct 15, 2014 at 11:00 PM, OmPrakash Muppirala <bi...@gmail.com>
wrote:

> On Oct 15, 2014 10:06 AM, "Christofer Dutz" <ch...@c-ware.de>
> wrote:
> >
> > As I posted on the Dev-List ... the license of Flexmojos as a build tool
> has no influence on the licensing of your product ... as long as you are
> not bundling Flexmojos with your software. A lot of companies are using
> Flexmojos without any legal problems.
>
> That had been my experience as well.  Using GPL based tools that don't get
> shipped with our software is perfectly fine to use.
>
> You will want to make sure that there are no scripts that automatically
> bundle GPL licensed products in your release artifacts.
>
> Again, you may want to double check with your lawyer.
>
> Thanks,
> Om
>
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Mittwoch, 15. Oktober 2014 14:23
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Thanks Chris,
> >      I will try and let you know if I am facing any issue. Currently
> > blocked because of GPL license of flexmojos and I can not use 6.0.1 and
> > above versions for my project as my company is not allowing it. So I have
> > tested with 4.2-beta and 4.6 and its working fine.
> >
> > Thanks & Regards
> > Gautam Pandey
> >
> >
> > On Wed, Oct 15, 2014 at 5:18 PM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> > wrote:
> >
> > > Well here comes my working version:
> > >
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >   <!--
> > >
> > >     Copyright 2008 Marvin Herman Froeder
> > >     Licensed under the Apache License, Version 2.0 (the "License");
> > >     you may not use this file except in compliance with the License.
> > >     You may obtain a copy of the License at
> > >
> > >         http://www.apache.org/licenses/LICENSE-2.0
> > >
> > >     Unless required by applicable law or agreed to in writing, software
> > >     distributed under the License is distributed on an "AS IS" BASIS,
> > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.
> > >     See the License for the specific language governing permissions and
> > >     limitations under the License.
> > >
> > > -->
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > > http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd
> > > ">
> > >   <modelVersion>4.0.0</modelVersion>
> > >
> > >   <groupId>com.gkp.app</groupId>
> > >   <artifactId>MyProject</artifactId>
> > >   <version>1.0-SNAPSHOT</version>
> > >   <packaging>swf</packaging>
> > >
> > >   <name>MyProject Flex</name>
> > >
> > >   <properties>
> > >         <flexmojos.version>7.0.1</flexmojos.version>
> > >         <flex.version>4.13.0.20140701</flex.version>
> > >         <flash.version>11.1</flash.version>
> > >   </properties>
> > >
> > >   <build>
> > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > >     <plugins>
> > >       <plugin>
> > >
> > >         <groupId>net.flexmojos.oss</groupId>
> > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > >         <version>${flexmojos.version}</version>
> > >         <extensions>true</extensions>
> > >                 <configuration>
> > >                         <sourceFile>Main.mxml</sourceFile>
> > >                         <debug>true</debug>
> > >                 </configuration>
> > >                 <dependencies>
> > >                         <dependency>
> > >                                 <groupId>net.flexmojos.oss</groupId>
> > >
> > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > >                                 <version>${flexmojos.version}</version>
> > >                         </dependency>
> > >                         <dependency>
> > >                           <groupId>org.apache.flex</groupId>
> > >                           <artifactId>compiler</artifactId>
> > >                           <version>${flex.version}</version>
> > >                           <type>pom</type>
> > >                         </dependency>
> > >         </dependencies>
> > >
> > >       </plugin>
> > >     </plugins>
> > >   </build>
> > >
> > >   <dependencies>
> > >         <dependency>
> > >       <groupId>org.apache.flex</groupId>
> > >       <artifactId>framework</artifactId>
> > >       <version>${flex.version}</version>
> > >       <type>pom</type>
> > >     </dependency>
> > >
> > >     <dependency>
> > >       <groupId>com.adobe.flash.framework</groupId>
> > >       <artifactId>playerglobal</artifactId>
> > >       <version>${flash.version}</version>
> > >       <type>swc</type>
> > >     </dependency>
> > >   </dependencies>
> > >
> > >   <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies.
> > >        Note: instead of including this in every POM, you can append it
> to
> > > your user (~/.m2/settings.xml) or global
> > >                 (M2_HOME/conf/settings.xml) settings file.
> > >     -->
> > >   <repositories>
> > >      <repository>
> > >         <id>flex-mojos-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> > >      </repository>
> > >   </repositories>
> > >
> > >   <pluginRepositories>
> > >      <pluginRepository>
> > >         <id>flex-mojos-plugin-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> > >      </pluginRepository>
> > >   </pluginRepositories>
> > > </project>
> > >
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Mittwoch, 15. Oktober 2014 11:34
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Hi Chris,
> > >    I am trying to build same sample application with apache flex 4.13
> but
> > > its failing with below error. As you mention in the 3rd step of using
> > > com.adobe.flex.
> > > Is it correct to use org.apache.flex instead of com.apache.flex? it
> will be
> > > great if you can share you pom file for apache flex for this sample.
> > >
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 15.504s
> > > [INFO] Finished at: Wed Oct 15 14:43:17 IST 2014
> > > [INFO] Final Memory: 14M/495M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] Failed to execute goal on project MyProject: Could not resolve
> > > dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The
> > >  following artifacts could not be resolved:
> > > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:digest:jar:4.12.1.
> > > 20140427, org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> org.apache.flex.compi
> > > ler:swcdepends:jar:4.12.1.20140427,
> > > org.apache.flex:compiler:pom:4.12.1.20140427,
> > > com.adobe.flash.framework:playerglobal:swc:14: Could not
> > > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
> > > flex-mojos-repository (
> http://repository.sonatype.org/content/groups/fl
> > > exgroup) -> [Help 1]
> > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute
> > > goal on project MyProject: Could not resolve dependencies for pro
> > > ject com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The following artifacts
> could
> > > not be resolved: org.apache.flex.compiler:mxmlc:jar:4.12.1.20140
> > > 427, org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:
> > > asdoc:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > > org.apache.flex:compiler:pom:4.12.1.20140427, com.adobe
> > > .flash.framework:playerglobal:swc:14: Could not find artifact
> > > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
> flex-mojos-repository
> > > (
> > > http://repository.sonatype.org/content/groups/flexgroup)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
> > >
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> > >         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> > >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> > >         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> > >         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> > >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > >         at
> > >
> > >
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > >         at java.lang.reflect.Method.invoke(Method.java:606)
> > >         at
> > >
> > >
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> > >         at
> > >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> > >         at
> > >
> > >
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> > >         at
> > >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> > > Caused by: org.apache.maven.project.DependencyResolutionException:
> Could
> > > not resolve dependencies for project com.gkp.app:MyProject:swf:1.0
> > > -SNAPSHOT: The following artifacts could not be resolved:
> > > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:dige
> > > st:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apa
> > > che.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > > org.apache.flex:compiler:pom:4.12.1.20140427,
> > > com.adobe.flash.framework:playerglobal:swc:
> > > 14: Could not find artifact
> > > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
> flex-mojos-repository
> > > (http://repository.sonatype.org/con
> > > tent/groups/flexgroup)
> > >         at
> > >
> > >
>
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
> > >         at
> > >
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
> > >         ... 22 more
> > > Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
> The
> > > following artifacts could not be resolved: org.apache.flex.comp
> > > iler:mxmlc:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427
> > > , org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > > org.apache.flex:compiler:pom
> > > :4.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could
> not
> > > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427
> > >  in flex-mojos-repository (
> > > http://repository.sonatype.org/content/groups/flexgroup)
> > >         at
> > >
> > >
>
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
> > >         at
> > >
> > >
>
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
> > >         ... 23 more
> > > Caused by: org.eclipse.aether.resolution.ArtifactResolutionException:
> The
> > > following artifacts could not be resolved: org.apache.flex.compil
> > > er:mxmlc:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> > > org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > > org.apache.flex:compiler:pom:4
> > > .12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could
> not
> > > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 i
> > > n flex-mojos-repository (
> > > http://repository.sonatype.org/content/groups/flexgroup)
> > >         at
> > >
> > >
>
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
> > >         at
> > >
> > >
>
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
> > >         at
> > >
> > >
>
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
> > >         ... 24 more
> > > Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could
> not
> > > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.2014042
> > > 7 in flex-mojos-repository (
> > > http://repository.sonatype.org/content/groups/flexgroup)
> > >         at
> > >
> > >
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
> > >         at
> > >
> > >
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
> > >         at
> > >
> > >
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
> > >         at
> > >
> > >
>
> org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
> > >         at
> > >
> > >
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > >         at
> > >
> > >
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > >         at java.lang.Thread.run(Thread.java:744)
> > > [ERROR]
> > > [ERROR]
> > > [ERROR] For more information about the errors and possible solutions,
> > > please read the following articles:
> > > [ERROR] [Help 1]
> > >
> > >
>
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> > >
> > > Thanks & Regards
> > > Gautam Pandey
> > >
> > >
> > > On Tue, Oct 14, 2014 at 12:52 PM, Gautam Pandey <gk...@gmail.com>
> > > wrote:
> > >
> > > > Great I will try with apache flex also. pombkp.xml is for apache
> flex. I
> > > > will change as per the steps given in the email and try.
> > > >
> > > > Thanks & Regards
> > > > Gautam Pandey
> > > >
> > > >
> > > > On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <
> > > > christofer.dutz@c-ware.de> wrote:
> > > >
> > > >> Ok ... you found it yourself ;-)
> > > >>
> > > >> ________________________________________
> > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > >> Gesendet: Dienstag, 14. Oktober 2014 09:12
> > > >> An: users@flex.apache.org
> > > >> Betreff: Re: Need help on flexmojo
> > > >>
> > > >> it's working with extra / in the beginning like below.
> > > >>   [Embed(source="/asset/image/add.png")]
> > > >> private var imgclass : Class;
> > > >>
> > > >> Now I have to try with my real project which I am planning to
> upgrade
> > > from
> > > >> 4.0 to either 4.6 or apache flex 4.13.
> > > >>
> > > >> Thank you Chris
> > > >>
> > > >> Thanks & Regards
> > > >> Gautam Pandey
> > > >>
> > > >>
> > > >> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
> > > >> christofer.dutz@c-ware.de
> > > >> > wrote:
> > > >>
> > > >> > Forget my last mail ... just not used to google drive yet ;-)
> > > >> >
> > > >> >
> > > >> > ________________________________________
> > > >> > Von: Christofer Dutz <ch...@c-ware.de>
> > > >> > Gesendet: Dienstag, 14. Oktober 2014 08:57
> > > >> > An: users@flex.apache.org
> > > >> > Betreff: AW: Need help on flexmojo
> > > >> >
> > > >> > Hmm I seem to be unable to download anything. I can see the files,
> but
> > > >> not
> > > >> > their content (One archive would be better anyway ... this way I
> don't
> > > >> have
> > > >> > to manually create the directories and download each file
> seperately)
> > > >> >
> > > >> > Chris
> > > >> > ________________________________________
> > > >> > Von: Gautam Pandey <gk...@gmail.com>
> > > >> > Gesendet: Dienstag, 14. Oktober 2014 08:45
> > > >> > An: users@flex.apache.org
> > > >> > Betreff: Re: Need help on flexmojo
> > > >> >
> > > >> > Hi Chris,
> > > >> >      I have hosted it on my google drive. Please have a look.
> Thanks
> > > for
> > > >> > your precious time. Its just 23kb file. Let me know if you are
> facing
> > > >> any
> > > >> > problem.
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > >
>
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
> > > >> >
> > > >> >
> > > >> > Thanks & Regards
> > > >> > Gautam Pandey
> > > >> >
> > > >> >
> > > >> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> > > >> > christofer.dutz@c-ware.de>
> > > >> > wrote:
> > > >> >
> > > >> > > If you are able to zip up the application and send it to my
> private
> > > >> > > address, I would try to solve the problem for you. Image
> embedding
> > > >> does
> > > >> > > work, you just have to configure your build right. Unfortunately
> I
> > > >> don't
> > > >> > > have to time to do this step by step on the list, so if you send
> me
> > > >> the
> > > >> > > example, I'll make it work.
> > > >> > >
> > > >> > > Chris
> > > >> > > ________________________________________
> > > >> > > Von: Gautam Pandey <gk...@gmail.com>
> > > >> > > Gesendet: Montag, 13. Oktober 2014 10:59
> > > >> > > An: users@flex.apache.org
> > > >> > > Betreff: Re: Need help on flexmojo
> > > >> > >
> > > >> > > Yes add.png is located in src/main/resources/. I read the Falcon
> > > email
> > > >> > > thread. I guess I have to wait for the fix.
> > > >> > >
> > > >> > > --
> > > >> > > *Thanks *
> > > >> > > *Gautam Pandey*
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> > > >> > > christofer.dutz@c-ware.de>
> > > >> > > wrote:
> > > >> > >
> > > >> > > > I'd omit the sourcePaths config option as this is implicitly
> > > >> defined by
> > > >> > > > maven already. I never used that option.
> > > >> > > > Where are your image resources located?
> src/main/resources/add.png
> > > >> ? I
> > > >> > > > usually have resource paths absolute so in my case I usually
> write
> > > >> > > > "/add.png" instead of "add.png" but this is currently
> something we
> > > >> are
> > > >> > > > discussing on the dev-list as Falcon seems to have problems
> with
> > > >> this.
> > > >> > > >
> > > >> > > > Chris
> > > >> > > >
> > > >> > > > ________________________________________
> > > >> > > > Von: Gautam Pandey <gk...@gmail.com>
> > > >> > > > Gesendet: Montag, 13. Oktober 2014 08:34
> > > >> > > > An: users@flex.apache.org
> > > >> > > > Betreff: Re: Need help on flexmojo
> > > >> > > >
> > > >> > > > Thank you Chris,
> > > >> > > >     Still its not going through. Build is failing with same
> error.
> > > >> My
> > > >> > new
> > > >> > > > pom.xml is :
> > > >> > > >
> > > >> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >> > > >   <!--
> > > >> > > >
> > > >> > > >     Copyright 2008 Marvin Herman Froeder
> > > >> > > >     Licensed under the Apache License, Version 2.0 (the
> > > "License");
> > > >> > > >     you may not use this file except in compliance with the
> > > License.
> > > >> > > >     You may obtain a copy of the License at
> > > >> > > >
> > > >> > > >         http://www.apache.org/licenses/LICENSE-2.0
> > > >> > > >
> > > >> > > >     Unless required by applicable law or agreed to in writing,
> > > >> software
> > > >> > > >     distributed under the License is distributed on an "AS IS"
> > > >> BASIS,
> > > >> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
> express
> > > or
> > > >> > > > implied.
> > > >> > > >     See the License for the specific language governing
> > > permissions
> > > >> and
> > > >> > > >     limitations under the License.
> > > >> > > >
> > > >> > > > -->
> > > >> > > > <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="
> > > >> > > > http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="
> > > >> > > > http://maven.apache.org/POM/4.0.0
> > > >> > > http://maven.apache.org/maven-v4_0_0.xsd
> > > >> > > > ">
> > > >> > > >   <modelVersion>4.0.0</modelVersion>
> > > >> > > >
> > > >> > > >   <groupId>com.gkp.app</groupId>
> > > >> > > >   <artifactId>MyProject</artifactId>
> > > >> > > >   <version>1.0-SNAPSHOT</version>
> > > >> > > >   <packaging>swf</packaging>
> > > >> > > >
> > > >> > > >   <name>MyProject Flex</name>
> > > >> > > >   <properties>
> > > >> > > > <flexmojos.version>6.0.1</flexmojos.version>
> > > >> > > > <flex.version>4.6.0.23201</flex.version>
> > > >> > > > <flash.version>11.1</flash.version>
> > > >> > > >   </properties>
> > > >> > > >
> > > >> > > >   <build>
> > > >> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > > >> > > >     <plugins>
> > > >> > > >       <plugin>
> > > >> > > >
> > > >> > > >         <groupId>net.flexmojos.oss</groupId>
> > > >> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > > >> > > >         <version>${flexmojos.version}</version>
> > > >> > > >         <extensions>true</extensions>
> > > >> > > > <configuration>
> > > >> > > > <sourceFile>Main.mxml</sourceFile>
> > > >> > > > <sourcePaths>
> > > >> > > > <path>src/main/flex</path>
> > > >> > > > <path>src/main/resources</path>
> > > >> > > > </sourcePaths>
> > > >> > > > <debug>true</debug>
> > > >> > > > </configuration>
> > > >> > > > <dependencies>
> > > >> > > > <dependency>
> > > >> > > > <groupId>net.flexmojos.oss</groupId>
> > > >> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > > >> > > > <version>${flexmojos.version}</version>
> > > >> > > > </dependency>
> > > >> > > > <dependency>
> > > >> > > >   <groupId>com.adobe.flex</groupId>
> > > >> > > >   <artifactId>compiler</artifactId>
> > > >> > > >   <version>${flex.version}</version>
> > > >> > > >   <type>pom</type>
> > > >> > > > </dependency>
> > > >> > > >         </dependencies>
> > > >> > > >
> > > >> > > >       </plugin>
> > > >> > > >     </plugins>
> > > >> > > >   </build>
> > > >> > > >
> > > >> > > >   <dependencies>
> > > >> > > > <dependency>
> > > >> > > >       <groupId>com.adobe.flex.framework</groupId>
> > > >> > > >       <artifactId>flex-framework</artifactId>
> > > >> > > >       <version>${flex.version}</version>
> > > >> > > >       <type>pom</type>
> > > >> > > >     </dependency>
> > > >> > > >
> > > >> > > >     <dependency>
> > > >> > > >       <groupId>com.adobe.flash.framework</groupId>
> > > >> > > >       <artifactId>playerglobal</artifactId>
> > > >> > > >       <version>${flash.version}</version>
> > > >> > > >       <type>swc</type>
> > > >> > > >     </dependency>
> > > >> > > >   </dependencies>
> > > >> > > >
> > > >> > > >   <!-- Repository and PluginRepository section for Flex SDK
> and
> > > >> > compiler
> > > >> > > > dependencies.
> > > >> > > >        Note: instead of including this in every POM, you can
> > > append
> > > >> it
> > > >> > to
> > > >> > > > your user (~/.m2/settings.xml) or global
> > > >> > > >   (M2_HOME/conf/settings.xml) settings file.
> > > >> > > >     -->
> > > >> > > >   <repositories>
> > > >> > > >      <repository>
> > > >> > > >         <id>flex-mojos-repository</id>
> > > >> > > >         <url>
> > > >> http://repository.sonatype.org/content/groups/flexgroup
> > > >> > > </url>
> > > >> > > >      </repository>
> > > >> > > >   </repositories>
> > > >> > > >
> > > >> > > >   <pluginRepositories>
> > > >> > > >      <pluginRepository>
> > > >> > > >         <id>flex-mojos-plugin-repository</id>
> > > >> > > >         <url>
> > > >> http://repository.sonatype.org/content/groups/flexgroup
> > > >> > > </url>
> > > >> > > >      </pluginRepository>
> > > >> > > >   </pluginRepositories>
> > > >> > > > </project>
> > > >> > > >
> > > >> > > > Did I miss anything?
> > > >> > > >
> > > >> > > > --
> > > >> > > > *Thanks & Regards*
> > > >> > > > *Gautam Pandey*
> > > >> > > > *Tegile Systems*
> > > >> > > > *Ph : 9243014820*
> > > >> > > >
> > > >> > > >
> > > >> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > > >> > > > christofer.dutz@c-ware.de
> > > >> > > > > wrote:
> > > >> > > >
> > > >> > > > > When embedding fonts and images I have found that you need
> to
> > > add
> > > >> the
> > > >> > > > > threadlocal toolkit dependency before the compiler artifact
> in
> > > the
> > > >> > > plugin
> > > >> > > > > configuration ... just search for "threadlocal toolkit".
> > > >> > > > >
> > > >> > > > > Chris
> > > >> > > > > ________________________________________
> > > >> > > > > Von: Gautam Pandey <gk...@gmail.com>
> > > >> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > >> > > > > An: users@flex.apache.org
> > > >> > > > > Betreff: Re: Need help on flexmojo
> > > >> > > > >
> > > >> > > > > Hi Chris,
> > > >> > > > >    Now I am trying to build the sample application with 4.6
> SDK.
> > > >> > > Without
> > > >> > > > > adding any image, build is going fine but when I add an
> image to
> > > >> the
> > > >> > > > > Main.mxml, it is throwing error* Unable to transcode
> add.png.*
> > > >> Error
> > > >> > > > stack
> > > >> > > > > is as follow:
> > > >> > > > >
> > > >> > > > > *Writing configuration dump to
> > > >> > > > >
> > > >>
> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17):
> Error:
> > > >> > unable
> > > >> > > to
> > > >> > > > > resolve 'add.png' for transcoding*
> > > >> > > > >
> > > >> > > > > *                        [Embed(source="add.png")]*
> > > >> > > > >
> > > >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17):
> Error:
> > > >> > Unable
> > > >> > > to
> > > >> > > > > transcode add.png.*
> > > >> > > > >
> > > >> > > > > *                        [Embed(source="add.png")]*
> > > >> > > > >
> > > >> > > > > *[INFO]
> > > >> > > > >
> > > >> > >
> > > >>
> > >
> ------------------------------------------------------------------------*
> > > >> > > > > *[INFO] BUILD FAILURE*
> > > >> > > > > *[INFO]
> > > >> > > > >
> > > >> > >
> > > >>
> > >
> ------------------------------------------------------------------------*
> > > >> > > > > *[INFO] Total time: 7.396s*
> > > >> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > >> > > > > *[INFO] Final Memory: 35M/495M*
> > > >> > > > > *[INFO]
> > > >> > > > >
> > > >> > >
> > > >>
> > >
> ------------------------------------------------------------------------*
> > > >> > > > > *[ERROR] Failed to execute goal
> > > >> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > >> > > > > (default-compile-swf) on project MyProject: Got 2*
> > > >> > > > > * errors building project, check logs -> [Help 1]*
> > > >> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException:
> Failed
> > > to
> > > >> > > > execute
> > > >> > > > > goal
> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > (*
> > > >> > > > > *default-compile-swf) on project MyProject: Got 2 errors
> > > building
> > > >> > > > project,
> > > >> > > > > check logs*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > >> > > > > *        at
> > > >> > > >
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > >> > > > > *        at
> > > >> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > >> > > > > *        at
> > > >> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > >> > > > > *        at
> > > >> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > >> > > > > *        at
> > > org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > >> > > > > *        at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > >> > > Method)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > >> > > > > *        at
> java.lang.reflect.Method.invoke(Method.java:606)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > >> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException:
> Got 2
> > > >> > errors
> > > >> > > > > building project, check logs*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > >> > > > > *        at
> > > >> > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > >> > > > > *        ... 19 more*
> > > >> > > > > *[ERROR]*
> > > >> > > > > *[ERROR]*
> > > >> > > > > *[ERROR] For more information about the errors and possible
> > > >> > solutions,
> > > >> > > > > please read the following articles:*
> > > >> > > > > *[ERROR] [Help 1]
> > > >> > > > >
> > > >> >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > >> > > > > <
> > > >> >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > >> > > >*
> > > >> > > > > *D:\FlexMavenTest\MyProject>*
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > Do you have any idea how this can be resolved ? I am able to
> run
> > > >> the
> > > >> > > > > application from my Flash Builder without any problem. It
> will
> > > be
> > > >> > great
> > > >> > > > > help if you can point out the issue.
> > > >> > > > >
> > > >> > > > > *My pom.xml  is :*
> > > >> > > > >
> > > >> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > >> > > > > *  <!--*
> > > >> > > > >
> > > >> > > > > *    Copyright 2008 Marvin Herman Froeder*
> > > >> > > > > *    Licensed under the Apache License, Version 2.0 (the
> > > >> "License");*
> > > >> > > > > *    you may not use this file except in compliance with the
> > > >> > License.*
> > > >> > > > > *    You may obtain a copy of the License at*
> > > >> > > > >
> > > >> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > >> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > > >> > > > >
> > > >> > > > > *    Unless required by applicable law or agreed to in
> writing,
> > > >> > > software*
> > > >> > > > > *    distributed under the License is distributed on an "AS
> IS"
> > > >> > BASIS,*
> > > >> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
> > > express
> > > >> or
> > > >> > > > > implied.*
> > > >> > > > > *    See the License for the specific language governing
> > > >> permissions
> > > >> > > and*
> > > >> > > > > *    limitations under the License.*
> > > >> > > > >
> > > >> > > > > *-->*
> > > >> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > >> > > > > <http://maven.apache.org/POM/4.0.0>"
> > > >> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > >> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > >> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > >> > > > > <http://maven.apache.org/POM/4.0.0>
> > > >> > > > > http://maven.apache.org/maven-v4_0_0.xsd
> > > >> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > >> > > > > *  <modelVersion>4.0.0</modelVersion>*
> > > >> > > > >
> > > >> > > > > *  <groupId>com.gkp.app</groupId>*
> > > >> > > > > *  <artifactId>MyProject</artifactId>*
> > > >> > > > > *  <version>1.0-SNAPSHOT</version>*
> > > >> > > > > *  <packaging>swf</packaging>*
> > > >> > > > >
> > > >> > > > > *  <name>MyProject Flex</name>*
> > > >> > > > > *  <properties>*
> > > >> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > >> > > > > * <flex.version>4.6.0.23201</flex.version>*
> > > >> > > > > * <flash.version>11.1</flash.version>*
> > > >> > > > > *  </properties>*
> > > >> > > > >
> > > >> > > > > *  <build>*
> > > >> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > >> > > > > *    <plugins>*
> > > >> > > > > *      <plugin>*
> > > >> > > > >
> > > >> > > > > *        <groupId>net.flexmojos.oss</groupId>*
> > > >> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > >> > > > > *        <version>${flexmojos.version}</version>*
> > > >> > > > > *        <extensions>true</extensions>*
> > > >> > > > > * <configuration>*
> > > >> > > > > * <sourceFile>Main.mxml</sourceFile>*
> > > >> > > > > * <sourcePaths>*
> > > >> > > > > * <path>src/main/flex</path>*
> > > >> > > > > * <path>src/main/resources</path>*
> > > >> > > > > * </sourcePaths> *
> > > >> > > > > * <debug>true</debug>*
> > > >> > > > > * </configuration>*
> > > >> > > > > * <dependencies>*
> > > >> > > > > * <dependency>*
> > > >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> > > >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > >> > > > > * <version>${flexmojos.version}</version>*
> > > >> > > > > * </dependency>*
> > > >> > > > > * <dependency>*
> > > >> > > > > *  <groupId>com.adobe.flex</groupId>*
> > > >> > > > > *  <artifactId>compiler</artifactId>*
> > > >> > > > > *  <version>${flex.version}</version>*
> > > >> > > > > *  <type>pom</type>*
> > > >> > > > > * </dependency>*
> > > >> > > > > *        </dependencies>*
> > > >> > > > >
> > > >> > > > > *      </plugin>*
> > > >> > > > > *    </plugins>*
> > > >> > > > > *  </build>*
> > > >> > > > >
> > > >> > > > > *  <dependencies>*
> > > >> > > > > * <dependency>*
> > > >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> > > >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > >> > > > > * <version>${flexmojos.version}</version>*
> > > >> > > > > * </dependency>*
> > > >> > > > > * <dependency>*
> > > >> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > >> > > > > *      <artifactId>flex-framework</artifactId>*
> > > >> > > > > *      <version>${flex.version}</version>*
> > > >> > > > > *      <type>pom</type>*
> > > >> > > > > *    </dependency>*
> > > >> > > > >
> > > >> > > > > *    <dependency>*
> > > >> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > >> > > > > *      <artifactId>playerglobal</artifactId>*
> > > >> > > > > *      <version>${flash.version}</version>*
> > > >> > > > > *      <type>swc</type>*
> > > >> > > > > *    </dependency>*
> > > >> > > > > *  </dependencies>*
> > > >> > > > >
> > > >> > > > > *  <!-- Repository and PluginRepository section for Flex SDK
> and
> > > >> > > compiler
> > > >> > > > > dependencies. *
> > > >> > > > > *       Note: instead of including this in every POM, you
> can
> > > >> append
> > > >> > it
> > > >> > > > to
> > > >> > > > > your user (~/.m2/settings.xml) or global *
> > > >> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > >> > > > > *    -->*
> > > >> > > > > *  <repositories>*
> > > >> > > > > *     <repository>*
> > > >> > > > > *        <id>flex-mojos-repository</id>*
> > > >> > > > > *        <url>
> > > >> > http://repository.sonatype.org/content/groups/flexgroup
> > > >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> > > ></url>*
> > > >> > > > > *     </repository>*
> > > >> > > > > *  </repositories>*
> > > >> > > > >
> > > >> > > > > *  <pluginRepositories>*
> > > >> > > > > *     <pluginRepository>*
> > > >> > > > > *        <id>flex-mojos-plugin-repository</id>*
> > > >> > > > > *        <url>
> > > >> > http://repository.sonatype.org/content/groups/flexgroup
> > > >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> > > ></url>*
> > > >> > > > > *     </pluginRepository>*
> > > >> > > > > *  </pluginRepositories>*
> > > >> > > > > *</project>*
> > > >> > > > >
> > > >> > > > > *And Main.mxml is :*
> > > >> > > > >
> > > >> > > > > <?xml version="1.0" encoding="utf-8"?>
> > > >> > > > > <!--
> > > >> > > > >
> > > >> > > > >      Copyright 2008 Marvin Herman Froeder
> > > >> > > > >      Licensed under the Apache License, Version 2.0 (the
> > > >> "License");
> > > >> > > you
> > > >> > > > > may not use this file except in compliance with the License.
> You
> > > >> may
> > > >> > > > obtain
> > > >> > > > > a copy of the License at
> > > >> > > > >      http://www.apache.org/licenses/LICENSE-2.0
> > > >> > > > >      Unless required by applicable law or agreed to in
> writing,
> > > >> > > software
> > > >> > > > > distributed under the License is distributed on an "AS IS"
> > > BASIS,
> > > >> > > WITHOUT
> > > >> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
> > > >> See
> > > >> > > the
> > > >> > > > > License for the specific language governing permissions and
> > > >> > limitations
> > > >> > > > > under the License.
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > -->
> > > >> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > > >> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > > >> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > >> > > > > minHeight="600">
> > > >> > > > > <fx:Script>
> > > >> > > > > <![CDATA[
> > > >> > > > > [Bindable]
> > > >> > > > > [Embed(source="add.png")]
> > > >> > > > > private var imgclass : Class;
> > > >> > > > > ]]>
> > > >> > > > > </fx:Script>
> > > >> > > > > <fx:Declarations>
> > > >> > > > > <!-- Place non-visual elements (e.g., services, value
> objects)
> > > >> here
> > > >> > -->
> > > >> > > > > </fx:Declarations>
> > > >> > > > > <s:Label text="Hello World." left="60" top="20"/>
> > > >> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > >> > > > > </s:Application>
> > > >> > > > >
> > > >> > > > > --
> > > >> > > > > *Thanks & Regards*
> > > >> > > > > *Gautam Pandey*
> > > >> > > > > *Tegile Systems*
> > > >> > > > > *Ph : 9243014820*
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <
> > > gkptechi@gmail.com
> > > >> >
> > > >> > > > wrote:
> > > >> > > > >
> > > >> > > > > > Thanks Chris,
> > > >> > > > > >      I have mavenized the 4.13 FDK following the steps
> given
> > > in
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
>
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > >> > > > > and
> > > >> > > > > > copied to my local repo. I never did maven things so I am
> not
> > > >> sure
> > > >> > > > about
> > > >> > > > > > the things. Currently learning maven concepts to point out
> the
> > > >> > exact
> > > >> > > > > cause.
> > > >> > > > > > Do I need to build flexmojos also and deploy to local
> repo?
> > > >> > > > > >
> > > >> > > > > > Thanks
> > > >> > > > > > Gautam
> > > >> > > > > >
> > > >> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > >> > > > > christofer.dutz@c-ware.de
> > > >> > > > > > > wrote:
> > > >> > > > > >
> > > >> > > > > >> Have you manually created the Maven artifacts for Flex
> 4.13?
> > > >> > > > > >> If not that's exactly what Maven is complaining about.
> > > >> Currently
> > > >> > > there
> > > >> > > > > is
> > > >> > > > > >> no Apache Flex FDK publicaly available in any public
> Maven
> > > >> > > repository.
> > > >> > > > > We
> > > >> > > > > >> are working on this, but I't still a mile to go.
> > > >> > > > > >>
> > > >> > > > > >> Chris
> > > >> > > > > >>
> > > >> > > > > >> ________________________________________
> > > >> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > >> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > >> > > > > >> An: users@flex.apache.org
> > > >> > > > > >> Betreff: Re: Need help on flexmojo
> > > >> > > > > >>
> > > >> > > > > >> I guess I am missing repositories and pluginRepositories
> like
> > > >> > > things.
> > > >> > > > I
> > > >> > > > > >> don't know what should be added in this section. Can
> someone
> > > >> > confirm
> > > >> > > > > below
> > > >> > > > > >> default things will work or not?
> > > >> > > > > >>
> > > >> > > > > >>  <!-- Repository and PluginRepository section for Flex
> SDK
> > > and
> > > >> > > > compiler
> > > >> > > > > >> dependencies.
> > > >> > > > > >>        Note: instead of including this in every POM, you
> can
> > > >> > append
> > > >> > > it
> > > >> > > > > to
> > > >> > > > > >> your user (~/.m2/settings.xml) or global
> > > >> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > >> > > > > >>     -->
> > > >> > > > > >>   <repositories>
> > > >> > > > > >>      <repository>
> > > >> > > > > >>         <id>flex-mojos-repository</id>
> > > >> > > > > >>         <url>
> > > >> > > http://repository.sonatype.org/content/groups/flexgroup
> > > >> > > > > >> </url>
> > > >> > > > > >>      </repository>
> > > >> > > > > >>   </repositories>
> > > >> > > > > >>
> > > >> > > > > >>   <pluginRepositories>
> > > >> > > > > >>      <pluginRepository>
> > > >> > > > > >>         <id>flex-mojos-plugin-repository</id>
> > > >> > > > > >>         <url>
> > > >> > > http://repository.sonatype.org/content/groups/flexgroup
> > > >> > > > > >> </url>
> > > >> > > > > >>      </pluginRepository>
> > > >> > > > > >>   </pluginRepositories>
> > > >> > > > > >>
> > > >> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
> > > >> tc@extravision.com
> > > >> > >
> > > >> > > > > wrote:
> > > >> > > > > >>
> > > >> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > >> > > > > >> >
> > > >> > > > > >> >> Fai
> > > >> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > >> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in
> the
> > > >> local
> > > >> > > > > >> repository,
> > > >> > > > > >> >> resolution wi
> > > >> > > > > >> >> ll not be reattempted until the update interval of
> central
> > > >> has
> > > >> > > > > elapsed
> > > >> > > > > >> or
> > > >> > > > > >> >> updates are forced
> > > >> > > > > >> >>
> > > >> > > > > >> > I don't know much Maven, but did you try forcing this
> > > update
> > > >> ?
> > > >> > > > > >> >
> > > >> > > > > >> > Tom
> > > >> > > > > >> >
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > > >>
> > > >> > > > > >> --
> > > >> > > > > >> *Thanks & Regards*
> > > >> > > > > >> *Gautam Pandey*
> > > >> > > > > >> *Tegile Systems*
> > > >> > > > > >> *Ph : 9243014820*
> > > >> > > > > >>
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > > >
> > > >
> > >
>

Re: AW: Need help on flexmojo

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Oct 15, 2014 10:06 AM, "Christofer Dutz" <ch...@c-ware.de>
wrote:
>
> As I posted on the Dev-List ... the license of Flexmojos as a build tool
has no influence on the licensing of your product ... as long as you are
not bundling Flexmojos with your software. A lot of companies are using
Flexmojos without any legal problems.

That had been my experience as well.  Using GPL based tools that don't get
shipped with our software is perfectly fine to use.

You will want to make sure that there are no scripts that automatically
bundle GPL licensed products in your release artifacts.

Again, you may want to double check with your lawyer.

Thanks,
Om

>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Mittwoch, 15. Oktober 2014 14:23
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Thanks Chris,
>      I will try and let you know if I am facing any issue. Currently
> blocked because of GPL license of flexmojos and I can not use 6.0.1 and
> above versions for my project as my company is not allowing it. So I have
> tested with 4.2-beta and 4.6 and its working fine.
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Wed, Oct 15, 2014 at 5:18 PM, Christofer Dutz <
christofer.dutz@c-ware.de>
> wrote:
>
> > Well here comes my working version:
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >   <!--
> >
> >     Copyright 2008 Marvin Herman Froeder
> >     Licensed under the Apache License, Version 2.0 (the "License");
> >     you may not use this file except in compliance with the License.
> >     You may obtain a copy of the License at
> >
> >         http://www.apache.org/licenses/LICENSE-2.0
> >
> >     Unless required by applicable law or agreed to in writing, software
> >     distributed under the License is distributed on an "AS IS" BASIS,
> >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.
> >     See the License for the specific language governing permissions and
> >     limitations under the License.
> >
> > -->
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd
> > ">
> >   <modelVersion>4.0.0</modelVersion>
> >
> >   <groupId>com.gkp.app</groupId>
> >   <artifactId>MyProject</artifactId>
> >   <version>1.0-SNAPSHOT</version>
> >   <packaging>swf</packaging>
> >
> >   <name>MyProject Flex</name>
> >
> >   <properties>
> >         <flexmojos.version>7.0.1</flexmojos.version>
> >         <flex.version>4.13.0.20140701</flex.version>
> >         <flash.version>11.1</flash.version>
> >   </properties>
> >
> >   <build>
> >     <sourceDirectory>src/main/flex</sourceDirectory>
> >     <plugins>
> >       <plugin>
> >
> >         <groupId>net.flexmojos.oss</groupId>
> >         <artifactId>flexmojos-maven-plugin</artifactId>
> >         <version>${flexmojos.version}</version>
> >         <extensions>true</extensions>
> >                 <configuration>
> >                         <sourceFile>Main.mxml</sourceFile>
> >                         <debug>true</debug>
> >                 </configuration>
> >                 <dependencies>
> >                         <dependency>
> >                                 <groupId>net.flexmojos.oss</groupId>
> >
> > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> >                                 <version>${flexmojos.version}</version>
> >                         </dependency>
> >                         <dependency>
> >                           <groupId>org.apache.flex</groupId>
> >                           <artifactId>compiler</artifactId>
> >                           <version>${flex.version}</version>
> >                           <type>pom</type>
> >                         </dependency>
> >         </dependencies>
> >
> >       </plugin>
> >     </plugins>
> >   </build>
> >
> >   <dependencies>
> >         <dependency>
> >       <groupId>org.apache.flex</groupId>
> >       <artifactId>framework</artifactId>
> >       <version>${flex.version}</version>
> >       <type>pom</type>
> >     </dependency>
> >
> >     <dependency>
> >       <groupId>com.adobe.flash.framework</groupId>
> >       <artifactId>playerglobal</artifactId>
> >       <version>${flash.version}</version>
> >       <type>swc</type>
> >     </dependency>
> >   </dependencies>
> >
> >   <!-- Repository and PluginRepository section for Flex SDK and compiler
> > dependencies.
> >        Note: instead of including this in every POM, you can append it
to
> > your user (~/.m2/settings.xml) or global
> >                 (M2_HOME/conf/settings.xml) settings file.
> >     -->
> >   <repositories>
> >      <repository>
> >         <id>flex-mojos-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
</url>
> >      </repository>
> >   </repositories>
> >
> >   <pluginRepositories>
> >      <pluginRepository>
> >         <id>flex-mojos-plugin-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
</url>
> >      </pluginRepository>
> >   </pluginRepositories>
> > </project>
> >
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Mittwoch, 15. Oktober 2014 11:34
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Hi Chris,
> >    I am trying to build same sample application with apache flex 4.13
but
> > its failing with below error. As you mention in the 3rd step of using
> > com.adobe.flex.
> > Is it correct to use org.apache.flex instead of com.apache.flex? it
will be
> > great if you can share you pom file for apache flex for this sample.
> >
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 15.504s
> > [INFO] Finished at: Wed Oct 15 14:43:17 IST 2014
> > [INFO] Final Memory: 14M/495M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal on project MyProject: Could not resolve
> > dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The
> >  following artifacts could not be resolved:
> > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> > org.apache.flex.compiler:digest:jar:4.12.1.
> > 20140427, org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
org.apache.flex.compi
> > ler:swcdepends:jar:4.12.1.20140427,
> > org.apache.flex:compiler:pom:4.12.1.20140427,
> > com.adobe.flash.framework:playerglobal:swc:14: Could not
> > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
> > flex-mojos-repository (http://repository.sonatype.org/content/groups/fl
> > exgroup) -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute
> > goal on project MyProject: Could not resolve dependencies for pro
> > ject com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The following artifacts
could
> > not be resolved: org.apache.flex.compiler:mxmlc:jar:4.12.1.20140
> > 427, org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > org.apache.flex.compiler:
> > asdoc:jar:4.12.1.20140427,
> > org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > org.apache.flex:compiler:pom:4.12.1.20140427, com.adobe
> > .flash.framework:playerglobal:swc:14: Could not find artifact
> > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
flex-mojos-repository
> > (
> > http://repository.sonatype.org/content/groups/flexgroup)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
> >
> >         at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> >         at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> >         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> >         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> >
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >         at
> >
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >         at java.lang.reflect.Method.invoke(Method.java:606)
> >         at
> >
> >
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> >         at
> >
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> >         at
> >
> >
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> >         at
> >
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> > Caused by: org.apache.maven.project.DependencyResolutionException: Could
> > not resolve dependencies for project com.gkp.app:MyProject:swf:1.0
> > -SNAPSHOT: The following artifacts could not be resolved:
> > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> > org.apache.flex.compiler:dige
> > st:jar:4.12.1.20140427,
> > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apa
> > che.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > org.apache.flex:compiler:pom:4.12.1.20140427,
> > com.adobe.flash.framework:playerglobal:swc:
> > 14: Could not find artifact
> > org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
flex-mojos-repository
> > (http://repository.sonatype.org/con
> > tent/groups/flexgroup)
> >         at
> >
> >
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
> >         at
> >
> >
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
> >         ... 22 more
> > Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
The
> > following artifacts could not be resolved: org.apache.flex.comp
> > iler:mxmlc:jar:4.12.1.20140427,
> > org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427
> > , org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> > org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > org.apache.flex:compiler:pom
> > :4.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could
not
> > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427
> >  in flex-mojos-repository (
> > http://repository.sonatype.org/content/groups/flexgroup)
> >         at
> >
> >
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
> >         at
> >
> >
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
> >         ... 23 more
> > Caused by: org.eclipse.aether.resolution.ArtifactResolutionException:
The
> > following artifacts could not be resolved: org.apache.flex.compil
> > er:mxmlc:jar:4.12.1.20140427,
> > org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> > org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> > org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> > org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> > org.apache.flex:compiler:pom:4
> > .12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
> > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 i
> > n flex-mojos-repository (
> > http://repository.sonatype.org/content/groups/flexgroup)
> >         at
> >
> >
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
> >         at
> >
> >
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
> >         at
> >
> >
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
> >         ... 24 more
> > Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could
not
> > find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.2014042
> > 7 in flex-mojos-repository (
> > http://repository.sonatype.org/content/groups/flexgroup)
> >         at
> >
> >
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
> >         at
> >
> >
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
> >         at
> >
> >
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
> >         at
> >
> >
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
> >         at
> >
> >
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >         at
> >
> >
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >         at java.lang.Thread.run(Thread.java:744)
> > [ERROR]
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> >
> >
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> >
> > Thanks & Regards
> > Gautam Pandey
> >
> >
> > On Tue, Oct 14, 2014 at 12:52 PM, Gautam Pandey <gk...@gmail.com>
> > wrote:
> >
> > > Great I will try with apache flex also. pombkp.xml is for apache
flex. I
> > > will change as per the steps given in the email and try.
> > >
> > > Thanks & Regards
> > > Gautam Pandey
> > >
> > >
> > > On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <
> > > christofer.dutz@c-ware.de> wrote:
> > >
> > >> Ok ... you found it yourself ;-)
> > >>
> > >> ________________________________________
> > >> Von: Gautam Pandey <gk...@gmail.com>
> > >> Gesendet: Dienstag, 14. Oktober 2014 09:12
> > >> An: users@flex.apache.org
> > >> Betreff: Re: Need help on flexmojo
> > >>
> > >> it's working with extra / in the beginning like below.
> > >>   [Embed(source="/asset/image/add.png")]
> > >> private var imgclass : Class;
> > >>
> > >> Now I have to try with my real project which I am planning to upgrade
> > from
> > >> 4.0 to either 4.6 or apache flex 4.13.
> > >>
> > >> Thank you Chris
> > >>
> > >> Thanks & Regards
> > >> Gautam Pandey
> > >>
> > >>
> > >> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
> > >> christofer.dutz@c-ware.de
> > >> > wrote:
> > >>
> > >> > Forget my last mail ... just not used to google drive yet ;-)
> > >> >
> > >> >
> > >> > ________________________________________
> > >> > Von: Christofer Dutz <ch...@c-ware.de>
> > >> > Gesendet: Dienstag, 14. Oktober 2014 08:57
> > >> > An: users@flex.apache.org
> > >> > Betreff: AW: Need help on flexmojo
> > >> >
> > >> > Hmm I seem to be unable to download anything. I can see the files,
but
> > >> not
> > >> > their content (One archive would be better anyway ... this way I
don't
> > >> have
> > >> > to manually create the directories and download each file
seperately)
> > >> >
> > >> > Chris
> > >> > ________________________________________
> > >> > Von: Gautam Pandey <gk...@gmail.com>
> > >> > Gesendet: Dienstag, 14. Oktober 2014 08:45
> > >> > An: users@flex.apache.org
> > >> > Betreff: Re: Need help on flexmojo
> > >> >
> > >> > Hi Chris,
> > >> >      I have hosted it on my google drive. Please have a look.
Thanks
> > for
> > >> > your precious time. Its just 23kb file. Let me know if you are
facing
> > >> any
> > >> > problem.
> > >> >
> > >> >
> > >> >
> > >>
> >
https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
> > >> >
> > >> >
> > >> > Thanks & Regards
> > >> > Gautam Pandey
> > >> >
> > >> >
> > >> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> > >> > christofer.dutz@c-ware.de>
> > >> > wrote:
> > >> >
> > >> > > If you are able to zip up the application and send it to my
private
> > >> > > address, I would try to solve the problem for you. Image
embedding
> > >> does
> > >> > > work, you just have to configure your build right. Unfortunately
I
> > >> don't
> > >> > > have to time to do this step by step on the list, so if you send
me
> > >> the
> > >> > > example, I'll make it work.
> > >> > >
> > >> > > Chris
> > >> > > ________________________________________
> > >> > > Von: Gautam Pandey <gk...@gmail.com>
> > >> > > Gesendet: Montag, 13. Oktober 2014 10:59
> > >> > > An: users@flex.apache.org
> > >> > > Betreff: Re: Need help on flexmojo
> > >> > >
> > >> > > Yes add.png is located in src/main/resources/. I read the Falcon
> > email
> > >> > > thread. I guess I have to wait for the fix.
> > >> > >
> > >> > > --
> > >> > > *Thanks *
> > >> > > *Gautam Pandey*
> > >> > >
> > >> > >
> > >> > >
> > >> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> > >> > > christofer.dutz@c-ware.de>
> > >> > > wrote:
> > >> > >
> > >> > > > I'd omit the sourcePaths config option as this is implicitly
> > >> defined by
> > >> > > > maven already. I never used that option.
> > >> > > > Where are your image resources located?
src/main/resources/add.png
> > >> ? I
> > >> > > > usually have resource paths absolute so in my case I usually
write
> > >> > > > "/add.png" instead of "add.png" but this is currently
something we
> > >> are
> > >> > > > discussing on the dev-list as Falcon seems to have problems
with
> > >> this.
> > >> > > >
> > >> > > > Chris
> > >> > > >
> > >> > > > ________________________________________
> > >> > > > Von: Gautam Pandey <gk...@gmail.com>
> > >> > > > Gesendet: Montag, 13. Oktober 2014 08:34
> > >> > > > An: users@flex.apache.org
> > >> > > > Betreff: Re: Need help on flexmojo
> > >> > > >
> > >> > > > Thank you Chris,
> > >> > > >     Still its not going through. Build is failing with same
error.
> > >> My
> > >> > new
> > >> > > > pom.xml is :
> > >> > > >
> > >> > > > <?xml version="1.0" encoding="UTF-8"?>
> > >> > > >   <!--
> > >> > > >
> > >> > > >     Copyright 2008 Marvin Herman Froeder
> > >> > > >     Licensed under the Apache License, Version 2.0 (the
> > "License");
> > >> > > >     you may not use this file except in compliance with the
> > License.
> > >> > > >     You may obtain a copy of the License at
> > >> > > >
> > >> > > >         http://www.apache.org/licenses/LICENSE-2.0
> > >> > > >
> > >> > > >     Unless required by applicable law or agreed to in writing,
> > >> software
> > >> > > >     distributed under the License is distributed on an "AS IS"
> > >> BASIS,
> > >> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express
> > or
> > >> > > > implied.
> > >> > > >     See the License for the specific language governing
> > permissions
> > >> and
> > >> > > >     limitations under the License.
> > >> > > >
> > >> > > > -->
> > >> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > >> > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > >> > > > http://maven.apache.org/POM/4.0.0
> > >> > > http://maven.apache.org/maven-v4_0_0.xsd
> > >> > > > ">
> > >> > > >   <modelVersion>4.0.0</modelVersion>
> > >> > > >
> > >> > > >   <groupId>com.gkp.app</groupId>
> > >> > > >   <artifactId>MyProject</artifactId>
> > >> > > >   <version>1.0-SNAPSHOT</version>
> > >> > > >   <packaging>swf</packaging>
> > >> > > >
> > >> > > >   <name>MyProject Flex</name>
> > >> > > >   <properties>
> > >> > > > <flexmojos.version>6.0.1</flexmojos.version>
> > >> > > > <flex.version>4.6.0.23201</flex.version>
> > >> > > > <flash.version>11.1</flash.version>
> > >> > > >   </properties>
> > >> > > >
> > >> > > >   <build>
> > >> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > >> > > >     <plugins>
> > >> > > >       <plugin>
> > >> > > >
> > >> > > >         <groupId>net.flexmojos.oss</groupId>
> > >> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > >> > > >         <version>${flexmojos.version}</version>
> > >> > > >         <extensions>true</extensions>
> > >> > > > <configuration>
> > >> > > > <sourceFile>Main.mxml</sourceFile>
> > >> > > > <sourcePaths>
> > >> > > > <path>src/main/flex</path>
> > >> > > > <path>src/main/resources</path>
> > >> > > > </sourcePaths>
> > >> > > > <debug>true</debug>
> > >> > > > </configuration>
> > >> > > > <dependencies>
> > >> > > > <dependency>
> > >> > > > <groupId>net.flexmojos.oss</groupId>
> > >> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > >> > > > <version>${flexmojos.version}</version>
> > >> > > > </dependency>
> > >> > > > <dependency>
> > >> > > >   <groupId>com.adobe.flex</groupId>
> > >> > > >   <artifactId>compiler</artifactId>
> > >> > > >   <version>${flex.version}</version>
> > >> > > >   <type>pom</type>
> > >> > > > </dependency>
> > >> > > >         </dependencies>
> > >> > > >
> > >> > > >       </plugin>
> > >> > > >     </plugins>
> > >> > > >   </build>
> > >> > > >
> > >> > > >   <dependencies>
> > >> > > > <dependency>
> > >> > > >       <groupId>com.adobe.flex.framework</groupId>
> > >> > > >       <artifactId>flex-framework</artifactId>
> > >> > > >       <version>${flex.version}</version>
> > >> > > >       <type>pom</type>
> > >> > > >     </dependency>
> > >> > > >
> > >> > > >     <dependency>
> > >> > > >       <groupId>com.adobe.flash.framework</groupId>
> > >> > > >       <artifactId>playerglobal</artifactId>
> > >> > > >       <version>${flash.version}</version>
> > >> > > >       <type>swc</type>
> > >> > > >     </dependency>
> > >> > > >   </dependencies>
> > >> > > >
> > >> > > >   <!-- Repository and PluginRepository section for Flex SDK and
> > >> > compiler
> > >> > > > dependencies.
> > >> > > >        Note: instead of including this in every POM, you can
> > append
> > >> it
> > >> > to
> > >> > > > your user (~/.m2/settings.xml) or global
> > >> > > >   (M2_HOME/conf/settings.xml) settings file.
> > >> > > >     -->
> > >> > > >   <repositories>
> > >> > > >      <repository>
> > >> > > >         <id>flex-mojos-repository</id>
> > >> > > >         <url>
> > >> http://repository.sonatype.org/content/groups/flexgroup
> > >> > > </url>
> > >> > > >      </repository>
> > >> > > >   </repositories>
> > >> > > >
> > >> > > >   <pluginRepositories>
> > >> > > >      <pluginRepository>
> > >> > > >         <id>flex-mojos-plugin-repository</id>
> > >> > > >         <url>
> > >> http://repository.sonatype.org/content/groups/flexgroup
> > >> > > </url>
> > >> > > >      </pluginRepository>
> > >> > > >   </pluginRepositories>
> > >> > > > </project>
> > >> > > >
> > >> > > > Did I miss anything?
> > >> > > >
> > >> > > > --
> > >> > > > *Thanks & Regards*
> > >> > > > *Gautam Pandey*
> > >> > > > *Tegile Systems*
> > >> > > > *Ph : 9243014820*
> > >> > > >
> > >> > > >
> > >> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > >> > > > christofer.dutz@c-ware.de
> > >> > > > > wrote:
> > >> > > >
> > >> > > > > When embedding fonts and images I have found that you need to
> > add
> > >> the
> > >> > > > > threadlocal toolkit dependency before the compiler artifact
in
> > the
> > >> > > plugin
> > >> > > > > configuration ... just search for "threadlocal toolkit".
> > >> > > > >
> > >> > > > > Chris
> > >> > > > > ________________________________________
> > >> > > > > Von: Gautam Pandey <gk...@gmail.com>
> > >> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
> > >> > > > > An: users@flex.apache.org
> > >> > > > > Betreff: Re: Need help on flexmojo
> > >> > > > >
> > >> > > > > Hi Chris,
> > >> > > > >    Now I am trying to build the sample application with 4.6
SDK.
> > >> > > Without
> > >> > > > > adding any image, build is going fine but when I add an
image to
> > >> the
> > >> > > > > Main.mxml, it is throwing error* Unable to transcode
add.png.*
> > >> Error
> > >> > > > stack
> > >> > > > > is as follow:
> > >> > > > >
> > >> > > > > *Writing configuration dump to
> > >> > > > >
> > >> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17):
Error:
> > >> > unable
> > >> > > to
> > >> > > > > resolve 'add.png' for transcoding*
> > >> > > > >
> > >> > > > > *                        [Embed(source="add.png")]*
> > >> > > > >
> > >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17):
Error:
> > >> > Unable
> > >> > > to
> > >> > > > > transcode add.png.*
> > >> > > > >
> > >> > > > > *                        [Embed(source="add.png")]*
> > >> > > > >
> > >> > > > > *[INFO]
> > >> > > > >
> > >> > >
> > >>
> >
------------------------------------------------------------------------*
> > >> > > > > *[INFO] BUILD FAILURE*
> > >> > > > > *[INFO]
> > >> > > > >
> > >> > >
> > >>
> >
------------------------------------------------------------------------*
> > >> > > > > *[INFO] Total time: 7.396s*
> > >> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > >> > > > > *[INFO] Final Memory: 35M/495M*
> > >> > > > > *[INFO]
> > >> > > > >
> > >> > >
> > >>
> >
------------------------------------------------------------------------*
> > >> > > > > *[ERROR] Failed to execute goal
> > >> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > >> > > > > (default-compile-swf) on project MyProject: Got 2*
> > >> > > > > * errors building project, check logs -> [Help 1]*
> > >> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException:
Failed
> > to
> > >> > > > execute
> > >> > > > > goal
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > (*
> > >> > > > > *default-compile-swf) on project MyProject: Got 2 errors
> > building
> > >> > > > project,
> > >> > > > > check logs*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > >> > > > > *        at
> > >> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > >> > > > > *        at
> > >> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > >> > > > > *        at
> > >> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > >> > > > > *        at
> > >> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > >> > > > > *        at
> > org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > >> > > > > *        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > >> > > Method)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > >> > > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > >> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException:
Got 2
> > >> > errors
> > >> > > > > building project, check logs*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > >> > > > > *        at
> > >> > > > >
> > >> >
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > >> > > > > *        at
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > >> > > > > *        ... 19 more*
> > >> > > > > *[ERROR]*
> > >> > > > > *[ERROR]*
> > >> > > > > *[ERROR] For more information about the errors and possible
> > >> > solutions,
> > >> > > > > please read the following articles:*
> > >> > > > > *[ERROR] [Help 1]
> > >> > > > >
> > >> >
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >> > > > > <
> > >> >
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >> > > >*
> > >> > > > > *D:\FlexMavenTest\MyProject>*
> > >> > > > >
> > >> > > > >
> > >> > > > > Do you have any idea how this can be resolved ? I am able to
run
> > >> the
> > >> > > > > application from my Flash Builder without any problem. It
will
> > be
> > >> > great
> > >> > > > > help if you can point out the issue.
> > >> > > > >
> > >> > > > > *My pom.xml  is :*
> > >> > > > >
> > >> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
> > >> > > > > *  <!--*
> > >> > > > >
> > >> > > > > *    Copyright 2008 Marvin Herman Froeder*
> > >> > > > > *    Licensed under the Apache License, Version 2.0 (the
> > >> "License");*
> > >> > > > > *    you may not use this file except in compliance with the
> > >> > License.*
> > >> > > > > *    You may obtain a copy of the License at*
> > >> > > > >
> > >> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
> > >> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > >> > > > >
> > >> > > > > *    Unless required by applicable law or agreed to in
writing,
> > >> > > software*
> > >> > > > > *    distributed under the License is distributed on an "AS
IS"
> > >> > BASIS,*
> > >> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
> > express
> > >> or
> > >> > > > > implied.*
> > >> > > > > *    See the License for the specific language governing
> > >> permissions
> > >> > > and*
> > >> > > > > *    limitations under the License.*
> > >> > > > >
> > >> > > > > *-->*
> > >> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > >> > > > > <http://maven.apache.org/POM/4.0.0>"
> > >> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > >> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
> > >> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > >> > > > > <http://maven.apache.org/POM/4.0.0>
> > >> > > > > http://maven.apache.org/maven-v4_0_0.xsd
> > >> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > >> > > > > *  <modelVersion>4.0.0</modelVersion>*
> > >> > > > >
> > >> > > > > *  <groupId>com.gkp.app</groupId>*
> > >> > > > > *  <artifactId>MyProject</artifactId>*
> > >> > > > > *  <version>1.0-SNAPSHOT</version>*
> > >> > > > > *  <packaging>swf</packaging>*
> > >> > > > >
> > >> > > > > *  <name>MyProject Flex</name>*
> > >> > > > > *  <properties>*
> > >> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > >> > > > > * <flex.version>4.6.0.23201</flex.version>*
> > >> > > > > * <flash.version>11.1</flash.version>*
> > >> > > > > *  </properties>*
> > >> > > > >
> > >> > > > > *  <build>*
> > >> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > >> > > > > *    <plugins>*
> > >> > > > > *      <plugin>*
> > >> > > > >
> > >> > > > > *        <groupId>net.flexmojos.oss</groupId>*
> > >> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > >> > > > > *        <version>${flexmojos.version}</version>*
> > >> > > > > *        <extensions>true</extensions>*
> > >> > > > > * <configuration>*
> > >> > > > > * <sourceFile>Main.mxml</sourceFile>*
> > >> > > > > * <sourcePaths>*
> > >> > > > > * <path>src/main/flex</path>*
> > >> > > > > * <path>src/main/resources</path>*
> > >> > > > > * </sourcePaths> *
> > >> > > > > * <debug>true</debug>*
> > >> > > > > * </configuration>*
> > >> > > > > * <dependencies>*
> > >> > > > > * <dependency>*
> > >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> > >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > >> > > > > * <version>${flexmojos.version}</version>*
> > >> > > > > * </dependency>*
> > >> > > > > * <dependency>*
> > >> > > > > *  <groupId>com.adobe.flex</groupId>*
> > >> > > > > *  <artifactId>compiler</artifactId>*
> > >> > > > > *  <version>${flex.version}</version>*
> > >> > > > > *  <type>pom</type>*
> > >> > > > > * </dependency>*
> > >> > > > > *        </dependencies>*
> > >> > > > >
> > >> > > > > *      </plugin>*
> > >> > > > > *    </plugins>*
> > >> > > > > *  </build>*
> > >> > > > >
> > >> > > > > *  <dependencies>*
> > >> > > > > * <dependency>*
> > >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> > >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > >> > > > > * <version>${flexmojos.version}</version>*
> > >> > > > > * </dependency>*
> > >> > > > > * <dependency>*
> > >> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
> > >> > > > > *      <artifactId>flex-framework</artifactId>*
> > >> > > > > *      <version>${flex.version}</version>*
> > >> > > > > *      <type>pom</type>*
> > >> > > > > *    </dependency>*
> > >> > > > >
> > >> > > > > *    <dependency>*
> > >> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
> > >> > > > > *      <artifactId>playerglobal</artifactId>*
> > >> > > > > *      <version>${flash.version}</version>*
> > >> > > > > *      <type>swc</type>*
> > >> > > > > *    </dependency>*
> > >> > > > > *  </dependencies>*
> > >> > > > >
> > >> > > > > *  <!-- Repository and PluginRepository section for Flex SDK
and
> > >> > > compiler
> > >> > > > > dependencies. *
> > >> > > > > *       Note: instead of including this in every POM, you can
> > >> append
> > >> > it
> > >> > > > to
> > >> > > > > your user (~/.m2/settings.xml) or global *
> > >> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
> > >> > > > > *    -->*
> > >> > > > > *  <repositories>*
> > >> > > > > *     <repository>*
> > >> > > > > *        <id>flex-mojos-repository</id>*
> > >> > > > > *        <url>
> > >> > http://repository.sonatype.org/content/groups/flexgroup
> > >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> > ></url>*
> > >> > > > > *     </repository>*
> > >> > > > > *  </repositories>*
> > >> > > > >
> > >> > > > > *  <pluginRepositories>*
> > >> > > > > *     <pluginRepository>*
> > >> > > > > *        <id>flex-mojos-plugin-repository</id>*
> > >> > > > > *        <url>
> > >> > http://repository.sonatype.org/content/groups/flexgroup
> > >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> > ></url>*
> > >> > > > > *     </pluginRepository>*
> > >> > > > > *  </pluginRepositories>*
> > >> > > > > *</project>*
> > >> > > > >
> > >> > > > > *And Main.mxml is :*
> > >> > > > >
> > >> > > > > <?xml version="1.0" encoding="utf-8"?>
> > >> > > > > <!--
> > >> > > > >
> > >> > > > >      Copyright 2008 Marvin Herman Froeder
> > >> > > > >      Licensed under the Apache License, Version 2.0 (the
> > >> "License");
> > >> > > you
> > >> > > > > may not use this file except in compliance with the License.
You
> > >> may
> > >> > > > obtain
> > >> > > > > a copy of the License at
> > >> > > > >      http://www.apache.org/licenses/LICENSE-2.0
> > >> > > > >      Unless required by applicable law or agreed to in
writing,
> > >> > > software
> > >> > > > > distributed under the License is distributed on an "AS IS"
> > BASIS,
> > >> > > WITHOUT
> > >> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
> > >> See
> > >> > > the
> > >> > > > > License for the specific language governing permissions and
> > >> > limitations
> > >> > > > > under the License.
> > >> > > > >
> > >> > > > >
> > >> > > > > -->
> > >> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > >> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > >> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > >> > > > > minHeight="600">
> > >> > > > > <fx:Script>
> > >> > > > > <![CDATA[
> > >> > > > > [Bindable]
> > >> > > > > [Embed(source="add.png")]
> > >> > > > > private var imgclass : Class;
> > >> > > > > ]]>
> > >> > > > > </fx:Script>
> > >> > > > > <fx:Declarations>
> > >> > > > > <!-- Place non-visual elements (e.g., services, value
objects)
> > >> here
> > >> > -->
> > >> > > > > </fx:Declarations>
> > >> > > > > <s:Label text="Hello World." left="60" top="20"/>
> > >> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
> > >> > > > > </s:Application>
> > >> > > > >
> > >> > > > > --
> > >> > > > > *Thanks & Regards*
> > >> > > > > *Gautam Pandey*
> > >> > > > > *Tegile Systems*
> > >> > > > > *Ph : 9243014820*
> > >> > > > >
> > >> > > > >
> > >> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <
> > gkptechi@gmail.com
> > >> >
> > >> > > > wrote:
> > >> > > > >
> > >> > > > > > Thanks Chris,
> > >> > > > > >      I have mavenized the 4.13 FDK following the steps
given
> > in
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > >> > > > > and
> > >> > > > > > copied to my local repo. I never did maven things so I am
not
> > >> sure
> > >> > > > about
> > >> > > > > > the things. Currently learning maven concepts to point out
the
> > >> > exact
> > >> > > > > cause.
> > >> > > > > > Do I need to build flexmojos also and deploy to local repo?
> > >> > > > > >
> > >> > > > > > Thanks
> > >> > > > > > Gautam
> > >> > > > > >
> > >> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > >> > > > > christofer.dutz@c-ware.de
> > >> > > > > > > wrote:
> > >> > > > > >
> > >> > > > > >> Have you manually created the Maven artifacts for Flex
4.13?
> > >> > > > > >> If not that's exactly what Maven is complaining about.
> > >> Currently
> > >> > > there
> > >> > > > > is
> > >> > > > > >> no Apache Flex FDK publicaly available in any public Maven
> > >> > > repository.
> > >> > > > > We
> > >> > > > > >> are working on this, but I't still a mile to go.
> > >> > > > > >>
> > >> > > > > >> Chris
> > >> > > > > >>
> > >> > > > > >> ________________________________________
> > >> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
> > >> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > >> > > > > >> An: users@flex.apache.org
> > >> > > > > >> Betreff: Re: Need help on flexmojo
> > >> > > > > >>
> > >> > > > > >> I guess I am missing repositories and pluginRepositories
like
> > >> > > things.
> > >> > > > I
> > >> > > > > >> don't know what should be added in this section. Can
someone
> > >> > confirm
> > >> > > > > below
> > >> > > > > >> default things will work or not?
> > >> > > > > >>
> > >> > > > > >>  <!-- Repository and PluginRepository section for Flex SDK
> > and
> > >> > > > compiler
> > >> > > > > >> dependencies.
> > >> > > > > >>        Note: instead of including this in every POM, you
can
> > >> > append
> > >> > > it
> > >> > > > > to
> > >> > > > > >> your user (~/.m2/settings.xml) or global
> > >> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
> > >> > > > > >>     -->
> > >> > > > > >>   <repositories>
> > >> > > > > >>      <repository>
> > >> > > > > >>         <id>flex-mojos-repository</id>
> > >> > > > > >>         <url>
> > >> > > http://repository.sonatype.org/content/groups/flexgroup
> > >> > > > > >> </url>
> > >> > > > > >>      </repository>
> > >> > > > > >>   </repositories>
> > >> > > > > >>
> > >> > > > > >>   <pluginRepositories>
> > >> > > > > >>      <pluginRepository>
> > >> > > > > >>         <id>flex-mojos-plugin-repository</id>
> > >> > > > > >>         <url>
> > >> > > http://repository.sonatype.org/content/groups/flexgroup
> > >> > > > > >> </url>
> > >> > > > > >>      </pluginRepository>
> > >> > > > > >>   </pluginRepositories>
> > >> > > > > >>
> > >> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
> > >> tc@extravision.com
> > >> > >
> > >> > > > > wrote:
> > >> > > > > >>
> > >> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > >> > > > > >> >
> > >> > > > > >> >> Fai
> > >> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > >> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in the
> > >> local
> > >> > > > > >> repository,
> > >> > > > > >> >> resolution wi
> > >> > > > > >> >> ll not be reattempted until the update interval of
central
> > >> has
> > >> > > > > elapsed
> > >> > > > > >> or
> > >> > > > > >> >> updates are forced
> > >> > > > > >> >>
> > >> > > > > >> > I don't know much Maven, but did you try forcing this
> > update
> > >> ?
> > >> > > > > >> >
> > >> > > > > >> > Tom
> > >> > > > > >> >
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > > >>
> > >> > > > > >> --
> > >> > > > > >> *Thanks & Regards*
> > >> > > > > >> *Gautam Pandey*
> > >> > > > > >> *Tegile Systems*
> > >> > > > > >> *Ph : 9243014820*
> > >> > > > > >>
> > >> > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> > >
> >

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
As I posted on the Dev-List ... the license of Flexmojos as a build tool has no influence on the licensing of your product ... as long as you are not bundling Flexmojos with your software. A lot of companies are using Flexmojos without any legal problems.

Chris
________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Mittwoch, 15. Oktober 2014 14:23
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

Thanks Chris,
     I will try and let you know if I am facing any issue. Currently
blocked because of GPL license of flexmojos and I can not use 6.0.1 and
above versions for my project as my company is not allowing it. So I have
tested with 4.2-beta and 4.6 and its working fine.

Thanks & Regards
Gautam Pandey


On Wed, Oct 15, 2014 at 5:18 PM, Christofer Dutz <ch...@c-ware.de>
wrote:

> Well here comes my working version:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>   <!--
>
>     Copyright 2008 Marvin Herman Froeder
>     Licensed under the Apache License, Version 2.0 (the "License");
>     you may not use this file except in compliance with the License.
>     You may obtain a copy of the License at
>
>         http://www.apache.org/licenses/LICENSE-2.0
>
>     Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
>
> -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
> ">
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.gkp.app</groupId>
>   <artifactId>MyProject</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <packaging>swf</packaging>
>
>   <name>MyProject Flex</name>
>
>   <properties>
>         <flexmojos.version>7.0.1</flexmojos.version>
>         <flex.version>4.13.0.20140701</flex.version>
>         <flash.version>11.1</flash.version>
>   </properties>
>
>   <build>
>     <sourceDirectory>src/main/flex</sourceDirectory>
>     <plugins>
>       <plugin>
>
>         <groupId>net.flexmojos.oss</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <version>${flexmojos.version}</version>
>         <extensions>true</extensions>
>                 <configuration>
>                         <sourceFile>Main.mxml</sourceFile>
>                         <debug>true</debug>
>                 </configuration>
>                 <dependencies>
>                         <dependency>
>                                 <groupId>net.flexmojos.oss</groupId>
>
> <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
>                                 <version>${flexmojos.version}</version>
>                         </dependency>
>                         <dependency>
>                           <groupId>org.apache.flex</groupId>
>                           <artifactId>compiler</artifactId>
>                           <version>${flex.version}</version>
>                           <type>pom</type>
>                         </dependency>
>         </dependencies>
>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
>         <dependency>
>       <groupId>org.apache.flex</groupId>
>       <artifactId>framework</artifactId>
>       <version>${flex.version}</version>
>       <type>pom</type>
>     </dependency>
>
>     <dependency>
>       <groupId>com.adobe.flash.framework</groupId>
>       <artifactId>playerglobal</artifactId>
>       <version>${flash.version}</version>
>       <type>swc</type>
>     </dependency>
>   </dependencies>
>
>   <!-- Repository and PluginRepository section for Flex SDK and compiler
> dependencies.
>        Note: instead of including this in every POM, you can append it to
> your user (~/.m2/settings.xml) or global
>                 (M2_HOME/conf/settings.xml) settings file.
>     -->
>   <repositories>
>      <repository>
>         <id>flex-mojos-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </repository>
>   </repositories>
>
>   <pluginRepositories>
>      <pluginRepository>
>         <id>flex-mojos-plugin-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </pluginRepository>
>   </pluginRepositories>
> </project>
>
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Mittwoch, 15. Oktober 2014 11:34
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>    I am trying to build same sample application with apache flex 4.13 but
> its failing with below error. As you mention in the 3rd step of using
> com.adobe.flex.
> Is it correct to use org.apache.flex instead of com.apache.flex? it will be
> great if you can share you pom file for apache flex for this sample.
>
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 15.504s
> [INFO] Finished at: Wed Oct 15 14:43:17 IST 2014
> [INFO] Final Memory: 14M/495M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project MyProject: Could not resolve
> dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The
>  following artifacts could not be resolved:
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:digest:jar:4.12.1.
> 20140427, org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apache.flex.compi
> ler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4.12.1.20140427,
> com.adobe.flash.framework:playerglobal:swc:14: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
> flex-mojos-repository (http://repository.sonatype.org/content/groups/fl
> exgroup) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project MyProject: Could not resolve dependencies for pro
> ject com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The following artifacts could
> not be resolved: org.apache.flex.compiler:mxmlc:jar:4.12.1.20140
> 427, org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:
> asdoc:jar:4.12.1.20140427,
> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4.12.1.20140427, com.adobe
> .flash.framework:playerglobal:swc:14: Could not find artifact
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
> (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
>
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>         at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.project.DependencyResolutionException: Could
> not resolve dependencies for project com.gkp.app:MyProject:swf:1.0
> -SNAPSHOT: The following artifacts could not be resolved:
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:dige
> st:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apa
> che.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4.12.1.20140427,
> com.adobe.flash.framework:playerglobal:swc:
> 14: Could not find artifact
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
> (http://repository.sonatype.org/con
> tent/groups/flexgroup)
>         at
>
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
>         ... 22 more
> Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The
> following artifacts could not be resolved: org.apache.flex.comp
> iler:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427
> , org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom
> :4.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427
>  in flex-mojos-repository (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
>         at
>
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
>         ... 23 more
> Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
> following artifacts could not be resolved: org.apache.flex.compil
> er:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4
> .12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 i
> n flex-mojos-repository (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
>         at
>
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
>         at
>
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
>         ... 24 more
> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.2014042
> 7 in flex-mojos-repository (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
>         at
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
>         at
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
>         at
>
> org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
>
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 12:52 PM, Gautam Pandey <gk...@gmail.com>
> wrote:
>
> > Great I will try with apache flex also. pombkp.xml is for apache flex. I
> > will change as per the steps given in the email and try.
> >
> > Thanks & Regards
> > Gautam Pandey
> >
> >
> > On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de> wrote:
> >
> >> Ok ... you found it yourself ;-)
> >>
> >> ________________________________________
> >> Von: Gautam Pandey <gk...@gmail.com>
> >> Gesendet: Dienstag, 14. Oktober 2014 09:12
> >> An: users@flex.apache.org
> >> Betreff: Re: Need help on flexmojo
> >>
> >> it's working with extra / in the beginning like below.
> >>   [Embed(source="/asset/image/add.png")]
> >> private var imgclass : Class;
> >>
> >> Now I have to try with my real project which I am planning to upgrade
> from
> >> 4.0 to either 4.6 or apache flex 4.13.
> >>
> >> Thank you Chris
> >>
> >> Thanks & Regards
> >> Gautam Pandey
> >>
> >>
> >> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
> >> christofer.dutz@c-ware.de
> >> > wrote:
> >>
> >> > Forget my last mail ... just not used to google drive yet ;-)
> >> >
> >> >
> >> > ________________________________________
> >> > Von: Christofer Dutz <ch...@c-ware.de>
> >> > Gesendet: Dienstag, 14. Oktober 2014 08:57
> >> > An: users@flex.apache.org
> >> > Betreff: AW: Need help on flexmojo
> >> >
> >> > Hmm I seem to be unable to download anything. I can see the files, but
> >> not
> >> > their content (One archive would be better anyway ... this way I don't
> >> have
> >> > to manually create the directories and download each file seperately)
> >> >
> >> > Chris
> >> > ________________________________________
> >> > Von: Gautam Pandey <gk...@gmail.com>
> >> > Gesendet: Dienstag, 14. Oktober 2014 08:45
> >> > An: users@flex.apache.org
> >> > Betreff: Re: Need help on flexmojo
> >> >
> >> > Hi Chris,
> >> >      I have hosted it on my google drive. Please have a look. Thanks
> for
> >> > your precious time. Its just 23kb file. Let me know if you are facing
> >> any
> >> > problem.
> >> >
> >> >
> >> >
> >>
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
> >> >
> >> >
> >> > Thanks & Regards
> >> > Gautam Pandey
> >> >
> >> >
> >> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> >> > christofer.dutz@c-ware.de>
> >> > wrote:
> >> >
> >> > > If you are able to zip up the application and send it to my private
> >> > > address, I would try to solve the problem for you. Image embedding
> >> does
> >> > > work, you just have to configure your build right. Unfortunately I
> >> don't
> >> > > have to time to do this step by step on the list, so if you send me
> >> the
> >> > > example, I'll make it work.
> >> > >
> >> > > Chris
> >> > > ________________________________________
> >> > > Von: Gautam Pandey <gk...@gmail.com>
> >> > > Gesendet: Montag, 13. Oktober 2014 10:59
> >> > > An: users@flex.apache.org
> >> > > Betreff: Re: Need help on flexmojo
> >> > >
> >> > > Yes add.png is located in src/main/resources/. I read the Falcon
> email
> >> > > thread. I guess I have to wait for the fix.
> >> > >
> >> > > --
> >> > > *Thanks *
> >> > > *Gautam Pandey*
> >> > >
> >> > >
> >> > >
> >> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> >> > > christofer.dutz@c-ware.de>
> >> > > wrote:
> >> > >
> >> > > > I'd omit the sourcePaths config option as this is implicitly
> >> defined by
> >> > > > maven already. I never used that option.
> >> > > > Where are your image resources located? src/main/resources/add.png
> >> ? I
> >> > > > usually have resource paths absolute so in my case I usually write
> >> > > > "/add.png" instead of "add.png" but this is currently something we
> >> are
> >> > > > discussing on the dev-list as Falcon seems to have problems with
> >> this.
> >> > > >
> >> > > > Chris
> >> > > >
> >> > > > ________________________________________
> >> > > > Von: Gautam Pandey <gk...@gmail.com>
> >> > > > Gesendet: Montag, 13. Oktober 2014 08:34
> >> > > > An: users@flex.apache.org
> >> > > > Betreff: Re: Need help on flexmojo
> >> > > >
> >> > > > Thank you Chris,
> >> > > >     Still its not going through. Build is failing with same error.
> >> My
> >> > new
> >> > > > pom.xml is :
> >> > > >
> >> > > > <?xml version="1.0" encoding="UTF-8"?>
> >> > > >   <!--
> >> > > >
> >> > > >     Copyright 2008 Marvin Herman Froeder
> >> > > >     Licensed under the Apache License, Version 2.0 (the
> "License");
> >> > > >     you may not use this file except in compliance with the
> License.
> >> > > >     You may obtain a copy of the License at
> >> > > >
> >> > > >         http://www.apache.org/licenses/LICENSE-2.0
> >> > > >
> >> > > >     Unless required by applicable law or agreed to in writing,
> >> software
> >> > > >     distributed under the License is distributed on an "AS IS"
> >> BASIS,
> >> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
> or
> >> > > > implied.
> >> > > >     See the License for the specific language governing
> permissions
> >> and
> >> > > >     limitations under the License.
> >> > > >
> >> > > > -->
> >> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> >> > > > http://maven.apache.org/POM/4.0.0
> >> > > http://maven.apache.org/maven-v4_0_0.xsd
> >> > > > ">
> >> > > >   <modelVersion>4.0.0</modelVersion>
> >> > > >
> >> > > >   <groupId>com.gkp.app</groupId>
> >> > > >   <artifactId>MyProject</artifactId>
> >> > > >   <version>1.0-SNAPSHOT</version>
> >> > > >   <packaging>swf</packaging>
> >> > > >
> >> > > >   <name>MyProject Flex</name>
> >> > > >   <properties>
> >> > > > <flexmojos.version>6.0.1</flexmojos.version>
> >> > > > <flex.version>4.6.0.23201</flex.version>
> >> > > > <flash.version>11.1</flash.version>
> >> > > >   </properties>
> >> > > >
> >> > > >   <build>
> >> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
> >> > > >     <plugins>
> >> > > >       <plugin>
> >> > > >
> >> > > >         <groupId>net.flexmojos.oss</groupId>
> >> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
> >> > > >         <version>${flexmojos.version}</version>
> >> > > >         <extensions>true</extensions>
> >> > > > <configuration>
> >> > > > <sourceFile>Main.mxml</sourceFile>
> >> > > > <sourcePaths>
> >> > > > <path>src/main/flex</path>
> >> > > > <path>src/main/resources</path>
> >> > > > </sourcePaths>
> >> > > > <debug>true</debug>
> >> > > > </configuration>
> >> > > > <dependencies>
> >> > > > <dependency>
> >> > > > <groupId>net.flexmojos.oss</groupId>
> >> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> >> > > > <version>${flexmojos.version}</version>
> >> > > > </dependency>
> >> > > > <dependency>
> >> > > >   <groupId>com.adobe.flex</groupId>
> >> > > >   <artifactId>compiler</artifactId>
> >> > > >   <version>${flex.version}</version>
> >> > > >   <type>pom</type>
> >> > > > </dependency>
> >> > > >         </dependencies>
> >> > > >
> >> > > >       </plugin>
> >> > > >     </plugins>
> >> > > >   </build>
> >> > > >
> >> > > >   <dependencies>
> >> > > > <dependency>
> >> > > >       <groupId>com.adobe.flex.framework</groupId>
> >> > > >       <artifactId>flex-framework</artifactId>
> >> > > >       <version>${flex.version}</version>
> >> > > >       <type>pom</type>
> >> > > >     </dependency>
> >> > > >
> >> > > >     <dependency>
> >> > > >       <groupId>com.adobe.flash.framework</groupId>
> >> > > >       <artifactId>playerglobal</artifactId>
> >> > > >       <version>${flash.version}</version>
> >> > > >       <type>swc</type>
> >> > > >     </dependency>
> >> > > >   </dependencies>
> >> > > >
> >> > > >   <!-- Repository and PluginRepository section for Flex SDK and
> >> > compiler
> >> > > > dependencies.
> >> > > >        Note: instead of including this in every POM, you can
> append
> >> it
> >> > to
> >> > > > your user (~/.m2/settings.xml) or global
> >> > > >   (M2_HOME/conf/settings.xml) settings file.
> >> > > >     -->
> >> > > >   <repositories>
> >> > > >      <repository>
> >> > > >         <id>flex-mojos-repository</id>
> >> > > >         <url>
> >> http://repository.sonatype.org/content/groups/flexgroup
> >> > > </url>
> >> > > >      </repository>
> >> > > >   </repositories>
> >> > > >
> >> > > >   <pluginRepositories>
> >> > > >      <pluginRepository>
> >> > > >         <id>flex-mojos-plugin-repository</id>
> >> > > >         <url>
> >> http://repository.sonatype.org/content/groups/flexgroup
> >> > > </url>
> >> > > >      </pluginRepository>
> >> > > >   </pluginRepositories>
> >> > > > </project>
> >> > > >
> >> > > > Did I miss anything?
> >> > > >
> >> > > > --
> >> > > > *Thanks & Regards*
> >> > > > *Gautam Pandey*
> >> > > > *Tegile Systems*
> >> > > > *Ph : 9243014820*
> >> > > >
> >> > > >
> >> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> >> > > > christofer.dutz@c-ware.de
> >> > > > > wrote:
> >> > > >
> >> > > > > When embedding fonts and images I have found that you need to
> add
> >> the
> >> > > > > threadlocal toolkit dependency before the compiler artifact in
> the
> >> > > plugin
> >> > > > > configuration ... just search for "threadlocal toolkit".
> >> > > > >
> >> > > > > Chris
> >> > > > > ________________________________________
> >> > > > > Von: Gautam Pandey <gk...@gmail.com>
> >> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
> >> > > > > An: users@flex.apache.org
> >> > > > > Betreff: Re: Need help on flexmojo
> >> > > > >
> >> > > > > Hi Chris,
> >> > > > >    Now I am trying to build the sample application with 4.6 SDK.
> >> > > Without
> >> > > > > adding any image, build is going fine but when I add an image to
> >> the
> >> > > > > Main.mxml, it is throwing error* Unable to transcode add.png.*
> >> Error
> >> > > > stack
> >> > > > > is as follow:
> >> > > > >
> >> > > > > *Writing configuration dump to
> >> > > > >
> >> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> >> > unable
> >> > > to
> >> > > > > resolve 'add.png' for transcoding*
> >> > > > >
> >> > > > > *                        [Embed(source="add.png")]*
> >> > > > >
> >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> >> > Unable
> >> > > to
> >> > > > > transcode add.png.*
> >> > > > >
> >> > > > > *                        [Embed(source="add.png")]*
> >> > > > >
> >> > > > > *[INFO]
> >> > > > >
> >> > >
> >>
> ------------------------------------------------------------------------*
> >> > > > > *[INFO] BUILD FAILURE*
> >> > > > > *[INFO]
> >> > > > >
> >> > >
> >>
> ------------------------------------------------------------------------*
> >> > > > > *[INFO] Total time: 7.396s*
> >> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> >> > > > > *[INFO] Final Memory: 35M/495M*
> >> > > > > *[INFO]
> >> > > > >
> >> > >
> >>
> ------------------------------------------------------------------------*
> >> > > > > *[ERROR] Failed to execute goal
> >> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> >> > > > > (default-compile-swf) on project MyProject: Got 2*
> >> > > > > * errors building project, check logs -> [Help 1]*
> >> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed
> to
> >> > > > execute
> >> > > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> (*
> >> > > > > *default-compile-swf) on project MyProject: Got 2 errors
> building
> >> > > > project,
> >> > > > > check logs*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> >> > > > > *        at
> >> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> >> > > > > *        at
> >> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> >> > > > > *        at
> >> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> >> > > > > *        at
> >> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> >> > > > > *        at
> org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> >> > > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> > > Method)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> >> > > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> >> > > > > *        at
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> >> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
> >> > errors
> >> > > > > building project, check logs*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> >> > > > > *        at
> >> > > > >
> >> > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> >> > > > > *        ... 19 more*
> >> > > > > *[ERROR]*
> >> > > > > *[ERROR]*
> >> > > > > *[ERROR] For more information about the errors and possible
> >> > solutions,
> >> > > > > please read the following articles:*
> >> > > > > *[ERROR] [Help 1]
> >> > > > >
> >> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >> > > > > <
> >> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >> > > >*
> >> > > > > *D:\FlexMavenTest\MyProject>*
> >> > > > >
> >> > > > >
> >> > > > > Do you have any idea how this can be resolved ? I am able to run
> >> the
> >> > > > > application from my Flash Builder without any problem. It will
> be
> >> > great
> >> > > > > help if you can point out the issue.
> >> > > > >
> >> > > > > *My pom.xml  is :*
> >> > > > >
> >> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
> >> > > > > *  <!--*
> >> > > > >
> >> > > > > *    Copyright 2008 Marvin Herman Froeder*
> >> > > > > *    Licensed under the Apache License, Version 2.0 (the
> >> "License");*
> >> > > > > *    you may not use this file except in compliance with the
> >> > License.*
> >> > > > > *    You may obtain a copy of the License at*
> >> > > > >
> >> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
> >> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> >> > > > >
> >> > > > > *    Unless required by applicable law or agreed to in writing,
> >> > > software*
> >> > > > > *    distributed under the License is distributed on an "AS IS"
> >> > BASIS,*
> >> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
> express
> >> or
> >> > > > > implied.*
> >> > > > > *    See the License for the specific language governing
> >> permissions
> >> > > and*
> >> > > > > *    limitations under the License.*
> >> > > > >
> >> > > > > *-->*
> >> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> >> > > > > <http://maven.apache.org/POM/4.0.0>"
> >> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> >> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
> >> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> > > > > <http://maven.apache.org/POM/4.0.0>
> >> > > > > http://maven.apache.org/maven-v4_0_0.xsd
> >> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> >> > > > > *  <modelVersion>4.0.0</modelVersion>*
> >> > > > >
> >> > > > > *  <groupId>com.gkp.app</groupId>*
> >> > > > > *  <artifactId>MyProject</artifactId>*
> >> > > > > *  <version>1.0-SNAPSHOT</version>*
> >> > > > > *  <packaging>swf</packaging>*
> >> > > > >
> >> > > > > *  <name>MyProject Flex</name>*
> >> > > > > *  <properties>*
> >> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> >> > > > > * <flex.version>4.6.0.23201</flex.version>*
> >> > > > > * <flash.version>11.1</flash.version>*
> >> > > > > *  </properties>*
> >> > > > >
> >> > > > > *  <build>*
> >> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> >> > > > > *    <plugins>*
> >> > > > > *      <plugin>*
> >> > > > >
> >> > > > > *        <groupId>net.flexmojos.oss</groupId>*
> >> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> >> > > > > *        <version>${flexmojos.version}</version>*
> >> > > > > *        <extensions>true</extensions>*
> >> > > > > * <configuration>*
> >> > > > > * <sourceFile>Main.mxml</sourceFile>*
> >> > > > > * <sourcePaths>*
> >> > > > > * <path>src/main/flex</path>*
> >> > > > > * <path>src/main/resources</path>*
> >> > > > > * </sourcePaths> *
> >> > > > > * <debug>true</debug>*
> >> > > > > * </configuration>*
> >> > > > > * <dependencies>*
> >> > > > > * <dependency>*
> >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> >> > > > > * <version>${flexmojos.version}</version>*
> >> > > > > * </dependency>*
> >> > > > > * <dependency>*
> >> > > > > *  <groupId>com.adobe.flex</groupId>*
> >> > > > > *  <artifactId>compiler</artifactId>*
> >> > > > > *  <version>${flex.version}</version>*
> >> > > > > *  <type>pom</type>*
> >> > > > > * </dependency>*
> >> > > > > *        </dependencies>*
> >> > > > >
> >> > > > > *      </plugin>*
> >> > > > > *    </plugins>*
> >> > > > > *  </build>*
> >> > > > >
> >> > > > > *  <dependencies>*
> >> > > > > * <dependency>*
> >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> >> > > > > * <version>${flexmojos.version}</version>*
> >> > > > > * </dependency>*
> >> > > > > * <dependency>*
> >> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
> >> > > > > *      <artifactId>flex-framework</artifactId>*
> >> > > > > *      <version>${flex.version}</version>*
> >> > > > > *      <type>pom</type>*
> >> > > > > *    </dependency>*
> >> > > > >
> >> > > > > *    <dependency>*
> >> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
> >> > > > > *      <artifactId>playerglobal</artifactId>*
> >> > > > > *      <version>${flash.version}</version>*
> >> > > > > *      <type>swc</type>*
> >> > > > > *    </dependency>*
> >> > > > > *  </dependencies>*
> >> > > > >
> >> > > > > *  <!-- Repository and PluginRepository section for Flex SDK and
> >> > > compiler
> >> > > > > dependencies. *
> >> > > > > *       Note: instead of including this in every POM, you can
> >> append
> >> > it
> >> > > > to
> >> > > > > your user (~/.m2/settings.xml) or global *
> >> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
> >> > > > > *    -->*
> >> > > > > *  <repositories>*
> >> > > > > *     <repository>*
> >> > > > > *        <id>flex-mojos-repository</id>*
> >> > > > > *        <url>
> >> > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> ></url>*
> >> > > > > *     </repository>*
> >> > > > > *  </repositories>*
> >> > > > >
> >> > > > > *  <pluginRepositories>*
> >> > > > > *     <pluginRepository>*
> >> > > > > *        <id>flex-mojos-plugin-repository</id>*
> >> > > > > *        <url>
> >> > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> ></url>*
> >> > > > > *     </pluginRepository>*
> >> > > > > *  </pluginRepositories>*
> >> > > > > *</project>*
> >> > > > >
> >> > > > > *And Main.mxml is :*
> >> > > > >
> >> > > > > <?xml version="1.0" encoding="utf-8"?>
> >> > > > > <!--
> >> > > > >
> >> > > > >      Copyright 2008 Marvin Herman Froeder
> >> > > > >      Licensed under the Apache License, Version 2.0 (the
> >> "License");
> >> > > you
> >> > > > > may not use this file except in compliance with the License. You
> >> may
> >> > > > obtain
> >> > > > > a copy of the License at
> >> > > > >      http://www.apache.org/licenses/LICENSE-2.0
> >> > > > >      Unless required by applicable law or agreed to in writing,
> >> > > software
> >> > > > > distributed under the License is distributed on an "AS IS"
> BASIS,
> >> > > WITHOUT
> >> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> >> See
> >> > > the
> >> > > > > License for the specific language governing permissions and
> >> > limitations
> >> > > > > under the License.
> >> > > > >
> >> > > > >
> >> > > > > -->
> >> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> >> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> >> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> >> > > > > minHeight="600">
> >> > > > > <fx:Script>
> >> > > > > <![CDATA[
> >> > > > > [Bindable]
> >> > > > > [Embed(source="add.png")]
> >> > > > > private var imgclass : Class;
> >> > > > > ]]>
> >> > > > > </fx:Script>
> >> > > > > <fx:Declarations>
> >> > > > > <!-- Place non-visual elements (e.g., services, value objects)
> >> here
> >> > -->
> >> > > > > </fx:Declarations>
> >> > > > > <s:Label text="Hello World." left="60" top="20"/>
> >> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
> >> > > > > </s:Application>
> >> > > > >
> >> > > > > --
> >> > > > > *Thanks & Regards*
> >> > > > > *Gautam Pandey*
> >> > > > > *Tegile Systems*
> >> > > > > *Ph : 9243014820*
> >> > > > >
> >> > > > >
> >> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <
> gkptechi@gmail.com
> >> >
> >> > > > wrote:
> >> > > > >
> >> > > > > > Thanks Chris,
> >> > > > > >      I have mavenized the 4.13 FDK following the steps given
> in
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> >> > > > > and
> >> > > > > > copied to my local repo. I never did maven things so I am not
> >> sure
> >> > > > about
> >> > > > > > the things. Currently learning maven concepts to point out the
> >> > exact
> >> > > > > cause.
> >> > > > > > Do I need to build flexmojos also and deploy to local repo?
> >> > > > > >
> >> > > > > > Thanks
> >> > > > > > Gautam
> >> > > > > >
> >> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> >> > > > > christofer.dutz@c-ware.de
> >> > > > > > > wrote:
> >> > > > > >
> >> > > > > >> Have you manually created the Maven artifacts for Flex 4.13?
> >> > > > > >> If not that's exactly what Maven is complaining about.
> >> Currently
> >> > > there
> >> > > > > is
> >> > > > > >> no Apache Flex FDK publicaly available in any public Maven
> >> > > repository.
> >> > > > > We
> >> > > > > >> are working on this, but I't still a mile to go.
> >> > > > > >>
> >> > > > > >> Chris
> >> > > > > >>
> >> > > > > >> ________________________________________
> >> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
> >> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> >> > > > > >> An: users@flex.apache.org
> >> > > > > >> Betreff: Re: Need help on flexmojo
> >> > > > > >>
> >> > > > > >> I guess I am missing repositories and pluginRepositories like
> >> > > things.
> >> > > > I
> >> > > > > >> don't know what should be added in this section. Can someone
> >> > confirm
> >> > > > > below
> >> > > > > >> default things will work or not?
> >> > > > > >>
> >> > > > > >>  <!-- Repository and PluginRepository section for Flex SDK
> and
> >> > > > compiler
> >> > > > > >> dependencies.
> >> > > > > >>        Note: instead of including this in every POM, you can
> >> > append
> >> > > it
> >> > > > > to
> >> > > > > >> your user (~/.m2/settings.xml) or global
> >> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
> >> > > > > >>     -->
> >> > > > > >>   <repositories>
> >> > > > > >>      <repository>
> >> > > > > >>         <id>flex-mojos-repository</id>
> >> > > > > >>         <url>
> >> > > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > >> </url>
> >> > > > > >>      </repository>
> >> > > > > >>   </repositories>
> >> > > > > >>
> >> > > > > >>   <pluginRepositories>
> >> > > > > >>      <pluginRepository>
> >> > > > > >>         <id>flex-mojos-plugin-repository</id>
> >> > > > > >>         <url>
> >> > > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > >> </url>
> >> > > > > >>      </pluginRepository>
> >> > > > > >>   </pluginRepositories>
> >> > > > > >>
> >> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
> >> tc@extravision.com
> >> > >
> >> > > > > wrote:
> >> > > > > >>
> >> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> >> > > > > >> >
> >> > > > > >> >> Fai
> >> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> >> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in the
> >> local
> >> > > > > >> repository,
> >> > > > > >> >> resolution wi
> >> > > > > >> >> ll not be reattempted until the update interval of central
> >> has
> >> > > > > elapsed
> >> > > > > >> or
> >> > > > > >> >> updates are forced
> >> > > > > >> >>
> >> > > > > >> > I don't know much Maven, but did you try forcing this
> update
> >> ?
> >> > > > > >> >
> >> > > > > >> > Tom
> >> > > > > >> >
> >> > > > > >>
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> --
> >> > > > > >> *Thanks & Regards*
> >> > > > > >> *Gautam Pandey*
> >> > > > > >> *Tegile Systems*
> >> > > > > >> *Ph : 9243014820*
> >> > > > > >>
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
One thing I wanted to share with the Flex User about the compiled size of
swf with different SDK and flexmojos. This is real application which is
being used by our customer. It monolithic single swf file, no module is
used.

1. flexmojos 3.7 and FDK 4.0 ->  size of swf 7526 KB
2. flexmojos 4.2-beta and FDK 4.6 ->  size of swf 8225 KB
3. flexmojos 6.0.1 and FDK 4.6 ->  size of swf 4200KB

Currently we are on flexmojos 3.7 and FDK 4.0 and in process to upgrade it
to 4.6. Its definitely great job by flexmojos team, reducing size of swf to
40% to 50%.

Thanks & Regards
Gautam Pandey


On Wed, Oct 15, 2014 at 5:53 PM, Gautam Pandey <gk...@gmail.com> wrote:

> Thanks Chris,
>      I will try and let you know if I am facing any issue. Currently
> blocked because of GPL license of flexmojos and I can not use 6.0.1 and
> above versions for my project as my company is not allowing it. So I have
> tested with 4.2-beta and 4.6 and its working fine.
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Wed, Oct 15, 2014 at 5:18 PM, Christofer Dutz <
> christofer.dutz@c-ware.de> wrote:
>
>> Well here comes my working version:
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>>   <!--
>>
>>     Copyright 2008 Marvin Herman Froeder
>>     Licensed under the Apache License, Version 2.0 (the "License");
>>     you may not use this file except in compliance with the License.
>>     You may obtain a copy of the License at
>>
>>         http://www.apache.org/licenses/LICENSE-2.0
>>
>>     Unless required by applicable law or agreed to in writing, software
>>     distributed under the License is distributed on an "AS IS" BASIS,
>>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>>     See the License for the specific language governing permissions and
>>     limitations under the License.
>>
>> -->
>> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>> http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>>   <modelVersion>4.0.0</modelVersion>
>>
>>   <groupId>com.gkp.app</groupId>
>>   <artifactId>MyProject</artifactId>
>>   <version>1.0-SNAPSHOT</version>
>>   <packaging>swf</packaging>
>>
>>   <name>MyProject Flex</name>
>>
>>   <properties>
>>         <flexmojos.version>7.0.1</flexmojos.version>
>>         <flex.version>4.13.0.20140701</flex.version>
>>         <flash.version>11.1</flash.version>
>>   </properties>
>>
>>   <build>
>>     <sourceDirectory>src/main/flex</sourceDirectory>
>>     <plugins>
>>       <plugin>
>>
>>         <groupId>net.flexmojos.oss</groupId>
>>         <artifactId>flexmojos-maven-plugin</artifactId>
>>         <version>${flexmojos.version}</version>
>>         <extensions>true</extensions>
>>                 <configuration>
>>                         <sourceFile>Main.mxml</sourceFile>
>>                         <debug>true</debug>
>>                 </configuration>
>>                 <dependencies>
>>                         <dependency>
>>                                 <groupId>net.flexmojos.oss</groupId>
>>
>> <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
>>                                 <version>${flexmojos.version}</version>
>>                         </dependency>
>>                         <dependency>
>>                           <groupId>org.apache.flex</groupId>
>>                           <artifactId>compiler</artifactId>
>>                           <version>${flex.version}</version>
>>                           <type>pom</type>
>>                         </dependency>
>>         </dependencies>
>>
>>       </plugin>
>>     </plugins>
>>   </build>
>>
>>   <dependencies>
>>         <dependency>
>>       <groupId>org.apache.flex</groupId>
>>       <artifactId>framework</artifactId>
>>       <version>${flex.version}</version>
>>       <type>pom</type>
>>     </dependency>
>>
>>     <dependency>
>>       <groupId>com.adobe.flash.framework</groupId>
>>       <artifactId>playerglobal</artifactId>
>>       <version>${flash.version}</version>
>>       <type>swc</type>
>>     </dependency>
>>   </dependencies>
>>
>>   <!-- Repository and PluginRepository section for Flex SDK and compiler
>> dependencies.
>>        Note: instead of including this in every POM, you can append it to
>> your user (~/.m2/settings.xml) or global
>>                 (M2_HOME/conf/settings.xml) settings file.
>>     -->
>>   <repositories>
>>      <repository>
>>         <id>flex-mojos-repository</id>
>>         <url>http://repository.sonatype.org/content/groups/flexgroup
>> </url>
>>      </repository>
>>   </repositories>
>>
>>   <pluginRepositories>
>>      <pluginRepository>
>>         <id>flex-mojos-plugin-repository</id>
>>         <url>http://repository.sonatype.org/content/groups/flexgroup
>> </url>
>>      </pluginRepository>
>>   </pluginRepositories>
>> </project>
>>
>> ________________________________________
>> Von: Gautam Pandey <gk...@gmail.com>
>> Gesendet: Mittwoch, 15. Oktober 2014 11:34
>> An: users@flex.apache.org
>> Betreff: Re: Need help on flexmojo
>>
>> Hi Chris,
>>    I am trying to build same sample application with apache flex 4.13 but
>> its failing with below error. As you mention in the 3rd step of using
>> com.adobe.flex.
>> Is it correct to use org.apache.flex instead of com.apache.flex? it will
>> be
>> great if you can share you pom file for apache flex for this sample.
>>
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 15.504s
>> [INFO] Finished at: Wed Oct 15 14:43:17 IST 2014
>> [INFO] Final Memory: 14M/495M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal on project MyProject: Could not resolve
>> dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The
>>  following artifacts could not be resolved:
>> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
>> org.apache.flex.compiler:digest:jar:4.12.1.
>> 20140427, org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
>> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apache.flex.compi
>> ler:swcdepends:jar:4.12.1.20140427,
>> org.apache.flex:compiler:pom:4.12.1.20140427,
>> com.adobe.flash.framework:playerglobal:swc:14: Could not
>> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
>> flex-mojos-repository (http://repository.sonatype.org/content/groups/fl
>> exgroup) -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal on project MyProject: Could not resolve dependencies for pro
>> ject com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The following artifacts could
>> not be resolved: org.apache.flex.compiler:mxmlc:jar:4.12.1.20140
>> 427, org.apache.flex.compiler:digest:jar:4.12.1.20140427,
>> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
>> org.apache.flex.compiler:
>> asdoc:jar:4.12.1.20140427,
>> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
>> org.apache.flex:compiler:pom:4.12.1.20140427, com.adobe
>> .flash.framework:playerglobal:swc:14: Could not find artifact
>> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
>> flex-mojos-repository
>> (
>> http://repository.sonatype.org/content/groups/flexgroup)
>>         at
>>
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
>>         at
>>
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
>>
>>         at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
>>         at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
>>         at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>         at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>         at
>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>         at
>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>         at
>>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>         at
>>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>         at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>         at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>         at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> Caused by: org.apache.maven.project.DependencyResolutionException: Could
>> not resolve dependencies for project com.gkp.app:MyProject:swf:1.0
>> -SNAPSHOT: The following artifacts could not be resolved:
>> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
>> org.apache.flex.compiler:dige
>> st:jar:4.12.1.20140427,
>> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
>> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apa
>> che.flex.compiler:swcdepends:jar:4.12.1.20140427,
>> org.apache.flex:compiler:pom:4.12.1.20140427,
>> com.adobe.flash.framework:playerglobal:swc:
>> 14: Could not find artifact
>> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
>> flex-mojos-repository
>> (http://repository.sonatype.org/con
>> tent/groups/flexgroup)
>>         at
>>
>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
>>         at
>>
>> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
>>         ... 22 more
>> Caused by: org.eclipse.aether.resolution.DependencyResolutionException:
>> The
>> following artifacts could not be resolved: org.apache.flex.comp
>> iler:mxmlc:jar:4.12.1.20140427,
>> org.apache.flex.compiler:digest:jar:4.12.1.20140427,
>> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427
>> , org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
>> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
>> org.apache.flex:compiler:pom
>> :4.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
>> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427
>>  in flex-mojos-repository (
>> http://repository.sonatype.org/content/groups/flexgroup)
>>         at
>>
>> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
>>         at
>>
>> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
>>         ... 23 more
>> Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
>> following artifacts could not be resolved: org.apache.flex.compil
>> er:mxmlc:jar:4.12.1.20140427,
>> org.apache.flex.compiler:digest:jar:4.12.1.20140427,
>> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
>> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
>> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
>> org.apache.flex:compiler:pom:4
>> .12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
>> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 i
>> n flex-mojos-repository (
>> http://repository.sonatype.org/content/groups/flexgroup)
>>         at
>>
>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
>>         at
>>
>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
>>         at
>>
>> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
>>         ... 24 more
>> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could
>> not
>> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.2014042
>> 7 in flex-mojos-repository (
>> http://repository.sonatype.org/content/groups/flexgroup)
>>         at
>>
>> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
>>         at
>>
>> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
>>         at
>>
>> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
>>         at
>>
>> org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
>>         at
>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>         at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>         at java.lang.Thread.run(Thread.java:744)
>> [ERROR]
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>>
>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>>
>> Thanks & Regards
>> Gautam Pandey
>>
>>
>> On Tue, Oct 14, 2014 at 12:52 PM, Gautam Pandey <gk...@gmail.com>
>> wrote:
>>
>> > Great I will try with apache flex also. pombkp.xml is for apache flex. I
>> > will change as per the steps given in the email and try.
>> >
>> > Thanks & Regards
>> > Gautam Pandey
>> >
>> >
>> > On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <
>> > christofer.dutz@c-ware.de> wrote:
>> >
>> >> Ok ... you found it yourself ;-)
>> >>
>> >> ________________________________________
>> >> Von: Gautam Pandey <gk...@gmail.com>
>> >> Gesendet: Dienstag, 14. Oktober 2014 09:12
>> >> An: users@flex.apache.org
>> >> Betreff: Re: Need help on flexmojo
>> >>
>> >> it's working with extra / in the beginning like below.
>> >>   [Embed(source="/asset/image/add.png")]
>> >> private var imgclass : Class;
>> >>
>> >> Now I have to try with my real project which I am planning to upgrade
>> from
>> >> 4.0 to either 4.6 or apache flex 4.13.
>> >>
>> >> Thank you Chris
>> >>
>> >> Thanks & Regards
>> >> Gautam Pandey
>> >>
>> >>
>> >> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
>> >> christofer.dutz@c-ware.de
>> >> > wrote:
>> >>
>> >> > Forget my last mail ... just not used to google drive yet ;-)
>> >> >
>> >> >
>> >> > ________________________________________
>> >> > Von: Christofer Dutz <ch...@c-ware.de>
>> >> > Gesendet: Dienstag, 14. Oktober 2014 08:57
>> >> > An: users@flex.apache.org
>> >> > Betreff: AW: Need help on flexmojo
>> >> >
>> >> > Hmm I seem to be unable to download anything. I can see the files,
>> but
>> >> not
>> >> > their content (One archive would be better anyway ... this way I
>> don't
>> >> have
>> >> > to manually create the directories and download each file seperately)
>> >> >
>> >> > Chris
>> >> > ________________________________________
>> >> > Von: Gautam Pandey <gk...@gmail.com>
>> >> > Gesendet: Dienstag, 14. Oktober 2014 08:45
>> >> > An: users@flex.apache.org
>> >> > Betreff: Re: Need help on flexmojo
>> >> >
>> >> > Hi Chris,
>> >> >      I have hosted it on my google drive. Please have a look. Thanks
>> for
>> >> > your precious time. Its just 23kb file. Let me know if you are facing
>> >> any
>> >> > problem.
>> >> >
>> >> >
>> >> >
>> >>
>> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
>> >> >
>> >> >
>> >> > Thanks & Regards
>> >> > Gautam Pandey
>> >> >
>> >> >
>> >> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
>> >> > christofer.dutz@c-ware.de>
>> >> > wrote:
>> >> >
>> >> > > If you are able to zip up the application and send it to my private
>> >> > > address, I would try to solve the problem for you. Image embedding
>> >> does
>> >> > > work, you just have to configure your build right. Unfortunately I
>> >> don't
>> >> > > have to time to do this step by step on the list, so if you send me
>> >> the
>> >> > > example, I'll make it work.
>> >> > >
>> >> > > Chris
>> >> > > ________________________________________
>> >> > > Von: Gautam Pandey <gk...@gmail.com>
>> >> > > Gesendet: Montag, 13. Oktober 2014 10:59
>> >> > > An: users@flex.apache.org
>> >> > > Betreff: Re: Need help on flexmojo
>> >> > >
>> >> > > Yes add.png is located in src/main/resources/. I read the Falcon
>> email
>> >> > > thread. I guess I have to wait for the fix.
>> >> > >
>> >> > > --
>> >> > > *Thanks *
>> >> > > *Gautam Pandey*
>> >> > >
>> >> > >
>> >> > >
>> >> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
>> >> > > christofer.dutz@c-ware.de>
>> >> > > wrote:
>> >> > >
>> >> > > > I'd omit the sourcePaths config option as this is implicitly
>> >> defined by
>> >> > > > maven already. I never used that option.
>> >> > > > Where are your image resources located?
>> src/main/resources/add.png
>> >> ? I
>> >> > > > usually have resource paths absolute so in my case I usually
>> write
>> >> > > > "/add.png" instead of "add.png" but this is currently something
>> we
>> >> are
>> >> > > > discussing on the dev-list as Falcon seems to have problems with
>> >> this.
>> >> > > >
>> >> > > > Chris
>> >> > > >
>> >> > > > ________________________________________
>> >> > > > Von: Gautam Pandey <gk...@gmail.com>
>> >> > > > Gesendet: Montag, 13. Oktober 2014 08:34
>> >> > > > An: users@flex.apache.org
>> >> > > > Betreff: Re: Need help on flexmojo
>> >> > > >
>> >> > > > Thank you Chris,
>> >> > > >     Still its not going through. Build is failing with same
>> error.
>> >> My
>> >> > new
>> >> > > > pom.xml is :
>> >> > > >
>> >> > > > <?xml version="1.0" encoding="UTF-8"?>
>> >> > > >   <!--
>> >> > > >
>> >> > > >     Copyright 2008 Marvin Herman Froeder
>> >> > > >     Licensed under the Apache License, Version 2.0 (the
>> "License");
>> >> > > >     you may not use this file except in compliance with the
>> License.
>> >> > > >     You may obtain a copy of the License at
>> >> > > >
>> >> > > >         http://www.apache.org/licenses/LICENSE-2.0
>> >> > > >
>> >> > > >     Unless required by applicable law or agreed to in writing,
>> >> software
>> >> > > >     distributed under the License is distributed on an "AS IS"
>> >> BASIS,
>> >> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
>> or
>> >> > > > implied.
>> >> > > >     See the License for the specific language governing
>> permissions
>> >> and
>> >> > > >     limitations under the License.
>> >> > > >
>> >> > > > -->
>> >> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> >> > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>> >> > > > http://maven.apache.org/POM/4.0.0
>> >> > > http://maven.apache.org/maven-v4_0_0.xsd
>> >> > > > ">
>> >> > > >   <modelVersion>4.0.0</modelVersion>
>> >> > > >
>> >> > > >   <groupId>com.gkp.app</groupId>
>> >> > > >   <artifactId>MyProject</artifactId>
>> >> > > >   <version>1.0-SNAPSHOT</version>
>> >> > > >   <packaging>swf</packaging>
>> >> > > >
>> >> > > >   <name>MyProject Flex</name>
>> >> > > >   <properties>
>> >> > > > <flexmojos.version>6.0.1</flexmojos.version>
>> >> > > > <flex.version>4.6.0.23201</flex.version>
>> >> > > > <flash.version>11.1</flash.version>
>> >> > > >   </properties>
>> >> > > >
>> >> > > >   <build>
>> >> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
>> >> > > >     <plugins>
>> >> > > >       <plugin>
>> >> > > >
>> >> > > >         <groupId>net.flexmojos.oss</groupId>
>> >> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
>> >> > > >         <version>${flexmojos.version}</version>
>> >> > > >         <extensions>true</extensions>
>> >> > > > <configuration>
>> >> > > > <sourceFile>Main.mxml</sourceFile>
>> >> > > > <sourcePaths>
>> >> > > > <path>src/main/flex</path>
>> >> > > > <path>src/main/resources</path>
>> >> > > > </sourcePaths>
>> >> > > > <debug>true</debug>
>> >> > > > </configuration>
>> >> > > > <dependencies>
>> >> > > > <dependency>
>> >> > > > <groupId>net.flexmojos.oss</groupId>
>> >> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
>> >> > > > <version>${flexmojos.version}</version>
>> >> > > > </dependency>
>> >> > > > <dependency>
>> >> > > >   <groupId>com.adobe.flex</groupId>
>> >> > > >   <artifactId>compiler</artifactId>
>> >> > > >   <version>${flex.version}</version>
>> >> > > >   <type>pom</type>
>> >> > > > </dependency>
>> >> > > >         </dependencies>
>> >> > > >
>> >> > > >       </plugin>
>> >> > > >     </plugins>
>> >> > > >   </build>
>> >> > > >
>> >> > > >   <dependencies>
>> >> > > > <dependency>
>> >> > > >       <groupId>com.adobe.flex.framework</groupId>
>> >> > > >       <artifactId>flex-framework</artifactId>
>> >> > > >       <version>${flex.version}</version>
>> >> > > >       <type>pom</type>
>> >> > > >     </dependency>
>> >> > > >
>> >> > > >     <dependency>
>> >> > > >       <groupId>com.adobe.flash.framework</groupId>
>> >> > > >       <artifactId>playerglobal</artifactId>
>> >> > > >       <version>${flash.version}</version>
>> >> > > >       <type>swc</type>
>> >> > > >     </dependency>
>> >> > > >   </dependencies>
>> >> > > >
>> >> > > >   <!-- Repository and PluginRepository section for Flex SDK and
>> >> > compiler
>> >> > > > dependencies.
>> >> > > >        Note: instead of including this in every POM, you can
>> append
>> >> it
>> >> > to
>> >> > > > your user (~/.m2/settings.xml) or global
>> >> > > >   (M2_HOME/conf/settings.xml) settings file.
>> >> > > >     -->
>> >> > > >   <repositories>
>> >> > > >      <repository>
>> >> > > >         <id>flex-mojos-repository</id>
>> >> > > >         <url>
>> >> http://repository.sonatype.org/content/groups/flexgroup
>> >> > > </url>
>> >> > > >      </repository>
>> >> > > >   </repositories>
>> >> > > >
>> >> > > >   <pluginRepositories>
>> >> > > >      <pluginRepository>
>> >> > > >         <id>flex-mojos-plugin-repository</id>
>> >> > > >         <url>
>> >> http://repository.sonatype.org/content/groups/flexgroup
>> >> > > </url>
>> >> > > >      </pluginRepository>
>> >> > > >   </pluginRepositories>
>> >> > > > </project>
>> >> > > >
>> >> > > > Did I miss anything?
>> >> > > >
>> >> > > > --
>> >> > > > *Thanks & Regards*
>> >> > > > *Gautam Pandey*
>> >> > > > *Tegile Systems*
>> >> > > > *Ph : 9243014820*
>> >> > > >
>> >> > > >
>> >> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
>> >> > > > christofer.dutz@c-ware.de
>> >> > > > > wrote:
>> >> > > >
>> >> > > > > When embedding fonts and images I have found that you need to
>> add
>> >> the
>> >> > > > > threadlocal toolkit dependency before the compiler artifact in
>> the
>> >> > > plugin
>> >> > > > > configuration ... just search for "threadlocal toolkit".
>> >> > > > >
>> >> > > > > Chris
>> >> > > > > ________________________________________
>> >> > > > > Von: Gautam Pandey <gk...@gmail.com>
>> >> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
>> >> > > > > An: users@flex.apache.org
>> >> > > > > Betreff: Re: Need help on flexmojo
>> >> > > > >
>> >> > > > > Hi Chris,
>> >> > > > >    Now I am trying to build the sample application with 4.6
>> SDK.
>> >> > > Without
>> >> > > > > adding any image, build is going fine but when I add an image
>> to
>> >> the
>> >> > > > > Main.mxml, it is throwing error* Unable to transcode add.png.*
>> >> Error
>> >> > > > stack
>> >> > > > > is as follow:
>> >> > > > >
>> >> > > > > *Writing configuration dump to
>> >> > > > >
>> >> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
>> >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
>> >> > unable
>> >> > > to
>> >> > > > > resolve 'add.png' for transcoding*
>> >> > > > >
>> >> > > > > *                        [Embed(source="add.png")]*
>> >> > > > >
>> >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
>> >> > Unable
>> >> > > to
>> >> > > > > transcode add.png.*
>> >> > > > >
>> >> > > > > *                        [Embed(source="add.png")]*
>> >> > > > >
>> >> > > > > *[INFO]
>> >> > > > >
>> >> > >
>> >>
>> ------------------------------------------------------------------------*
>> >> > > > > *[INFO] BUILD FAILURE*
>> >> > > > > *[INFO]
>> >> > > > >
>> >> > >
>> >>
>> ------------------------------------------------------------------------*
>> >> > > > > *[INFO] Total time: 7.396s*
>> >> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
>> >> > > > > *[INFO] Final Memory: 35M/495M*
>> >> > > > > *[INFO]
>> >> > > > >
>> >> > >
>> >>
>> ------------------------------------------------------------------------*
>> >> > > > > *[ERROR] Failed to execute goal
>> >> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> >> > > > > (default-compile-swf) on project MyProject: Got 2*
>> >> > > > > * errors building project, check logs -> [Help 1]*
>> >> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException:
>> Failed to
>> >> > > > execute
>> >> > > > > goal
>> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
>> >> > > > > *default-compile-swf) on project MyProject: Got 2 errors
>> building
>> >> > > > project,
>> >> > > > > check logs*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
>> >> > > > > *        at
>> >> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
>> >> > > > > *        at
>> >> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
>> >> > > > > *        at
>> >> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
>> >> > > > > *        at
>> >> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
>> >> > > > > *        at
>> org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
>> >> > > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> >> > > Method)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
>> >> > > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
>> >> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
>> >> > errors
>> >> > > > > building project, check logs*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
>> >> > > > > *        at
>> >> > > > >
>> >> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
>> >> > > > > *        at
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
>> >> > > > > *        ... 19 more*
>> >> > > > > *[ERROR]*
>> >> > > > > *[ERROR]*
>> >> > > > > *[ERROR] For more information about the errors and possible
>> >> > solutions,
>> >> > > > > please read the following articles:*
>> >> > > > > *[ERROR] [Help 1]
>> >> > > > >
>> >> >
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> >> > > > > <
>> >> >
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> >> > > >*
>> >> > > > > *D:\FlexMavenTest\MyProject>*
>> >> > > > >
>> >> > > > >
>> >> > > > > Do you have any idea how this can be resolved ? I am able to
>> run
>> >> the
>> >> > > > > application from my Flash Builder without any problem. It will
>> be
>> >> > great
>> >> > > > > help if you can point out the issue.
>> >> > > > >
>> >> > > > > *My pom.xml  is :*
>> >> > > > >
>> >> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
>> >> > > > > *  <!--*
>> >> > > > >
>> >> > > > > *    Copyright 2008 Marvin Herman Froeder*
>> >> > > > > *    Licensed under the Apache License, Version 2.0 (the
>> >> "License");*
>> >> > > > > *    you may not use this file except in compliance with the
>> >> > License.*
>> >> > > > > *    You may obtain a copy of the License at*
>> >> > > > >
>> >> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
>> >> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
>> >> > > > >
>> >> > > > > *    Unless required by applicable law or agreed to in writing,
>> >> > > software*
>> >> > > > > *    distributed under the License is distributed on an "AS IS"
>> >> > BASIS,*
>> >> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
>> express
>> >> or
>> >> > > > > implied.*
>> >> > > > > *    See the License for the specific language governing
>> >> permissions
>> >> > > and*
>> >> > > > > *    limitations under the License.*
>> >> > > > >
>> >> > > > > *-->*
>> >> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
>> >> > > > > <http://maven.apache.org/POM/4.0.0>"
>> >> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>> >> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
>> >> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> >> > > > > <http://maven.apache.org/POM/4.0.0>
>> >> > > > > http://maven.apache.org/maven-v4_0_0.xsd
>> >> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
>> >> > > > > *  <modelVersion>4.0.0</modelVersion>*
>> >> > > > >
>> >> > > > > *  <groupId>com.gkp.app</groupId>*
>> >> > > > > *  <artifactId>MyProject</artifactId>*
>> >> > > > > *  <version>1.0-SNAPSHOT</version>*
>> >> > > > > *  <packaging>swf</packaging>*
>> >> > > > >
>> >> > > > > *  <name>MyProject Flex</name>*
>> >> > > > > *  <properties>*
>> >> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
>> >> > > > > * <flex.version>4.6.0.23201</flex.version>*
>> >> > > > > * <flash.version>11.1</flash.version>*
>> >> > > > > *  </properties>*
>> >> > > > >
>> >> > > > > *  <build>*
>> >> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
>> >> > > > > *    <plugins>*
>> >> > > > > *      <plugin>*
>> >> > > > >
>> >> > > > > *        <groupId>net.flexmojos.oss</groupId>*
>> >> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
>> >> > > > > *        <version>${flexmojos.version}</version>*
>> >> > > > > *        <extensions>true</extensions>*
>> >> > > > > * <configuration>*
>> >> > > > > * <sourceFile>Main.mxml</sourceFile>*
>> >> > > > > * <sourcePaths>*
>> >> > > > > * <path>src/main/flex</path>*
>> >> > > > > * <path>src/main/resources</path>*
>> >> > > > > * </sourcePaths> *
>> >> > > > > * <debug>true</debug>*
>> >> > > > > * </configuration>*
>> >> > > > > * <dependencies>*
>> >> > > > > * <dependency>*
>> >> > > > > * <groupId>net.flexmojos.oss</groupId>*
>> >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
>> >> > > > > * <version>${flexmojos.version}</version>*
>> >> > > > > * </dependency>*
>> >> > > > > * <dependency>*
>> >> > > > > *  <groupId>com.adobe.flex</groupId>*
>> >> > > > > *  <artifactId>compiler</artifactId>*
>> >> > > > > *  <version>${flex.version}</version>*
>> >> > > > > *  <type>pom</type>*
>> >> > > > > * </dependency>*
>> >> > > > > *        </dependencies>*
>> >> > > > >
>> >> > > > > *      </plugin>*
>> >> > > > > *    </plugins>*
>> >> > > > > *  </build>*
>> >> > > > >
>> >> > > > > *  <dependencies>*
>> >> > > > > * <dependency>*
>> >> > > > > * <groupId>net.flexmojos.oss</groupId>*
>> >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
>> >> > > > > * <version>${flexmojos.version}</version>*
>> >> > > > > * </dependency>*
>> >> > > > > * <dependency>*
>> >> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
>> >> > > > > *      <artifactId>flex-framework</artifactId>*
>> >> > > > > *      <version>${flex.version}</version>*
>> >> > > > > *      <type>pom</type>*
>> >> > > > > *    </dependency>*
>> >> > > > >
>> >> > > > > *    <dependency>*
>> >> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
>> >> > > > > *      <artifactId>playerglobal</artifactId>*
>> >> > > > > *      <version>${flash.version}</version>*
>> >> > > > > *      <type>swc</type>*
>> >> > > > > *    </dependency>*
>> >> > > > > *  </dependencies>*
>> >> > > > >
>> >> > > > > *  <!-- Repository and PluginRepository section for Flex SDK
>> and
>> >> > > compiler
>> >> > > > > dependencies. *
>> >> > > > > *       Note: instead of including this in every POM, you can
>> >> append
>> >> > it
>> >> > > > to
>> >> > > > > your user (~/.m2/settings.xml) or global *
>> >> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
>> >> > > > > *    -->*
>> >> > > > > *  <repositories>*
>> >> > > > > *     <repository>*
>> >> > > > > *        <id>flex-mojos-repository</id>*
>> >> > > > > *        <url>
>> >> > http://repository.sonatype.org/content/groups/flexgroup
>> >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
>> ></url>*
>> >> > > > > *     </repository>*
>> >> > > > > *  </repositories>*
>> >> > > > >
>> >> > > > > *  <pluginRepositories>*
>> >> > > > > *     <pluginRepository>*
>> >> > > > > *        <id>flex-mojos-plugin-repository</id>*
>> >> > > > > *        <url>
>> >> > http://repository.sonatype.org/content/groups/flexgroup
>> >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
>> ></url>*
>> >> > > > > *     </pluginRepository>*
>> >> > > > > *  </pluginRepositories>*
>> >> > > > > *</project>*
>> >> > > > >
>> >> > > > > *And Main.mxml is :*
>> >> > > > >
>> >> > > > > <?xml version="1.0" encoding="utf-8"?>
>> >> > > > > <!--
>> >> > > > >
>> >> > > > >      Copyright 2008 Marvin Herman Froeder
>> >> > > > >      Licensed under the Apache License, Version 2.0 (the
>> >> "License");
>> >> > > you
>> >> > > > > may not use this file except in compliance with the License.
>> You
>> >> may
>> >> > > > obtain
>> >> > > > > a copy of the License at
>> >> > > > >      http://www.apache.org/licenses/LICENSE-2.0
>> >> > > > >      Unless required by applicable law or agreed to in writing,
>> >> > > software
>> >> > > > > distributed under the License is distributed on an "AS IS"
>> BASIS,
>> >> > > WITHOUT
>> >> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> implied.
>> >> See
>> >> > > the
>> >> > > > > License for the specific language governing permissions and
>> >> > limitations
>> >> > > > > under the License.
>> >> > > > >
>> >> > > > >
>> >> > > > > -->
>> >> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>> >> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
>> >> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
>> >> > > > > minHeight="600">
>> >> > > > > <fx:Script>
>> >> > > > > <![CDATA[
>> >> > > > > [Bindable]
>> >> > > > > [Embed(source="add.png")]
>> >> > > > > private var imgclass : Class;
>> >> > > > > ]]>
>> >> > > > > </fx:Script>
>> >> > > > > <fx:Declarations>
>> >> > > > > <!-- Place non-visual elements (e.g., services, value objects)
>> >> here
>> >> > -->
>> >> > > > > </fx:Declarations>
>> >> > > > > <s:Label text="Hello World." left="60" top="20"/>
>> >> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
>> >> > > > > </s:Application>
>> >> > > > >
>> >> > > > > --
>> >> > > > > *Thanks & Regards*
>> >> > > > > *Gautam Pandey*
>> >> > > > > *Tegile Systems*
>> >> > > > > *Ph : 9243014820*
>> >> > > > >
>> >> > > > >
>> >> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <
>> gkptechi@gmail.com
>> >> >
>> >> > > > wrote:
>> >> > > > >
>> >> > > > > > Thanks Chris,
>> >> > > > > >      I have mavenized the 4.13 FDK following the steps given
>> in
>> >> > > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
>> >> > > > > and
>> >> > > > > > copied to my local repo. I never did maven things so I am not
>> >> sure
>> >> > > > about
>> >> > > > > > the things. Currently learning maven concepts to point out
>> the
>> >> > exact
>> >> > > > > cause.
>> >> > > > > > Do I need to build flexmojos also and deploy to local repo?
>> >> > > > > >
>> >> > > > > > Thanks
>> >> > > > > > Gautam
>> >> > > > > >
>> >> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
>> >> > > > > christofer.dutz@c-ware.de
>> >> > > > > > > wrote:
>> >> > > > > >
>> >> > > > > >> Have you manually created the Maven artifacts for Flex 4.13?
>> >> > > > > >> If not that's exactly what Maven is complaining about.
>> >> Currently
>> >> > > there
>> >> > > > > is
>> >> > > > > >> no Apache Flex FDK publicaly available in any public Maven
>> >> > > repository.
>> >> > > > > We
>> >> > > > > >> are working on this, but I't still a mile to go.
>> >> > > > > >>
>> >> > > > > >> Chris
>> >> > > > > >>
>> >> > > > > >> ________________________________________
>> >> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
>> >> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
>> >> > > > > >> An: users@flex.apache.org
>> >> > > > > >> Betreff: Re: Need help on flexmojo
>> >> > > > > >>
>> >> > > > > >> I guess I am missing repositories and pluginRepositories
>> like
>> >> > > things.
>> >> > > > I
>> >> > > > > >> don't know what should be added in this section. Can someone
>> >> > confirm
>> >> > > > > below
>> >> > > > > >> default things will work or not?
>> >> > > > > >>
>> >> > > > > >>  <!-- Repository and PluginRepository section for Flex SDK
>> and
>> >> > > > compiler
>> >> > > > > >> dependencies.
>> >> > > > > >>        Note: instead of including this in every POM, you can
>> >> > append
>> >> > > it
>> >> > > > > to
>> >> > > > > >> your user (~/.m2/settings.xml) or global
>> >> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
>> >> > > > > >>     -->
>> >> > > > > >>   <repositories>
>> >> > > > > >>      <repository>
>> >> > > > > >>         <id>flex-mojos-repository</id>
>> >> > > > > >>         <url>
>> >> > > http://repository.sonatype.org/content/groups/flexgroup
>> >> > > > > >> </url>
>> >> > > > > >>      </repository>
>> >> > > > > >>   </repositories>
>> >> > > > > >>
>> >> > > > > >>   <pluginRepositories>
>> >> > > > > >>      <pluginRepository>
>> >> > > > > >>         <id>flex-mojos-plugin-repository</id>
>> >> > > > > >>         <url>
>> >> > > http://repository.sonatype.org/content/groups/flexgroup
>> >> > > > > >> </url>
>> >> > > > > >>      </pluginRepository>
>> >> > > > > >>   </pluginRepositories>
>> >> > > > > >>
>> >> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
>> >> tc@extravision.com
>> >> > >
>> >> > > > > wrote:
>> >> > > > > >>
>> >> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
>> >> > > > > >> >
>> >> > > > > >> >> Fai
>> >> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
>> >> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in the
>> >> local
>> >> > > > > >> repository,
>> >> > > > > >> >> resolution wi
>> >> > > > > >> >> ll not be reattempted until the update interval of
>> central
>> >> has
>> >> > > > > elapsed
>> >> > > > > >> or
>> >> > > > > >> >> updates are forced
>> >> > > > > >> >>
>> >> > > > > >> > I don't know much Maven, but did you try forcing this
>> update
>> >> ?
>> >> > > > > >> >
>> >> > > > > >> > Tom
>> >> > > > > >> >
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >> --
>> >> > > > > >> *Thanks & Regards*
>> >> > > > > >> *Gautam Pandey*
>> >> > > > > >> *Tegile Systems*
>> >> > > > > >> *Ph : 9243014820*
>> >> > > > > >>
>> >> > > > > >
>> >> > > > > >
>> >> > > > >
>> >> > > >
>> >> > >
>> >> >
>> >>
>> >
>> >
>>
>
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Thanks Chris,
     I will try and let you know if I am facing any issue. Currently
blocked because of GPL license of flexmojos and I can not use 6.0.1 and
above versions for my project as my company is not allowing it. So I have
tested with 4.2-beta and 4.6 and its working fine.

Thanks & Regards
Gautam Pandey


On Wed, Oct 15, 2014 at 5:18 PM, Christofer Dutz <ch...@c-ware.de>
wrote:

> Well here comes my working version:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>   <!--
>
>     Copyright 2008 Marvin Herman Froeder
>     Licensed under the Apache License, Version 2.0 (the "License");
>     you may not use this file except in compliance with the License.
>     You may obtain a copy of the License at
>
>         http://www.apache.org/licenses/LICENSE-2.0
>
>     Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
>
> -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
> ">
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.gkp.app</groupId>
>   <artifactId>MyProject</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <packaging>swf</packaging>
>
>   <name>MyProject Flex</name>
>
>   <properties>
>         <flexmojos.version>7.0.1</flexmojos.version>
>         <flex.version>4.13.0.20140701</flex.version>
>         <flash.version>11.1</flash.version>
>   </properties>
>
>   <build>
>     <sourceDirectory>src/main/flex</sourceDirectory>
>     <plugins>
>       <plugin>
>
>         <groupId>net.flexmojos.oss</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <version>${flexmojos.version}</version>
>         <extensions>true</extensions>
>                 <configuration>
>                         <sourceFile>Main.mxml</sourceFile>
>                         <debug>true</debug>
>                 </configuration>
>                 <dependencies>
>                         <dependency>
>                                 <groupId>net.flexmojos.oss</groupId>
>
> <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
>                                 <version>${flexmojos.version}</version>
>                         </dependency>
>                         <dependency>
>                           <groupId>org.apache.flex</groupId>
>                           <artifactId>compiler</artifactId>
>                           <version>${flex.version}</version>
>                           <type>pom</type>
>                         </dependency>
>         </dependencies>
>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
>         <dependency>
>       <groupId>org.apache.flex</groupId>
>       <artifactId>framework</artifactId>
>       <version>${flex.version}</version>
>       <type>pom</type>
>     </dependency>
>
>     <dependency>
>       <groupId>com.adobe.flash.framework</groupId>
>       <artifactId>playerglobal</artifactId>
>       <version>${flash.version}</version>
>       <type>swc</type>
>     </dependency>
>   </dependencies>
>
>   <!-- Repository and PluginRepository section for Flex SDK and compiler
> dependencies.
>        Note: instead of including this in every POM, you can append it to
> your user (~/.m2/settings.xml) or global
>                 (M2_HOME/conf/settings.xml) settings file.
>     -->
>   <repositories>
>      <repository>
>         <id>flex-mojos-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </repository>
>   </repositories>
>
>   <pluginRepositories>
>      <pluginRepository>
>         <id>flex-mojos-plugin-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </pluginRepository>
>   </pluginRepositories>
> </project>
>
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Mittwoch, 15. Oktober 2014 11:34
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>    I am trying to build same sample application with apache flex 4.13 but
> its failing with below error. As you mention in the 3rd step of using
> com.adobe.flex.
> Is it correct to use org.apache.flex instead of com.apache.flex? it will be
> great if you can share you pom file for apache flex for this sample.
>
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 15.504s
> [INFO] Finished at: Wed Oct 15 14:43:17 IST 2014
> [INFO] Final Memory: 14M/495M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project MyProject: Could not resolve
> dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The
>  following artifacts could not be resolved:
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:digest:jar:4.12.1.
> 20140427, org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apache.flex.compi
> ler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4.12.1.20140427,
> com.adobe.flash.framework:playerglobal:swc:14: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
> flex-mojos-repository (http://repository.sonatype.org/content/groups/fl
> exgroup) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal on project MyProject: Could not resolve dependencies for pro
> ject com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The following artifacts could
> not be resolved: org.apache.flex.compiler:mxmlc:jar:4.12.1.20140
> 427, org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:
> asdoc:jar:4.12.1.20140427,
> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4.12.1.20140427, com.adobe
> .flash.framework:playerglobal:swc:14: Could not find artifact
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
> (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
>
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>         at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.project.DependencyResolutionException: Could
> not resolve dependencies for project com.gkp.app:MyProject:swf:1.0
> -SNAPSHOT: The following artifacts could not be resolved:
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:dige
> st:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apa
> che.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4.12.1.20140427,
> com.adobe.flash.framework:playerglobal:swc:
> 14: Could not find artifact
> org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
> (http://repository.sonatype.org/con
> tent/groups/flexgroup)
>         at
>
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
>         at
>
> org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
>         ... 22 more
> Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The
> following artifacts could not be resolved: org.apache.flex.comp
> iler:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427
> , org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom
> :4.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427
>  in flex-mojos-repository (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
>         at
>
> org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
>         ... 23 more
> Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
> following artifacts could not be resolved: org.apache.flex.compil
> er:mxmlc:jar:4.12.1.20140427,
> org.apache.flex.compiler:digest:jar:4.12.1.20140427,
> org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
> org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
> org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
> org.apache.flex:compiler:pom:4
> .12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 i
> n flex-mojos-repository (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
>         at
>
> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
>         at
>
> org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
>         ... 24 more
> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not
> find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.2014042
> 7 in flex-mojos-repository (
> http://repository.sonatype.org/content/groups/flexgroup)
>         at
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
>         at
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
>         at
>
> org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
>         at
>
> org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
>
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 12:52 PM, Gautam Pandey <gk...@gmail.com>
> wrote:
>
> > Great I will try with apache flex also. pombkp.xml is for apache flex. I
> > will change as per the steps given in the email and try.
> >
> > Thanks & Regards
> > Gautam Pandey
> >
> >
> > On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de> wrote:
> >
> >> Ok ... you found it yourself ;-)
> >>
> >> ________________________________________
> >> Von: Gautam Pandey <gk...@gmail.com>
> >> Gesendet: Dienstag, 14. Oktober 2014 09:12
> >> An: users@flex.apache.org
> >> Betreff: Re: Need help on flexmojo
> >>
> >> it's working with extra / in the beginning like below.
> >>   [Embed(source="/asset/image/add.png")]
> >> private var imgclass : Class;
> >>
> >> Now I have to try with my real project which I am planning to upgrade
> from
> >> 4.0 to either 4.6 or apache flex 4.13.
> >>
> >> Thank you Chris
> >>
> >> Thanks & Regards
> >> Gautam Pandey
> >>
> >>
> >> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
> >> christofer.dutz@c-ware.de
> >> > wrote:
> >>
> >> > Forget my last mail ... just not used to google drive yet ;-)
> >> >
> >> >
> >> > ________________________________________
> >> > Von: Christofer Dutz <ch...@c-ware.de>
> >> > Gesendet: Dienstag, 14. Oktober 2014 08:57
> >> > An: users@flex.apache.org
> >> > Betreff: AW: Need help on flexmojo
> >> >
> >> > Hmm I seem to be unable to download anything. I can see the files, but
> >> not
> >> > their content (One archive would be better anyway ... this way I don't
> >> have
> >> > to manually create the directories and download each file seperately)
> >> >
> >> > Chris
> >> > ________________________________________
> >> > Von: Gautam Pandey <gk...@gmail.com>
> >> > Gesendet: Dienstag, 14. Oktober 2014 08:45
> >> > An: users@flex.apache.org
> >> > Betreff: Re: Need help on flexmojo
> >> >
> >> > Hi Chris,
> >> >      I have hosted it on my google drive. Please have a look. Thanks
> for
> >> > your precious time. Its just 23kb file. Let me know if you are facing
> >> any
> >> > problem.
> >> >
> >> >
> >> >
> >>
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
> >> >
> >> >
> >> > Thanks & Regards
> >> > Gautam Pandey
> >> >
> >> >
> >> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> >> > christofer.dutz@c-ware.de>
> >> > wrote:
> >> >
> >> > > If you are able to zip up the application and send it to my private
> >> > > address, I would try to solve the problem for you. Image embedding
> >> does
> >> > > work, you just have to configure your build right. Unfortunately I
> >> don't
> >> > > have to time to do this step by step on the list, so if you send me
> >> the
> >> > > example, I'll make it work.
> >> > >
> >> > > Chris
> >> > > ________________________________________
> >> > > Von: Gautam Pandey <gk...@gmail.com>
> >> > > Gesendet: Montag, 13. Oktober 2014 10:59
> >> > > An: users@flex.apache.org
> >> > > Betreff: Re: Need help on flexmojo
> >> > >
> >> > > Yes add.png is located in src/main/resources/. I read the Falcon
> email
> >> > > thread. I guess I have to wait for the fix.
> >> > >
> >> > > --
> >> > > *Thanks *
> >> > > *Gautam Pandey*
> >> > >
> >> > >
> >> > >
> >> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> >> > > christofer.dutz@c-ware.de>
> >> > > wrote:
> >> > >
> >> > > > I'd omit the sourcePaths config option as this is implicitly
> >> defined by
> >> > > > maven already. I never used that option.
> >> > > > Where are your image resources located? src/main/resources/add.png
> >> ? I
> >> > > > usually have resource paths absolute so in my case I usually write
> >> > > > "/add.png" instead of "add.png" but this is currently something we
> >> are
> >> > > > discussing on the dev-list as Falcon seems to have problems with
> >> this.
> >> > > >
> >> > > > Chris
> >> > > >
> >> > > > ________________________________________
> >> > > > Von: Gautam Pandey <gk...@gmail.com>
> >> > > > Gesendet: Montag, 13. Oktober 2014 08:34
> >> > > > An: users@flex.apache.org
> >> > > > Betreff: Re: Need help on flexmojo
> >> > > >
> >> > > > Thank you Chris,
> >> > > >     Still its not going through. Build is failing with same error.
> >> My
> >> > new
> >> > > > pom.xml is :
> >> > > >
> >> > > > <?xml version="1.0" encoding="UTF-8"?>
> >> > > >   <!--
> >> > > >
> >> > > >     Copyright 2008 Marvin Herman Froeder
> >> > > >     Licensed under the Apache License, Version 2.0 (the
> "License");
> >> > > >     you may not use this file except in compliance with the
> License.
> >> > > >     You may obtain a copy of the License at
> >> > > >
> >> > > >         http://www.apache.org/licenses/LICENSE-2.0
> >> > > >
> >> > > >     Unless required by applicable law or agreed to in writing,
> >> software
> >> > > >     distributed under the License is distributed on an "AS IS"
> >> BASIS,
> >> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
> or
> >> > > > implied.
> >> > > >     See the License for the specific language governing
> permissions
> >> and
> >> > > >     limitations under the License.
> >> > > >
> >> > > > -->
> >> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> >> > > > http://maven.apache.org/POM/4.0.0
> >> > > http://maven.apache.org/maven-v4_0_0.xsd
> >> > > > ">
> >> > > >   <modelVersion>4.0.0</modelVersion>
> >> > > >
> >> > > >   <groupId>com.gkp.app</groupId>
> >> > > >   <artifactId>MyProject</artifactId>
> >> > > >   <version>1.0-SNAPSHOT</version>
> >> > > >   <packaging>swf</packaging>
> >> > > >
> >> > > >   <name>MyProject Flex</name>
> >> > > >   <properties>
> >> > > > <flexmojos.version>6.0.1</flexmojos.version>
> >> > > > <flex.version>4.6.0.23201</flex.version>
> >> > > > <flash.version>11.1</flash.version>
> >> > > >   </properties>
> >> > > >
> >> > > >   <build>
> >> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
> >> > > >     <plugins>
> >> > > >       <plugin>
> >> > > >
> >> > > >         <groupId>net.flexmojos.oss</groupId>
> >> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
> >> > > >         <version>${flexmojos.version}</version>
> >> > > >         <extensions>true</extensions>
> >> > > > <configuration>
> >> > > > <sourceFile>Main.mxml</sourceFile>
> >> > > > <sourcePaths>
> >> > > > <path>src/main/flex</path>
> >> > > > <path>src/main/resources</path>
> >> > > > </sourcePaths>
> >> > > > <debug>true</debug>
> >> > > > </configuration>
> >> > > > <dependencies>
> >> > > > <dependency>
> >> > > > <groupId>net.flexmojos.oss</groupId>
> >> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> >> > > > <version>${flexmojos.version}</version>
> >> > > > </dependency>
> >> > > > <dependency>
> >> > > >   <groupId>com.adobe.flex</groupId>
> >> > > >   <artifactId>compiler</artifactId>
> >> > > >   <version>${flex.version}</version>
> >> > > >   <type>pom</type>
> >> > > > </dependency>
> >> > > >         </dependencies>
> >> > > >
> >> > > >       </plugin>
> >> > > >     </plugins>
> >> > > >   </build>
> >> > > >
> >> > > >   <dependencies>
> >> > > > <dependency>
> >> > > >       <groupId>com.adobe.flex.framework</groupId>
> >> > > >       <artifactId>flex-framework</artifactId>
> >> > > >       <version>${flex.version}</version>
> >> > > >       <type>pom</type>
> >> > > >     </dependency>
> >> > > >
> >> > > >     <dependency>
> >> > > >       <groupId>com.adobe.flash.framework</groupId>
> >> > > >       <artifactId>playerglobal</artifactId>
> >> > > >       <version>${flash.version}</version>
> >> > > >       <type>swc</type>
> >> > > >     </dependency>
> >> > > >   </dependencies>
> >> > > >
> >> > > >   <!-- Repository and PluginRepository section for Flex SDK and
> >> > compiler
> >> > > > dependencies.
> >> > > >        Note: instead of including this in every POM, you can
> append
> >> it
> >> > to
> >> > > > your user (~/.m2/settings.xml) or global
> >> > > >   (M2_HOME/conf/settings.xml) settings file.
> >> > > >     -->
> >> > > >   <repositories>
> >> > > >      <repository>
> >> > > >         <id>flex-mojos-repository</id>
> >> > > >         <url>
> >> http://repository.sonatype.org/content/groups/flexgroup
> >> > > </url>
> >> > > >      </repository>
> >> > > >   </repositories>
> >> > > >
> >> > > >   <pluginRepositories>
> >> > > >      <pluginRepository>
> >> > > >         <id>flex-mojos-plugin-repository</id>
> >> > > >         <url>
> >> http://repository.sonatype.org/content/groups/flexgroup
> >> > > </url>
> >> > > >      </pluginRepository>
> >> > > >   </pluginRepositories>
> >> > > > </project>
> >> > > >
> >> > > > Did I miss anything?
> >> > > >
> >> > > > --
> >> > > > *Thanks & Regards*
> >> > > > *Gautam Pandey*
> >> > > > *Tegile Systems*
> >> > > > *Ph : 9243014820*
> >> > > >
> >> > > >
> >> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> >> > > > christofer.dutz@c-ware.de
> >> > > > > wrote:
> >> > > >
> >> > > > > When embedding fonts and images I have found that you need to
> add
> >> the
> >> > > > > threadlocal toolkit dependency before the compiler artifact in
> the
> >> > > plugin
> >> > > > > configuration ... just search for "threadlocal toolkit".
> >> > > > >
> >> > > > > Chris
> >> > > > > ________________________________________
> >> > > > > Von: Gautam Pandey <gk...@gmail.com>
> >> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
> >> > > > > An: users@flex.apache.org
> >> > > > > Betreff: Re: Need help on flexmojo
> >> > > > >
> >> > > > > Hi Chris,
> >> > > > >    Now I am trying to build the sample application with 4.6 SDK.
> >> > > Without
> >> > > > > adding any image, build is going fine but when I add an image to
> >> the
> >> > > > > Main.mxml, it is throwing error* Unable to transcode add.png.*
> >> Error
> >> > > > stack
> >> > > > > is as follow:
> >> > > > >
> >> > > > > *Writing configuration dump to
> >> > > > >
> >> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> >> > unable
> >> > > to
> >> > > > > resolve 'add.png' for transcoding*
> >> > > > >
> >> > > > > *                        [Embed(source="add.png")]*
> >> > > > >
> >> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> >> > Unable
> >> > > to
> >> > > > > transcode add.png.*
> >> > > > >
> >> > > > > *                        [Embed(source="add.png")]*
> >> > > > >
> >> > > > > *[INFO]
> >> > > > >
> >> > >
> >>
> ------------------------------------------------------------------------*
> >> > > > > *[INFO] BUILD FAILURE*
> >> > > > > *[INFO]
> >> > > > >
> >> > >
> >>
> ------------------------------------------------------------------------*
> >> > > > > *[INFO] Total time: 7.396s*
> >> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> >> > > > > *[INFO] Final Memory: 35M/495M*
> >> > > > > *[INFO]
> >> > > > >
> >> > >
> >>
> ------------------------------------------------------------------------*
> >> > > > > *[ERROR] Failed to execute goal
> >> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> >> > > > > (default-compile-swf) on project MyProject: Got 2*
> >> > > > > * errors building project, check logs -> [Help 1]*
> >> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed
> to
> >> > > > execute
> >> > > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> (*
> >> > > > > *default-compile-swf) on project MyProject: Got 2 errors
> building
> >> > > > project,
> >> > > > > check logs*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> >> > > > > *        at
> >> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> >> > > > > *        at
> >> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> >> > > > > *        at
> >> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> >> > > > > *        at
> >> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> >> > > > > *        at
> org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> >> > > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> > > Method)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> >> > > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> >> > > > > *        at
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> >> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
> >> > errors
> >> > > > > building project, check logs*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> >> > > > > *        at
> >> > > > >
> >> > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> >> > > > > *        at
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> >> > > > > *        ... 19 more*
> >> > > > > *[ERROR]*
> >> > > > > *[ERROR]*
> >> > > > > *[ERROR] For more information about the errors and possible
> >> > solutions,
> >> > > > > please read the following articles:*
> >> > > > > *[ERROR] [Help 1]
> >> > > > >
> >> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >> > > > > <
> >> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >> > > >*
> >> > > > > *D:\FlexMavenTest\MyProject>*
> >> > > > >
> >> > > > >
> >> > > > > Do you have any idea how this can be resolved ? I am able to run
> >> the
> >> > > > > application from my Flash Builder without any problem. It will
> be
> >> > great
> >> > > > > help if you can point out the issue.
> >> > > > >
> >> > > > > *My pom.xml  is :*
> >> > > > >
> >> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
> >> > > > > *  <!--*
> >> > > > >
> >> > > > > *    Copyright 2008 Marvin Herman Froeder*
> >> > > > > *    Licensed under the Apache License, Version 2.0 (the
> >> "License");*
> >> > > > > *    you may not use this file except in compliance with the
> >> > License.*
> >> > > > > *    You may obtain a copy of the License at*
> >> > > > >
> >> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
> >> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> >> > > > >
> >> > > > > *    Unless required by applicable law or agreed to in writing,
> >> > > software*
> >> > > > > *    distributed under the License is distributed on an "AS IS"
> >> > BASIS,*
> >> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
> express
> >> or
> >> > > > > implied.*
> >> > > > > *    See the License for the specific language governing
> >> permissions
> >> > > and*
> >> > > > > *    limitations under the License.*
> >> > > > >
> >> > > > > *-->*
> >> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> >> > > > > <http://maven.apache.org/POM/4.0.0>"
> >> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> >> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
> >> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> > > > > <http://maven.apache.org/POM/4.0.0>
> >> > > > > http://maven.apache.org/maven-v4_0_0.xsd
> >> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> >> > > > > *  <modelVersion>4.0.0</modelVersion>*
> >> > > > >
> >> > > > > *  <groupId>com.gkp.app</groupId>*
> >> > > > > *  <artifactId>MyProject</artifactId>*
> >> > > > > *  <version>1.0-SNAPSHOT</version>*
> >> > > > > *  <packaging>swf</packaging>*
> >> > > > >
> >> > > > > *  <name>MyProject Flex</name>*
> >> > > > > *  <properties>*
> >> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> >> > > > > * <flex.version>4.6.0.23201</flex.version>*
> >> > > > > * <flash.version>11.1</flash.version>*
> >> > > > > *  </properties>*
> >> > > > >
> >> > > > > *  <build>*
> >> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> >> > > > > *    <plugins>*
> >> > > > > *      <plugin>*
> >> > > > >
> >> > > > > *        <groupId>net.flexmojos.oss</groupId>*
> >> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> >> > > > > *        <version>${flexmojos.version}</version>*
> >> > > > > *        <extensions>true</extensions>*
> >> > > > > * <configuration>*
> >> > > > > * <sourceFile>Main.mxml</sourceFile>*
> >> > > > > * <sourcePaths>*
> >> > > > > * <path>src/main/flex</path>*
> >> > > > > * <path>src/main/resources</path>*
> >> > > > > * </sourcePaths> *
> >> > > > > * <debug>true</debug>*
> >> > > > > * </configuration>*
> >> > > > > * <dependencies>*
> >> > > > > * <dependency>*
> >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> >> > > > > * <version>${flexmojos.version}</version>*
> >> > > > > * </dependency>*
> >> > > > > * <dependency>*
> >> > > > > *  <groupId>com.adobe.flex</groupId>*
> >> > > > > *  <artifactId>compiler</artifactId>*
> >> > > > > *  <version>${flex.version}</version>*
> >> > > > > *  <type>pom</type>*
> >> > > > > * </dependency>*
> >> > > > > *        </dependencies>*
> >> > > > >
> >> > > > > *      </plugin>*
> >> > > > > *    </plugins>*
> >> > > > > *  </build>*
> >> > > > >
> >> > > > > *  <dependencies>*
> >> > > > > * <dependency>*
> >> > > > > * <groupId>net.flexmojos.oss</groupId>*
> >> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> >> > > > > * <version>${flexmojos.version}</version>*
> >> > > > > * </dependency>*
> >> > > > > * <dependency>*
> >> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
> >> > > > > *      <artifactId>flex-framework</artifactId>*
> >> > > > > *      <version>${flex.version}</version>*
> >> > > > > *      <type>pom</type>*
> >> > > > > *    </dependency>*
> >> > > > >
> >> > > > > *    <dependency>*
> >> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
> >> > > > > *      <artifactId>playerglobal</artifactId>*
> >> > > > > *      <version>${flash.version}</version>*
> >> > > > > *      <type>swc</type>*
> >> > > > > *    </dependency>*
> >> > > > > *  </dependencies>*
> >> > > > >
> >> > > > > *  <!-- Repository and PluginRepository section for Flex SDK and
> >> > > compiler
> >> > > > > dependencies. *
> >> > > > > *       Note: instead of including this in every POM, you can
> >> append
> >> > it
> >> > > > to
> >> > > > > your user (~/.m2/settings.xml) or global *
> >> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
> >> > > > > *    -->*
> >> > > > > *  <repositories>*
> >> > > > > *     <repository>*
> >> > > > > *        <id>flex-mojos-repository</id>*
> >> > > > > *        <url>
> >> > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> ></url>*
> >> > > > > *     </repository>*
> >> > > > > *  </repositories>*
> >> > > > >
> >> > > > > *  <pluginRepositories>*
> >> > > > > *     <pluginRepository>*
> >> > > > > *        <id>flex-mojos-plugin-repository</id>*
> >> > > > > *        <url>
> >> > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > <http://repository.sonatype.org/content/groups/flexgroup
> ></url>*
> >> > > > > *     </pluginRepository>*
> >> > > > > *  </pluginRepositories>*
> >> > > > > *</project>*
> >> > > > >
> >> > > > > *And Main.mxml is :*
> >> > > > >
> >> > > > > <?xml version="1.0" encoding="utf-8"?>
> >> > > > > <!--
> >> > > > >
> >> > > > >      Copyright 2008 Marvin Herman Froeder
> >> > > > >      Licensed under the Apache License, Version 2.0 (the
> >> "License");
> >> > > you
> >> > > > > may not use this file except in compliance with the License. You
> >> may
> >> > > > obtain
> >> > > > > a copy of the License at
> >> > > > >      http://www.apache.org/licenses/LICENSE-2.0
> >> > > > >      Unless required by applicable law or agreed to in writing,
> >> > > software
> >> > > > > distributed under the License is distributed on an "AS IS"
> BASIS,
> >> > > WITHOUT
> >> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> >> See
> >> > > the
> >> > > > > License for the specific language governing permissions and
> >> > limitations
> >> > > > > under the License.
> >> > > > >
> >> > > > >
> >> > > > > -->
> >> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> >> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> >> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> >> > > > > minHeight="600">
> >> > > > > <fx:Script>
> >> > > > > <![CDATA[
> >> > > > > [Bindable]
> >> > > > > [Embed(source="add.png")]
> >> > > > > private var imgclass : Class;
> >> > > > > ]]>
> >> > > > > </fx:Script>
> >> > > > > <fx:Declarations>
> >> > > > > <!-- Place non-visual elements (e.g., services, value objects)
> >> here
> >> > -->
> >> > > > > </fx:Declarations>
> >> > > > > <s:Label text="Hello World." left="60" top="20"/>
> >> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
> >> > > > > </s:Application>
> >> > > > >
> >> > > > > --
> >> > > > > *Thanks & Regards*
> >> > > > > *Gautam Pandey*
> >> > > > > *Tegile Systems*
> >> > > > > *Ph : 9243014820*
> >> > > > >
> >> > > > >
> >> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <
> gkptechi@gmail.com
> >> >
> >> > > > wrote:
> >> > > > >
> >> > > > > > Thanks Chris,
> >> > > > > >      I have mavenized the 4.13 FDK following the steps given
> in
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> >> > > > > and
> >> > > > > > copied to my local repo. I never did maven things so I am not
> >> sure
> >> > > > about
> >> > > > > > the things. Currently learning maven concepts to point out the
> >> > exact
> >> > > > > cause.
> >> > > > > > Do I need to build flexmojos also and deploy to local repo?
> >> > > > > >
> >> > > > > > Thanks
> >> > > > > > Gautam
> >> > > > > >
> >> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> >> > > > > christofer.dutz@c-ware.de
> >> > > > > > > wrote:
> >> > > > > >
> >> > > > > >> Have you manually created the Maven artifacts for Flex 4.13?
> >> > > > > >> If not that's exactly what Maven is complaining about.
> >> Currently
> >> > > there
> >> > > > > is
> >> > > > > >> no Apache Flex FDK publicaly available in any public Maven
> >> > > repository.
> >> > > > > We
> >> > > > > >> are working on this, but I't still a mile to go.
> >> > > > > >>
> >> > > > > >> Chris
> >> > > > > >>
> >> > > > > >> ________________________________________
> >> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
> >> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> >> > > > > >> An: users@flex.apache.org
> >> > > > > >> Betreff: Re: Need help on flexmojo
> >> > > > > >>
> >> > > > > >> I guess I am missing repositories and pluginRepositories like
> >> > > things.
> >> > > > I
> >> > > > > >> don't know what should be added in this section. Can someone
> >> > confirm
> >> > > > > below
> >> > > > > >> default things will work or not?
> >> > > > > >>
> >> > > > > >>  <!-- Repository and PluginRepository section for Flex SDK
> and
> >> > > > compiler
> >> > > > > >> dependencies.
> >> > > > > >>        Note: instead of including this in every POM, you can
> >> > append
> >> > > it
> >> > > > > to
> >> > > > > >> your user (~/.m2/settings.xml) or global
> >> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
> >> > > > > >>     -->
> >> > > > > >>   <repositories>
> >> > > > > >>      <repository>
> >> > > > > >>         <id>flex-mojos-repository</id>
> >> > > > > >>         <url>
> >> > > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > >> </url>
> >> > > > > >>      </repository>
> >> > > > > >>   </repositories>
> >> > > > > >>
> >> > > > > >>   <pluginRepositories>
> >> > > > > >>      <pluginRepository>
> >> > > > > >>         <id>flex-mojos-plugin-repository</id>
> >> > > > > >>         <url>
> >> > > http://repository.sonatype.org/content/groups/flexgroup
> >> > > > > >> </url>
> >> > > > > >>      </pluginRepository>
> >> > > > > >>   </pluginRepositories>
> >> > > > > >>
> >> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
> >> tc@extravision.com
> >> > >
> >> > > > > wrote:
> >> > > > > >>
> >> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> >> > > > > >> >
> >> > > > > >> >> Fai
> >> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> >> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in the
> >> local
> >> > > > > >> repository,
> >> > > > > >> >> resolution wi
> >> > > > > >> >> ll not be reattempted until the update interval of central
> >> has
> >> > > > > elapsed
> >> > > > > >> or
> >> > > > > >> >> updates are forced
> >> > > > > >> >>
> >> > > > > >> > I don't know much Maven, but did you try forcing this
> update
> >> ?
> >> > > > > >> >
> >> > > > > >> > Tom
> >> > > > > >> >
> >> > > > > >>
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> --
> >> > > > > >> *Thanks & Regards*
> >> > > > > >> *Gautam Pandey*
> >> > > > > >> *Tegile Systems*
> >> > > > > >> *Ph : 9243014820*
> >> > > > > >>
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
Well here comes my working version:


<?xml version="1.0" encoding="UTF-8"?>
  <!--

    Copyright 2008 Marvin Herman Froeder
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.gkp.app</groupId>
  <artifactId>MyProject</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>swf</packaging>

  <name>MyProject Flex</name>

  <properties>
	<flexmojos.version>7.0.1</flexmojos.version>
	<flex.version>4.13.0.20140701</flex.version>
	<flash.version>11.1</flash.version>
  </properties>

  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <plugins>
      <plugin>

        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flexmojos.version}</version>
        <extensions>true</extensions>
		<configuration>
			<sourceFile>Main.mxml</sourceFile>
			<debug>true</debug>
		</configuration>
		<dependencies>
			<dependency>
				<groupId>net.flexmojos.oss</groupId>
				<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
				<version>${flexmojos.version}</version>
			</dependency>
			<dependency>
			  <groupId>org.apache.flex</groupId>
			  <artifactId>compiler</artifactId>
			  <version>${flex.version}</version>
			  <type>pom</type>
			</dependency>
        </dependencies>

      </plugin>
    </plugins>
  </build>

  <dependencies>
	<dependency>
      <groupId>org.apache.flex</groupId>
      <artifactId>framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

    <dependency>
      <groupId>com.adobe.flash.framework</groupId>
      <artifactId>playerglobal</artifactId>
      <version>${flash.version}</version>
      <type>swc</type>
    </dependency>
  </dependencies>

  <!-- Repository and PluginRepository section for Flex SDK and compiler dependencies.
       Note: instead of including this in every POM, you can append it to your user (~/.m2/settings.xml) or global
  		(M2_HOME/conf/settings.xml) settings file.
    -->
  <repositories>
     <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </repository>
  </repositories>

  <pluginRepositories>
     <pluginRepository>
        <id>flex-mojos-plugin-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </pluginRepository>
  </pluginRepositories>
</project>

________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Mittwoch, 15. Oktober 2014 11:34
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

Hi Chris,
   I am trying to build same sample application with apache flex 4.13 but
its failing with below error. As you mention in the 3rd step of using
com.adobe.flex.
Is it correct to use org.apache.flex instead of com.apache.flex? it will be
great if you can share you pom file for apache flex for this sample.

[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 15.504s
[INFO] Finished at: Wed Oct 15 14:43:17 IST 2014
[INFO] Final Memory: 14M/495M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MyProject: Could not resolve
dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The
 following artifacts could not be resolved:
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:digest:jar:4.12.1.
20140427, org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apache.flex.compi
ler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4.12.1.20140427,
com.adobe.flash.framework:playerglobal:swc:14: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
flex-mojos-repository (http://repository.sonatype.org/content/groups/fl
exgroup) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project MyProject: Could not resolve dependencies for pro
ject com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The following artifacts could
not be resolved: org.apache.flex.compiler:mxmlc:jar:4.12.1.20140
427, org.apache.flex.compiler:digest:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:
asdoc:jar:4.12.1.20140427,
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4.12.1.20140427, com.adobe
.flash.framework:playerglobal:swc:14: Could not find artifact
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
(
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)

        at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could
not resolve dependencies for project com.gkp.app:MyProject:swf:1.0
-SNAPSHOT: The following artifacts could not be resolved:
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:dige
st:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apa
che.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4.12.1.20140427,
com.adobe.flash.framework:playerglobal:swc:
14: Could not find artifact
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
(http://repository.sonatype.org/con
tent/groups/flexgroup)
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 22 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The
following artifacts could not be resolved: org.apache.flex.comp
iler:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:digest:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427
, org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom
:4.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427
 in flex-mojos-repository (
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
        ... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
following artifacts could not be resolved: org.apache.flex.compil
er:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:digest:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4
.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 i
n flex-mojos-repository (
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
        ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.2014042
7 in flex-mojos-repository (
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
        at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 12:52 PM, Gautam Pandey <gk...@gmail.com> wrote:

> Great I will try with apache flex also. pombkp.xml is for apache flex. I
> will change as per the steps given in the email and try.
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <
> christofer.dutz@c-ware.de> wrote:
>
>> Ok ... you found it yourself ;-)
>>
>> ________________________________________
>> Von: Gautam Pandey <gk...@gmail.com>
>> Gesendet: Dienstag, 14. Oktober 2014 09:12
>> An: users@flex.apache.org
>> Betreff: Re: Need help on flexmojo
>>
>> it's working with extra / in the beginning like below.
>>   [Embed(source="/asset/image/add.png")]
>> private var imgclass : Class;
>>
>> Now I have to try with my real project which I am planning to upgrade from
>> 4.0 to either 4.6 or apache flex 4.13.
>>
>> Thank you Chris
>>
>> Thanks & Regards
>> Gautam Pandey
>>
>>
>> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
>> christofer.dutz@c-ware.de
>> > wrote:
>>
>> > Forget my last mail ... just not used to google drive yet ;-)
>> >
>> >
>> > ________________________________________
>> > Von: Christofer Dutz <ch...@c-ware.de>
>> > Gesendet: Dienstag, 14. Oktober 2014 08:57
>> > An: users@flex.apache.org
>> > Betreff: AW: Need help on flexmojo
>> >
>> > Hmm I seem to be unable to download anything. I can see the files, but
>> not
>> > their content (One archive would be better anyway ... this way I don't
>> have
>> > to manually create the directories and download each file seperately)
>> >
>> > Chris
>> > ________________________________________
>> > Von: Gautam Pandey <gk...@gmail.com>
>> > Gesendet: Dienstag, 14. Oktober 2014 08:45
>> > An: users@flex.apache.org
>> > Betreff: Re: Need help on flexmojo
>> >
>> > Hi Chris,
>> >      I have hosted it on my google drive. Please have a look. Thanks for
>> > your precious time. Its just 23kb file. Let me know if you are facing
>> any
>> > problem.
>> >
>> >
>> >
>> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
>> >
>> >
>> > Thanks & Regards
>> > Gautam Pandey
>> >
>> >
>> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
>> > christofer.dutz@c-ware.de>
>> > wrote:
>> >
>> > > If you are able to zip up the application and send it to my private
>> > > address, I would try to solve the problem for you. Image embedding
>> does
>> > > work, you just have to configure your build right. Unfortunately I
>> don't
>> > > have to time to do this step by step on the list, so if you send me
>> the
>> > > example, I'll make it work.
>> > >
>> > > Chris
>> > > ________________________________________
>> > > Von: Gautam Pandey <gk...@gmail.com>
>> > > Gesendet: Montag, 13. Oktober 2014 10:59
>> > > An: users@flex.apache.org
>> > > Betreff: Re: Need help on flexmojo
>> > >
>> > > Yes add.png is located in src/main/resources/. I read the Falcon email
>> > > thread. I guess I have to wait for the fix.
>> > >
>> > > --
>> > > *Thanks *
>> > > *Gautam Pandey*
>> > >
>> > >
>> > >
>> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
>> > > christofer.dutz@c-ware.de>
>> > > wrote:
>> > >
>> > > > I'd omit the sourcePaths config option as this is implicitly
>> defined by
>> > > > maven already. I never used that option.
>> > > > Where are your image resources located? src/main/resources/add.png
>> ? I
>> > > > usually have resource paths absolute so in my case I usually write
>> > > > "/add.png" instead of "add.png" but this is currently something we
>> are
>> > > > discussing on the dev-list as Falcon seems to have problems with
>> this.
>> > > >
>> > > > Chris
>> > > >
>> > > > ________________________________________
>> > > > Von: Gautam Pandey <gk...@gmail.com>
>> > > > Gesendet: Montag, 13. Oktober 2014 08:34
>> > > > An: users@flex.apache.org
>> > > > Betreff: Re: Need help on flexmojo
>> > > >
>> > > > Thank you Chris,
>> > > >     Still its not going through. Build is failing with same error.
>> My
>> > new
>> > > > pom.xml is :
>> > > >
>> > > > <?xml version="1.0" encoding="UTF-8"?>
>> > > >   <!--
>> > > >
>> > > >     Copyright 2008 Marvin Herman Froeder
>> > > >     Licensed under the Apache License, Version 2.0 (the "License");
>> > > >     you may not use this file except in compliance with the License.
>> > > >     You may obtain a copy of the License at
>> > > >
>> > > >         http://www.apache.org/licenses/LICENSE-2.0
>> > > >
>> > > >     Unless required by applicable law or agreed to in writing,
>> software
>> > > >     distributed under the License is distributed on an "AS IS"
>> BASIS,
>> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> > > > implied.
>> > > >     See the License for the specific language governing permissions
>> and
>> > > >     limitations under the License.
>> > > >
>> > > > -->
>> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>> > > > http://maven.apache.org/POM/4.0.0
>> > > http://maven.apache.org/maven-v4_0_0.xsd
>> > > > ">
>> > > >   <modelVersion>4.0.0</modelVersion>
>> > > >
>> > > >   <groupId>com.gkp.app</groupId>
>> > > >   <artifactId>MyProject</artifactId>
>> > > >   <version>1.0-SNAPSHOT</version>
>> > > >   <packaging>swf</packaging>
>> > > >
>> > > >   <name>MyProject Flex</name>
>> > > >   <properties>
>> > > > <flexmojos.version>6.0.1</flexmojos.version>
>> > > > <flex.version>4.6.0.23201</flex.version>
>> > > > <flash.version>11.1</flash.version>
>> > > >   </properties>
>> > > >
>> > > >   <build>
>> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
>> > > >     <plugins>
>> > > >       <plugin>
>> > > >
>> > > >         <groupId>net.flexmojos.oss</groupId>
>> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
>> > > >         <version>${flexmojos.version}</version>
>> > > >         <extensions>true</extensions>
>> > > > <configuration>
>> > > > <sourceFile>Main.mxml</sourceFile>
>> > > > <sourcePaths>
>> > > > <path>src/main/flex</path>
>> > > > <path>src/main/resources</path>
>> > > > </sourcePaths>
>> > > > <debug>true</debug>
>> > > > </configuration>
>> > > > <dependencies>
>> > > > <dependency>
>> > > > <groupId>net.flexmojos.oss</groupId>
>> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
>> > > > <version>${flexmojos.version}</version>
>> > > > </dependency>
>> > > > <dependency>
>> > > >   <groupId>com.adobe.flex</groupId>
>> > > >   <artifactId>compiler</artifactId>
>> > > >   <version>${flex.version}</version>
>> > > >   <type>pom</type>
>> > > > </dependency>
>> > > >         </dependencies>
>> > > >
>> > > >       </plugin>
>> > > >     </plugins>
>> > > >   </build>
>> > > >
>> > > >   <dependencies>
>> > > > <dependency>
>> > > >       <groupId>com.adobe.flex.framework</groupId>
>> > > >       <artifactId>flex-framework</artifactId>
>> > > >       <version>${flex.version}</version>
>> > > >       <type>pom</type>
>> > > >     </dependency>
>> > > >
>> > > >     <dependency>
>> > > >       <groupId>com.adobe.flash.framework</groupId>
>> > > >       <artifactId>playerglobal</artifactId>
>> > > >       <version>${flash.version}</version>
>> > > >       <type>swc</type>
>> > > >     </dependency>
>> > > >   </dependencies>
>> > > >
>> > > >   <!-- Repository and PluginRepository section for Flex SDK and
>> > compiler
>> > > > dependencies.
>> > > >        Note: instead of including this in every POM, you can append
>> it
>> > to
>> > > > your user (~/.m2/settings.xml) or global
>> > > >   (M2_HOME/conf/settings.xml) settings file.
>> > > >     -->
>> > > >   <repositories>
>> > > >      <repository>
>> > > >         <id>flex-mojos-repository</id>
>> > > >         <url>
>> http://repository.sonatype.org/content/groups/flexgroup
>> > > </url>
>> > > >      </repository>
>> > > >   </repositories>
>> > > >
>> > > >   <pluginRepositories>
>> > > >      <pluginRepository>
>> > > >         <id>flex-mojos-plugin-repository</id>
>> > > >         <url>
>> http://repository.sonatype.org/content/groups/flexgroup
>> > > </url>
>> > > >      </pluginRepository>
>> > > >   </pluginRepositories>
>> > > > </project>
>> > > >
>> > > > Did I miss anything?
>> > > >
>> > > > --
>> > > > *Thanks & Regards*
>> > > > *Gautam Pandey*
>> > > > *Tegile Systems*
>> > > > *Ph : 9243014820*
>> > > >
>> > > >
>> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
>> > > > christofer.dutz@c-ware.de
>> > > > > wrote:
>> > > >
>> > > > > When embedding fonts and images I have found that you need to add
>> the
>> > > > > threadlocal toolkit dependency before the compiler artifact in the
>> > > plugin
>> > > > > configuration ... just search for "threadlocal toolkit".
>> > > > >
>> > > > > Chris
>> > > > > ________________________________________
>> > > > > Von: Gautam Pandey <gk...@gmail.com>
>> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
>> > > > > An: users@flex.apache.org
>> > > > > Betreff: Re: Need help on flexmojo
>> > > > >
>> > > > > Hi Chris,
>> > > > >    Now I am trying to build the sample application with 4.6 SDK.
>> > > Without
>> > > > > adding any image, build is going fine but when I add an image to
>> the
>> > > > > Main.mxml, it is throwing error* Unable to transcode add.png.*
>> Error
>> > > > stack
>> > > > > is as follow:
>> > > > >
>> > > > > *Writing configuration dump to
>> > > > >
>> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
>> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
>> > unable
>> > > to
>> > > > > resolve 'add.png' for transcoding*
>> > > > >
>> > > > > *                        [Embed(source="add.png")]*
>> > > > >
>> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
>> > Unable
>> > > to
>> > > > > transcode add.png.*
>> > > > >
>> > > > > *                        [Embed(source="add.png")]*
>> > > > >
>> > > > > *[INFO]
>> > > > >
>> > >
>> ------------------------------------------------------------------------*
>> > > > > *[INFO] BUILD FAILURE*
>> > > > > *[INFO]
>> > > > >
>> > >
>> ------------------------------------------------------------------------*
>> > > > > *[INFO] Total time: 7.396s*
>> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
>> > > > > *[INFO] Final Memory: 35M/495M*
>> > > > > *[INFO]
>> > > > >
>> > >
>> ------------------------------------------------------------------------*
>> > > > > *[ERROR] Failed to execute goal
>> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> > > > > (default-compile-swf) on project MyProject: Got 2*
>> > > > > * errors building project, check logs -> [Help 1]*
>> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> > > > execute
>> > > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
>> > > > > *default-compile-swf) on project MyProject: Got 2 errors building
>> > > > project,
>> > > > > check logs*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
>> > > > > *        at
>> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
>> > > > > *        at
>> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
>> > > > > *        at
>> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
>> > > > > *        at
>> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
>> > > > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
>> > > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> > > Method)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
>> > > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
>> > > > > *        at
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
>> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
>> > errors
>> > > > > building project, check logs*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
>> > > > > *        at
>> > > > >
>> > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
>> > > > > *        ... 19 more*
>> > > > > *[ERROR]*
>> > > > > *[ERROR]*
>> > > > > *[ERROR] For more information about the errors and possible
>> > solutions,
>> > > > > please read the following articles:*
>> > > > > *[ERROR] [Help 1]
>> > > > >
>> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> > > > > <
>> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> > > >*
>> > > > > *D:\FlexMavenTest\MyProject>*
>> > > > >
>> > > > >
>> > > > > Do you have any idea how this can be resolved ? I am able to run
>> the
>> > > > > application from my Flash Builder without any problem. It will be
>> > great
>> > > > > help if you can point out the issue.
>> > > > >
>> > > > > *My pom.xml  is :*
>> > > > >
>> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
>> > > > > *  <!--*
>> > > > >
>> > > > > *    Copyright 2008 Marvin Herman Froeder*
>> > > > > *    Licensed under the Apache License, Version 2.0 (the
>> "License");*
>> > > > > *    you may not use this file except in compliance with the
>> > License.*
>> > > > > *    You may obtain a copy of the License at*
>> > > > >
>> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
>> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
>> > > > >
>> > > > > *    Unless required by applicable law or agreed to in writing,
>> > > software*
>> > > > > *    distributed under the License is distributed on an "AS IS"
>> > BASIS,*
>> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
>> or
>> > > > > implied.*
>> > > > > *    See the License for the specific language governing
>> permissions
>> > > and*
>> > > > > *    limitations under the License.*
>> > > > >
>> > > > > *-->*
>> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
>> > > > > <http://maven.apache.org/POM/4.0.0>"
>> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
>> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> > > > > <http://maven.apache.org/POM/4.0.0>
>> > > > > http://maven.apache.org/maven-v4_0_0.xsd
>> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
>> > > > > *  <modelVersion>4.0.0</modelVersion>*
>> > > > >
>> > > > > *  <groupId>com.gkp.app</groupId>*
>> > > > > *  <artifactId>MyProject</artifactId>*
>> > > > > *  <version>1.0-SNAPSHOT</version>*
>> > > > > *  <packaging>swf</packaging>*
>> > > > >
>> > > > > *  <name>MyProject Flex</name>*
>> > > > > *  <properties>*
>> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
>> > > > > * <flex.version>4.6.0.23201</flex.version>*
>> > > > > * <flash.version>11.1</flash.version>*
>> > > > > *  </properties>*
>> > > > >
>> > > > > *  <build>*
>> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
>> > > > > *    <plugins>*
>> > > > > *      <plugin>*
>> > > > >
>> > > > > *        <groupId>net.flexmojos.oss</groupId>*
>> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
>> > > > > *        <version>${flexmojos.version}</version>*
>> > > > > *        <extensions>true</extensions>*
>> > > > > * <configuration>*
>> > > > > * <sourceFile>Main.mxml</sourceFile>*
>> > > > > * <sourcePaths>*
>> > > > > * <path>src/main/flex</path>*
>> > > > > * <path>src/main/resources</path>*
>> > > > > * </sourcePaths> *
>> > > > > * <debug>true</debug>*
>> > > > > * </configuration>*
>> > > > > * <dependencies>*
>> > > > > * <dependency>*
>> > > > > * <groupId>net.flexmojos.oss</groupId>*
>> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
>> > > > > * <version>${flexmojos.version}</version>*
>> > > > > * </dependency>*
>> > > > > * <dependency>*
>> > > > > *  <groupId>com.adobe.flex</groupId>*
>> > > > > *  <artifactId>compiler</artifactId>*
>> > > > > *  <version>${flex.version}</version>*
>> > > > > *  <type>pom</type>*
>> > > > > * </dependency>*
>> > > > > *        </dependencies>*
>> > > > >
>> > > > > *      </plugin>*
>> > > > > *    </plugins>*
>> > > > > *  </build>*
>> > > > >
>> > > > > *  <dependencies>*
>> > > > > * <dependency>*
>> > > > > * <groupId>net.flexmojos.oss</groupId>*
>> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
>> > > > > * <version>${flexmojos.version}</version>*
>> > > > > * </dependency>*
>> > > > > * <dependency>*
>> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
>> > > > > *      <artifactId>flex-framework</artifactId>*
>> > > > > *      <version>${flex.version}</version>*
>> > > > > *      <type>pom</type>*
>> > > > > *    </dependency>*
>> > > > >
>> > > > > *    <dependency>*
>> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
>> > > > > *      <artifactId>playerglobal</artifactId>*
>> > > > > *      <version>${flash.version}</version>*
>> > > > > *      <type>swc</type>*
>> > > > > *    </dependency>*
>> > > > > *  </dependencies>*
>> > > > >
>> > > > > *  <!-- Repository and PluginRepository section for Flex SDK and
>> > > compiler
>> > > > > dependencies. *
>> > > > > *       Note: instead of including this in every POM, you can
>> append
>> > it
>> > > > to
>> > > > > your user (~/.m2/settings.xml) or global *
>> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
>> > > > > *    -->*
>> > > > > *  <repositories>*
>> > > > > *     <repository>*
>> > > > > *        <id>flex-mojos-repository</id>*
>> > > > > *        <url>
>> > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
>> > > > > *     </repository>*
>> > > > > *  </repositories>*
>> > > > >
>> > > > > *  <pluginRepositories>*
>> > > > > *     <pluginRepository>*
>> > > > > *        <id>flex-mojos-plugin-repository</id>*
>> > > > > *        <url>
>> > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
>> > > > > *     </pluginRepository>*
>> > > > > *  </pluginRepositories>*
>> > > > > *</project>*
>> > > > >
>> > > > > *And Main.mxml is :*
>> > > > >
>> > > > > <?xml version="1.0" encoding="utf-8"?>
>> > > > > <!--
>> > > > >
>> > > > >      Copyright 2008 Marvin Herman Froeder
>> > > > >      Licensed under the Apache License, Version 2.0 (the
>> "License");
>> > > you
>> > > > > may not use this file except in compliance with the License. You
>> may
>> > > > obtain
>> > > > > a copy of the License at
>> > > > >      http://www.apache.org/licenses/LICENSE-2.0
>> > > > >      Unless required by applicable law or agreed to in writing,
>> > > software
>> > > > > distributed under the License is distributed on an "AS IS" BASIS,
>> > > WITHOUT
>> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>> See
>> > > the
>> > > > > License for the specific language governing permissions and
>> > limitations
>> > > > > under the License.
>> > > > >
>> > > > >
>> > > > > -->
>> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
>> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
>> > > > > minHeight="600">
>> > > > > <fx:Script>
>> > > > > <![CDATA[
>> > > > > [Bindable]
>> > > > > [Embed(source="add.png")]
>> > > > > private var imgclass : Class;
>> > > > > ]]>
>> > > > > </fx:Script>
>> > > > > <fx:Declarations>
>> > > > > <!-- Place non-visual elements (e.g., services, value objects)
>> here
>> > -->
>> > > > > </fx:Declarations>
>> > > > > <s:Label text="Hello World." left="60" top="20"/>
>> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
>> > > > > </s:Application>
>> > > > >
>> > > > > --
>> > > > > *Thanks & Regards*
>> > > > > *Gautam Pandey*
>> > > > > *Tegile Systems*
>> > > > > *Ph : 9243014820*
>> > > > >
>> > > > >
>> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gkptechi@gmail.com
>> >
>> > > > wrote:
>> > > > >
>> > > > > > Thanks Chris,
>> > > > > >      I have mavenized the 4.13 FDK following the steps given in
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
>> > > > > and
>> > > > > > copied to my local repo. I never did maven things so I am not
>> sure
>> > > > about
>> > > > > > the things. Currently learning maven concepts to point out the
>> > exact
>> > > > > cause.
>> > > > > > Do I need to build flexmojos also and deploy to local repo?
>> > > > > >
>> > > > > > Thanks
>> > > > > > Gautam
>> > > > > >
>> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
>> > > > > christofer.dutz@c-ware.de
>> > > > > > > wrote:
>> > > > > >
>> > > > > >> Have you manually created the Maven artifacts for Flex 4.13?
>> > > > > >> If not that's exactly what Maven is complaining about.
>> Currently
>> > > there
>> > > > > is
>> > > > > >> no Apache Flex FDK publicaly available in any public Maven
>> > > repository.
>> > > > > We
>> > > > > >> are working on this, but I't still a mile to go.
>> > > > > >>
>> > > > > >> Chris
>> > > > > >>
>> > > > > >> ________________________________________
>> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
>> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
>> > > > > >> An: users@flex.apache.org
>> > > > > >> Betreff: Re: Need help on flexmojo
>> > > > > >>
>> > > > > >> I guess I am missing repositories and pluginRepositories like
>> > > things.
>> > > > I
>> > > > > >> don't know what should be added in this section. Can someone
>> > confirm
>> > > > > below
>> > > > > >> default things will work or not?
>> > > > > >>
>> > > > > >>  <!-- Repository and PluginRepository section for Flex SDK and
>> > > > compiler
>> > > > > >> dependencies.
>> > > > > >>        Note: instead of including this in every POM, you can
>> > append
>> > > it
>> > > > > to
>> > > > > >> your user (~/.m2/settings.xml) or global
>> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
>> > > > > >>     -->
>> > > > > >>   <repositories>
>> > > > > >>      <repository>
>> > > > > >>         <id>flex-mojos-repository</id>
>> > > > > >>         <url>
>> > > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > >> </url>
>> > > > > >>      </repository>
>> > > > > >>   </repositories>
>> > > > > >>
>> > > > > >>   <pluginRepositories>
>> > > > > >>      <pluginRepository>
>> > > > > >>         <id>flex-mojos-plugin-repository</id>
>> > > > > >>         <url>
>> > > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > >> </url>
>> > > > > >>      </pluginRepository>
>> > > > > >>   </pluginRepositories>
>> > > > > >>
>> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
>> tc@extravision.com
>> > >
>> > > > > wrote:
>> > > > > >>
>> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
>> > > > > >> >
>> > > > > >> >> Fai
>> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
>> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in the
>> local
>> > > > > >> repository,
>> > > > > >> >> resolution wi
>> > > > > >> >> ll not be reattempted until the update interval of central
>> has
>> > > > > elapsed
>> > > > > >> or
>> > > > > >> >> updates are forced
>> > > > > >> >>
>> > > > > >> > I don't know much Maven, but did you try forcing this update
>> ?
>> > > > > >> >
>> > > > > >> > Tom
>> > > > > >> >
>> > > > > >>
>> > > > > >>
>> > > > > >>
>> > > > > >> --
>> > > > > >> *Thanks & Regards*
>> > > > > >> *Gautam Pandey*
>> > > > > >> *Tegile Systems*
>> > > > > >> *Ph : 9243014820*
>> > > > > >>
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Hi Chris,
   I am trying to build same sample application with apache flex 4.13 but
its failing with below error. As you mention in the 3rd step of using
com.adobe.flex.
Is it correct to use org.apache.flex instead of com.apache.flex? it will be
great if you can share you pom file for apache flex for this sample.

[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 15.504s
[INFO] Finished at: Wed Oct 15 14:43:17 IST 2014
[INFO] Final Memory: 14M/495M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MyProject: Could not resolve
dependencies for project com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The
 following artifacts could not be resolved:
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:digest:jar:4.12.1.
20140427, org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apache.flex.compi
ler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4.12.1.20140427,
com.adobe.flash.framework:playerglobal:swc:14: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in
flex-mojos-repository (http://repository.sonatype.org/content/groups/fl
exgroup) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project MyProject: Could not resolve dependencies for pro
ject com.gkp.app:MyProject:swf:1.0-SNAPSHOT: The following artifacts could
not be resolved: org.apache.flex.compiler:mxmlc:jar:4.12.1.20140
427, org.apache.flex.compiler:digest:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:
asdoc:jar:4.12.1.20140427,
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4.12.1.20140427, com.adobe
.flash.framework:playerglobal:swc:14: Could not find artifact
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
(
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)

        at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could
not resolve dependencies for project com.gkp.app:MyProject:swf:1.0
-SNAPSHOT: The following artifacts could not be resolved:
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:dige
st:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:asdoc:jar:4.12.1.20140427, org.apa
che.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4.12.1.20140427,
com.adobe.flash.framework:playerglobal:swc:
14: Could not find artifact
org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 in flex-mojos-repository
(http://repository.sonatype.org/con
tent/groups/flexgroup)
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:198)
        at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
        ... 22 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The
following artifacts could not be resolved: org.apache.flex.comp
iler:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:digest:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427
, org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom
:4.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427
 in flex-mojos-repository (
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
        at
org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:192)
        ... 23 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: The
following artifacts could not be resolved: org.apache.flex.compil
er:mxmlc:jar:4.12.1.20140427,
org.apache.flex.compiler:digest:jar:4.12.1.20140427,
org.apache.flex.compiler:optimizer:jar:4.12.1.20140427,
org.apache.flex.compiler:asdoc:jar:4.12.1.20140427,
org.apache.flex.compiler:swcdepends:jar:4.12.1.20140427,
org.apache.flex:compiler:pom:4
.12.1.20140427, com.adobe.flash.framework:playerglobal:swc:14: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.20140427 i
n flex-mojos-repository (
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
        ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not
find artifact org.apache.flex.compiler:mxmlc:jar:4.12.1.2014042
7 in flex-mojos-repository (
http://repository.sonatype.org/content/groups/flexgroup)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1012)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$6.wrap(WagonRepositoryConnector.java:1004)
        at
org.eclipse.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:725)
        at
org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 12:52 PM, Gautam Pandey <gk...@gmail.com> wrote:

> Great I will try with apache flex also. pombkp.xml is for apache flex. I
> will change as per the steps given in the email and try.
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <
> christofer.dutz@c-ware.de> wrote:
>
>> Ok ... you found it yourself ;-)
>>
>> ________________________________________
>> Von: Gautam Pandey <gk...@gmail.com>
>> Gesendet: Dienstag, 14. Oktober 2014 09:12
>> An: users@flex.apache.org
>> Betreff: Re: Need help on flexmojo
>>
>> it's working with extra / in the beginning like below.
>>   [Embed(source="/asset/image/add.png")]
>> private var imgclass : Class;
>>
>> Now I have to try with my real project which I am planning to upgrade from
>> 4.0 to either 4.6 or apache flex 4.13.
>>
>> Thank you Chris
>>
>> Thanks & Regards
>> Gautam Pandey
>>
>>
>> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
>> christofer.dutz@c-ware.de
>> > wrote:
>>
>> > Forget my last mail ... just not used to google drive yet ;-)
>> >
>> >
>> > ________________________________________
>> > Von: Christofer Dutz <ch...@c-ware.de>
>> > Gesendet: Dienstag, 14. Oktober 2014 08:57
>> > An: users@flex.apache.org
>> > Betreff: AW: Need help on flexmojo
>> >
>> > Hmm I seem to be unable to download anything. I can see the files, but
>> not
>> > their content (One archive would be better anyway ... this way I don't
>> have
>> > to manually create the directories and download each file seperately)
>> >
>> > Chris
>> > ________________________________________
>> > Von: Gautam Pandey <gk...@gmail.com>
>> > Gesendet: Dienstag, 14. Oktober 2014 08:45
>> > An: users@flex.apache.org
>> > Betreff: Re: Need help on flexmojo
>> >
>> > Hi Chris,
>> >      I have hosted it on my google drive. Please have a look. Thanks for
>> > your precious time. Its just 23kb file. Let me know if you are facing
>> any
>> > problem.
>> >
>> >
>> >
>> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
>> >
>> >
>> > Thanks & Regards
>> > Gautam Pandey
>> >
>> >
>> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
>> > christofer.dutz@c-ware.de>
>> > wrote:
>> >
>> > > If you are able to zip up the application and send it to my private
>> > > address, I would try to solve the problem for you. Image embedding
>> does
>> > > work, you just have to configure your build right. Unfortunately I
>> don't
>> > > have to time to do this step by step on the list, so if you send me
>> the
>> > > example, I'll make it work.
>> > >
>> > > Chris
>> > > ________________________________________
>> > > Von: Gautam Pandey <gk...@gmail.com>
>> > > Gesendet: Montag, 13. Oktober 2014 10:59
>> > > An: users@flex.apache.org
>> > > Betreff: Re: Need help on flexmojo
>> > >
>> > > Yes add.png is located in src/main/resources/. I read the Falcon email
>> > > thread. I guess I have to wait for the fix.
>> > >
>> > > --
>> > > *Thanks *
>> > > *Gautam Pandey*
>> > >
>> > >
>> > >
>> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
>> > > christofer.dutz@c-ware.de>
>> > > wrote:
>> > >
>> > > > I'd omit the sourcePaths config option as this is implicitly
>> defined by
>> > > > maven already. I never used that option.
>> > > > Where are your image resources located? src/main/resources/add.png
>> ? I
>> > > > usually have resource paths absolute so in my case I usually write
>> > > > "/add.png" instead of "add.png" but this is currently something we
>> are
>> > > > discussing on the dev-list as Falcon seems to have problems with
>> this.
>> > > >
>> > > > Chris
>> > > >
>> > > > ________________________________________
>> > > > Von: Gautam Pandey <gk...@gmail.com>
>> > > > Gesendet: Montag, 13. Oktober 2014 08:34
>> > > > An: users@flex.apache.org
>> > > > Betreff: Re: Need help on flexmojo
>> > > >
>> > > > Thank you Chris,
>> > > >     Still its not going through. Build is failing with same error.
>> My
>> > new
>> > > > pom.xml is :
>> > > >
>> > > > <?xml version="1.0" encoding="UTF-8"?>
>> > > >   <!--
>> > > >
>> > > >     Copyright 2008 Marvin Herman Froeder
>> > > >     Licensed under the Apache License, Version 2.0 (the "License");
>> > > >     you may not use this file except in compliance with the License.
>> > > >     You may obtain a copy of the License at
>> > > >
>> > > >         http://www.apache.org/licenses/LICENSE-2.0
>> > > >
>> > > >     Unless required by applicable law or agreed to in writing,
>> software
>> > > >     distributed under the License is distributed on an "AS IS"
>> BASIS,
>> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>> > > > implied.
>> > > >     See the License for the specific language governing permissions
>> and
>> > > >     limitations under the License.
>> > > >
>> > > > -->
>> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
>> > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
>> > > > http://maven.apache.org/POM/4.0.0
>> > > http://maven.apache.org/maven-v4_0_0.xsd
>> > > > ">
>> > > >   <modelVersion>4.0.0</modelVersion>
>> > > >
>> > > >   <groupId>com.gkp.app</groupId>
>> > > >   <artifactId>MyProject</artifactId>
>> > > >   <version>1.0-SNAPSHOT</version>
>> > > >   <packaging>swf</packaging>
>> > > >
>> > > >   <name>MyProject Flex</name>
>> > > >   <properties>
>> > > > <flexmojos.version>6.0.1</flexmojos.version>
>> > > > <flex.version>4.6.0.23201</flex.version>
>> > > > <flash.version>11.1</flash.version>
>> > > >   </properties>
>> > > >
>> > > >   <build>
>> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
>> > > >     <plugins>
>> > > >       <plugin>
>> > > >
>> > > >         <groupId>net.flexmojos.oss</groupId>
>> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
>> > > >         <version>${flexmojos.version}</version>
>> > > >         <extensions>true</extensions>
>> > > > <configuration>
>> > > > <sourceFile>Main.mxml</sourceFile>
>> > > > <sourcePaths>
>> > > > <path>src/main/flex</path>
>> > > > <path>src/main/resources</path>
>> > > > </sourcePaths>
>> > > > <debug>true</debug>
>> > > > </configuration>
>> > > > <dependencies>
>> > > > <dependency>
>> > > > <groupId>net.flexmojos.oss</groupId>
>> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
>> > > > <version>${flexmojos.version}</version>
>> > > > </dependency>
>> > > > <dependency>
>> > > >   <groupId>com.adobe.flex</groupId>
>> > > >   <artifactId>compiler</artifactId>
>> > > >   <version>${flex.version}</version>
>> > > >   <type>pom</type>
>> > > > </dependency>
>> > > >         </dependencies>
>> > > >
>> > > >       </plugin>
>> > > >     </plugins>
>> > > >   </build>
>> > > >
>> > > >   <dependencies>
>> > > > <dependency>
>> > > >       <groupId>com.adobe.flex.framework</groupId>
>> > > >       <artifactId>flex-framework</artifactId>
>> > > >       <version>${flex.version}</version>
>> > > >       <type>pom</type>
>> > > >     </dependency>
>> > > >
>> > > >     <dependency>
>> > > >       <groupId>com.adobe.flash.framework</groupId>
>> > > >       <artifactId>playerglobal</artifactId>
>> > > >       <version>${flash.version}</version>
>> > > >       <type>swc</type>
>> > > >     </dependency>
>> > > >   </dependencies>
>> > > >
>> > > >   <!-- Repository and PluginRepository section for Flex SDK and
>> > compiler
>> > > > dependencies.
>> > > >        Note: instead of including this in every POM, you can append
>> it
>> > to
>> > > > your user (~/.m2/settings.xml) or global
>> > > >   (M2_HOME/conf/settings.xml) settings file.
>> > > >     -->
>> > > >   <repositories>
>> > > >      <repository>
>> > > >         <id>flex-mojos-repository</id>
>> > > >         <url>
>> http://repository.sonatype.org/content/groups/flexgroup
>> > > </url>
>> > > >      </repository>
>> > > >   </repositories>
>> > > >
>> > > >   <pluginRepositories>
>> > > >      <pluginRepository>
>> > > >         <id>flex-mojos-plugin-repository</id>
>> > > >         <url>
>> http://repository.sonatype.org/content/groups/flexgroup
>> > > </url>
>> > > >      </pluginRepository>
>> > > >   </pluginRepositories>
>> > > > </project>
>> > > >
>> > > > Did I miss anything?
>> > > >
>> > > > --
>> > > > *Thanks & Regards*
>> > > > *Gautam Pandey*
>> > > > *Tegile Systems*
>> > > > *Ph : 9243014820*
>> > > >
>> > > >
>> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
>> > > > christofer.dutz@c-ware.de
>> > > > > wrote:
>> > > >
>> > > > > When embedding fonts and images I have found that you need to add
>> the
>> > > > > threadlocal toolkit dependency before the compiler artifact in the
>> > > plugin
>> > > > > configuration ... just search for "threadlocal toolkit".
>> > > > >
>> > > > > Chris
>> > > > > ________________________________________
>> > > > > Von: Gautam Pandey <gk...@gmail.com>
>> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
>> > > > > An: users@flex.apache.org
>> > > > > Betreff: Re: Need help on flexmojo
>> > > > >
>> > > > > Hi Chris,
>> > > > >    Now I am trying to build the sample application with 4.6 SDK.
>> > > Without
>> > > > > adding any image, build is going fine but when I add an image to
>> the
>> > > > > Main.mxml, it is throwing error* Unable to transcode add.png.*
>> Error
>> > > > stack
>> > > > > is as follow:
>> > > > >
>> > > > > *Writing configuration dump to
>> > > > >
>> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
>> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
>> > unable
>> > > to
>> > > > > resolve 'add.png' for transcoding*
>> > > > >
>> > > > > *                        [Embed(source="add.png")]*
>> > > > >
>> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
>> > Unable
>> > > to
>> > > > > transcode add.png.*
>> > > > >
>> > > > > *                        [Embed(source="add.png")]*
>> > > > >
>> > > > > *[INFO]
>> > > > >
>> > >
>> ------------------------------------------------------------------------*
>> > > > > *[INFO] BUILD FAILURE*
>> > > > > *[INFO]
>> > > > >
>> > >
>> ------------------------------------------------------------------------*
>> > > > > *[INFO] Total time: 7.396s*
>> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
>> > > > > *[INFO] Final Memory: 35M/495M*
>> > > > > *[INFO]
>> > > > >
>> > >
>> ------------------------------------------------------------------------*
>> > > > > *[ERROR] Failed to execute goal
>> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
>> > > > > (default-compile-swf) on project MyProject: Got 2*
>> > > > > * errors building project, check logs -> [Help 1]*
>> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>> > > > execute
>> > > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
>> > > > > *default-compile-swf) on project MyProject: Got 2 errors building
>> > > > project,
>> > > > > check logs*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
>> > > > > *        at
>> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
>> > > > > *        at
>> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
>> > > > > *        at
>> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
>> > > > > *        at
>> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
>> > > > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
>> > > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> > > Method)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
>> > > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
>> > > > > *        at
>> > > > >
>> > > >
>> > >
>> >
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
>> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
>> > errors
>> > > > > building project, check logs*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
>> > > > > *        at
>> > > > >
>> > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
>> > > > > *        at
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
>> > > > > *        ... 19 more*
>> > > > > *[ERROR]*
>> > > > > *[ERROR]*
>> > > > > *[ERROR] For more information about the errors and possible
>> > solutions,
>> > > > > please read the following articles:*
>> > > > > *[ERROR] [Help 1]
>> > > > >
>> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> > > > > <
>> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> > > >*
>> > > > > *D:\FlexMavenTest\MyProject>*
>> > > > >
>> > > > >
>> > > > > Do you have any idea how this can be resolved ? I am able to run
>> the
>> > > > > application from my Flash Builder without any problem. It will be
>> > great
>> > > > > help if you can point out the issue.
>> > > > >
>> > > > > *My pom.xml  is :*
>> > > > >
>> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
>> > > > > *  <!--*
>> > > > >
>> > > > > *    Copyright 2008 Marvin Herman Froeder*
>> > > > > *    Licensed under the Apache License, Version 2.0 (the
>> "License");*
>> > > > > *    you may not use this file except in compliance with the
>> > License.*
>> > > > > *    You may obtain a copy of the License at*
>> > > > >
>> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
>> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
>> > > > >
>> > > > > *    Unless required by applicable law or agreed to in writing,
>> > > software*
>> > > > > *    distributed under the License is distributed on an "AS IS"
>> > BASIS,*
>> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
>> or
>> > > > > implied.*
>> > > > > *    See the License for the specific language governing
>> permissions
>> > > and*
>> > > > > *    limitations under the License.*
>> > > > >
>> > > > > *-->*
>> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
>> > > > > <http://maven.apache.org/POM/4.0.0>"
>> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
>> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
>> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> > > > > <http://maven.apache.org/POM/4.0.0>
>> > > > > http://maven.apache.org/maven-v4_0_0.xsd
>> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
>> > > > > *  <modelVersion>4.0.0</modelVersion>*
>> > > > >
>> > > > > *  <groupId>com.gkp.app</groupId>*
>> > > > > *  <artifactId>MyProject</artifactId>*
>> > > > > *  <version>1.0-SNAPSHOT</version>*
>> > > > > *  <packaging>swf</packaging>*
>> > > > >
>> > > > > *  <name>MyProject Flex</name>*
>> > > > > *  <properties>*
>> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
>> > > > > * <flex.version>4.6.0.23201</flex.version>*
>> > > > > * <flash.version>11.1</flash.version>*
>> > > > > *  </properties>*
>> > > > >
>> > > > > *  <build>*
>> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
>> > > > > *    <plugins>*
>> > > > > *      <plugin>*
>> > > > >
>> > > > > *        <groupId>net.flexmojos.oss</groupId>*
>> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
>> > > > > *        <version>${flexmojos.version}</version>*
>> > > > > *        <extensions>true</extensions>*
>> > > > > * <configuration>*
>> > > > > * <sourceFile>Main.mxml</sourceFile>*
>> > > > > * <sourcePaths>*
>> > > > > * <path>src/main/flex</path>*
>> > > > > * <path>src/main/resources</path>*
>> > > > > * </sourcePaths> *
>> > > > > * <debug>true</debug>*
>> > > > > * </configuration>*
>> > > > > * <dependencies>*
>> > > > > * <dependency>*
>> > > > > * <groupId>net.flexmojos.oss</groupId>*
>> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
>> > > > > * <version>${flexmojos.version}</version>*
>> > > > > * </dependency>*
>> > > > > * <dependency>*
>> > > > > *  <groupId>com.adobe.flex</groupId>*
>> > > > > *  <artifactId>compiler</artifactId>*
>> > > > > *  <version>${flex.version}</version>*
>> > > > > *  <type>pom</type>*
>> > > > > * </dependency>*
>> > > > > *        </dependencies>*
>> > > > >
>> > > > > *      </plugin>*
>> > > > > *    </plugins>*
>> > > > > *  </build>*
>> > > > >
>> > > > > *  <dependencies>*
>> > > > > * <dependency>*
>> > > > > * <groupId>net.flexmojos.oss</groupId>*
>> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
>> > > > > * <version>${flexmojos.version}</version>*
>> > > > > * </dependency>*
>> > > > > * <dependency>*
>> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
>> > > > > *      <artifactId>flex-framework</artifactId>*
>> > > > > *      <version>${flex.version}</version>*
>> > > > > *      <type>pom</type>*
>> > > > > *    </dependency>*
>> > > > >
>> > > > > *    <dependency>*
>> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
>> > > > > *      <artifactId>playerglobal</artifactId>*
>> > > > > *      <version>${flash.version}</version>*
>> > > > > *      <type>swc</type>*
>> > > > > *    </dependency>*
>> > > > > *  </dependencies>*
>> > > > >
>> > > > > *  <!-- Repository and PluginRepository section for Flex SDK and
>> > > compiler
>> > > > > dependencies. *
>> > > > > *       Note: instead of including this in every POM, you can
>> append
>> > it
>> > > > to
>> > > > > your user (~/.m2/settings.xml) or global *
>> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
>> > > > > *    -->*
>> > > > > *  <repositories>*
>> > > > > *     <repository>*
>> > > > > *        <id>flex-mojos-repository</id>*
>> > > > > *        <url>
>> > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
>> > > > > *     </repository>*
>> > > > > *  </repositories>*
>> > > > >
>> > > > > *  <pluginRepositories>*
>> > > > > *     <pluginRepository>*
>> > > > > *        <id>flex-mojos-plugin-repository</id>*
>> > > > > *        <url>
>> > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
>> > > > > *     </pluginRepository>*
>> > > > > *  </pluginRepositories>*
>> > > > > *</project>*
>> > > > >
>> > > > > *And Main.mxml is :*
>> > > > >
>> > > > > <?xml version="1.0" encoding="utf-8"?>
>> > > > > <!--
>> > > > >
>> > > > >      Copyright 2008 Marvin Herman Froeder
>> > > > >      Licensed under the Apache License, Version 2.0 (the
>> "License");
>> > > you
>> > > > > may not use this file except in compliance with the License. You
>> may
>> > > > obtain
>> > > > > a copy of the License at
>> > > > >      http://www.apache.org/licenses/LICENSE-2.0
>> > > > >      Unless required by applicable law or agreed to in writing,
>> > > software
>> > > > > distributed under the License is distributed on an "AS IS" BASIS,
>> > > WITHOUT
>> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>> See
>> > > the
>> > > > > License for the specific language governing permissions and
>> > limitations
>> > > > > under the License.
>> > > > >
>> > > > >
>> > > > > -->
>> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
>> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
>> > > > > minHeight="600">
>> > > > > <fx:Script>
>> > > > > <![CDATA[
>> > > > > [Bindable]
>> > > > > [Embed(source="add.png")]
>> > > > > private var imgclass : Class;
>> > > > > ]]>
>> > > > > </fx:Script>
>> > > > > <fx:Declarations>
>> > > > > <!-- Place non-visual elements (e.g., services, value objects)
>> here
>> > -->
>> > > > > </fx:Declarations>
>> > > > > <s:Label text="Hello World." left="60" top="20"/>
>> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
>> > > > > </s:Application>
>> > > > >
>> > > > > --
>> > > > > *Thanks & Regards*
>> > > > > *Gautam Pandey*
>> > > > > *Tegile Systems*
>> > > > > *Ph : 9243014820*
>> > > > >
>> > > > >
>> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gkptechi@gmail.com
>> >
>> > > > wrote:
>> > > > >
>> > > > > > Thanks Chris,
>> > > > > >      I have mavenized the 4.13 FDK following the steps given in
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
>> > > > > and
>> > > > > > copied to my local repo. I never did maven things so I am not
>> sure
>> > > > about
>> > > > > > the things. Currently learning maven concepts to point out the
>> > exact
>> > > > > cause.
>> > > > > > Do I need to build flexmojos also and deploy to local repo?
>> > > > > >
>> > > > > > Thanks
>> > > > > > Gautam
>> > > > > >
>> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
>> > > > > christofer.dutz@c-ware.de
>> > > > > > > wrote:
>> > > > > >
>> > > > > >> Have you manually created the Maven artifacts for Flex 4.13?
>> > > > > >> If not that's exactly what Maven is complaining about.
>> Currently
>> > > there
>> > > > > is
>> > > > > >> no Apache Flex FDK publicaly available in any public Maven
>> > > repository.
>> > > > > We
>> > > > > >> are working on this, but I't still a mile to go.
>> > > > > >>
>> > > > > >> Chris
>> > > > > >>
>> > > > > >> ________________________________________
>> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
>> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
>> > > > > >> An: users@flex.apache.org
>> > > > > >> Betreff: Re: Need help on flexmojo
>> > > > > >>
>> > > > > >> I guess I am missing repositories and pluginRepositories like
>> > > things.
>> > > > I
>> > > > > >> don't know what should be added in this section. Can someone
>> > confirm
>> > > > > below
>> > > > > >> default things will work or not?
>> > > > > >>
>> > > > > >>  <!-- Repository and PluginRepository section for Flex SDK and
>> > > > compiler
>> > > > > >> dependencies.
>> > > > > >>        Note: instead of including this in every POM, you can
>> > append
>> > > it
>> > > > > to
>> > > > > >> your user (~/.m2/settings.xml) or global
>> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
>> > > > > >>     -->
>> > > > > >>   <repositories>
>> > > > > >>      <repository>
>> > > > > >>         <id>flex-mojos-repository</id>
>> > > > > >>         <url>
>> > > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > >> </url>
>> > > > > >>      </repository>
>> > > > > >>   </repositories>
>> > > > > >>
>> > > > > >>   <pluginRepositories>
>> > > > > >>      <pluginRepository>
>> > > > > >>         <id>flex-mojos-plugin-repository</id>
>> > > > > >>         <url>
>> > > http://repository.sonatype.org/content/groups/flexgroup
>> > > > > >> </url>
>> > > > > >>      </pluginRepository>
>> > > > > >>   </pluginRepositories>
>> > > > > >>
>> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
>> tc@extravision.com
>> > >
>> > > > > wrote:
>> > > > > >>
>> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
>> > > > > >> >
>> > > > > >> >> Fai
>> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
>> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in the
>> local
>> > > > > >> repository,
>> > > > > >> >> resolution wi
>> > > > > >> >> ll not be reattempted until the update interval of central
>> has
>> > > > > elapsed
>> > > > > >> or
>> > > > > >> >> updates are forced
>> > > > > >> >>
>> > > > > >> > I don't know much Maven, but did you try forcing this update
>> ?
>> > > > > >> >
>> > > > > >> > Tom
>> > > > > >> >
>> > > > > >>
>> > > > > >>
>> > > > > >>
>> > > > > >> --
>> > > > > >> *Thanks & Regards*
>> > > > > >> *Gautam Pandey*
>> > > > > >> *Tegile Systems*
>> > > > > >> *Ph : 9243014820*
>> > > > > >>
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Great I will try with apache flex also. pombkp.xml is for apache flex. I
will change as per the steps given in the email and try.

Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 12:49 PM, Christofer Dutz <christofer.dutz@c-ware.de
> wrote:

> Ok ... you found it yourself ;-)
>
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Dienstag, 14. Oktober 2014 09:12
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> it's working with extra / in the beginning like below.
>   [Embed(source="/asset/image/add.png")]
> private var imgclass : Class;
>
> Now I have to try with my real project which I am planning to upgrade from
> 4.0 to either 4.6 or apache flex 4.13.
>
> Thank you Chris
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <
> christofer.dutz@c-ware.de
> > wrote:
>
> > Forget my last mail ... just not used to google drive yet ;-)
> >
> >
> > ________________________________________
> > Von: Christofer Dutz <ch...@c-ware.de>
> > Gesendet: Dienstag, 14. Oktober 2014 08:57
> > An: users@flex.apache.org
> > Betreff: AW: Need help on flexmojo
> >
> > Hmm I seem to be unable to download anything. I can see the files, but
> not
> > their content (One archive would be better anyway ... this way I don't
> have
> > to manually create the directories and download each file seperately)
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Dienstag, 14. Oktober 2014 08:45
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Hi Chris,
> >      I have hosted it on my google drive. Please have a look. Thanks for
> > your precious time. Its just 23kb file. Let me know if you are facing any
> > problem.
> >
> >
> >
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
> >
> >
> > Thanks & Regards
> > Gautam Pandey
> >
> >
> > On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> > christofer.dutz@c-ware.de>
> > wrote:
> >
> > > If you are able to zip up the application and send it to my private
> > > address, I would try to solve the problem for you. Image embedding does
> > > work, you just have to configure your build right. Unfortunately I
> don't
> > > have to time to do this step by step on the list, so if you send me the
> > > example, I'll make it work.
> > >
> > > Chris
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 10:59
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Yes add.png is located in src/main/resources/. I read the Falcon email
> > > thread. I guess I have to wait for the fix.
> > >
> > > --
> > > *Thanks *
> > > *Gautam Pandey*
> > >
> > >
> > >
> > > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> > > christofer.dutz@c-ware.de>
> > > wrote:
> > >
> > > > I'd omit the sourcePaths config option as this is implicitly defined
> by
> > > > maven already. I never used that option.
> > > > Where are your image resources located? src/main/resources/add.png ?
> I
> > > > usually have resource paths absolute so in my case I usually write
> > > > "/add.png" instead of "add.png" but this is currently something we
> are
> > > > discussing on the dev-list as Falcon seems to have problems with
> this.
> > > >
> > > > Chris
> > > >
> > > > ________________________________________
> > > > Von: Gautam Pandey <gk...@gmail.com>
> > > > Gesendet: Montag, 13. Oktober 2014 08:34
> > > > An: users@flex.apache.org
> > > > Betreff: Re: Need help on flexmojo
> > > >
> > > > Thank you Chris,
> > > >     Still its not going through. Build is failing with same error. My
> > new
> > > > pom.xml is :
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >   <!--
> > > >
> > > >     Copyright 2008 Marvin Herman Froeder
> > > >     Licensed under the Apache License, Version 2.0 (the "License");
> > > >     you may not use this file except in compliance with the License.
> > > >     You may obtain a copy of the License at
> > > >
> > > >         http://www.apache.org/licenses/LICENSE-2.0
> > > >
> > > >     Unless required by applicable law or agreed to in writing,
> software
> > > >     distributed under the License is distributed on an "AS IS" BASIS,
> > > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > > implied.
> > > >     See the License for the specific language governing permissions
> and
> > > >     limitations under the License.
> > > >
> > > > -->
> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > > > http://maven.apache.org/POM/4.0.0
> > > http://maven.apache.org/maven-v4_0_0.xsd
> > > > ">
> > > >   <modelVersion>4.0.0</modelVersion>
> > > >
> > > >   <groupId>com.gkp.app</groupId>
> > > >   <artifactId>MyProject</artifactId>
> > > >   <version>1.0-SNAPSHOT</version>
> > > >   <packaging>swf</packaging>
> > > >
> > > >   <name>MyProject Flex</name>
> > > >   <properties>
> > > > <flexmojos.version>6.0.1</flexmojos.version>
> > > > <flex.version>4.6.0.23201</flex.version>
> > > > <flash.version>11.1</flash.version>
> > > >   </properties>
> > > >
> > > >   <build>
> > > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > > >     <plugins>
> > > >       <plugin>
> > > >
> > > >         <groupId>net.flexmojos.oss</groupId>
> > > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > > >         <version>${flexmojos.version}</version>
> > > >         <extensions>true</extensions>
> > > > <configuration>
> > > > <sourceFile>Main.mxml</sourceFile>
> > > > <sourcePaths>
> > > > <path>src/main/flex</path>
> > > > <path>src/main/resources</path>
> > > > </sourcePaths>
> > > > <debug>true</debug>
> > > > </configuration>
> > > > <dependencies>
> > > > <dependency>
> > > > <groupId>net.flexmojos.oss</groupId>
> > > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > > > <version>${flexmojos.version}</version>
> > > > </dependency>
> > > > <dependency>
> > > >   <groupId>com.adobe.flex</groupId>
> > > >   <artifactId>compiler</artifactId>
> > > >   <version>${flex.version}</version>
> > > >   <type>pom</type>
> > > > </dependency>
> > > >         </dependencies>
> > > >
> > > >       </plugin>
> > > >     </plugins>
> > > >   </build>
> > > >
> > > >   <dependencies>
> > > > <dependency>
> > > >       <groupId>com.adobe.flex.framework</groupId>
> > > >       <artifactId>flex-framework</artifactId>
> > > >       <version>${flex.version}</version>
> > > >       <type>pom</type>
> > > >     </dependency>
> > > >
> > > >     <dependency>
> > > >       <groupId>com.adobe.flash.framework</groupId>
> > > >       <artifactId>playerglobal</artifactId>
> > > >       <version>${flash.version}</version>
> > > >       <type>swc</type>
> > > >     </dependency>
> > > >   </dependencies>
> > > >
> > > >   <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > > dependencies.
> > > >        Note: instead of including this in every POM, you can append
> it
> > to
> > > > your user (~/.m2/settings.xml) or global
> > > >   (M2_HOME/conf/settings.xml) settings file.
> > > >     -->
> > > >   <repositories>
> > > >      <repository>
> > > >         <id>flex-mojos-repository</id>
> > > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > > </url>
> > > >      </repository>
> > > >   </repositories>
> > > >
> > > >   <pluginRepositories>
> > > >      <pluginRepository>
> > > >         <id>flex-mojos-plugin-repository</id>
> > > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > > </url>
> > > >      </pluginRepository>
> > > >   </pluginRepositories>
> > > > </project>
> > > >
> > > > Did I miss anything?
> > > >
> > > > --
> > > > *Thanks & Regards*
> > > > *Gautam Pandey*
> > > > *Tegile Systems*
> > > > *Ph : 9243014820*
> > > >
> > > >
> > > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > > > christofer.dutz@c-ware.de
> > > > > wrote:
> > > >
> > > > > When embedding fonts and images I have found that you need to add
> the
> > > > > threadlocal toolkit dependency before the compiler artifact in the
> > > plugin
> > > > > configuration ... just search for "threadlocal toolkit".
> > > > >
> > > > > Chris
> > > > > ________________________________________
> > > > > Von: Gautam Pandey <gk...@gmail.com>
> > > > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > > > An: users@flex.apache.org
> > > > > Betreff: Re: Need help on flexmojo
> > > > >
> > > > > Hi Chris,
> > > > >    Now I am trying to build the sample application with 4.6 SDK.
> > > Without
> > > > > adding any image, build is going fine but when I add an image to
> the
> > > > > Main.mxml, it is throwing error* Unable to transcode add.png.*
> Error
> > > > stack
> > > > > is as follow:
> > > > >
> > > > > *Writing configuration dump to
> > > > >
> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> > unable
> > > to
> > > > > resolve 'add.png' for transcoding*
> > > > >
> > > > > *                        [Embed(source="add.png")]*
> > > > >
> > > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> > Unable
> > > to
> > > > > transcode add.png.*
> > > > >
> > > > > *                        [Embed(source="add.png")]*
> > > > >
> > > > > *[INFO]
> > > > >
> > >
> ------------------------------------------------------------------------*
> > > > > *[INFO] BUILD FAILURE*
> > > > > *[INFO]
> > > > >
> > >
> ------------------------------------------------------------------------*
> > > > > *[INFO] Total time: 7.396s*
> > > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > > > *[INFO] Final Memory: 35M/495M*
> > > > > *[INFO]
> > > > >
> > >
> ------------------------------------------------------------------------*
> > > > > *[ERROR] Failed to execute goal
> > > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > > > (default-compile-swf) on project MyProject: Got 2*
> > > > > * errors building project, check logs -> [Help 1]*
> > > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > > execute
> > > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > > > *default-compile-swf) on project MyProject: Got 2 errors building
> > > > project,
> > > > > check logs*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > > > *        at
> > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > > > *        at
> > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > > > *        at
> org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > > > *        at
> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > > > *        at
> > > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
> > errors
> > > > > building project, check logs*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > > > *        at
> > > > >
> > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > > > *        at
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > > > *        ... 19 more*
> > > > > *[ERROR]*
> > > > > *[ERROR]*
> > > > > *[ERROR] For more information about the errors and possible
> > solutions,
> > > > > please read the following articles:*
> > > > > *[ERROR] [Help 1]
> > > > >
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > > > <
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > >*
> > > > > *D:\FlexMavenTest\MyProject>*
> > > > >
> > > > >
> > > > > Do you have any idea how this can be resolved ? I am able to run
> the
> > > > > application from my Flash Builder without any problem. It will be
> > great
> > > > > help if you can point out the issue.
> > > > >
> > > > > *My pom.xml  is :*
> > > > >
> > > > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > > > *  <!--*
> > > > >
> > > > > *    Copyright 2008 Marvin Herman Froeder*
> > > > > *    Licensed under the Apache License, Version 2.0 (the
> "License");*
> > > > > *    you may not use this file except in compliance with the
> > License.*
> > > > > *    You may obtain a copy of the License at*
> > > > >
> > > > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > > > >
> > > > > *    Unless required by applicable law or agreed to in writing,
> > > software*
> > > > > *    distributed under the License is distributed on an "AS IS"
> > BASIS,*
> > > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
> or
> > > > > implied.*
> > > > > *    See the License for the specific language governing
> permissions
> > > and*
> > > > > *    limitations under the License.*
> > > > >
> > > > > *-->*
> > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > > > <http://maven.apache.org/POM/4.0.0>"
> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > > <http://maven.apache.org/POM/4.0.0>
> > > > > http://maven.apache.org/maven-v4_0_0.xsd
> > > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > > > *  <modelVersion>4.0.0</modelVersion>*
> > > > >
> > > > > *  <groupId>com.gkp.app</groupId>*
> > > > > *  <artifactId>MyProject</artifactId>*
> > > > > *  <version>1.0-SNAPSHOT</version>*
> > > > > *  <packaging>swf</packaging>*
> > > > >
> > > > > *  <name>MyProject Flex</name>*
> > > > > *  <properties>*
> > > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > > > * <flex.version>4.6.0.23201</flex.version>*
> > > > > * <flash.version>11.1</flash.version>*
> > > > > *  </properties>*
> > > > >
> > > > > *  <build>*
> > > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > > > *    <plugins>*
> > > > > *      <plugin>*
> > > > >
> > > > > *        <groupId>net.flexmojos.oss</groupId>*
> > > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > > *        <version>${flexmojos.version}</version>*
> > > > > *        <extensions>true</extensions>*
> > > > > * <configuration>*
> > > > > * <sourceFile>Main.mxml</sourceFile>*
> > > > > * <sourcePaths>*
> > > > > * <path>src/main/flex</path>*
> > > > > * <path>src/main/resources</path>*
> > > > > * </sourcePaths> *
> > > > > * <debug>true</debug>*
> > > > > * </configuration>*
> > > > > * <dependencies>*
> > > > > * <dependency>*
> > > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > > * <version>${flexmojos.version}</version>*
> > > > > * </dependency>*
> > > > > * <dependency>*
> > > > > *  <groupId>com.adobe.flex</groupId>*
> > > > > *  <artifactId>compiler</artifactId>*
> > > > > *  <version>${flex.version}</version>*
> > > > > *  <type>pom</type>*
> > > > > * </dependency>*
> > > > > *        </dependencies>*
> > > > >
> > > > > *      </plugin>*
> > > > > *    </plugins>*
> > > > > *  </build>*
> > > > >
> > > > > *  <dependencies>*
> > > > > * <dependency>*
> > > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > > * <version>${flexmojos.version}</version>*
> > > > > * </dependency>*
> > > > > * <dependency>*
> > > > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > > > *      <artifactId>flex-framework</artifactId>*
> > > > > *      <version>${flex.version}</version>*
> > > > > *      <type>pom</type>*
> > > > > *    </dependency>*
> > > > >
> > > > > *    <dependency>*
> > > > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > > > *      <artifactId>playerglobal</artifactId>*
> > > > > *      <version>${flash.version}</version>*
> > > > > *      <type>swc</type>*
> > > > > *    </dependency>*
> > > > > *  </dependencies>*
> > > > >
> > > > > *  <!-- Repository and PluginRepository section for Flex SDK and
> > > compiler
> > > > > dependencies. *
> > > > > *       Note: instead of including this in every POM, you can
> append
> > it
> > > > to
> > > > > your user (~/.m2/settings.xml) or global *
> > > > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > > > *    -->*
> > > > > *  <repositories>*
> > > > > *     <repository>*
> > > > > *        <id>flex-mojos-repository</id>*
> > > > > *        <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > > *     </repository>*
> > > > > *  </repositories>*
> > > > >
> > > > > *  <pluginRepositories>*
> > > > > *     <pluginRepository>*
> > > > > *        <id>flex-mojos-plugin-repository</id>*
> > > > > *        <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > > *     </pluginRepository>*
> > > > > *  </pluginRepositories>*
> > > > > *</project>*
> > > > >
> > > > > *And Main.mxml is :*
> > > > >
> > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > <!--
> > > > >
> > > > >      Copyright 2008 Marvin Herman Froeder
> > > > >      Licensed under the Apache License, Version 2.0 (the
> "License");
> > > you
> > > > > may not use this file except in compliance with the License. You
> may
> > > > obtain
> > > > > a copy of the License at
> > > > >      http://www.apache.org/licenses/LICENSE-2.0
> > > > >      Unless required by applicable law or agreed to in writing,
> > > software
> > > > > distributed under the License is distributed on an "AS IS" BASIS,
> > > WITHOUT
> > > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See
> > > the
> > > > > License for the specific language governing permissions and
> > limitations
> > > > > under the License.
> > > > >
> > > > >
> > > > > -->
> > > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > > > minHeight="600">
> > > > > <fx:Script>
> > > > > <![CDATA[
> > > > > [Bindable]
> > > > > [Embed(source="add.png")]
> > > > > private var imgclass : Class;
> > > > > ]]>
> > > > > </fx:Script>
> > > > > <fx:Declarations>
> > > > > <!-- Place non-visual elements (e.g., services, value objects) here
> > -->
> > > > > </fx:Declarations>
> > > > > <s:Label text="Hello World." left="60" top="20"/>
> > > > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > > > </s:Application>
> > > > >
> > > > > --
> > > > > *Thanks & Regards*
> > > > > *Gautam Pandey*
> > > > > *Tegile Systems*
> > > > > *Ph : 9243014820*
> > > > >
> > > > >
> > > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > > > wrote:
> > > > >
> > > > > > Thanks Chris,
> > > > > >      I have mavenized the 4.13 FDK following the steps given in
> > > > > >
> > > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > > > and
> > > > > > copied to my local repo. I never did maven things so I am not
> sure
> > > > about
> > > > > > the things. Currently learning maven concepts to point out the
> > exact
> > > > > cause.
> > > > > > Do I need to build flexmojos also and deploy to local repo?
> > > > > >
> > > > > > Thanks
> > > > > > Gautam
> > > > > >
> > > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > > > christofer.dutz@c-ware.de
> > > > > > > wrote:
> > > > > >
> > > > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > > > >> If not that's exactly what Maven is complaining about. Currently
> > > there
> > > > > is
> > > > > >> no Apache Flex FDK publicaly available in any public Maven
> > > repository.
> > > > > We
> > > > > >> are working on this, but I't still a mile to go.
> > > > > >>
> > > > > >> Chris
> > > > > >>
> > > > > >> ________________________________________
> > > > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > > > >> An: users@flex.apache.org
> > > > > >> Betreff: Re: Need help on flexmojo
> > > > > >>
> > > > > >> I guess I am missing repositories and pluginRepositories like
> > > things.
> > > > I
> > > > > >> don't know what should be added in this section. Can someone
> > confirm
> > > > > below
> > > > > >> default things will work or not?
> > > > > >>
> > > > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > > > compiler
> > > > > >> dependencies.
> > > > > >>        Note: instead of including this in every POM, you can
> > append
> > > it
> > > > > to
> > > > > >> your user (~/.m2/settings.xml) or global
> > > > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > > > >>     -->
> > > > > >>   <repositories>
> > > > > >>      <repository>
> > > > > >>         <id>flex-mojos-repository</id>
> > > > > >>         <url>
> > > http://repository.sonatype.org/content/groups/flexgroup
> > > > > >> </url>
> > > > > >>      </repository>
> > > > > >>   </repositories>
> > > > > >>
> > > > > >>   <pluginRepositories>
> > > > > >>      <pluginRepository>
> > > > > >>         <id>flex-mojos-plugin-repository</id>
> > > > > >>         <url>
> > > http://repository.sonatype.org/content/groups/flexgroup
> > > > > >> </url>
> > > > > >>      </pluginRepository>
> > > > > >>   </pluginRepositories>
> > > > > >>
> > > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <
> tc@extravision.com
> > >
> > > > > wrote:
> > > > > >>
> > > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > > > >> >
> > > > > >> >> Fai
> > > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > > > >> repository,
> > > > > >> >> resolution wi
> > > > > >> >> ll not be reattempted until the update interval of central
> has
> > > > > elapsed
> > > > > >> or
> > > > > >> >> updates are forced
> > > > > >> >>
> > > > > >> > I don't know much Maven, but did you try forcing this update ?
> > > > > >> >
> > > > > >> > Tom
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >> *Thanks & Regards*
> > > > > >> *Gautam Pandey*
> > > > > >> *Tegile Systems*
> > > > > >> *Ph : 9243014820*
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
Ok ... you found it yourself ;-)

________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Dienstag, 14. Oktober 2014 09:12
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

it's working with extra / in the beginning like below.
  [Embed(source="/asset/image/add.png")]
private var imgclass : Class;

Now I have to try with my real project which I am planning to upgrade from
4.0 to either 4.6 or apache flex 4.13.

Thank you Chris

Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <christofer.dutz@c-ware.de
> wrote:

> Forget my last mail ... just not used to google drive yet ;-)
>
>
> ________________________________________
> Von: Christofer Dutz <ch...@c-ware.de>
> Gesendet: Dienstag, 14. Oktober 2014 08:57
> An: users@flex.apache.org
> Betreff: AW: Need help on flexmojo
>
> Hmm I seem to be unable to download anything. I can see the files, but not
> their content (One archive would be better anyway ... this way I don't have
> to manually create the directories and download each file seperately)
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Dienstag, 14. Oktober 2014 08:45
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>      I have hosted it on my google drive. Please have a look. Thanks for
> your precious time. Its just 23kb file. Let me know if you are facing any
> problem.
>
>
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
>
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > If you are able to zip up the application and send it to my private
> > address, I would try to solve the problem for you. Image embedding does
> > work, you just have to configure your build right. Unfortunately I don't
> > have to time to do this step by step on the list, so if you send me the
> > example, I'll make it work.
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 10:59
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Yes add.png is located in src/main/resources/. I read the Falcon email
> > thread. I guess I have to wait for the fix.
> >
> > --
> > *Thanks *
> > *Gautam Pandey*
> >
> >
> >
> > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de>
> > wrote:
> >
> > > I'd omit the sourcePaths config option as this is implicitly defined by
> > > maven already. I never used that option.
> > > Where are your image resources located? src/main/resources/add.png ? I
> > > usually have resource paths absolute so in my case I usually write
> > > "/add.png" instead of "add.png" but this is currently something we are
> > > discussing on the dev-list as Falcon seems to have problems with this.
> > >
> > > Chris
> > >
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 08:34
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Thank you Chris,
> > >     Still its not going through. Build is failing with same error. My
> new
> > > pom.xml is :
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >   <!--
> > >
> > >     Copyright 2008 Marvin Herman Froeder
> > >     Licensed under the Apache License, Version 2.0 (the "License");
> > >     you may not use this file except in compliance with the License.
> > >     You may obtain a copy of the License at
> > >
> > >         http://www.apache.org/licenses/LICENSE-2.0
> > >
> > >     Unless required by applicable law or agreed to in writing, software
> > >     distributed under the License is distributed on an "AS IS" BASIS,
> > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.
> > >     See the License for the specific language governing permissions and
> > >     limitations under the License.
> > >
> > > -->
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > > http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd
> > > ">
> > >   <modelVersion>4.0.0</modelVersion>
> > >
> > >   <groupId>com.gkp.app</groupId>
> > >   <artifactId>MyProject</artifactId>
> > >   <version>1.0-SNAPSHOT</version>
> > >   <packaging>swf</packaging>
> > >
> > >   <name>MyProject Flex</name>
> > >   <properties>
> > > <flexmojos.version>6.0.1</flexmojos.version>
> > > <flex.version>4.6.0.23201</flex.version>
> > > <flash.version>11.1</flash.version>
> > >   </properties>
> > >
> > >   <build>
> > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > >     <plugins>
> > >       <plugin>
> > >
> > >         <groupId>net.flexmojos.oss</groupId>
> > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > >         <version>${flexmojos.version}</version>
> > >         <extensions>true</extensions>
> > > <configuration>
> > > <sourceFile>Main.mxml</sourceFile>
> > > <sourcePaths>
> > > <path>src/main/flex</path>
> > > <path>src/main/resources</path>
> > > </sourcePaths>
> > > <debug>true</debug>
> > > </configuration>
> > > <dependencies>
> > > <dependency>
> > > <groupId>net.flexmojos.oss</groupId>
> > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > > <version>${flexmojos.version}</version>
> > > </dependency>
> > > <dependency>
> > >   <groupId>com.adobe.flex</groupId>
> > >   <artifactId>compiler</artifactId>
> > >   <version>${flex.version}</version>
> > >   <type>pom</type>
> > > </dependency>
> > >         </dependencies>
> > >
> > >       </plugin>
> > >     </plugins>
> > >   </build>
> > >
> > >   <dependencies>
> > > <dependency>
> > >       <groupId>com.adobe.flex.framework</groupId>
> > >       <artifactId>flex-framework</artifactId>
> > >       <version>${flex.version}</version>
> > >       <type>pom</type>
> > >     </dependency>
> > >
> > >     <dependency>
> > >       <groupId>com.adobe.flash.framework</groupId>
> > >       <artifactId>playerglobal</artifactId>
> > >       <version>${flash.version}</version>
> > >       <type>swc</type>
> > >     </dependency>
> > >   </dependencies>
> > >
> > >   <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies.
> > >        Note: instead of including this in every POM, you can append it
> to
> > > your user (~/.m2/settings.xml) or global
> > >   (M2_HOME/conf/settings.xml) settings file.
> > >     -->
> > >   <repositories>
> > >      <repository>
> > >         <id>flex-mojos-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </repository>
> > >   </repositories>
> > >
> > >   <pluginRepositories>
> > >      <pluginRepository>
> > >         <id>flex-mojos-plugin-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </pluginRepository>
> > >   </pluginRepositories>
> > > </project>
> > >
> > > Did I miss anything?
> > >
> > > --
> > > *Thanks & Regards*
> > > *Gautam Pandey*
> > > *Tegile Systems*
> > > *Ph : 9243014820*
> > >
> > >
> > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > > christofer.dutz@c-ware.de
> > > > wrote:
> > >
> > > > When embedding fonts and images I have found that you need to add the
> > > > threadlocal toolkit dependency before the compiler artifact in the
> > plugin
> > > > configuration ... just search for "threadlocal toolkit".
> > > >
> > > > Chris
> > > > ________________________________________
> > > > Von: Gautam Pandey <gk...@gmail.com>
> > > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > > An: users@flex.apache.org
> > > > Betreff: Re: Need help on flexmojo
> > > >
> > > > Hi Chris,
> > > >    Now I am trying to build the sample application with 4.6 SDK.
> > Without
> > > > adding any image, build is going fine but when I add an image to the
> > > > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> > > stack
> > > > is as follow:
> > > >
> > > > *Writing configuration dump to
> > > > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> unable
> > to
> > > > resolve 'add.png' for transcoding*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> Unable
> > to
> > > > transcode add.png.*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] BUILD FAILURE*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] Total time: 7.396s*
> > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > > *[INFO] Final Memory: 35M/495M*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[ERROR] Failed to execute goal
> > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > > (default-compile-swf) on project MyProject: Got 2*
> > > > * errors building project, check logs -> [Help 1]*
> > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > execute
> > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > > *default-compile-swf) on project MyProject: Got 2 errors building
> > > project,
> > > > check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > > *        at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > > *        at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > > *        at
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
> errors
> > > > building project, check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > > *        at
> > > >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > > *        ... 19 more*
> > > > *[ERROR]*
> > > > *[ERROR]*
> > > > *[ERROR] For more information about the errors and possible
> solutions,
> > > > please read the following articles:*
> > > > *[ERROR] [Help 1]
> > > >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > > <
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >*
> > > > *D:\FlexMavenTest\MyProject>*
> > > >
> > > >
> > > > Do you have any idea how this can be resolved ? I am able to run the
> > > > application from my Flash Builder without any problem. It will be
> great
> > > > help if you can point out the issue.
> > > >
> > > > *My pom.xml  is :*
> > > >
> > > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > > *  <!--*
> > > >
> > > > *    Copyright 2008 Marvin Herman Froeder*
> > > > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > > > *    you may not use this file except in compliance with the
> License.*
> > > > *    You may obtain a copy of the License at*
> > > >
> > > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > > >
> > > > *    Unless required by applicable law or agreed to in writing,
> > software*
> > > > *    distributed under the License is distributed on an "AS IS"
> BASIS,*
> > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > > implied.*
> > > > *    See the License for the specific language governing permissions
> > and*
> > > > *    limitations under the License.*
> > > >
> > > > *-->*
> > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>"
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>
> > > > http://maven.apache.org/maven-v4_0_0.xsd
> > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > > *  <modelVersion>4.0.0</modelVersion>*
> > > >
> > > > *  <groupId>com.gkp.app</groupId>*
> > > > *  <artifactId>MyProject</artifactId>*
> > > > *  <version>1.0-SNAPSHOT</version>*
> > > > *  <packaging>swf</packaging>*
> > > >
> > > > *  <name>MyProject Flex</name>*
> > > > *  <properties>*
> > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > > * <flex.version>4.6.0.23201</flex.version>*
> > > > * <flash.version>11.1</flash.version>*
> > > > *  </properties>*
> > > >
> > > > *  <build>*
> > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > > *    <plugins>*
> > > > *      <plugin>*
> > > >
> > > > *        <groupId>net.flexmojos.oss</groupId>*
> > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > *        <version>${flexmojos.version}</version>*
> > > > *        <extensions>true</extensions>*
> > > > * <configuration>*
> > > > * <sourceFile>Main.mxml</sourceFile>*
> > > > * <sourcePaths>*
> > > > * <path>src/main/flex</path>*
> > > > * <path>src/main/resources</path>*
> > > > * </sourcePaths> *
> > > > * <debug>true</debug>*
> > > > * </configuration>*
> > > > * <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *  <groupId>com.adobe.flex</groupId>*
> > > > *  <artifactId>compiler</artifactId>*
> > > > *  <version>${flex.version}</version>*
> > > > *  <type>pom</type>*
> > > > * </dependency>*
> > > > *        </dependencies>*
> > > >
> > > > *      </plugin>*
> > > > *    </plugins>*
> > > > *  </build>*
> > > >
> > > > *  <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > > *      <artifactId>flex-framework</artifactId>*
> > > > *      <version>${flex.version}</version>*
> > > > *      <type>pom</type>*
> > > > *    </dependency>*
> > > >
> > > > *    <dependency>*
> > > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > > *      <artifactId>playerglobal</artifactId>*
> > > > *      <version>${flash.version}</version>*
> > > > *      <type>swc</type>*
> > > > *    </dependency>*
> > > > *  </dependencies>*
> > > >
> > > > *  <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > > dependencies. *
> > > > *       Note: instead of including this in every POM, you can append
> it
> > > to
> > > > your user (~/.m2/settings.xml) or global *
> > > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > > *    -->*
> > > > *  <repositories>*
> > > > *     <repository>*
> > > > *        <id>flex-mojos-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </repository>*
> > > > *  </repositories>*
> > > >
> > > > *  <pluginRepositories>*
> > > > *     <pluginRepository>*
> > > > *        <id>flex-mojos-plugin-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </pluginRepository>*
> > > > *  </pluginRepositories>*
> > > > *</project>*
> > > >
> > > > *And Main.mxml is :*
> > > >
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <!--
> > > >
> > > >      Copyright 2008 Marvin Herman Froeder
> > > >      Licensed under the Apache License, Version 2.0 (the "License");
> > you
> > > > may not use this file except in compliance with the License. You may
> > > obtain
> > > > a copy of the License at
> > > >      http://www.apache.org/licenses/LICENSE-2.0
> > > >      Unless required by applicable law or agreed to in writing,
> > software
> > > > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT
> > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
> > the
> > > > License for the specific language governing permissions and
> limitations
> > > > under the License.
> > > >
> > > >
> > > > -->
> > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > > minHeight="600">
> > > > <fx:Script>
> > > > <![CDATA[
> > > > [Bindable]
> > > > [Embed(source="add.png")]
> > > > private var imgclass : Class;
> > > > ]]>
> > > > </fx:Script>
> > > > <fx:Declarations>
> > > > <!-- Place non-visual elements (e.g., services, value objects) here
> -->
> > > > </fx:Declarations>
> > > > <s:Label text="Hello World." left="60" top="20"/>
> > > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > > </s:Application>
> > > >
> > > > --
> > > > *Thanks & Regards*
> > > > *Gautam Pandey*
> > > > *Tegile Systems*
> > > > *Ph : 9243014820*
> > > >
> > > >
> > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > > wrote:
> > > >
> > > > > Thanks Chris,
> > > > >      I have mavenized the 4.13 FDK following the steps given in
> > > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > > and
> > > > > copied to my local repo. I never did maven things so I am not sure
> > > about
> > > > > the things. Currently learning maven concepts to point out the
> exact
> > > > cause.
> > > > > Do I need to build flexmojos also and deploy to local repo?
> > > > >
> > > > > Thanks
> > > > > Gautam
> > > > >
> > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > > christofer.dutz@c-ware.de
> > > > > > wrote:
> > > > >
> > > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > > >> If not that's exactly what Maven is complaining about. Currently
> > there
> > > > is
> > > > >> no Apache Flex FDK publicaly available in any public Maven
> > repository.
> > > > We
> > > > >> are working on this, but I't still a mile to go.
> > > > >>
> > > > >> Chris
> > > > >>
> > > > >> ________________________________________
> > > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > > >> An: users@flex.apache.org
> > > > >> Betreff: Re: Need help on flexmojo
> > > > >>
> > > > >> I guess I am missing repositories and pluginRepositories like
> > things.
> > > I
> > > > >> don't know what should be added in this section. Can someone
> confirm
> > > > below
> > > > >> default things will work or not?
> > > > >>
> > > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > > compiler
> > > > >> dependencies.
> > > > >>        Note: instead of including this in every POM, you can
> append
> > it
> > > > to
> > > > >> your user (~/.m2/settings.xml) or global
> > > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > > >>     -->
> > > > >>   <repositories>
> > > > >>      <repository>
> > > > >>         <id>flex-mojos-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </repository>
> > > > >>   </repositories>
> > > > >>
> > > > >>   <pluginRepositories>
> > > > >>      <pluginRepository>
> > > > >>         <id>flex-mojos-plugin-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </pluginRepository>
> > > > >>   </pluginRepositories>
> > > > >>
> > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc@extravision.com
> >
> > > > wrote:
> > > > >>
> > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > > >> >
> > > > >> >> Fai
> > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > > >> repository,
> > > > >> >> resolution wi
> > > > >> >> ll not be reattempted until the update interval of central has
> > > > elapsed
> > > > >> or
> > > > >> >> updates are forced
> > > > >> >>
> > > > >> > I don't know much Maven, but did you try forcing this update ?
> > > > >> >
> > > > >> > Tom
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> *Thanks & Regards*
> > > > >> *Gautam Pandey*
> > > > >> *Tegile Systems*
> > > > >> *Ph : 9243014820*
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
it's working with extra / in the beginning like below.
  [Embed(source="/asset/image/add.png")]
private var imgclass : Class;

Now I have to try with my real project which I am planning to upgrade from
4.0 to either 4.6 or apache flex 4.13.

Thank you Chris

Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 12:30 PM, Christofer Dutz <christofer.dutz@c-ware.de
> wrote:

> Forget my last mail ... just not used to google drive yet ;-)
>
>
> ________________________________________
> Von: Christofer Dutz <ch...@c-ware.de>
> Gesendet: Dienstag, 14. Oktober 2014 08:57
> An: users@flex.apache.org
> Betreff: AW: Need help on flexmojo
>
> Hmm I seem to be unable to download anything. I can see the files, but not
> their content (One archive would be better anyway ... this way I don't have
> to manually create the directories and download each file seperately)
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Dienstag, 14. Oktober 2014 08:45
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>      I have hosted it on my google drive. Please have a look. Thanks for
> your precious time. Its just 23kb file. Let me know if you are facing any
> problem.
>
>
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
>
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > If you are able to zip up the application and send it to my private
> > address, I would try to solve the problem for you. Image embedding does
> > work, you just have to configure your build right. Unfortunately I don't
> > have to time to do this step by step on the list, so if you send me the
> > example, I'll make it work.
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 10:59
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Yes add.png is located in src/main/resources/. I read the Falcon email
> > thread. I guess I have to wait for the fix.
> >
> > --
> > *Thanks *
> > *Gautam Pandey*
> >
> >
> >
> > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de>
> > wrote:
> >
> > > I'd omit the sourcePaths config option as this is implicitly defined by
> > > maven already. I never used that option.
> > > Where are your image resources located? src/main/resources/add.png ? I
> > > usually have resource paths absolute so in my case I usually write
> > > "/add.png" instead of "add.png" but this is currently something we are
> > > discussing on the dev-list as Falcon seems to have problems with this.
> > >
> > > Chris
> > >
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 08:34
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Thank you Chris,
> > >     Still its not going through. Build is failing with same error. My
> new
> > > pom.xml is :
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >   <!--
> > >
> > >     Copyright 2008 Marvin Herman Froeder
> > >     Licensed under the Apache License, Version 2.0 (the "License");
> > >     you may not use this file except in compliance with the License.
> > >     You may obtain a copy of the License at
> > >
> > >         http://www.apache.org/licenses/LICENSE-2.0
> > >
> > >     Unless required by applicable law or agreed to in writing, software
> > >     distributed under the License is distributed on an "AS IS" BASIS,
> > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.
> > >     See the License for the specific language governing permissions and
> > >     limitations under the License.
> > >
> > > -->
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > > http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd
> > > ">
> > >   <modelVersion>4.0.0</modelVersion>
> > >
> > >   <groupId>com.gkp.app</groupId>
> > >   <artifactId>MyProject</artifactId>
> > >   <version>1.0-SNAPSHOT</version>
> > >   <packaging>swf</packaging>
> > >
> > >   <name>MyProject Flex</name>
> > >   <properties>
> > > <flexmojos.version>6.0.1</flexmojos.version>
> > > <flex.version>4.6.0.23201</flex.version>
> > > <flash.version>11.1</flash.version>
> > >   </properties>
> > >
> > >   <build>
> > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > >     <plugins>
> > >       <plugin>
> > >
> > >         <groupId>net.flexmojos.oss</groupId>
> > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > >         <version>${flexmojos.version}</version>
> > >         <extensions>true</extensions>
> > > <configuration>
> > > <sourceFile>Main.mxml</sourceFile>
> > > <sourcePaths>
> > > <path>src/main/flex</path>
> > > <path>src/main/resources</path>
> > > </sourcePaths>
> > > <debug>true</debug>
> > > </configuration>
> > > <dependencies>
> > > <dependency>
> > > <groupId>net.flexmojos.oss</groupId>
> > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > > <version>${flexmojos.version}</version>
> > > </dependency>
> > > <dependency>
> > >   <groupId>com.adobe.flex</groupId>
> > >   <artifactId>compiler</artifactId>
> > >   <version>${flex.version}</version>
> > >   <type>pom</type>
> > > </dependency>
> > >         </dependencies>
> > >
> > >       </plugin>
> > >     </plugins>
> > >   </build>
> > >
> > >   <dependencies>
> > > <dependency>
> > >       <groupId>com.adobe.flex.framework</groupId>
> > >       <artifactId>flex-framework</artifactId>
> > >       <version>${flex.version}</version>
> > >       <type>pom</type>
> > >     </dependency>
> > >
> > >     <dependency>
> > >       <groupId>com.adobe.flash.framework</groupId>
> > >       <artifactId>playerglobal</artifactId>
> > >       <version>${flash.version}</version>
> > >       <type>swc</type>
> > >     </dependency>
> > >   </dependencies>
> > >
> > >   <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies.
> > >        Note: instead of including this in every POM, you can append it
> to
> > > your user (~/.m2/settings.xml) or global
> > >   (M2_HOME/conf/settings.xml) settings file.
> > >     -->
> > >   <repositories>
> > >      <repository>
> > >         <id>flex-mojos-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </repository>
> > >   </repositories>
> > >
> > >   <pluginRepositories>
> > >      <pluginRepository>
> > >         <id>flex-mojos-plugin-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </pluginRepository>
> > >   </pluginRepositories>
> > > </project>
> > >
> > > Did I miss anything?
> > >
> > > --
> > > *Thanks & Regards*
> > > *Gautam Pandey*
> > > *Tegile Systems*
> > > *Ph : 9243014820*
> > >
> > >
> > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > > christofer.dutz@c-ware.de
> > > > wrote:
> > >
> > > > When embedding fonts and images I have found that you need to add the
> > > > threadlocal toolkit dependency before the compiler artifact in the
> > plugin
> > > > configuration ... just search for "threadlocal toolkit".
> > > >
> > > > Chris
> > > > ________________________________________
> > > > Von: Gautam Pandey <gk...@gmail.com>
> > > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > > An: users@flex.apache.org
> > > > Betreff: Re: Need help on flexmojo
> > > >
> > > > Hi Chris,
> > > >    Now I am trying to build the sample application with 4.6 SDK.
> > Without
> > > > adding any image, build is going fine but when I add an image to the
> > > > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> > > stack
> > > > is as follow:
> > > >
> > > > *Writing configuration dump to
> > > > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> unable
> > to
> > > > resolve 'add.png' for transcoding*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> Unable
> > to
> > > > transcode add.png.*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] BUILD FAILURE*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] Total time: 7.396s*
> > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > > *[INFO] Final Memory: 35M/495M*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[ERROR] Failed to execute goal
> > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > > (default-compile-swf) on project MyProject: Got 2*
> > > > * errors building project, check logs -> [Help 1]*
> > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > execute
> > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > > *default-compile-swf) on project MyProject: Got 2 errors building
> > > project,
> > > > check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > > *        at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > > *        at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > > *        at
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
> errors
> > > > building project, check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > > *        at
> > > >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > > *        ... 19 more*
> > > > *[ERROR]*
> > > > *[ERROR]*
> > > > *[ERROR] For more information about the errors and possible
> solutions,
> > > > please read the following articles:*
> > > > *[ERROR] [Help 1]
> > > >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > > <
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >*
> > > > *D:\FlexMavenTest\MyProject>*
> > > >
> > > >
> > > > Do you have any idea how this can be resolved ? I am able to run the
> > > > application from my Flash Builder without any problem. It will be
> great
> > > > help if you can point out the issue.
> > > >
> > > > *My pom.xml  is :*
> > > >
> > > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > > *  <!--*
> > > >
> > > > *    Copyright 2008 Marvin Herman Froeder*
> > > > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > > > *    you may not use this file except in compliance with the
> License.*
> > > > *    You may obtain a copy of the License at*
> > > >
> > > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > > >
> > > > *    Unless required by applicable law or agreed to in writing,
> > software*
> > > > *    distributed under the License is distributed on an "AS IS"
> BASIS,*
> > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > > implied.*
> > > > *    See the License for the specific language governing permissions
> > and*
> > > > *    limitations under the License.*
> > > >
> > > > *-->*
> > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>"
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>
> > > > http://maven.apache.org/maven-v4_0_0.xsd
> > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > > *  <modelVersion>4.0.0</modelVersion>*
> > > >
> > > > *  <groupId>com.gkp.app</groupId>*
> > > > *  <artifactId>MyProject</artifactId>*
> > > > *  <version>1.0-SNAPSHOT</version>*
> > > > *  <packaging>swf</packaging>*
> > > >
> > > > *  <name>MyProject Flex</name>*
> > > > *  <properties>*
> > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > > * <flex.version>4.6.0.23201</flex.version>*
> > > > * <flash.version>11.1</flash.version>*
> > > > *  </properties>*
> > > >
> > > > *  <build>*
> > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > > *    <plugins>*
> > > > *      <plugin>*
> > > >
> > > > *        <groupId>net.flexmojos.oss</groupId>*
> > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > *        <version>${flexmojos.version}</version>*
> > > > *        <extensions>true</extensions>*
> > > > * <configuration>*
> > > > * <sourceFile>Main.mxml</sourceFile>*
> > > > * <sourcePaths>*
> > > > * <path>src/main/flex</path>*
> > > > * <path>src/main/resources</path>*
> > > > * </sourcePaths> *
> > > > * <debug>true</debug>*
> > > > * </configuration>*
> > > > * <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *  <groupId>com.adobe.flex</groupId>*
> > > > *  <artifactId>compiler</artifactId>*
> > > > *  <version>${flex.version}</version>*
> > > > *  <type>pom</type>*
> > > > * </dependency>*
> > > > *        </dependencies>*
> > > >
> > > > *      </plugin>*
> > > > *    </plugins>*
> > > > *  </build>*
> > > >
> > > > *  <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > > *      <artifactId>flex-framework</artifactId>*
> > > > *      <version>${flex.version}</version>*
> > > > *      <type>pom</type>*
> > > > *    </dependency>*
> > > >
> > > > *    <dependency>*
> > > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > > *      <artifactId>playerglobal</artifactId>*
> > > > *      <version>${flash.version}</version>*
> > > > *      <type>swc</type>*
> > > > *    </dependency>*
> > > > *  </dependencies>*
> > > >
> > > > *  <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > > dependencies. *
> > > > *       Note: instead of including this in every POM, you can append
> it
> > > to
> > > > your user (~/.m2/settings.xml) or global *
> > > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > > *    -->*
> > > > *  <repositories>*
> > > > *     <repository>*
> > > > *        <id>flex-mojos-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </repository>*
> > > > *  </repositories>*
> > > >
> > > > *  <pluginRepositories>*
> > > > *     <pluginRepository>*
> > > > *        <id>flex-mojos-plugin-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </pluginRepository>*
> > > > *  </pluginRepositories>*
> > > > *</project>*
> > > >
> > > > *And Main.mxml is :*
> > > >
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <!--
> > > >
> > > >      Copyright 2008 Marvin Herman Froeder
> > > >      Licensed under the Apache License, Version 2.0 (the "License");
> > you
> > > > may not use this file except in compliance with the License. You may
> > > obtain
> > > > a copy of the License at
> > > >      http://www.apache.org/licenses/LICENSE-2.0
> > > >      Unless required by applicable law or agreed to in writing,
> > software
> > > > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT
> > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
> > the
> > > > License for the specific language governing permissions and
> limitations
> > > > under the License.
> > > >
> > > >
> > > > -->
> > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > > minHeight="600">
> > > > <fx:Script>
> > > > <![CDATA[
> > > > [Bindable]
> > > > [Embed(source="add.png")]
> > > > private var imgclass : Class;
> > > > ]]>
> > > > </fx:Script>
> > > > <fx:Declarations>
> > > > <!-- Place non-visual elements (e.g., services, value objects) here
> -->
> > > > </fx:Declarations>
> > > > <s:Label text="Hello World." left="60" top="20"/>
> > > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > > </s:Application>
> > > >
> > > > --
> > > > *Thanks & Regards*
> > > > *Gautam Pandey*
> > > > *Tegile Systems*
> > > > *Ph : 9243014820*
> > > >
> > > >
> > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > > wrote:
> > > >
> > > > > Thanks Chris,
> > > > >      I have mavenized the 4.13 FDK following the steps given in
> > > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > > and
> > > > > copied to my local repo. I never did maven things so I am not sure
> > > about
> > > > > the things. Currently learning maven concepts to point out the
> exact
> > > > cause.
> > > > > Do I need to build flexmojos also and deploy to local repo?
> > > > >
> > > > > Thanks
> > > > > Gautam
> > > > >
> > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > > christofer.dutz@c-ware.de
> > > > > > wrote:
> > > > >
> > > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > > >> If not that's exactly what Maven is complaining about. Currently
> > there
> > > > is
> > > > >> no Apache Flex FDK publicaly available in any public Maven
> > repository.
> > > > We
> > > > >> are working on this, but I't still a mile to go.
> > > > >>
> > > > >> Chris
> > > > >>
> > > > >> ________________________________________
> > > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > > >> An: users@flex.apache.org
> > > > >> Betreff: Re: Need help on flexmojo
> > > > >>
> > > > >> I guess I am missing repositories and pluginRepositories like
> > things.
> > > I
> > > > >> don't know what should be added in this section. Can someone
> confirm
> > > > below
> > > > >> default things will work or not?
> > > > >>
> > > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > > compiler
> > > > >> dependencies.
> > > > >>        Note: instead of including this in every POM, you can
> append
> > it
> > > > to
> > > > >> your user (~/.m2/settings.xml) or global
> > > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > > >>     -->
> > > > >>   <repositories>
> > > > >>      <repository>
> > > > >>         <id>flex-mojos-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </repository>
> > > > >>   </repositories>
> > > > >>
> > > > >>   <pluginRepositories>
> > > > >>      <pluginRepository>
> > > > >>         <id>flex-mojos-plugin-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </pluginRepository>
> > > > >>   </pluginRepositories>
> > > > >>
> > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc@extravision.com
> >
> > > > wrote:
> > > > >>
> > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > > >> >
> > > > >> >> Fai
> > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > > >> repository,
> > > > >> >> resolution wi
> > > > >> >> ll not be reattempted until the update interval of central has
> > > > elapsed
> > > > >> or
> > > > >> >> updates are forced
> > > > >> >>
> > > > >> > I don't know much Maven, but did you try forcing this update ?
> > > > >> >
> > > > >> > Tom
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> *Thanks & Regards*
> > > > >> *Gautam Pandey*
> > > > >> *Tegile Systems*
> > > > >> *Ph : 9243014820*
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
Forget my last mail ... just not used to google drive yet ;-)


________________________________________
Von: Christofer Dutz <ch...@c-ware.de>
Gesendet: Dienstag, 14. Oktober 2014 08:57
An: users@flex.apache.org
Betreff: AW: Need help on flexmojo

Hmm I seem to be unable to download anything. I can see the files, but not their content (One archive would be better anyway ... this way I don't have to manually create the directories and download each file seperately)

Chris
________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Dienstag, 14. Oktober 2014 08:45
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

Hi Chris,
     I have hosted it on my google drive. Please have a look. Thanks for
your precious time. Its just 23kb file. Let me know if you are facing any
problem.

https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing


Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <ch...@c-ware.de>
wrote:

> If you are able to zip up the application and send it to my private
> address, I would try to solve the problem for you. Image embedding does
> work, you just have to configure your build right. Unfortunately I don't
> have to time to do this step by step on the list, so if you send me the
> example, I'll make it work.
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Montag, 13. Oktober 2014 10:59
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Yes add.png is located in src/main/resources/. I read the Falcon email
> thread. I guess I have to wait for the fix.
>
> --
> *Thanks *
> *Gautam Pandey*
>
>
>
> On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > I'd omit the sourcePaths config option as this is implicitly defined by
> > maven already. I never used that option.
> > Where are your image resources located? src/main/resources/add.png ? I
> > usually have resource paths absolute so in my case I usually write
> > "/add.png" instead of "add.png" but this is currently something we are
> > discussing on the dev-list as Falcon seems to have problems with this.
> >
> > Chris
> >
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 08:34
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Thank you Chris,
> >     Still its not going through. Build is failing with same error. My new
> > pom.xml is :
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >   <!--
> >
> >     Copyright 2008 Marvin Herman Froeder
> >     Licensed under the Apache License, Version 2.0 (the "License");
> >     you may not use this file except in compliance with the License.
> >     You may obtain a copy of the License at
> >
> >         http://www.apache.org/licenses/LICENSE-2.0
> >
> >     Unless required by applicable law or agreed to in writing, software
> >     distributed under the License is distributed on an "AS IS" BASIS,
> >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.
> >     See the License for the specific language governing permissions and
> >     limitations under the License.
> >
> > -->
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd
> > ">
> >   <modelVersion>4.0.0</modelVersion>
> >
> >   <groupId>com.gkp.app</groupId>
> >   <artifactId>MyProject</artifactId>
> >   <version>1.0-SNAPSHOT</version>
> >   <packaging>swf</packaging>
> >
> >   <name>MyProject Flex</name>
> >   <properties>
> > <flexmojos.version>6.0.1</flexmojos.version>
> > <flex.version>4.6.0.23201</flex.version>
> > <flash.version>11.1</flash.version>
> >   </properties>
> >
> >   <build>
> >     <sourceDirectory>src/main/flex</sourceDirectory>
> >     <plugins>
> >       <plugin>
> >
> >         <groupId>net.flexmojos.oss</groupId>
> >         <artifactId>flexmojos-maven-plugin</artifactId>
> >         <version>${flexmojos.version}</version>
> >         <extensions>true</extensions>
> > <configuration>
> > <sourceFile>Main.mxml</sourceFile>
> > <sourcePaths>
> > <path>src/main/flex</path>
> > <path>src/main/resources</path>
> > </sourcePaths>
> > <debug>true</debug>
> > </configuration>
> > <dependencies>
> > <dependency>
> > <groupId>net.flexmojos.oss</groupId>
> > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > <version>${flexmojos.version}</version>
> > </dependency>
> > <dependency>
> >   <groupId>com.adobe.flex</groupId>
> >   <artifactId>compiler</artifactId>
> >   <version>${flex.version}</version>
> >   <type>pom</type>
> > </dependency>
> >         </dependencies>
> >
> >       </plugin>
> >     </plugins>
> >   </build>
> >
> >   <dependencies>
> > <dependency>
> >       <groupId>com.adobe.flex.framework</groupId>
> >       <artifactId>flex-framework</artifactId>
> >       <version>${flex.version}</version>
> >       <type>pom</type>
> >     </dependency>
> >
> >     <dependency>
> >       <groupId>com.adobe.flash.framework</groupId>
> >       <artifactId>playerglobal</artifactId>
> >       <version>${flash.version}</version>
> >       <type>swc</type>
> >     </dependency>
> >   </dependencies>
> >
> >   <!-- Repository and PluginRepository section for Flex SDK and compiler
> > dependencies.
> >        Note: instead of including this in every POM, you can append it to
> > your user (~/.m2/settings.xml) or global
> >   (M2_HOME/conf/settings.xml) settings file.
> >     -->
> >   <repositories>
> >      <repository>
> >         <id>flex-mojos-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> >      </repository>
> >   </repositories>
> >
> >   <pluginRepositories>
> >      <pluginRepository>
> >         <id>flex-mojos-plugin-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> >      </pluginRepository>
> >   </pluginRepositories>
> > </project>
> >
> > Did I miss anything?
> >
> > --
> > *Thanks & Regards*
> > *Gautam Pandey*
> > *Tegile Systems*
> > *Ph : 9243014820*
> >
> >
> > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > christofer.dutz@c-ware.de
> > > wrote:
> >
> > > When embedding fonts and images I have found that you need to add the
> > > threadlocal toolkit dependency before the compiler artifact in the
> plugin
> > > configuration ... just search for "threadlocal toolkit".
> > >
> > > Chris
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Hi Chris,
> > >    Now I am trying to build the sample application with 4.6 SDK.
> Without
> > > adding any image, build is going fine but when I add an image to the
> > > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> > stack
> > > is as follow:
> > >
> > > *Writing configuration dump to
> > > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable
> to
> > > resolve 'add.png' for transcoding*
> > >
> > > *                        [Embed(source="add.png")]*
> > >
> > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable
> to
> > > transcode add.png.*
> > >
> > > *                        [Embed(source="add.png")]*
> > >
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[INFO] BUILD FAILURE*
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[INFO] Total time: 7.396s*
> > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > *[INFO] Final Memory: 35M/495M*
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[ERROR] Failed to execute goal
> > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > (default-compile-swf) on project MyProject: Got 2*
> > > * errors building project, check logs -> [Help 1]*
> > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute
> > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > *default-compile-swf) on project MyProject: Got 2 errors building
> > project,
> > > check logs*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > *        at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > *        at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)*
> > > *        at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > *        at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > *        at
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
> > > building project, check logs*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > *        at
> > > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > *        ... 19 more*
> > > *[ERROR]*
> > > *[ERROR]*
> > > *[ERROR] For more information about the errors and possible solutions,
> > > please read the following articles:*
> > > *[ERROR] [Help 1]
> > > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >*
> > > *D:\FlexMavenTest\MyProject>*
> > >
> > >
> > > Do you have any idea how this can be resolved ? I am able to run the
> > > application from my Flash Builder without any problem. It will be great
> > > help if you can point out the issue.
> > >
> > > *My pom.xml  is :*
> > >
> > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > *  <!--*
> > >
> > > *    Copyright 2008 Marvin Herman Froeder*
> > > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > > *    you may not use this file except in compliance with the License.*
> > > *    You may obtain a copy of the License at*
> > >
> > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > >
> > > *    Unless required by applicable law or agreed to in writing,
> software*
> > > *    distributed under the License is distributed on an "AS IS" BASIS,*
> > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.*
> > > *    See the License for the specific language governing permissions
> and*
> > > *    limitations under the License.*
> > >
> > > *-->*
> > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > <http://maven.apache.org/POM/4.0.0>"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > <http://maven.apache.org/POM/4.0.0>
> > > http://maven.apache.org/maven-v4_0_0.xsd
> > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > *  <modelVersion>4.0.0</modelVersion>*
> > >
> > > *  <groupId>com.gkp.app</groupId>*
> > > *  <artifactId>MyProject</artifactId>*
> > > *  <version>1.0-SNAPSHOT</version>*
> > > *  <packaging>swf</packaging>*
> > >
> > > *  <name>MyProject Flex</name>*
> > > *  <properties>*
> > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > * <flex.version>4.6.0.23201</flex.version>*
> > > * <flash.version>11.1</flash.version>*
> > > *  </properties>*
> > >
> > > *  <build>*
> > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > *    <plugins>*
> > > *      <plugin>*
> > >
> > > *        <groupId>net.flexmojos.oss</groupId>*
> > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > *        <version>${flexmojos.version}</version>*
> > > *        <extensions>true</extensions>*
> > > * <configuration>*
> > > * <sourceFile>Main.mxml</sourceFile>*
> > > * <sourcePaths>*
> > > * <path>src/main/flex</path>*
> > > * <path>src/main/resources</path>*
> > > * </sourcePaths> *
> > > * <debug>true</debug>*
> > > * </configuration>*
> > > * <dependencies>*
> > > * <dependency>*
> > > * <groupId>net.flexmojos.oss</groupId>*
> > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > * <version>${flexmojos.version}</version>*
> > > * </dependency>*
> > > * <dependency>*
> > > *  <groupId>com.adobe.flex</groupId>*
> > > *  <artifactId>compiler</artifactId>*
> > > *  <version>${flex.version}</version>*
> > > *  <type>pom</type>*
> > > * </dependency>*
> > > *        </dependencies>*
> > >
> > > *      </plugin>*
> > > *    </plugins>*
> > > *  </build>*
> > >
> > > *  <dependencies>*
> > > * <dependency>*
> > > * <groupId>net.flexmojos.oss</groupId>*
> > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > * <version>${flexmojos.version}</version>*
> > > * </dependency>*
> > > * <dependency>*
> > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > *      <artifactId>flex-framework</artifactId>*
> > > *      <version>${flex.version}</version>*
> > > *      <type>pom</type>*
> > > *    </dependency>*
> > >
> > > *    <dependency>*
> > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > *      <artifactId>playerglobal</artifactId>*
> > > *      <version>${flash.version}</version>*
> > > *      <type>swc</type>*
> > > *    </dependency>*
> > > *  </dependencies>*
> > >
> > > *  <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies. *
> > > *       Note: instead of including this in every POM, you can append it
> > to
> > > your user (~/.m2/settings.xml) or global *
> > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > *    -->*
> > > *  <repositories>*
> > > *     <repository>*
> > > *        <id>flex-mojos-repository</id>*
> > > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > *     </repository>*
> > > *  </repositories>*
> > >
> > > *  <pluginRepositories>*
> > > *     <pluginRepository>*
> > > *        <id>flex-mojos-plugin-repository</id>*
> > > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > *     </pluginRepository>*
> > > *  </pluginRepositories>*
> > > *</project>*
> > >
> > > *And Main.mxml is :*
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <!--
> > >
> > >      Copyright 2008 Marvin Herman Froeder
> > >      Licensed under the Apache License, Version 2.0 (the "License");
> you
> > > may not use this file except in compliance with the License. You may
> > obtain
> > > a copy of the License at
> > >      http://www.apache.org/licenses/LICENSE-2.0
> > >      Unless required by applicable law or agreed to in writing,
> software
> > > distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT
> > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
> the
> > > License for the specific language governing permissions and limitations
> > > under the License.
> > >
> > >
> > > -->
> > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > minHeight="600">
> > > <fx:Script>
> > > <![CDATA[
> > > [Bindable]
> > > [Embed(source="add.png")]
> > > private var imgclass : Class;
> > > ]]>
> > > </fx:Script>
> > > <fx:Declarations>
> > > <!-- Place non-visual elements (e.g., services, value objects) here -->
> > > </fx:Declarations>
> > > <s:Label text="Hello World." left="60" top="20"/>
> > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > </s:Application>
> > >
> > > --
> > > *Thanks & Regards*
> > > *Gautam Pandey*
> > > *Tegile Systems*
> > > *Ph : 9243014820*
> > >
> > >
> > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > wrote:
> > >
> > > > Thanks Chris,
> > > >      I have mavenized the 4.13 FDK following the steps given in
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > and
> > > > copied to my local repo. I never did maven things so I am not sure
> > about
> > > > the things. Currently learning maven concepts to point out the exact
> > > cause.
> > > > Do I need to build flexmojos also and deploy to local repo?
> > > >
> > > > Thanks
> > > > Gautam
> > > >
> > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > christofer.dutz@c-ware.de
> > > > > wrote:
> > > >
> > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > >> If not that's exactly what Maven is complaining about. Currently
> there
> > > is
> > > >> no Apache Flex FDK publicaly available in any public Maven
> repository.
> > > We
> > > >> are working on this, but I't still a mile to go.
> > > >>
> > > >> Chris
> > > >>
> > > >> ________________________________________
> > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > >> An: users@flex.apache.org
> > > >> Betreff: Re: Need help on flexmojo
> > > >>
> > > >> I guess I am missing repositories and pluginRepositories like
> things.
> > I
> > > >> don't know what should be added in this section. Can someone confirm
> > > below
> > > >> default things will work or not?
> > > >>
> > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > >> dependencies.
> > > >>        Note: instead of including this in every POM, you can append
> it
> > > to
> > > >> your user (~/.m2/settings.xml) or global
> > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > >>     -->
> > > >>   <repositories>
> > > >>      <repository>
> > > >>         <id>flex-mojos-repository</id>
> > > >>         <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > >> </url>
> > > >>      </repository>
> > > >>   </repositories>
> > > >>
> > > >>   <pluginRepositories>
> > > >>      <pluginRepository>
> > > >>         <id>flex-mojos-plugin-repository</id>
> > > >>         <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > >> </url>
> > > >>      </pluginRepository>
> > > >>   </pluginRepositories>
> > > >>
> > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com>
> > > wrote:
> > > >>
> > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > >> >
> > > >> >> Fai
> > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > >> repository,
> > > >> >> resolution wi
> > > >> >> ll not be reattempted until the update interval of central has
> > > elapsed
> > > >> or
> > > >> >> updates are forced
> > > >> >>
> > > >> > I don't know much Maven, but did you try forcing this update ?
> > > >> >
> > > >> > Tom
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> *Thanks & Regards*
> > > >> *Gautam Pandey*
> > > >> *Tegile Systems*
> > > >> *Ph : 9243014820*
> > > >>
> > > >
> > > >
> > >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
Ok,

so I don't have the adobe versions with me and I never bothered re-deploying them as all my projects are built using Apache Flex. But I changed your build to build with Apache flex and I needed to fix a few things:

1. Remove the sourcePaths from the config (This doesn't exist, but it shouldn't do any harm)
2. Changed the Flexmojos version to 7.0.1 (As I need to use Apache Flex)
3. The framework artifact should be: com.adobe.flex:famework:{version}:pom and not com.adobe.flex.framework:flex-famework:{version}:pom (At least this is how the current Mavenizer generates stuff)

With these changes I was able to run flexmojos with an Apache Flex 4.13 FDK. So If your build generally was working, I guess you can omit the first 3 steps in your setup. I was able to compile, but got the image transcoding errors you were talking about so step 4 is important:

4. Change the url of your image resource in main.mxml from 			[Embed(source="asset/image/add.png")]
to
[Embed(source="/asset/image/add.png")]

With this change I was able to build.

Chris

________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Dienstag, 14. Oktober 2014 09:00
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

You will see a down arrow in the top middle position. Using that you can
download the project.



Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 12:27 PM, Christofer Dutz <christofer.dutz@c-ware.de
> wrote:

> Hmm I seem to be unable to download anything. I can see the files, but not
> their content (One archive would be better anyway ... this way I don't have
> to manually create the directories and download each file seperately)
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Dienstag, 14. Oktober 2014 08:45
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>      I have hosted it on my google drive. Please have a look. Thanks for
> your precious time. Its just 23kb file. Let me know if you are facing any
> problem.
>
>
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
>
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > If you are able to zip up the application and send it to my private
> > address, I would try to solve the problem for you. Image embedding does
> > work, you just have to configure your build right. Unfortunately I don't
> > have to time to do this step by step on the list, so if you send me the
> > example, I'll make it work.
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 10:59
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Yes add.png is located in src/main/resources/. I read the Falcon email
> > thread. I guess I have to wait for the fix.
> >
> > --
> > *Thanks *
> > *Gautam Pandey*
> >
> >
> >
> > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de>
> > wrote:
> >
> > > I'd omit the sourcePaths config option as this is implicitly defined by
> > > maven already. I never used that option.
> > > Where are your image resources located? src/main/resources/add.png ? I
> > > usually have resource paths absolute so in my case I usually write
> > > "/add.png" instead of "add.png" but this is currently something we are
> > > discussing on the dev-list as Falcon seems to have problems with this.
> > >
> > > Chris
> > >
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 08:34
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Thank you Chris,
> > >     Still its not going through. Build is failing with same error. My
> new
> > > pom.xml is :
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >   <!--
> > >
> > >     Copyright 2008 Marvin Herman Froeder
> > >     Licensed under the Apache License, Version 2.0 (the "License");
> > >     you may not use this file except in compliance with the License.
> > >     You may obtain a copy of the License at
> > >
> > >         http://www.apache.org/licenses/LICENSE-2.0
> > >
> > >     Unless required by applicable law or agreed to in writing, software
> > >     distributed under the License is distributed on an "AS IS" BASIS,
> > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.
> > >     See the License for the specific language governing permissions and
> > >     limitations under the License.
> > >
> > > -->
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > > http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd
> > > ">
> > >   <modelVersion>4.0.0</modelVersion>
> > >
> > >   <groupId>com.gkp.app</groupId>
> > >   <artifactId>MyProject</artifactId>
> > >   <version>1.0-SNAPSHOT</version>
> > >   <packaging>swf</packaging>
> > >
> > >   <name>MyProject Flex</name>
> > >   <properties>
> > > <flexmojos.version>6.0.1</flexmojos.version>
> > > <flex.version>4.6.0.23201</flex.version>
> > > <flash.version>11.1</flash.version>
> > >   </properties>
> > >
> > >   <build>
> > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > >     <plugins>
> > >       <plugin>
> > >
> > >         <groupId>net.flexmojos.oss</groupId>
> > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > >         <version>${flexmojos.version}</version>
> > >         <extensions>true</extensions>
> > > <configuration>
> > > <sourceFile>Main.mxml</sourceFile>
> > > <sourcePaths>
> > > <path>src/main/flex</path>
> > > <path>src/main/resources</path>
> > > </sourcePaths>
> > > <debug>true</debug>
> > > </configuration>
> > > <dependencies>
> > > <dependency>
> > > <groupId>net.flexmojos.oss</groupId>
> > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > > <version>${flexmojos.version}</version>
> > > </dependency>
> > > <dependency>
> > >   <groupId>com.adobe.flex</groupId>
> > >   <artifactId>compiler</artifactId>
> > >   <version>${flex.version}</version>
> > >   <type>pom</type>
> > > </dependency>
> > >         </dependencies>
> > >
> > >       </plugin>
> > >     </plugins>
> > >   </build>
> > >
> > >   <dependencies>
> > > <dependency>
> > >       <groupId>com.adobe.flex.framework</groupId>
> > >       <artifactId>flex-framework</artifactId>
> > >       <version>${flex.version}</version>
> > >       <type>pom</type>
> > >     </dependency>
> > >
> > >     <dependency>
> > >       <groupId>com.adobe.flash.framework</groupId>
> > >       <artifactId>playerglobal</artifactId>
> > >       <version>${flash.version}</version>
> > >       <type>swc</type>
> > >     </dependency>
> > >   </dependencies>
> > >
> > >   <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies.
> > >        Note: instead of including this in every POM, you can append it
> to
> > > your user (~/.m2/settings.xml) or global
> > >   (M2_HOME/conf/settings.xml) settings file.
> > >     -->
> > >   <repositories>
> > >      <repository>
> > >         <id>flex-mojos-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </repository>
> > >   </repositories>
> > >
> > >   <pluginRepositories>
> > >      <pluginRepository>
> > >         <id>flex-mojos-plugin-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </pluginRepository>
> > >   </pluginRepositories>
> > > </project>
> > >
> > > Did I miss anything?
> > >
> > > --
> > > *Thanks & Regards*
> > > *Gautam Pandey*
> > > *Tegile Systems*
> > > *Ph : 9243014820*
> > >
> > >
> > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > > christofer.dutz@c-ware.de
> > > > wrote:
> > >
> > > > When embedding fonts and images I have found that you need to add the
> > > > threadlocal toolkit dependency before the compiler artifact in the
> > plugin
> > > > configuration ... just search for "threadlocal toolkit".
> > > >
> > > > Chris
> > > > ________________________________________
> > > > Von: Gautam Pandey <gk...@gmail.com>
> > > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > > An: users@flex.apache.org
> > > > Betreff: Re: Need help on flexmojo
> > > >
> > > > Hi Chris,
> > > >    Now I am trying to build the sample application with 4.6 SDK.
> > Without
> > > > adding any image, build is going fine but when I add an image to the
> > > > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> > > stack
> > > > is as follow:
> > > >
> > > > *Writing configuration dump to
> > > > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> unable
> > to
> > > > resolve 'add.png' for transcoding*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> Unable
> > to
> > > > transcode add.png.*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] BUILD FAILURE*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] Total time: 7.396s*
> > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > > *[INFO] Final Memory: 35M/495M*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[ERROR] Failed to execute goal
> > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > > (default-compile-swf) on project MyProject: Got 2*
> > > > * errors building project, check logs -> [Help 1]*
> > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > execute
> > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > > *default-compile-swf) on project MyProject: Got 2 errors building
> > > project,
> > > > check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > > *        at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > > *        at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > > *        at
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
> errors
> > > > building project, check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > > *        at
> > > >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > > *        ... 19 more*
> > > > *[ERROR]*
> > > > *[ERROR]*
> > > > *[ERROR] For more information about the errors and possible
> solutions,
> > > > please read the following articles:*
> > > > *[ERROR] [Help 1]
> > > >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > > <
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >*
> > > > *D:\FlexMavenTest\MyProject>*
> > > >
> > > >
> > > > Do you have any idea how this can be resolved ? I am able to run the
> > > > application from my Flash Builder without any problem. It will be
> great
> > > > help if you can point out the issue.
> > > >
> > > > *My pom.xml  is :*
> > > >
> > > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > > *  <!--*
> > > >
> > > > *    Copyright 2008 Marvin Herman Froeder*
> > > > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > > > *    you may not use this file except in compliance with the
> License.*
> > > > *    You may obtain a copy of the License at*
> > > >
> > > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > > >
> > > > *    Unless required by applicable law or agreed to in writing,
> > software*
> > > > *    distributed under the License is distributed on an "AS IS"
> BASIS,*
> > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > > implied.*
> > > > *    See the License for the specific language governing permissions
> > and*
> > > > *    limitations under the License.*
> > > >
> > > > *-->*
> > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>"
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>
> > > > http://maven.apache.org/maven-v4_0_0.xsd
> > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > > *  <modelVersion>4.0.0</modelVersion>*
> > > >
> > > > *  <groupId>com.gkp.app</groupId>*
> > > > *  <artifactId>MyProject</artifactId>*
> > > > *  <version>1.0-SNAPSHOT</version>*
> > > > *  <packaging>swf</packaging>*
> > > >
> > > > *  <name>MyProject Flex</name>*
> > > > *  <properties>*
> > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > > * <flex.version>4.6.0.23201</flex.version>*
> > > > * <flash.version>11.1</flash.version>*
> > > > *  </properties>*
> > > >
> > > > *  <build>*
> > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > > *    <plugins>*
> > > > *      <plugin>*
> > > >
> > > > *        <groupId>net.flexmojos.oss</groupId>*
> > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > *        <version>${flexmojos.version}</version>*
> > > > *        <extensions>true</extensions>*
> > > > * <configuration>*
> > > > * <sourceFile>Main.mxml</sourceFile>*
> > > > * <sourcePaths>*
> > > > * <path>src/main/flex</path>*
> > > > * <path>src/main/resources</path>*
> > > > * </sourcePaths> *
> > > > * <debug>true</debug>*
> > > > * </configuration>*
> > > > * <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *  <groupId>com.adobe.flex</groupId>*
> > > > *  <artifactId>compiler</artifactId>*
> > > > *  <version>${flex.version}</version>*
> > > > *  <type>pom</type>*
> > > > * </dependency>*
> > > > *        </dependencies>*
> > > >
> > > > *      </plugin>*
> > > > *    </plugins>*
> > > > *  </build>*
> > > >
> > > > *  <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > > *      <artifactId>flex-framework</artifactId>*
> > > > *      <version>${flex.version}</version>*
> > > > *      <type>pom</type>*
> > > > *    </dependency>*
> > > >
> > > > *    <dependency>*
> > > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > > *      <artifactId>playerglobal</artifactId>*
> > > > *      <version>${flash.version}</version>*
> > > > *      <type>swc</type>*
> > > > *    </dependency>*
> > > > *  </dependencies>*
> > > >
> > > > *  <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > > dependencies. *
> > > > *       Note: instead of including this in every POM, you can append
> it
> > > to
> > > > your user (~/.m2/settings.xml) or global *
> > > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > > *    -->*
> > > > *  <repositories>*
> > > > *     <repository>*
> > > > *        <id>flex-mojos-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </repository>*
> > > > *  </repositories>*
> > > >
> > > > *  <pluginRepositories>*
> > > > *     <pluginRepository>*
> > > > *        <id>flex-mojos-plugin-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </pluginRepository>*
> > > > *  </pluginRepositories>*
> > > > *</project>*
> > > >
> > > > *And Main.mxml is :*
> > > >
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <!--
> > > >
> > > >      Copyright 2008 Marvin Herman Froeder
> > > >      Licensed under the Apache License, Version 2.0 (the "License");
> > you
> > > > may not use this file except in compliance with the License. You may
> > > obtain
> > > > a copy of the License at
> > > >      http://www.apache.org/licenses/LICENSE-2.0
> > > >      Unless required by applicable law or agreed to in writing,
> > software
> > > > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT
> > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
> > the
> > > > License for the specific language governing permissions and
> limitations
> > > > under the License.
> > > >
> > > >
> > > > -->
> > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > > minHeight="600">
> > > > <fx:Script>
> > > > <![CDATA[
> > > > [Bindable]
> > > > [Embed(source="add.png")]
> > > > private var imgclass : Class;
> > > > ]]>
> > > > </fx:Script>
> > > > <fx:Declarations>
> > > > <!-- Place non-visual elements (e.g., services, value objects) here
> -->
> > > > </fx:Declarations>
> > > > <s:Label text="Hello World." left="60" top="20"/>
> > > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > > </s:Application>
> > > >
> > > > --
> > > > *Thanks & Regards*
> > > > *Gautam Pandey*
> > > > *Tegile Systems*
> > > > *Ph : 9243014820*
> > > >
> > > >
> > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > > wrote:
> > > >
> > > > > Thanks Chris,
> > > > >      I have mavenized the 4.13 FDK following the steps given in
> > > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > > and
> > > > > copied to my local repo. I never did maven things so I am not sure
> > > about
> > > > > the things. Currently learning maven concepts to point out the
> exact
> > > > cause.
> > > > > Do I need to build flexmojos also and deploy to local repo?
> > > > >
> > > > > Thanks
> > > > > Gautam
> > > > >
> > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > > christofer.dutz@c-ware.de
> > > > > > wrote:
> > > > >
> > > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > > >> If not that's exactly what Maven is complaining about. Currently
> > there
> > > > is
> > > > >> no Apache Flex FDK publicaly available in any public Maven
> > repository.
> > > > We
> > > > >> are working on this, but I't still a mile to go.
> > > > >>
> > > > >> Chris
> > > > >>
> > > > >> ________________________________________
> > > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > > >> An: users@flex.apache.org
> > > > >> Betreff: Re: Need help on flexmojo
> > > > >>
> > > > >> I guess I am missing repositories and pluginRepositories like
> > things.
> > > I
> > > > >> don't know what should be added in this section. Can someone
> confirm
> > > > below
> > > > >> default things will work or not?
> > > > >>
> > > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > > compiler
> > > > >> dependencies.
> > > > >>        Note: instead of including this in every POM, you can
> append
> > it
> > > > to
> > > > >> your user (~/.m2/settings.xml) or global
> > > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > > >>     -->
> > > > >>   <repositories>
> > > > >>      <repository>
> > > > >>         <id>flex-mojos-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </repository>
> > > > >>   </repositories>
> > > > >>
> > > > >>   <pluginRepositories>
> > > > >>      <pluginRepository>
> > > > >>         <id>flex-mojos-plugin-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </pluginRepository>
> > > > >>   </pluginRepositories>
> > > > >>
> > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc@extravision.com
> >
> > > > wrote:
> > > > >>
> > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > > >> >
> > > > >> >> Fai
> > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > > >> repository,
> > > > >> >> resolution wi
> > > > >> >> ll not be reattempted until the update interval of central has
> > > > elapsed
> > > > >> or
> > > > >> >> updates are forced
> > > > >> >>
> > > > >> > I don't know much Maven, but did you try forcing this update ?
> > > > >> >
> > > > >> > Tom
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> *Thanks & Regards*
> > > > >> *Gautam Pandey*
> > > > >> *Tegile Systems*
> > > > >> *Ph : 9243014820*
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
You will see a down arrow in the top middle position. Using that you can
download the project.



Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 12:27 PM, Christofer Dutz <christofer.dutz@c-ware.de
> wrote:

> Hmm I seem to be unable to download anything. I can see the files, but not
> their content (One archive would be better anyway ... this way I don't have
> to manually create the directories and download each file seperately)
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Dienstag, 14. Oktober 2014 08:45
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>      I have hosted it on my google drive. Please have a look. Thanks for
> your precious time. Its just 23kb file. Let me know if you are facing any
> problem.
>
>
> https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing
>
>
> Thanks & Regards
> Gautam Pandey
>
>
> On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > If you are able to zip up the application and send it to my private
> > address, I would try to solve the problem for you. Image embedding does
> > work, you just have to configure your build right. Unfortunately I don't
> > have to time to do this step by step on the list, so if you send me the
> > example, I'll make it work.
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 10:59
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Yes add.png is located in src/main/resources/. I read the Falcon email
> > thread. I guess I have to wait for the fix.
> >
> > --
> > *Thanks *
> > *Gautam Pandey*
> >
> >
> >
> > On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de>
> > wrote:
> >
> > > I'd omit the sourcePaths config option as this is implicitly defined by
> > > maven already. I never used that option.
> > > Where are your image resources located? src/main/resources/add.png ? I
> > > usually have resource paths absolute so in my case I usually write
> > > "/add.png" instead of "add.png" but this is currently something we are
> > > discussing on the dev-list as Falcon seems to have problems with this.
> > >
> > > Chris
> > >
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 08:34
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Thank you Chris,
> > >     Still its not going through. Build is failing with same error. My
> new
> > > pom.xml is :
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >   <!--
> > >
> > >     Copyright 2008 Marvin Herman Froeder
> > >     Licensed under the Apache License, Version 2.0 (the "License");
> > >     you may not use this file except in compliance with the License.
> > >     You may obtain a copy of the License at
> > >
> > >         http://www.apache.org/licenses/LICENSE-2.0
> > >
> > >     Unless required by applicable law or agreed to in writing, software
> > >     distributed under the License is distributed on an "AS IS" BASIS,
> > >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.
> > >     See the License for the specific language governing permissions and
> > >     limitations under the License.
> > >
> > > -->
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > > http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd
> > > ">
> > >   <modelVersion>4.0.0</modelVersion>
> > >
> > >   <groupId>com.gkp.app</groupId>
> > >   <artifactId>MyProject</artifactId>
> > >   <version>1.0-SNAPSHOT</version>
> > >   <packaging>swf</packaging>
> > >
> > >   <name>MyProject Flex</name>
> > >   <properties>
> > > <flexmojos.version>6.0.1</flexmojos.version>
> > > <flex.version>4.6.0.23201</flex.version>
> > > <flash.version>11.1</flash.version>
> > >   </properties>
> > >
> > >   <build>
> > >     <sourceDirectory>src/main/flex</sourceDirectory>
> > >     <plugins>
> > >       <plugin>
> > >
> > >         <groupId>net.flexmojos.oss</groupId>
> > >         <artifactId>flexmojos-maven-plugin</artifactId>
> > >         <version>${flexmojos.version}</version>
> > >         <extensions>true</extensions>
> > > <configuration>
> > > <sourceFile>Main.mxml</sourceFile>
> > > <sourcePaths>
> > > <path>src/main/flex</path>
> > > <path>src/main/resources</path>
> > > </sourcePaths>
> > > <debug>true</debug>
> > > </configuration>
> > > <dependencies>
> > > <dependency>
> > > <groupId>net.flexmojos.oss</groupId>
> > > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > > <version>${flexmojos.version}</version>
> > > </dependency>
> > > <dependency>
> > >   <groupId>com.adobe.flex</groupId>
> > >   <artifactId>compiler</artifactId>
> > >   <version>${flex.version}</version>
> > >   <type>pom</type>
> > > </dependency>
> > >         </dependencies>
> > >
> > >       </plugin>
> > >     </plugins>
> > >   </build>
> > >
> > >   <dependencies>
> > > <dependency>
> > >       <groupId>com.adobe.flex.framework</groupId>
> > >       <artifactId>flex-framework</artifactId>
> > >       <version>${flex.version}</version>
> > >       <type>pom</type>
> > >     </dependency>
> > >
> > >     <dependency>
> > >       <groupId>com.adobe.flash.framework</groupId>
> > >       <artifactId>playerglobal</artifactId>
> > >       <version>${flash.version}</version>
> > >       <type>swc</type>
> > >     </dependency>
> > >   </dependencies>
> > >
> > >   <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies.
> > >        Note: instead of including this in every POM, you can append it
> to
> > > your user (~/.m2/settings.xml) or global
> > >   (M2_HOME/conf/settings.xml) settings file.
> > >     -->
> > >   <repositories>
> > >      <repository>
> > >         <id>flex-mojos-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </repository>
> > >   </repositories>
> > >
> > >   <pluginRepositories>
> > >      <pluginRepository>
> > >         <id>flex-mojos-plugin-repository</id>
> > >         <url>http://repository.sonatype.org/content/groups/flexgroup
> > </url>
> > >      </pluginRepository>
> > >   </pluginRepositories>
> > > </project>
> > >
> > > Did I miss anything?
> > >
> > > --
> > > *Thanks & Regards*
> > > *Gautam Pandey*
> > > *Tegile Systems*
> > > *Ph : 9243014820*
> > >
> > >
> > > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > > christofer.dutz@c-ware.de
> > > > wrote:
> > >
> > > > When embedding fonts and images I have found that you need to add the
> > > > threadlocal toolkit dependency before the compiler artifact in the
> > plugin
> > > > configuration ... just search for "threadlocal toolkit".
> > > >
> > > > Chris
> > > > ________________________________________
> > > > Von: Gautam Pandey <gk...@gmail.com>
> > > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > > An: users@flex.apache.org
> > > > Betreff: Re: Need help on flexmojo
> > > >
> > > > Hi Chris,
> > > >    Now I am trying to build the sample application with 4.6 SDK.
> > Without
> > > > adding any image, build is going fine but when I add an image to the
> > > > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> > > stack
> > > > is as follow:
> > > >
> > > > *Writing configuration dump to
> > > > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> unable
> > to
> > > > resolve 'add.png' for transcoding*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error:
> Unable
> > to
> > > > transcode add.png.*
> > > >
> > > > *                        [Embed(source="add.png")]*
> > > >
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] BUILD FAILURE*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[INFO] Total time: 7.396s*
> > > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > > *[INFO] Final Memory: 35M/495M*
> > > > *[INFO]
> > > >
> > ------------------------------------------------------------------------*
> > > > *[ERROR] Failed to execute goal
> > > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > > (default-compile-swf) on project MyProject: Got 2*
> > > > * errors building project, check logs -> [Help 1]*
> > > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > execute
> > > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > > *default-compile-swf) on project MyProject: Got 2 errors building
> > > project,
> > > > check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > > *        at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > > *        at
> > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > > *        at
> > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > > *        at
> > > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2
> errors
> > > > building project, check logs*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > > *        at
> > > >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > > *        at
> > > >
> > > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > > *        ... 19 more*
> > > > *[ERROR]*
> > > > *[ERROR]*
> > > > *[ERROR] For more information about the errors and possible
> solutions,
> > > > please read the following articles:*
> > > > *[ERROR] [Help 1]
> > > >
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > > <
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > >*
> > > > *D:\FlexMavenTest\MyProject>*
> > > >
> > > >
> > > > Do you have any idea how this can be resolved ? I am able to run the
> > > > application from my Flash Builder without any problem. It will be
> great
> > > > help if you can point out the issue.
> > > >
> > > > *My pom.xml  is :*
> > > >
> > > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > > *  <!--*
> > > >
> > > > *    Copyright 2008 Marvin Herman Froeder*
> > > > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > > > *    you may not use this file except in compliance with the
> License.*
> > > > *    You may obtain a copy of the License at*
> > > >
> > > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > > >
> > > > *    Unless required by applicable law or agreed to in writing,
> > software*
> > > > *    distributed under the License is distributed on an "AS IS"
> BASIS,*
> > > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > > implied.*
> > > > *    See the License for the specific language governing permissions
> > and*
> > > > *    limitations under the License.*
> > > >
> > > > *-->*
> > > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>"
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > <http://maven.apache.org/POM/4.0.0>
> > > > http://maven.apache.org/maven-v4_0_0.xsd
> > > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > > *  <modelVersion>4.0.0</modelVersion>*
> > > >
> > > > *  <groupId>com.gkp.app</groupId>*
> > > > *  <artifactId>MyProject</artifactId>*
> > > > *  <version>1.0-SNAPSHOT</version>*
> > > > *  <packaging>swf</packaging>*
> > > >
> > > > *  <name>MyProject Flex</name>*
> > > > *  <properties>*
> > > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > > * <flex.version>4.6.0.23201</flex.version>*
> > > > * <flash.version>11.1</flash.version>*
> > > > *  </properties>*
> > > >
> > > > *  <build>*
> > > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > > *    <plugins>*
> > > > *      <plugin>*
> > > >
> > > > *        <groupId>net.flexmojos.oss</groupId>*
> > > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > *        <version>${flexmojos.version}</version>*
> > > > *        <extensions>true</extensions>*
> > > > * <configuration>*
> > > > * <sourceFile>Main.mxml</sourceFile>*
> > > > * <sourcePaths>*
> > > > * <path>src/main/flex</path>*
> > > > * <path>src/main/resources</path>*
> > > > * </sourcePaths> *
> > > > * <debug>true</debug>*
> > > > * </configuration>*
> > > > * <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *  <groupId>com.adobe.flex</groupId>*
> > > > *  <artifactId>compiler</artifactId>*
> > > > *  <version>${flex.version}</version>*
> > > > *  <type>pom</type>*
> > > > * </dependency>*
> > > > *        </dependencies>*
> > > >
> > > > *      </plugin>*
> > > > *    </plugins>*
> > > > *  </build>*
> > > >
> > > > *  <dependencies>*
> > > > * <dependency>*
> > > > * <groupId>net.flexmojos.oss</groupId>*
> > > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > > * <version>${flexmojos.version}</version>*
> > > > * </dependency>*
> > > > * <dependency>*
> > > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > > *      <artifactId>flex-framework</artifactId>*
> > > > *      <version>${flex.version}</version>*
> > > > *      <type>pom</type>*
> > > > *    </dependency>*
> > > >
> > > > *    <dependency>*
> > > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > > *      <artifactId>playerglobal</artifactId>*
> > > > *      <version>${flash.version}</version>*
> > > > *      <type>swc</type>*
> > > > *    </dependency>*
> > > > *  </dependencies>*
> > > >
> > > > *  <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > > dependencies. *
> > > > *       Note: instead of including this in every POM, you can append
> it
> > > to
> > > > your user (~/.m2/settings.xml) or global *
> > > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > > *    -->*
> > > > *  <repositories>*
> > > > *     <repository>*
> > > > *        <id>flex-mojos-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </repository>*
> > > > *  </repositories>*
> > > >
> > > > *  <pluginRepositories>*
> > > > *     <pluginRepository>*
> > > > *        <id>flex-mojos-plugin-repository</id>*
> > > > *        <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > > *     </pluginRepository>*
> > > > *  </pluginRepositories>*
> > > > *</project>*
> > > >
> > > > *And Main.mxml is :*
> > > >
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <!--
> > > >
> > > >      Copyright 2008 Marvin Herman Froeder
> > > >      Licensed under the Apache License, Version 2.0 (the "License");
> > you
> > > > may not use this file except in compliance with the License. You may
> > > obtain
> > > > a copy of the License at
> > > >      http://www.apache.org/licenses/LICENSE-2.0
> > > >      Unless required by applicable law or agreed to in writing,
> > software
> > > > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT
> > > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
> > the
> > > > License for the specific language governing permissions and
> limitations
> > > > under the License.
> > > >
> > > >
> > > > -->
> > > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > > minHeight="600">
> > > > <fx:Script>
> > > > <![CDATA[
> > > > [Bindable]
> > > > [Embed(source="add.png")]
> > > > private var imgclass : Class;
> > > > ]]>
> > > > </fx:Script>
> > > > <fx:Declarations>
> > > > <!-- Place non-visual elements (e.g., services, value objects) here
> -->
> > > > </fx:Declarations>
> > > > <s:Label text="Hello World." left="60" top="20"/>
> > > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > > </s:Application>
> > > >
> > > > --
> > > > *Thanks & Regards*
> > > > *Gautam Pandey*
> > > > *Tegile Systems*
> > > > *Ph : 9243014820*
> > > >
> > > >
> > > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > > wrote:
> > > >
> > > > > Thanks Chris,
> > > > >      I have mavenized the 4.13 FDK following the steps given in
> > > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > > and
> > > > > copied to my local repo. I never did maven things so I am not sure
> > > about
> > > > > the things. Currently learning maven concepts to point out the
> exact
> > > > cause.
> > > > > Do I need to build flexmojos also and deploy to local repo?
> > > > >
> > > > > Thanks
> > > > > Gautam
> > > > >
> > > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > > christofer.dutz@c-ware.de
> > > > > > wrote:
> > > > >
> > > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > > >> If not that's exactly what Maven is complaining about. Currently
> > there
> > > > is
> > > > >> no Apache Flex FDK publicaly available in any public Maven
> > repository.
> > > > We
> > > > >> are working on this, but I't still a mile to go.
> > > > >>
> > > > >> Chris
> > > > >>
> > > > >> ________________________________________
> > > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > > >> An: users@flex.apache.org
> > > > >> Betreff: Re: Need help on flexmojo
> > > > >>
> > > > >> I guess I am missing repositories and pluginRepositories like
> > things.
> > > I
> > > > >> don't know what should be added in this section. Can someone
> confirm
> > > > below
> > > > >> default things will work or not?
> > > > >>
> > > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > > compiler
> > > > >> dependencies.
> > > > >>        Note: instead of including this in every POM, you can
> append
> > it
> > > > to
> > > > >> your user (~/.m2/settings.xml) or global
> > > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > > >>     -->
> > > > >>   <repositories>
> > > > >>      <repository>
> > > > >>         <id>flex-mojos-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </repository>
> > > > >>   </repositories>
> > > > >>
> > > > >>   <pluginRepositories>
> > > > >>      <pluginRepository>
> > > > >>         <id>flex-mojos-plugin-repository</id>
> > > > >>         <url>
> > http://repository.sonatype.org/content/groups/flexgroup
> > > > >> </url>
> > > > >>      </pluginRepository>
> > > > >>   </pluginRepositories>
> > > > >>
> > > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc@extravision.com
> >
> > > > wrote:
> > > > >>
> > > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > > >> >
> > > > >> >> Fai
> > > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > > >> repository,
> > > > >> >> resolution wi
> > > > >> >> ll not be reattempted until the update interval of central has
> > > > elapsed
> > > > >> or
> > > > >> >> updates are forced
> > > > >> >>
> > > > >> > I don't know much Maven, but did you try forcing this update ?
> > > > >> >
> > > > >> > Tom
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> *Thanks & Regards*
> > > > >> *Gautam Pandey*
> > > > >> *Tegile Systems*
> > > > >> *Ph : 9243014820*
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
Hmm I seem to be unable to download anything. I can see the files, but not their content (One archive would be better anyway ... this way I don't have to manually create the directories and download each file seperately)

Chris
________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Dienstag, 14. Oktober 2014 08:45
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

Hi Chris,
     I have hosted it on my google drive. Please have a look. Thanks for
your precious time. Its just 23kb file. Let me know if you are facing any
problem.

https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing


Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <ch...@c-ware.de>
wrote:

> If you are able to zip up the application and send it to my private
> address, I would try to solve the problem for you. Image embedding does
> work, you just have to configure your build right. Unfortunately I don't
> have to time to do this step by step on the list, so if you send me the
> example, I'll make it work.
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Montag, 13. Oktober 2014 10:59
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Yes add.png is located in src/main/resources/. I read the Falcon email
> thread. I guess I have to wait for the fix.
>
> --
> *Thanks *
> *Gautam Pandey*
>
>
>
> On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > I'd omit the sourcePaths config option as this is implicitly defined by
> > maven already. I never used that option.
> > Where are your image resources located? src/main/resources/add.png ? I
> > usually have resource paths absolute so in my case I usually write
> > "/add.png" instead of "add.png" but this is currently something we are
> > discussing on the dev-list as Falcon seems to have problems with this.
> >
> > Chris
> >
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 08:34
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Thank you Chris,
> >     Still its not going through. Build is failing with same error. My new
> > pom.xml is :
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >   <!--
> >
> >     Copyright 2008 Marvin Herman Froeder
> >     Licensed under the Apache License, Version 2.0 (the "License");
> >     you may not use this file except in compliance with the License.
> >     You may obtain a copy of the License at
> >
> >         http://www.apache.org/licenses/LICENSE-2.0
> >
> >     Unless required by applicable law or agreed to in writing, software
> >     distributed under the License is distributed on an "AS IS" BASIS,
> >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.
> >     See the License for the specific language governing permissions and
> >     limitations under the License.
> >
> > -->
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd
> > ">
> >   <modelVersion>4.0.0</modelVersion>
> >
> >   <groupId>com.gkp.app</groupId>
> >   <artifactId>MyProject</artifactId>
> >   <version>1.0-SNAPSHOT</version>
> >   <packaging>swf</packaging>
> >
> >   <name>MyProject Flex</name>
> >   <properties>
> > <flexmojos.version>6.0.1</flexmojos.version>
> > <flex.version>4.6.0.23201</flex.version>
> > <flash.version>11.1</flash.version>
> >   </properties>
> >
> >   <build>
> >     <sourceDirectory>src/main/flex</sourceDirectory>
> >     <plugins>
> >       <plugin>
> >
> >         <groupId>net.flexmojos.oss</groupId>
> >         <artifactId>flexmojos-maven-plugin</artifactId>
> >         <version>${flexmojos.version}</version>
> >         <extensions>true</extensions>
> > <configuration>
> > <sourceFile>Main.mxml</sourceFile>
> > <sourcePaths>
> > <path>src/main/flex</path>
> > <path>src/main/resources</path>
> > </sourcePaths>
> > <debug>true</debug>
> > </configuration>
> > <dependencies>
> > <dependency>
> > <groupId>net.flexmojos.oss</groupId>
> > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > <version>${flexmojos.version}</version>
> > </dependency>
> > <dependency>
> >   <groupId>com.adobe.flex</groupId>
> >   <artifactId>compiler</artifactId>
> >   <version>${flex.version}</version>
> >   <type>pom</type>
> > </dependency>
> >         </dependencies>
> >
> >       </plugin>
> >     </plugins>
> >   </build>
> >
> >   <dependencies>
> > <dependency>
> >       <groupId>com.adobe.flex.framework</groupId>
> >       <artifactId>flex-framework</artifactId>
> >       <version>${flex.version}</version>
> >       <type>pom</type>
> >     </dependency>
> >
> >     <dependency>
> >       <groupId>com.adobe.flash.framework</groupId>
> >       <artifactId>playerglobal</artifactId>
> >       <version>${flash.version}</version>
> >       <type>swc</type>
> >     </dependency>
> >   </dependencies>
> >
> >   <!-- Repository and PluginRepository section for Flex SDK and compiler
> > dependencies.
> >        Note: instead of including this in every POM, you can append it to
> > your user (~/.m2/settings.xml) or global
> >   (M2_HOME/conf/settings.xml) settings file.
> >     -->
> >   <repositories>
> >      <repository>
> >         <id>flex-mojos-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> >      </repository>
> >   </repositories>
> >
> >   <pluginRepositories>
> >      <pluginRepository>
> >         <id>flex-mojos-plugin-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> >      </pluginRepository>
> >   </pluginRepositories>
> > </project>
> >
> > Did I miss anything?
> >
> > --
> > *Thanks & Regards*
> > *Gautam Pandey*
> > *Tegile Systems*
> > *Ph : 9243014820*
> >
> >
> > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > christofer.dutz@c-ware.de
> > > wrote:
> >
> > > When embedding fonts and images I have found that you need to add the
> > > threadlocal toolkit dependency before the compiler artifact in the
> plugin
> > > configuration ... just search for "threadlocal toolkit".
> > >
> > > Chris
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Hi Chris,
> > >    Now I am trying to build the sample application with 4.6 SDK.
> Without
> > > adding any image, build is going fine but when I add an image to the
> > > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> > stack
> > > is as follow:
> > >
> > > *Writing configuration dump to
> > > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable
> to
> > > resolve 'add.png' for transcoding*
> > >
> > > *                        [Embed(source="add.png")]*
> > >
> > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable
> to
> > > transcode add.png.*
> > >
> > > *                        [Embed(source="add.png")]*
> > >
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[INFO] BUILD FAILURE*
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[INFO] Total time: 7.396s*
> > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > *[INFO] Final Memory: 35M/495M*
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[ERROR] Failed to execute goal
> > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > (default-compile-swf) on project MyProject: Got 2*
> > > * errors building project, check logs -> [Help 1]*
> > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute
> > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > *default-compile-swf) on project MyProject: Got 2 errors building
> > project,
> > > check logs*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > *        at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > *        at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)*
> > > *        at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > *        at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > *        at
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
> > > building project, check logs*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > *        at
> > > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > *        ... 19 more*
> > > *[ERROR]*
> > > *[ERROR]*
> > > *[ERROR] For more information about the errors and possible solutions,
> > > please read the following articles:*
> > > *[ERROR] [Help 1]
> > > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >*
> > > *D:\FlexMavenTest\MyProject>*
> > >
> > >
> > > Do you have any idea how this can be resolved ? I am able to run the
> > > application from my Flash Builder without any problem. It will be great
> > > help if you can point out the issue.
> > >
> > > *My pom.xml  is :*
> > >
> > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > *  <!--*
> > >
> > > *    Copyright 2008 Marvin Herman Froeder*
> > > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > > *    you may not use this file except in compliance with the License.*
> > > *    You may obtain a copy of the License at*
> > >
> > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > >
> > > *    Unless required by applicable law or agreed to in writing,
> software*
> > > *    distributed under the License is distributed on an "AS IS" BASIS,*
> > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.*
> > > *    See the License for the specific language governing permissions
> and*
> > > *    limitations under the License.*
> > >
> > > *-->*
> > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > <http://maven.apache.org/POM/4.0.0>"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > <http://maven.apache.org/POM/4.0.0>
> > > http://maven.apache.org/maven-v4_0_0.xsd
> > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > *  <modelVersion>4.0.0</modelVersion>*
> > >
> > > *  <groupId>com.gkp.app</groupId>*
> > > *  <artifactId>MyProject</artifactId>*
> > > *  <version>1.0-SNAPSHOT</version>*
> > > *  <packaging>swf</packaging>*
> > >
> > > *  <name>MyProject Flex</name>*
> > > *  <properties>*
> > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > * <flex.version>4.6.0.23201</flex.version>*
> > > * <flash.version>11.1</flash.version>*
> > > *  </properties>*
> > >
> > > *  <build>*
> > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > *    <plugins>*
> > > *      <plugin>*
> > >
> > > *        <groupId>net.flexmojos.oss</groupId>*
> > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > *        <version>${flexmojos.version}</version>*
> > > *        <extensions>true</extensions>*
> > > * <configuration>*
> > > * <sourceFile>Main.mxml</sourceFile>*
> > > * <sourcePaths>*
> > > * <path>src/main/flex</path>*
> > > * <path>src/main/resources</path>*
> > > * </sourcePaths> *
> > > * <debug>true</debug>*
> > > * </configuration>*
> > > * <dependencies>*
> > > * <dependency>*
> > > * <groupId>net.flexmojos.oss</groupId>*
> > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > * <version>${flexmojos.version}</version>*
> > > * </dependency>*
> > > * <dependency>*
> > > *  <groupId>com.adobe.flex</groupId>*
> > > *  <artifactId>compiler</artifactId>*
> > > *  <version>${flex.version}</version>*
> > > *  <type>pom</type>*
> > > * </dependency>*
> > > *        </dependencies>*
> > >
> > > *      </plugin>*
> > > *    </plugins>*
> > > *  </build>*
> > >
> > > *  <dependencies>*
> > > * <dependency>*
> > > * <groupId>net.flexmojos.oss</groupId>*
> > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > * <version>${flexmojos.version}</version>*
> > > * </dependency>*
> > > * <dependency>*
> > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > *      <artifactId>flex-framework</artifactId>*
> > > *      <version>${flex.version}</version>*
> > > *      <type>pom</type>*
> > > *    </dependency>*
> > >
> > > *    <dependency>*
> > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > *      <artifactId>playerglobal</artifactId>*
> > > *      <version>${flash.version}</version>*
> > > *      <type>swc</type>*
> > > *    </dependency>*
> > > *  </dependencies>*
> > >
> > > *  <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies. *
> > > *       Note: instead of including this in every POM, you can append it
> > to
> > > your user (~/.m2/settings.xml) or global *
> > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > *    -->*
> > > *  <repositories>*
> > > *     <repository>*
> > > *        <id>flex-mojos-repository</id>*
> > > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > *     </repository>*
> > > *  </repositories>*
> > >
> > > *  <pluginRepositories>*
> > > *     <pluginRepository>*
> > > *        <id>flex-mojos-plugin-repository</id>*
> > > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > *     </pluginRepository>*
> > > *  </pluginRepositories>*
> > > *</project>*
> > >
> > > *And Main.mxml is :*
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <!--
> > >
> > >      Copyright 2008 Marvin Herman Froeder
> > >      Licensed under the Apache License, Version 2.0 (the "License");
> you
> > > may not use this file except in compliance with the License. You may
> > obtain
> > > a copy of the License at
> > >      http://www.apache.org/licenses/LICENSE-2.0
> > >      Unless required by applicable law or agreed to in writing,
> software
> > > distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT
> > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
> the
> > > License for the specific language governing permissions and limitations
> > > under the License.
> > >
> > >
> > > -->
> > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > minHeight="600">
> > > <fx:Script>
> > > <![CDATA[
> > > [Bindable]
> > > [Embed(source="add.png")]
> > > private var imgclass : Class;
> > > ]]>
> > > </fx:Script>
> > > <fx:Declarations>
> > > <!-- Place non-visual elements (e.g., services, value objects) here -->
> > > </fx:Declarations>
> > > <s:Label text="Hello World." left="60" top="20"/>
> > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > </s:Application>
> > >
> > > --
> > > *Thanks & Regards*
> > > *Gautam Pandey*
> > > *Tegile Systems*
> > > *Ph : 9243014820*
> > >
> > >
> > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > wrote:
> > >
> > > > Thanks Chris,
> > > >      I have mavenized the 4.13 FDK following the steps given in
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > and
> > > > copied to my local repo. I never did maven things so I am not sure
> > about
> > > > the things. Currently learning maven concepts to point out the exact
> > > cause.
> > > > Do I need to build flexmojos also and deploy to local repo?
> > > >
> > > > Thanks
> > > > Gautam
> > > >
> > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > christofer.dutz@c-ware.de
> > > > > wrote:
> > > >
> > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > >> If not that's exactly what Maven is complaining about. Currently
> there
> > > is
> > > >> no Apache Flex FDK publicaly available in any public Maven
> repository.
> > > We
> > > >> are working on this, but I't still a mile to go.
> > > >>
> > > >> Chris
> > > >>
> > > >> ________________________________________
> > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > >> An: users@flex.apache.org
> > > >> Betreff: Re: Need help on flexmojo
> > > >>
> > > >> I guess I am missing repositories and pluginRepositories like
> things.
> > I
> > > >> don't know what should be added in this section. Can someone confirm
> > > below
> > > >> default things will work or not?
> > > >>
> > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > >> dependencies.
> > > >>        Note: instead of including this in every POM, you can append
> it
> > > to
> > > >> your user (~/.m2/settings.xml) or global
> > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > >>     -->
> > > >>   <repositories>
> > > >>      <repository>
> > > >>         <id>flex-mojos-repository</id>
> > > >>         <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > >> </url>
> > > >>      </repository>
> > > >>   </repositories>
> > > >>
> > > >>   <pluginRepositories>
> > > >>      <pluginRepository>
> > > >>         <id>flex-mojos-plugin-repository</id>
> > > >>         <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > >> </url>
> > > >>      </pluginRepository>
> > > >>   </pluginRepositories>
> > > >>
> > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com>
> > > wrote:
> > > >>
> > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > >> >
> > > >> >> Fai
> > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > >> repository,
> > > >> >> resolution wi
> > > >> >> ll not be reattempted until the update interval of central has
> > > elapsed
> > > >> or
> > > >> >> updates are forced
> > > >> >>
> > > >> > I don't know much Maven, but did you try forcing this update ?
> > > >> >
> > > >> > Tom
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> *Thanks & Regards*
> > > >> *Gautam Pandey*
> > > >> *Tegile Systems*
> > > >> *Ph : 9243014820*
> > > >>
> > > >
> > > >
> > >
> >
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Hi Chris,
     I have hosted it on my google drive. Please have a look. Thanks for
your precious time. Its just 23kb file. Let me know if you are facing any
problem.

https://drive.google.com/file/d/0Bz2-qy3IfG74UTVPNFFOcTlkWVU/view?usp=sharing


Thanks & Regards
Gautam Pandey


On Tue, Oct 14, 2014 at 2:27 AM, Christofer Dutz <ch...@c-ware.de>
wrote:

> If you are able to zip up the application and send it to my private
> address, I would try to solve the problem for you. Image embedding does
> work, you just have to configure your build right. Unfortunately I don't
> have to time to do this step by step on the list, so if you send me the
> example, I'll make it work.
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Montag, 13. Oktober 2014 10:59
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Yes add.png is located in src/main/resources/. I read the Falcon email
> thread. I guess I have to wait for the fix.
>
> --
> *Thanks *
> *Gautam Pandey*
>
>
>
> On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > I'd omit the sourcePaths config option as this is implicitly defined by
> > maven already. I never used that option.
> > Where are your image resources located? src/main/resources/add.png ? I
> > usually have resource paths absolute so in my case I usually write
> > "/add.png" instead of "add.png" but this is currently something we are
> > discussing on the dev-list as Falcon seems to have problems with this.
> >
> > Chris
> >
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 08:34
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Thank you Chris,
> >     Still its not going through. Build is failing with same error. My new
> > pom.xml is :
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >   <!--
> >
> >     Copyright 2008 Marvin Herman Froeder
> >     Licensed under the Apache License, Version 2.0 (the "License");
> >     you may not use this file except in compliance with the License.
> >     You may obtain a copy of the License at
> >
> >         http://www.apache.org/licenses/LICENSE-2.0
> >
> >     Unless required by applicable law or agreed to in writing, software
> >     distributed under the License is distributed on an "AS IS" BASIS,
> >     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.
> >     See the License for the specific language governing permissions and
> >     limitations under the License.
> >
> > -->
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> > http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd
> > ">
> >   <modelVersion>4.0.0</modelVersion>
> >
> >   <groupId>com.gkp.app</groupId>
> >   <artifactId>MyProject</artifactId>
> >   <version>1.0-SNAPSHOT</version>
> >   <packaging>swf</packaging>
> >
> >   <name>MyProject Flex</name>
> >   <properties>
> > <flexmojos.version>6.0.1</flexmojos.version>
> > <flex.version>4.6.0.23201</flex.version>
> > <flash.version>11.1</flash.version>
> >   </properties>
> >
> >   <build>
> >     <sourceDirectory>src/main/flex</sourceDirectory>
> >     <plugins>
> >       <plugin>
> >
> >         <groupId>net.flexmojos.oss</groupId>
> >         <artifactId>flexmojos-maven-plugin</artifactId>
> >         <version>${flexmojos.version}</version>
> >         <extensions>true</extensions>
> > <configuration>
> > <sourceFile>Main.mxml</sourceFile>
> > <sourcePaths>
> > <path>src/main/flex</path>
> > <path>src/main/resources</path>
> > </sourcePaths>
> > <debug>true</debug>
> > </configuration>
> > <dependencies>
> > <dependency>
> > <groupId>net.flexmojos.oss</groupId>
> > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> > <version>${flexmojos.version}</version>
> > </dependency>
> > <dependency>
> >   <groupId>com.adobe.flex</groupId>
> >   <artifactId>compiler</artifactId>
> >   <version>${flex.version}</version>
> >   <type>pom</type>
> > </dependency>
> >         </dependencies>
> >
> >       </plugin>
> >     </plugins>
> >   </build>
> >
> >   <dependencies>
> > <dependency>
> >       <groupId>com.adobe.flex.framework</groupId>
> >       <artifactId>flex-framework</artifactId>
> >       <version>${flex.version}</version>
> >       <type>pom</type>
> >     </dependency>
> >
> >     <dependency>
> >       <groupId>com.adobe.flash.framework</groupId>
> >       <artifactId>playerglobal</artifactId>
> >       <version>${flash.version}</version>
> >       <type>swc</type>
> >     </dependency>
> >   </dependencies>
> >
> >   <!-- Repository and PluginRepository section for Flex SDK and compiler
> > dependencies.
> >        Note: instead of including this in every POM, you can append it to
> > your user (~/.m2/settings.xml) or global
> >   (M2_HOME/conf/settings.xml) settings file.
> >     -->
> >   <repositories>
> >      <repository>
> >         <id>flex-mojos-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> >      </repository>
> >   </repositories>
> >
> >   <pluginRepositories>
> >      <pluginRepository>
> >         <id>flex-mojos-plugin-repository</id>
> >         <url>http://repository.sonatype.org/content/groups/flexgroup
> </url>
> >      </pluginRepository>
> >   </pluginRepositories>
> > </project>
> >
> > Did I miss anything?
> >
> > --
> > *Thanks & Regards*
> > *Gautam Pandey*
> > *Tegile Systems*
> > *Ph : 9243014820*
> >
> >
> > On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> > christofer.dutz@c-ware.de
> > > wrote:
> >
> > > When embedding fonts and images I have found that you need to add the
> > > threadlocal toolkit dependency before the compiler artifact in the
> plugin
> > > configuration ... just search for "threadlocal toolkit".
> > >
> > > Chris
> > > ________________________________________
> > > Von: Gautam Pandey <gk...@gmail.com>
> > > Gesendet: Montag, 13. Oktober 2014 08:00
> > > An: users@flex.apache.org
> > > Betreff: Re: Need help on flexmojo
> > >
> > > Hi Chris,
> > >    Now I am trying to build the sample application with 4.6 SDK.
> Without
> > > adding any image, build is going fine but when I add an image to the
> > > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> > stack
> > > is as follow:
> > >
> > > *Writing configuration dump to
> > > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable
> to
> > > resolve 'add.png' for transcoding*
> > >
> > > *                        [Embed(source="add.png")]*
> > >
> > > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable
> to
> > > transcode add.png.*
> > >
> > > *                        [Embed(source="add.png")]*
> > >
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[INFO] BUILD FAILURE*
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[INFO] Total time: 7.396s*
> > > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > > *[INFO] Final Memory: 35M/495M*
> > > *[INFO]
> > >
> ------------------------------------------------------------------------*
> > > *[ERROR] Failed to execute goal
> > > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > > (default-compile-swf) on project MyProject: Got 2*
> > > * errors building project, check logs -> [Help 1]*
> > > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute
> > > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > > *default-compile-swf) on project MyProject: Got 2 errors building
> > project,
> > > check logs*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > > *        at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > > *        at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)*
> > > *        at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > > *        at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > > *        at
> > >
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > > *        at
> > >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
> > > building project, check logs*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > > *        at
> > >
> > >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > > *        at
> > > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > > *        at
> > >
> > >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > > *        ... 19 more*
> > > *[ERROR]*
> > > *[ERROR]*
> > > *[ERROR] For more information about the errors and possible solutions,
> > > please read the following articles:*
> > > *[ERROR] [Help 1]
> > > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > > <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >*
> > > *D:\FlexMavenTest\MyProject>*
> > >
> > >
> > > Do you have any idea how this can be resolved ? I am able to run the
> > > application from my Flash Builder without any problem. It will be great
> > > help if you can point out the issue.
> > >
> > > *My pom.xml  is :*
> > >
> > > *<?xml version="1.0" encoding="UTF-8"?>*
> > > *  <!--*
> > >
> > > *    Copyright 2008 Marvin Herman Froeder*
> > > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > > *    you may not use this file except in compliance with the License.*
> > > *    You may obtain a copy of the License at*
> > >
> > > *        http://www.apache.org/licenses/LICENSE-2.0
> > > <http://www.apache.org/licenses/LICENSE-2.0>*
> > >
> > > *    Unless required by applicable law or agreed to in writing,
> software*
> > > *    distributed under the License is distributed on an "AS IS" BASIS,*
> > > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > > implied.*
> > > *    See the License for the specific language governing permissions
> and*
> > > *    limitations under the License.*
> > >
> > > *-->*
> > > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > > <http://maven.apache.org/POM/4.0.0>"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > > <http://www.w3.org/2001/XMLSchema-instance>"
> > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > <http://maven.apache.org/POM/4.0.0>
> > > http://maven.apache.org/maven-v4_0_0.xsd
> > > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > > *  <modelVersion>4.0.0</modelVersion>*
> > >
> > > *  <groupId>com.gkp.app</groupId>*
> > > *  <artifactId>MyProject</artifactId>*
> > > *  <version>1.0-SNAPSHOT</version>*
> > > *  <packaging>swf</packaging>*
> > >
> > > *  <name>MyProject Flex</name>*
> > > *  <properties>*
> > > * <flexmojos.version>6.0.1</flexmojos.version>*
> > > * <flex.version>4.6.0.23201</flex.version>*
> > > * <flash.version>11.1</flash.version>*
> > > *  </properties>*
> > >
> > > *  <build>*
> > > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > > *    <plugins>*
> > > *      <plugin>*
> > >
> > > *        <groupId>net.flexmojos.oss</groupId>*
> > > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > > *        <version>${flexmojos.version}</version>*
> > > *        <extensions>true</extensions>*
> > > * <configuration>*
> > > * <sourceFile>Main.mxml</sourceFile>*
> > > * <sourcePaths>*
> > > * <path>src/main/flex</path>*
> > > * <path>src/main/resources</path>*
> > > * </sourcePaths> *
> > > * <debug>true</debug>*
> > > * </configuration>*
> > > * <dependencies>*
> > > * <dependency>*
> > > * <groupId>net.flexmojos.oss</groupId>*
> > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > * <version>${flexmojos.version}</version>*
> > > * </dependency>*
> > > * <dependency>*
> > > *  <groupId>com.adobe.flex</groupId>*
> > > *  <artifactId>compiler</artifactId>*
> > > *  <version>${flex.version}</version>*
> > > *  <type>pom</type>*
> > > * </dependency>*
> > > *        </dependencies>*
> > >
> > > *      </plugin>*
> > > *    </plugins>*
> > > *  </build>*
> > >
> > > *  <dependencies>*
> > > * <dependency>*
> > > * <groupId>net.flexmojos.oss</groupId>*
> > > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > > * <version>${flexmojos.version}</version>*
> > > * </dependency>*
> > > * <dependency>*
> > > *      <groupId>com.adobe.flex.framework</groupId>*
> > > *      <artifactId>flex-framework</artifactId>*
> > > *      <version>${flex.version}</version>*
> > > *      <type>pom</type>*
> > > *    </dependency>*
> > >
> > > *    <dependency>*
> > > *      <groupId>com.adobe.flash.framework</groupId>*
> > > *      <artifactId>playerglobal</artifactId>*
> > > *      <version>${flash.version}</version>*
> > > *      <type>swc</type>*
> > > *    </dependency>*
> > > *  </dependencies>*
> > >
> > > *  <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > > dependencies. *
> > > *       Note: instead of including this in every POM, you can append it
> > to
> > > your user (~/.m2/settings.xml) or global *
> > > *  (M2_HOME/conf/settings.xml) settings file. *
> > > *    -->*
> > > *  <repositories>*
> > > *     <repository>*
> > > *        <id>flex-mojos-repository</id>*
> > > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > *     </repository>*
> > > *  </repositories>*
> > >
> > > *  <pluginRepositories>*
> > > *     <pluginRepository>*
> > > *        <id>flex-mojos-plugin-repository</id>*
> > > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > > *     </pluginRepository>*
> > > *  </pluginRepositories>*
> > > *</project>*
> > >
> > > *And Main.mxml is :*
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <!--
> > >
> > >      Copyright 2008 Marvin Herman Froeder
> > >      Licensed under the Apache License, Version 2.0 (the "License");
> you
> > > may not use this file except in compliance with the License. You may
> > obtain
> > > a copy of the License at
> > >      http://www.apache.org/licenses/LICENSE-2.0
> > >      Unless required by applicable law or agreed to in writing,
> software
> > > distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT
> > > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See
> the
> > > License for the specific language governing permissions and limitations
> > > under the License.
> > >
> > >
> > > -->
> > > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> > >    xmlns:s="library://ns.adobe.com/flex/spark"
> > >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > > minHeight="600">
> > > <fx:Script>
> > > <![CDATA[
> > > [Bindable]
> > > [Embed(source="add.png")]
> > > private var imgclass : Class;
> > > ]]>
> > > </fx:Script>
> > > <fx:Declarations>
> > > <!-- Place non-visual elements (e.g., services, value objects) here -->
> > > </fx:Declarations>
> > > <s:Label text="Hello World." left="60" top="20"/>
> > > <s:Image source="{imgclass}" left="20" top="20"/>
> > > </s:Application>
> > >
> > > --
> > > *Thanks & Regards*
> > > *Gautam Pandey*
> > > *Tegile Systems*
> > > *Ph : 9243014820*
> > >
> > >
> > > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> > wrote:
> > >
> > > > Thanks Chris,
> > > >      I have mavenized the 4.13 FDK following the steps given in
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > > and
> > > > copied to my local repo. I never did maven things so I am not sure
> > about
> > > > the things. Currently learning maven concepts to point out the exact
> > > cause.
> > > > Do I need to build flexmojos also and deploy to local repo?
> > > >
> > > > Thanks
> > > > Gautam
> > > >
> > > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > > christofer.dutz@c-ware.de
> > > > > wrote:
> > > >
> > > >> Have you manually created the Maven artifacts for Flex 4.13?
> > > >> If not that's exactly what Maven is complaining about. Currently
> there
> > > is
> > > >> no Apache Flex FDK publicaly available in any public Maven
> repository.
> > > We
> > > >> are working on this, but I't still a mile to go.
> > > >>
> > > >> Chris
> > > >>
> > > >> ________________________________________
> > > >> Von: Gautam Pandey <gk...@gmail.com>
> > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > > >> An: users@flex.apache.org
> > > >> Betreff: Re: Need help on flexmojo
> > > >>
> > > >> I guess I am missing repositories and pluginRepositories like
> things.
> > I
> > > >> don't know what should be added in this section. Can someone confirm
> > > below
> > > >> default things will work or not?
> > > >>
> > > >>  <!-- Repository and PluginRepository section for Flex SDK and
> > compiler
> > > >> dependencies.
> > > >>        Note: instead of including this in every POM, you can append
> it
> > > to
> > > >> your user (~/.m2/settings.xml) or global
> > > >>   (M2_HOME/conf/settings.xml) settings file.
> > > >>     -->
> > > >>   <repositories>
> > > >>      <repository>
> > > >>         <id>flex-mojos-repository</id>
> > > >>         <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > >> </url>
> > > >>      </repository>
> > > >>   </repositories>
> > > >>
> > > >>   <pluginRepositories>
> > > >>      <pluginRepository>
> > > >>         <id>flex-mojos-plugin-repository</id>
> > > >>         <url>
> http://repository.sonatype.org/content/groups/flexgroup
> > > >> </url>
> > > >>      </pluginRepository>
> > > >>   </pluginRepositories>
> > > >>
> > > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com>
> > > wrote:
> > > >>
> > > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > > >> >
> > > >> >> Fai
> > > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > > >> repository,
> > > >> >> resolution wi
> > > >> >> ll not be reattempted until the update interval of central has
> > > elapsed
> > > >> or
> > > >> >> updates are forced
> > > >> >>
> > > >> > I don't know much Maven, but did you try forcing this update ?
> > > >> >
> > > >> > Tom
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> *Thanks & Regards*
> > > >> *Gautam Pandey*
> > > >> *Tegile Systems*
> > > >> *Ph : 9243014820*
> > > >>
> > > >
> > > >
> > >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
If you are able to zip up the application and send it to my private address, I would try to solve the problem for you. Image embedding does work, you just have to configure your build right. Unfortunately I don't have to time to do this step by step on the list, so if you send me the example, I'll make it work.

Chris
________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Montag, 13. Oktober 2014 10:59
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

Yes add.png is located in src/main/resources/. I read the Falcon email
thread. I guess I have to wait for the fix.

--
*Thanks *
*Gautam Pandey*



On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <ch...@c-ware.de>
wrote:

> I'd omit the sourcePaths config option as this is implicitly defined by
> maven already. I never used that option.
> Where are your image resources located? src/main/resources/add.png ? I
> usually have resource paths absolute so in my case I usually write
> "/add.png" instead of "add.png" but this is currently something we are
> discussing on the dev-list as Falcon seems to have problems with this.
>
> Chris
>
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Montag, 13. Oktober 2014 08:34
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Thank you Chris,
>     Still its not going through. Build is failing with same error. My new
> pom.xml is :
>
> <?xml version="1.0" encoding="UTF-8"?>
>   <!--
>
>     Copyright 2008 Marvin Herman Froeder
>     Licensed under the Apache License, Version 2.0 (the "License");
>     you may not use this file except in compliance with the License.
>     You may obtain a copy of the License at
>
>         http://www.apache.org/licenses/LICENSE-2.0
>
>     Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
>
> -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
> ">
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.gkp.app</groupId>
>   <artifactId>MyProject</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <packaging>swf</packaging>
>
>   <name>MyProject Flex</name>
>   <properties>
> <flexmojos.version>6.0.1</flexmojos.version>
> <flex.version>4.6.0.23201</flex.version>
> <flash.version>11.1</flash.version>
>   </properties>
>
>   <build>
>     <sourceDirectory>src/main/flex</sourceDirectory>
>     <plugins>
>       <plugin>
>
>         <groupId>net.flexmojos.oss</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <version>${flexmojos.version}</version>
>         <extensions>true</extensions>
> <configuration>
> <sourceFile>Main.mxml</sourceFile>
> <sourcePaths>
> <path>src/main/flex</path>
> <path>src/main/resources</path>
> </sourcePaths>
> <debug>true</debug>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>net.flexmojos.oss</groupId>
> <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> <version>${flexmojos.version}</version>
> </dependency>
> <dependency>
>   <groupId>com.adobe.flex</groupId>
>   <artifactId>compiler</artifactId>
>   <version>${flex.version}</version>
>   <type>pom</type>
> </dependency>
>         </dependencies>
>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
> <dependency>
>       <groupId>com.adobe.flex.framework</groupId>
>       <artifactId>flex-framework</artifactId>
>       <version>${flex.version}</version>
>       <type>pom</type>
>     </dependency>
>
>     <dependency>
>       <groupId>com.adobe.flash.framework</groupId>
>       <artifactId>playerglobal</artifactId>
>       <version>${flash.version}</version>
>       <type>swc</type>
>     </dependency>
>   </dependencies>
>
>   <!-- Repository and PluginRepository section for Flex SDK and compiler
> dependencies.
>        Note: instead of including this in every POM, you can append it to
> your user (~/.m2/settings.xml) or global
>   (M2_HOME/conf/settings.xml) settings file.
>     -->
>   <repositories>
>      <repository>
>         <id>flex-mojos-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </repository>
>   </repositories>
>
>   <pluginRepositories>
>      <pluginRepository>
>         <id>flex-mojos-plugin-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </pluginRepository>
>   </pluginRepositories>
> </project>
>
> Did I miss anything?
>
> --
> *Thanks & Regards*
> *Gautam Pandey*
> *Tegile Systems*
> *Ph : 9243014820*
>
>
> On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> christofer.dutz@c-ware.de
> > wrote:
>
> > When embedding fonts and images I have found that you need to add the
> > threadlocal toolkit dependency before the compiler artifact in the plugin
> > configuration ... just search for "threadlocal toolkit".
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 08:00
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Hi Chris,
> >    Now I am trying to build the sample application with 4.6 SDK. Without
> > adding any image, build is going fine but when I add an image to the
> > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> stack
> > is as follow:
> >
> > *Writing configuration dump to
> > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable to
> > resolve 'add.png' for transcoding*
> >
> > *                        [Embed(source="add.png")]*
> >
> > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable to
> > transcode add.png.*
> >
> > *                        [Embed(source="add.png")]*
> >
> > *[INFO]
> > ------------------------------------------------------------------------*
> > *[INFO] BUILD FAILURE*
> > *[INFO]
> > ------------------------------------------------------------------------*
> > *[INFO] Total time: 7.396s*
> > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > *[INFO] Final Memory: 35M/495M*
> > *[INFO]
> > ------------------------------------------------------------------------*
> > *[ERROR] Failed to execute goal
> > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > (default-compile-swf) on project MyProject: Got 2*
> > * errors building project, check logs -> [Help 1]*
> > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute
> > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > *default-compile-swf) on project MyProject: Got 2 errors building
> project,
> > check logs*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > *        at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > *        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
> > *        at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > *        at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > *        at
> >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > *        at
> >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > *        at
> >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > *        at
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
> > building project, check logs*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > *        at
> > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > *        at
> >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > *        ... 19 more*
> > *[ERROR]*
> > *[ERROR]*
> > *[ERROR] For more information about the errors and possible solutions,
> > please read the following articles:*
> > *[ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*
> > *D:\FlexMavenTest\MyProject>*
> >
> >
> > Do you have any idea how this can be resolved ? I am able to run the
> > application from my Flash Builder without any problem. It will be great
> > help if you can point out the issue.
> >
> > *My pom.xml  is :*
> >
> > *<?xml version="1.0" encoding="UTF-8"?>*
> > *  <!--*
> >
> > *    Copyright 2008 Marvin Herman Froeder*
> > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > *    you may not use this file except in compliance with the License.*
> > *    You may obtain a copy of the License at*
> >
> > *        http://www.apache.org/licenses/LICENSE-2.0
> > <http://www.apache.org/licenses/LICENSE-2.0>*
> >
> > *    Unless required by applicable law or agreed to in writing, software*
> > *    distributed under the License is distributed on an "AS IS" BASIS,*
> > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.*
> > *    See the License for the specific language governing permissions and*
> > *    limitations under the License.*
> >
> > *-->*
> > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > <http://maven.apache.org/POM/4.0.0>"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > <http://www.w3.org/2001/XMLSchema-instance>"
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > <http://maven.apache.org/POM/4.0.0>
> > http://maven.apache.org/maven-v4_0_0.xsd
> > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > *  <modelVersion>4.0.0</modelVersion>*
> >
> > *  <groupId>com.gkp.app</groupId>*
> > *  <artifactId>MyProject</artifactId>*
> > *  <version>1.0-SNAPSHOT</version>*
> > *  <packaging>swf</packaging>*
> >
> > *  <name>MyProject Flex</name>*
> > *  <properties>*
> > * <flexmojos.version>6.0.1</flexmojos.version>*
> > * <flex.version>4.6.0.23201</flex.version>*
> > * <flash.version>11.1</flash.version>*
> > *  </properties>*
> >
> > *  <build>*
> > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > *    <plugins>*
> > *      <plugin>*
> >
> > *        <groupId>net.flexmojos.oss</groupId>*
> > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > *        <version>${flexmojos.version}</version>*
> > *        <extensions>true</extensions>*
> > * <configuration>*
> > * <sourceFile>Main.mxml</sourceFile>*
> > * <sourcePaths>*
> > * <path>src/main/flex</path>*
> > * <path>src/main/resources</path>*
> > * </sourcePaths> *
> > * <debug>true</debug>*
> > * </configuration>*
> > * <dependencies>*
> > * <dependency>*
> > * <groupId>net.flexmojos.oss</groupId>*
> > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > * <version>${flexmojos.version}</version>*
> > * </dependency>*
> > * <dependency>*
> > *  <groupId>com.adobe.flex</groupId>*
> > *  <artifactId>compiler</artifactId>*
> > *  <version>${flex.version}</version>*
> > *  <type>pom</type>*
> > * </dependency>*
> > *        </dependencies>*
> >
> > *      </plugin>*
> > *    </plugins>*
> > *  </build>*
> >
> > *  <dependencies>*
> > * <dependency>*
> > * <groupId>net.flexmojos.oss</groupId>*
> > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > * <version>${flexmojos.version}</version>*
> > * </dependency>*
> > * <dependency>*
> > *      <groupId>com.adobe.flex.framework</groupId>*
> > *      <artifactId>flex-framework</artifactId>*
> > *      <version>${flex.version}</version>*
> > *      <type>pom</type>*
> > *    </dependency>*
> >
> > *    <dependency>*
> > *      <groupId>com.adobe.flash.framework</groupId>*
> > *      <artifactId>playerglobal</artifactId>*
> > *      <version>${flash.version}</version>*
> > *      <type>swc</type>*
> > *    </dependency>*
> > *  </dependencies>*
> >
> > *  <!-- Repository and PluginRepository section for Flex SDK and compiler
> > dependencies. *
> > *       Note: instead of including this in every POM, you can append it
> to
> > your user (~/.m2/settings.xml) or global *
> > *  (M2_HOME/conf/settings.xml) settings file. *
> > *    -->*
> > *  <repositories>*
> > *     <repository>*
> > *        <id>flex-mojos-repository</id>*
> > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > *     </repository>*
> > *  </repositories>*
> >
> > *  <pluginRepositories>*
> > *     <pluginRepository>*
> > *        <id>flex-mojos-plugin-repository</id>*
> > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > *     </pluginRepository>*
> > *  </pluginRepositories>*
> > *</project>*
> >
> > *And Main.mxml is :*
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <!--
> >
> >      Copyright 2008 Marvin Herman Froeder
> >      Licensed under the Apache License, Version 2.0 (the "License"); you
> > may not use this file except in compliance with the License. You may
> obtain
> > a copy of the License at
> >      http://www.apache.org/licenses/LICENSE-2.0
> >      Unless required by applicable law or agreed to in writing, software
> > distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
> > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
> > License for the specific language governing permissions and limitations
> > under the License.
> >
> >
> > -->
> > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> >    xmlns:s="library://ns.adobe.com/flex/spark"
> >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > minHeight="600">
> > <fx:Script>
> > <![CDATA[
> > [Bindable]
> > [Embed(source="add.png")]
> > private var imgclass : Class;
> > ]]>
> > </fx:Script>
> > <fx:Declarations>
> > <!-- Place non-visual elements (e.g., services, value objects) here -->
> > </fx:Declarations>
> > <s:Label text="Hello World." left="60" top="20"/>
> > <s:Image source="{imgclass}" left="20" top="20"/>
> > </s:Application>
> >
> > --
> > *Thanks & Regards*
> > *Gautam Pandey*
> > *Tegile Systems*
> > *Ph : 9243014820*
> >
> >
> > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> wrote:
> >
> > > Thanks Chris,
> > >      I have mavenized the 4.13 FDK following the steps given in
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > and
> > > copied to my local repo. I never did maven things so I am not sure
> about
> > > the things. Currently learning maven concepts to point out the exact
> > cause.
> > > Do I need to build flexmojos also and deploy to local repo?
> > >
> > > Thanks
> > > Gautam
> > >
> > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de
> > > > wrote:
> > >
> > >> Have you manually created the Maven artifacts for Flex 4.13?
> > >> If not that's exactly what Maven is complaining about. Currently there
> > is
> > >> no Apache Flex FDK publicaly available in any public Maven repository.
> > We
> > >> are working on this, but I't still a mile to go.
> > >>
> > >> Chris
> > >>
> > >> ________________________________________
> > >> Von: Gautam Pandey <gk...@gmail.com>
> > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > >> An: users@flex.apache.org
> > >> Betreff: Re: Need help on flexmojo
> > >>
> > >> I guess I am missing repositories and pluginRepositories like things.
> I
> > >> don't know what should be added in this section. Can someone confirm
> > below
> > >> default things will work or not?
> > >>
> > >>  <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > >> dependencies.
> > >>        Note: instead of including this in every POM, you can append it
> > to
> > >> your user (~/.m2/settings.xml) or global
> > >>   (M2_HOME/conf/settings.xml) settings file.
> > >>     -->
> > >>   <repositories>
> > >>      <repository>
> > >>         <id>flex-mojos-repository</id>
> > >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> > >> </url>
> > >>      </repository>
> > >>   </repositories>
> > >>
> > >>   <pluginRepositories>
> > >>      <pluginRepository>
> > >>         <id>flex-mojos-plugin-repository</id>
> > >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> > >> </url>
> > >>      </pluginRepository>
> > >>   </pluginRepositories>
> > >>
> > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com>
> > wrote:
> > >>
> > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > >> >
> > >> >> Fai
> > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > >> repository,
> > >> >> resolution wi
> > >> >> ll not be reattempted until the update interval of central has
> > elapsed
> > >> or
> > >> >> updates are forced
> > >> >>
> > >> > I don't know much Maven, but did you try forcing this update ?
> > >> >
> > >> > Tom
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> *Thanks & Regards*
> > >> *Gautam Pandey*
> > >> *Tegile Systems*
> > >> *Ph : 9243014820*
> > >>
> > >
> > >
> >
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Yes add.png is located in src/main/resources/. I read the Falcon email
thread. I guess I have to wait for the fix.

-- 
*Thanks *
*Gautam Pandey*



On Mon, Oct 13, 2014 at 2:21 PM, Christofer Dutz <ch...@c-ware.de>
wrote:

> I'd omit the sourcePaths config option as this is implicitly defined by
> maven already. I never used that option.
> Where are your image resources located? src/main/resources/add.png ? I
> usually have resource paths absolute so in my case I usually write
> "/add.png" instead of "add.png" but this is currently something we are
> discussing on the dev-list as Falcon seems to have problems with this.
>
> Chris
>
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Montag, 13. Oktober 2014 08:34
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Thank you Chris,
>     Still its not going through. Build is failing with same error. My new
> pom.xml is :
>
> <?xml version="1.0" encoding="UTF-8"?>
>   <!--
>
>     Copyright 2008 Marvin Herman Froeder
>     Licensed under the Apache License, Version 2.0 (the "License");
>     you may not use this file except in compliance with the License.
>     You may obtain a copy of the License at
>
>         http://www.apache.org/licenses/LICENSE-2.0
>
>     Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
>
> -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
> ">
>   <modelVersion>4.0.0</modelVersion>
>
>   <groupId>com.gkp.app</groupId>
>   <artifactId>MyProject</artifactId>
>   <version>1.0-SNAPSHOT</version>
>   <packaging>swf</packaging>
>
>   <name>MyProject Flex</name>
>   <properties>
> <flexmojos.version>6.0.1</flexmojos.version>
> <flex.version>4.6.0.23201</flex.version>
> <flash.version>11.1</flash.version>
>   </properties>
>
>   <build>
>     <sourceDirectory>src/main/flex</sourceDirectory>
>     <plugins>
>       <plugin>
>
>         <groupId>net.flexmojos.oss</groupId>
>         <artifactId>flexmojos-maven-plugin</artifactId>
>         <version>${flexmojos.version}</version>
>         <extensions>true</extensions>
> <configuration>
> <sourceFile>Main.mxml</sourceFile>
> <sourcePaths>
> <path>src/main/flex</path>
> <path>src/main/resources</path>
> </sourcePaths>
> <debug>true</debug>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>net.flexmojos.oss</groupId>
> <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> <version>${flexmojos.version}</version>
> </dependency>
> <dependency>
>   <groupId>com.adobe.flex</groupId>
>   <artifactId>compiler</artifactId>
>   <version>${flex.version}</version>
>   <type>pom</type>
> </dependency>
>         </dependencies>
>
>       </plugin>
>     </plugins>
>   </build>
>
>   <dependencies>
> <dependency>
>       <groupId>com.adobe.flex.framework</groupId>
>       <artifactId>flex-framework</artifactId>
>       <version>${flex.version}</version>
>       <type>pom</type>
>     </dependency>
>
>     <dependency>
>       <groupId>com.adobe.flash.framework</groupId>
>       <artifactId>playerglobal</artifactId>
>       <version>${flash.version}</version>
>       <type>swc</type>
>     </dependency>
>   </dependencies>
>
>   <!-- Repository and PluginRepository section for Flex SDK and compiler
> dependencies.
>        Note: instead of including this in every POM, you can append it to
> your user (~/.m2/settings.xml) or global
>   (M2_HOME/conf/settings.xml) settings file.
>     -->
>   <repositories>
>      <repository>
>         <id>flex-mojos-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </repository>
>   </repositories>
>
>   <pluginRepositories>
>      <pluginRepository>
>         <id>flex-mojos-plugin-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </pluginRepository>
>   </pluginRepositories>
> </project>
>
> Did I miss anything?
>
> --
> *Thanks & Regards*
> *Gautam Pandey*
> *Tegile Systems*
> *Ph : 9243014820*
>
>
> On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <
> christofer.dutz@c-ware.de
> > wrote:
>
> > When embedding fonts and images I have found that you need to add the
> > threadlocal toolkit dependency before the compiler artifact in the plugin
> > configuration ... just search for "threadlocal toolkit".
> >
> > Chris
> > ________________________________________
> > Von: Gautam Pandey <gk...@gmail.com>
> > Gesendet: Montag, 13. Oktober 2014 08:00
> > An: users@flex.apache.org
> > Betreff: Re: Need help on flexmojo
> >
> > Hi Chris,
> >    Now I am trying to build the sample application with 4.6 SDK. Without
> > adding any image, build is going fine but when I add an image to the
> > Main.mxml, it is throwing error* Unable to transcode add.png.* Error
> stack
> > is as follow:
> >
> > *Writing configuration dump to
> > D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable to
> > resolve 'add.png' for transcoding*
> >
> > *                        [Embed(source="add.png")]*
> >
> > *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable to
> > transcode add.png.*
> >
> > *                        [Embed(source="add.png")]*
> >
> > *[INFO]
> > ------------------------------------------------------------------------*
> > *[INFO] BUILD FAILURE*
> > *[INFO]
> > ------------------------------------------------------------------------*
> > *[INFO] Total time: 7.396s*
> > *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> > *[INFO] Final Memory: 35M/495M*
> > *[INFO]
> > ------------------------------------------------------------------------*
> > *[ERROR] Failed to execute goal
> > net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> > (default-compile-swf) on project MyProject: Got 2*
> > * errors building project, check logs -> [Help 1]*
> > *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute
> > goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> > *default-compile-swf) on project MyProject: Got 2 errors building
> project,
> > check logs*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> > *        at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> > *        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> > *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> > *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> > *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> > *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
> > *        at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> > *        at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> > *        at java.lang.reflect.Method.invoke(Method.java:606)*
> > *        at
> >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> > *        at
> >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> > *        at
> >
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> > *        at
> >
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> > *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
> > building project, check logs*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> > *        at
> >
> >
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> > *        at
> > net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> > *        at
> >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> > *        at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> > *        ... 19 more*
> > *[ERROR]*
> > *[ERROR]*
> > *[ERROR] For more information about the errors and possible solutions,
> > please read the following articles:*
> > *[ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> > <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*
> > *D:\FlexMavenTest\MyProject>*
> >
> >
> > Do you have any idea how this can be resolved ? I am able to run the
> > application from my Flash Builder without any problem. It will be great
> > help if you can point out the issue.
> >
> > *My pom.xml  is :*
> >
> > *<?xml version="1.0" encoding="UTF-8"?>*
> > *  <!--*
> >
> > *    Copyright 2008 Marvin Herman Froeder*
> > *    Licensed under the Apache License, Version 2.0 (the "License");*
> > *    you may not use this file except in compliance with the License.*
> > *    You may obtain a copy of the License at*
> >
> > *        http://www.apache.org/licenses/LICENSE-2.0
> > <http://www.apache.org/licenses/LICENSE-2.0>*
> >
> > *    Unless required by applicable law or agreed to in writing, software*
> > *    distributed under the License is distributed on an "AS IS" BASIS,*
> > *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> > implied.*
> > *    See the License for the specific language governing permissions and*
> > *    limitations under the License.*
> >
> > *-->*
> > *<project xmlns="http://maven.apache.org/POM/4.0.0
> > <http://maven.apache.org/POM/4.0.0>"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> > <http://www.w3.org/2001/XMLSchema-instance>"
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > <http://maven.apache.org/POM/4.0.0>
> > http://maven.apache.org/maven-v4_0_0.xsd
> > <http://maven.apache.org/maven-v4_0_0.xsd>">*
> > *  <modelVersion>4.0.0</modelVersion>*
> >
> > *  <groupId>com.gkp.app</groupId>*
> > *  <artifactId>MyProject</artifactId>*
> > *  <version>1.0-SNAPSHOT</version>*
> > *  <packaging>swf</packaging>*
> >
> > *  <name>MyProject Flex</name>*
> > *  <properties>*
> > * <flexmojos.version>6.0.1</flexmojos.version>*
> > * <flex.version>4.6.0.23201</flex.version>*
> > * <flash.version>11.1</flash.version>*
> > *  </properties>*
> >
> > *  <build>*
> > *    <sourceDirectory>src/main/flex</sourceDirectory>*
> > *    <plugins>*
> > *      <plugin>*
> >
> > *        <groupId>net.flexmojos.oss</groupId>*
> > *        <artifactId>flexmojos-maven-plugin</artifactId>*
> > *        <version>${flexmojos.version}</version>*
> > *        <extensions>true</extensions>*
> > * <configuration>*
> > * <sourceFile>Main.mxml</sourceFile>*
> > * <sourcePaths>*
> > * <path>src/main/flex</path>*
> > * <path>src/main/resources</path>*
> > * </sourcePaths> *
> > * <debug>true</debug>*
> > * </configuration>*
> > * <dependencies>*
> > * <dependency>*
> > * <groupId>net.flexmojos.oss</groupId>*
> > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > * <version>${flexmojos.version}</version>*
> > * </dependency>*
> > * <dependency>*
> > *  <groupId>com.adobe.flex</groupId>*
> > *  <artifactId>compiler</artifactId>*
> > *  <version>${flex.version}</version>*
> > *  <type>pom</type>*
> > * </dependency>*
> > *        </dependencies>*
> >
> > *      </plugin>*
> > *    </plugins>*
> > *  </build>*
> >
> > *  <dependencies>*
> > * <dependency>*
> > * <groupId>net.flexmojos.oss</groupId>*
> > * <artifactId>flexmojos-maven-plugin</artifactId>*
> > * <version>${flexmojos.version}</version>*
> > * </dependency>*
> > * <dependency>*
> > *      <groupId>com.adobe.flex.framework</groupId>*
> > *      <artifactId>flex-framework</artifactId>*
> > *      <version>${flex.version}</version>*
> > *      <type>pom</type>*
> > *    </dependency>*
> >
> > *    <dependency>*
> > *      <groupId>com.adobe.flash.framework</groupId>*
> > *      <artifactId>playerglobal</artifactId>*
> > *      <version>${flash.version}</version>*
> > *      <type>swc</type>*
> > *    </dependency>*
> > *  </dependencies>*
> >
> > *  <!-- Repository and PluginRepository section for Flex SDK and compiler
> > dependencies. *
> > *       Note: instead of including this in every POM, you can append it
> to
> > your user (~/.m2/settings.xml) or global *
> > *  (M2_HOME/conf/settings.xml) settings file. *
> > *    -->*
> > *  <repositories>*
> > *     <repository>*
> > *        <id>flex-mojos-repository</id>*
> > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > *     </repository>*
> > *  </repositories>*
> >
> > *  <pluginRepositories>*
> > *     <pluginRepository>*
> > *        <id>flex-mojos-plugin-repository</id>*
> > *        <url>http://repository.sonatype.org/content/groups/flexgroup
> > <http://repository.sonatype.org/content/groups/flexgroup></url>*
> > *     </pluginRepository>*
> > *  </pluginRepositories>*
> > *</project>*
> >
> > *And Main.mxml is :*
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <!--
> >
> >      Copyright 2008 Marvin Herman Froeder
> >      Licensed under the Apache License, Version 2.0 (the "License"); you
> > may not use this file except in compliance with the License. You may
> obtain
> > a copy of the License at
> >      http://www.apache.org/licenses/LICENSE-2.0
> >      Unless required by applicable law or agreed to in writing, software
> > distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
> > WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
> > License for the specific language governing permissions and limitations
> > under the License.
> >
> >
> > -->
> > <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> >    xmlns:s="library://ns.adobe.com/flex/spark"
> >    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> > minHeight="600">
> > <fx:Script>
> > <![CDATA[
> > [Bindable]
> > [Embed(source="add.png")]
> > private var imgclass : Class;
> > ]]>
> > </fx:Script>
> > <fx:Declarations>
> > <!-- Place non-visual elements (e.g., services, value objects) here -->
> > </fx:Declarations>
> > <s:Label text="Hello World." left="60" top="20"/>
> > <s:Image source="{imgclass}" left="20" top="20"/>
> > </s:Application>
> >
> > --
> > *Thanks & Regards*
> > *Gautam Pandey*
> > *Tegile Systems*
> > *Ph : 9243014820*
> >
> >
> > On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com>
> wrote:
> >
> > > Thanks Chris,
> > >      I have mavenized the 4.13 FDK following the steps given in
> > >
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> > and
> > > copied to my local repo. I never did maven things so I am not sure
> about
> > > the things. Currently learning maven concepts to point out the exact
> > cause.
> > > Do I need to build flexmojos also and deploy to local repo?
> > >
> > > Thanks
> > > Gautam
> > >
> > > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> > christofer.dutz@c-ware.de
> > > > wrote:
> > >
> > >> Have you manually created the Maven artifacts for Flex 4.13?
> > >> If not that's exactly what Maven is complaining about. Currently there
> > is
> > >> no Apache Flex FDK publicaly available in any public Maven repository.
> > We
> > >> are working on this, but I't still a mile to go.
> > >>
> > >> Chris
> > >>
> > >> ________________________________________
> > >> Von: Gautam Pandey <gk...@gmail.com>
> > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> > >> An: users@flex.apache.org
> > >> Betreff: Re: Need help on flexmojo
> > >>
> > >> I guess I am missing repositories and pluginRepositories like things.
> I
> > >> don't know what should be added in this section. Can someone confirm
> > below
> > >> default things will work or not?
> > >>
> > >>  <!-- Repository and PluginRepository section for Flex SDK and
> compiler
> > >> dependencies.
> > >>        Note: instead of including this in every POM, you can append it
> > to
> > >> your user (~/.m2/settings.xml) or global
> > >>   (M2_HOME/conf/settings.xml) settings file.
> > >>     -->
> > >>   <repositories>
> > >>      <repository>
> > >>         <id>flex-mojos-repository</id>
> > >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> > >> </url>
> > >>      </repository>
> > >>   </repositories>
> > >>
> > >>   <pluginRepositories>
> > >>      <pluginRepository>
> > >>         <id>flex-mojos-plugin-repository</id>
> > >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> > >> </url>
> > >>      </pluginRepository>
> > >>   </pluginRepositories>
> > >>
> > >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com>
> > wrote:
> > >>
> > >> > On 08/10/14 11:23, Gautam Pandey wrote:
> > >> >
> > >> >> Fai
> > >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> > >> >> http://repo.maven.apache.org/maven2  was cached in the local
> > >> repository,
> > >> >> resolution wi
> > >> >> ll not be reattempted until the update interval of central has
> > elapsed
> > >> or
> > >> >> updates are forced
> > >> >>
> > >> > I don't know much Maven, but did you try forcing this update ?
> > >> >
> > >> > Tom
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> *Thanks & Regards*
> > >> *Gautam Pandey*
> > >> *Tegile Systems*
> > >> *Ph : 9243014820*
> > >>
> > >
> > >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
I'd omit the sourcePaths config option as this is implicitly defined by maven already. I never used that option.
Where are your image resources located? src/main/resources/add.png ? I usually have resource paths absolute so in my case I usually write "/add.png" instead of "add.png" but this is currently something we are discussing on the dev-list as Falcon seems to have problems with this.

Chris

________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Montag, 13. Oktober 2014 08:34
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

Thank you Chris,
    Still its not going through. Build is failing with same error. My new
pom.xml is :

<?xml version="1.0" encoding="UTF-8"?>
  <!--

    Copyright 2008 Marvin Herman Froeder
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.gkp.app</groupId>
  <artifactId>MyProject</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>swf</packaging>

  <name>MyProject Flex</name>
  <properties>
<flexmojos.version>6.0.1</flexmojos.version>
<flex.version>4.6.0.23201</flex.version>
<flash.version>11.1</flash.version>
  </properties>

  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <plugins>
      <plugin>

        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flexmojos.version}</version>
        <extensions>true</extensions>
<configuration>
<sourceFile>Main.mxml</sourceFile>
<sourcePaths>
<path>src/main/flex</path>
<path>src/main/resources</path>
</sourcePaths>
<debug>true</debug>
</configuration>
<dependencies>
<dependency>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
<version>${flexmojos.version}</version>
</dependency>
<dependency>
  <groupId>com.adobe.flex</groupId>
  <artifactId>compiler</artifactId>
  <version>${flex.version}</version>
  <type>pom</type>
</dependency>
        </dependencies>

      </plugin>
    </plugins>
  </build>

  <dependencies>
<dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>flex-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

    <dependency>
      <groupId>com.adobe.flash.framework</groupId>
      <artifactId>playerglobal</artifactId>
      <version>${flash.version}</version>
      <type>swc</type>
    </dependency>
  </dependencies>

  <!-- Repository and PluginRepository section for Flex SDK and compiler
dependencies.
       Note: instead of including this in every POM, you can append it to
your user (~/.m2/settings.xml) or global
  (M2_HOME/conf/settings.xml) settings file.
    -->
  <repositories>
     <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </repository>
  </repositories>

  <pluginRepositories>
     <pluginRepository>
        <id>flex-mojos-plugin-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </pluginRepository>
  </pluginRepositories>
</project>

Did I miss anything?

--
*Thanks & Regards*
*Gautam Pandey*
*Tegile Systems*
*Ph : 9243014820*


On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <christofer.dutz@c-ware.de
> wrote:

> When embedding fonts and images I have found that you need to add the
> threadlocal toolkit dependency before the compiler artifact in the plugin
> configuration ... just search for "threadlocal toolkit".
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Montag, 13. Oktober 2014 08:00
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>    Now I am trying to build the sample application with 4.6 SDK. Without
> adding any image, build is going fine but when I add an image to the
> Main.mxml, it is throwing error* Unable to transcode add.png.* Error stack
> is as follow:
>
> *Writing configuration dump to
> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable to
> resolve 'add.png' for transcoding*
>
> *                        [Embed(source="add.png")]*
>
> *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable to
> transcode add.png.*
>
> *                        [Embed(source="add.png")]*
>
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] BUILD FAILURE*
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] Total time: 7.396s*
> *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> *[INFO] Final Memory: 35M/495M*
> *[INFO]
> ------------------------------------------------------------------------*
> *[ERROR] Failed to execute goal
> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> (default-compile-swf) on project MyProject: Got 2*
> * errors building project, check logs -> [Help 1]*
> *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> *default-compile-swf) on project MyProject: Got 2 errors building project,
> check logs*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> *        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> *        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
> *        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> *        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> *        at java.lang.reflect.Method.invoke(Method.java:606)*
> *        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> *        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> *        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> *        at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
> building project, check logs*
> *        at
>
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> *        at
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> *        at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> *        ... 19 more*
> *[ERROR]*
> *[ERROR]*
> *[ERROR] For more information about the errors and possible solutions,
> please read the following articles:*
> *[ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*
> *D:\FlexMavenTest\MyProject>*
>
>
> Do you have any idea how this can be resolved ? I am able to run the
> application from my Flash Builder without any problem. It will be great
> help if you can point out the issue.
>
> *My pom.xml  is :*
>
> *<?xml version="1.0" encoding="UTF-8"?>*
> *  <!--*
>
> *    Copyright 2008 Marvin Herman Froeder*
> *    Licensed under the Apache License, Version 2.0 (the "License");*
> *    you may not use this file except in compliance with the License.*
> *    You may obtain a copy of the License at*
>
> *        http://www.apache.org/licenses/LICENSE-2.0
> <http://www.apache.org/licenses/LICENSE-2.0>*
>
> *    Unless required by applicable law or agreed to in writing, software*
> *    distributed under the License is distributed on an "AS IS" BASIS,*
> *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.*
> *    See the License for the specific language governing permissions and*
> *    limitations under the License.*
>
> *-->*
> *<project xmlns="http://maven.apache.org/POM/4.0.0
> <http://maven.apache.org/POM/4.0.0>"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> <http://www.w3.org/2001/XMLSchema-instance>"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> <http://maven.apache.org/POM/4.0.0>
> http://maven.apache.org/maven-v4_0_0.xsd
> <http://maven.apache.org/maven-v4_0_0.xsd>">*
> *  <modelVersion>4.0.0</modelVersion>*
>
> *  <groupId>com.gkp.app</groupId>*
> *  <artifactId>MyProject</artifactId>*
> *  <version>1.0-SNAPSHOT</version>*
> *  <packaging>swf</packaging>*
>
> *  <name>MyProject Flex</name>*
> *  <properties>*
> * <flexmojos.version>6.0.1</flexmojos.version>*
> * <flex.version>4.6.0.23201</flex.version>*
> * <flash.version>11.1</flash.version>*
> *  </properties>*
>
> *  <build>*
> *    <sourceDirectory>src/main/flex</sourceDirectory>*
> *    <plugins>*
> *      <plugin>*
>
> *        <groupId>net.flexmojos.oss</groupId>*
> *        <artifactId>flexmojos-maven-plugin</artifactId>*
> *        <version>${flexmojos.version}</version>*
> *        <extensions>true</extensions>*
> * <configuration>*
> * <sourceFile>Main.mxml</sourceFile>*
> * <sourcePaths>*
> * <path>src/main/flex</path>*
> * <path>src/main/resources</path>*
> * </sourcePaths> *
> * <debug>true</debug>*
> * </configuration>*
> * <dependencies>*
> * <dependency>*
> * <groupId>net.flexmojos.oss</groupId>*
> * <artifactId>flexmojos-maven-plugin</artifactId>*
> * <version>${flexmojos.version}</version>*
> * </dependency>*
> * <dependency>*
> *  <groupId>com.adobe.flex</groupId>*
> *  <artifactId>compiler</artifactId>*
> *  <version>${flex.version}</version>*
> *  <type>pom</type>*
> * </dependency>*
> *        </dependencies>*
>
> *      </plugin>*
> *    </plugins>*
> *  </build>*
>
> *  <dependencies>*
> * <dependency>*
> * <groupId>net.flexmojos.oss</groupId>*
> * <artifactId>flexmojos-maven-plugin</artifactId>*
> * <version>${flexmojos.version}</version>*
> * </dependency>*
> * <dependency>*
> *      <groupId>com.adobe.flex.framework</groupId>*
> *      <artifactId>flex-framework</artifactId>*
> *      <version>${flex.version}</version>*
> *      <type>pom</type>*
> *    </dependency>*
>
> *    <dependency>*
> *      <groupId>com.adobe.flash.framework</groupId>*
> *      <artifactId>playerglobal</artifactId>*
> *      <version>${flash.version}</version>*
> *      <type>swc</type>*
> *    </dependency>*
> *  </dependencies>*
>
> *  <!-- Repository and PluginRepository section for Flex SDK and compiler
> dependencies. *
> *       Note: instead of including this in every POM, you can append it to
> your user (~/.m2/settings.xml) or global *
> *  (M2_HOME/conf/settings.xml) settings file. *
> *    -->*
> *  <repositories>*
> *     <repository>*
> *        <id>flex-mojos-repository</id>*
> *        <url>http://repository.sonatype.org/content/groups/flexgroup
> <http://repository.sonatype.org/content/groups/flexgroup></url>*
> *     </repository>*
> *  </repositories>*
>
> *  <pluginRepositories>*
> *     <pluginRepository>*
> *        <id>flex-mojos-plugin-repository</id>*
> *        <url>http://repository.sonatype.org/content/groups/flexgroup
> <http://repository.sonatype.org/content/groups/flexgroup></url>*
> *     </pluginRepository>*
> *  </pluginRepositories>*
> *</project>*
>
> *And Main.mxml is :*
>
> <?xml version="1.0" encoding="utf-8"?>
> <!--
>
>      Copyright 2008 Marvin Herman Froeder
>      Licensed under the Apache License, Version 2.0 (the "License"); you
> may not use this file except in compliance with the License. You may obtain
> a copy of the License at
>      http://www.apache.org/licenses/LICENSE-2.0
>      Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
> WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
> License for the specific language governing permissions and limitations
> under the License.
>
>
> -->
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>    xmlns:s="library://ns.adobe.com/flex/spark"
>    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> minHeight="600">
> <fx:Script>
> <![CDATA[
> [Bindable]
> [Embed(source="add.png")]
> private var imgclass : Class;
> ]]>
> </fx:Script>
> <fx:Declarations>
> <!-- Place non-visual elements (e.g., services, value objects) here -->
> </fx:Declarations>
> <s:Label text="Hello World." left="60" top="20"/>
> <s:Image source="{imgclass}" left="20" top="20"/>
> </s:Application>
>
> --
> *Thanks & Regards*
> *Gautam Pandey*
> *Tegile Systems*
> *Ph : 9243014820*
>
>
> On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com> wrote:
>
> > Thanks Chris,
> >      I have mavenized the 4.13 FDK following the steps given in
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> and
> > copied to my local repo. I never did maven things so I am not sure about
> > the things. Currently learning maven concepts to point out the exact
> cause.
> > Do I need to build flexmojos also and deploy to local repo?
> >
> > Thanks
> > Gautam
> >
> > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> christofer.dutz@c-ware.de
> > > wrote:
> >
> >> Have you manually created the Maven artifacts for Flex 4.13?
> >> If not that's exactly what Maven is complaining about. Currently there
> is
> >> no Apache Flex FDK publicaly available in any public Maven repository.
> We
> >> are working on this, but I't still a mile to go.
> >>
> >> Chris
> >>
> >> ________________________________________
> >> Von: Gautam Pandey <gk...@gmail.com>
> >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> >> An: users@flex.apache.org
> >> Betreff: Re: Need help on flexmojo
> >>
> >> I guess I am missing repositories and pluginRepositories like things. I
> >> don't know what should be added in this section. Can someone confirm
> below
> >> default things will work or not?
> >>
> >>  <!-- Repository and PluginRepository section for Flex SDK and compiler
> >> dependencies.
> >>        Note: instead of including this in every POM, you can append it
> to
> >> your user (~/.m2/settings.xml) or global
> >>   (M2_HOME/conf/settings.xml) settings file.
> >>     -->
> >>   <repositories>
> >>      <repository>
> >>         <id>flex-mojos-repository</id>
> >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> >> </url>
> >>      </repository>
> >>   </repositories>
> >>
> >>   <pluginRepositories>
> >>      <pluginRepository>
> >>         <id>flex-mojos-plugin-repository</id>
> >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> >> </url>
> >>      </pluginRepository>
> >>   </pluginRepositories>
> >>
> >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com>
> wrote:
> >>
> >> > On 08/10/14 11:23, Gautam Pandey wrote:
> >> >
> >> >> Fai
> >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> >> >> http://repo.maven.apache.org/maven2  was cached in the local
> >> repository,
> >> >> resolution wi
> >> >> ll not be reattempted until the update interval of central has
> elapsed
> >> or
> >> >> updates are forced
> >> >>
> >> > I don't know much Maven, but did you try forcing this update ?
> >> >
> >> > Tom
> >> >
> >>
> >>
> >>
> >> --
> >> *Thanks & Regards*
> >> *Gautam Pandey*
> >> *Tegile Systems*
> >> *Ph : 9243014820*
> >>
> >
> >
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Thank you Chris,
    Still its not going through. Build is failing with same error. My new
pom.xml is :

<?xml version="1.0" encoding="UTF-8"?>
  <!--

    Copyright 2008 Marvin Herman Froeder
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.gkp.app</groupId>
  <artifactId>MyProject</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>swf</packaging>

  <name>MyProject Flex</name>
  <properties>
<flexmojos.version>6.0.1</flexmojos.version>
<flex.version>4.6.0.23201</flex.version>
<flash.version>11.1</flash.version>
  </properties>

  <build>
    <sourceDirectory>src/main/flex</sourceDirectory>
    <plugins>
      <plugin>

        <groupId>net.flexmojos.oss</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flexmojos.version}</version>
        <extensions>true</extensions>
<configuration>
<sourceFile>Main.mxml</sourceFile>
<sourcePaths>
<path>src/main/flex</path>
<path>src/main/resources</path>
</sourcePaths>
<debug>true</debug>
</configuration>
<dependencies>
<dependency>
<groupId>net.flexmojos.oss</groupId>
<artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
<version>${flexmojos.version}</version>
</dependency>
<dependency>
  <groupId>com.adobe.flex</groupId>
  <artifactId>compiler</artifactId>
  <version>${flex.version}</version>
  <type>pom</type>
</dependency>
        </dependencies>

      </plugin>
    </plugins>
  </build>

  <dependencies>
<dependency>
      <groupId>com.adobe.flex.framework</groupId>
      <artifactId>flex-framework</artifactId>
      <version>${flex.version}</version>
      <type>pom</type>
    </dependency>

    <dependency>
      <groupId>com.adobe.flash.framework</groupId>
      <artifactId>playerglobal</artifactId>
      <version>${flash.version}</version>
      <type>swc</type>
    </dependency>
  </dependencies>

  <!-- Repository and PluginRepository section for Flex SDK and compiler
dependencies.
       Note: instead of including this in every POM, you can append it to
your user (~/.m2/settings.xml) or global
  (M2_HOME/conf/settings.xml) settings file.
    -->
  <repositories>
     <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </repository>
  </repositories>

  <pluginRepositories>
     <pluginRepository>
        <id>flex-mojos-plugin-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </pluginRepository>
  </pluginRepositories>
</project>

Did I miss anything?

-- 
*Thanks & Regards*
*Gautam Pandey*
*Tegile Systems*
*Ph : 9243014820*


On Mon, Oct 13, 2014 at 11:44 AM, Christofer Dutz <christofer.dutz@c-ware.de
> wrote:

> When embedding fonts and images I have found that you need to add the
> threadlocal toolkit dependency before the compiler artifact in the plugin
> configuration ... just search for "threadlocal toolkit".
>
> Chris
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Montag, 13. Oktober 2014 08:00
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> Hi Chris,
>    Now I am trying to build the sample application with 4.6 SDK. Without
> adding any image, build is going fine but when I add an image to the
> Main.mxml, it is throwing error* Unable to transcode add.png.* Error stack
> is as follow:
>
> *Writing configuration dump to
> D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
> *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable to
> resolve 'add.png' for transcoding*
>
> *                        [Embed(source="add.png")]*
>
> *D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable to
> transcode add.png.*
>
> *                        [Embed(source="add.png")]*
>
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] BUILD FAILURE*
> *[INFO]
> ------------------------------------------------------------------------*
> *[INFO] Total time: 7.396s*
> *[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
> *[INFO] Final Memory: 35M/495M*
> *[INFO]
> ------------------------------------------------------------------------*
> *[ERROR] Failed to execute goal
> net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
> (default-compile-swf) on project MyProject: Got 2*
> * errors building project, check logs -> [Help 1]*
> *org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
> *default-compile-swf) on project MyProject: Got 2 errors building project,
> check logs*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
> *        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
> *        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
> *        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
> *        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
> *        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
> *        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
> *        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
> *        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
> *        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
> *        at java.lang.reflect.Method.invoke(Method.java:606)*
> *        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
> *        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
> *        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
> *        at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
> *Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
> building project, check logs*
> *        at
>
> net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
> *        at
>
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
> *        at
> net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
> *        at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
> *        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
> *        ... 19 more*
> *[ERROR]*
> *[ERROR]*
> *[ERROR] For more information about the errors and possible solutions,
> please read the following articles:*
> *[ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*
> *D:\FlexMavenTest\MyProject>*
>
>
> Do you have any idea how this can be resolved ? I am able to run the
> application from my Flash Builder without any problem. It will be great
> help if you can point out the issue.
>
> *My pom.xml  is :*
>
> *<?xml version="1.0" encoding="UTF-8"?>*
> *  <!--*
>
> *    Copyright 2008 Marvin Herman Froeder*
> *    Licensed under the Apache License, Version 2.0 (the "License");*
> *    you may not use this file except in compliance with the License.*
> *    You may obtain a copy of the License at*
>
> *        http://www.apache.org/licenses/LICENSE-2.0
> <http://www.apache.org/licenses/LICENSE-2.0>*
>
> *    Unless required by applicable law or agreed to in writing, software*
> *    distributed under the License is distributed on an "AS IS" BASIS,*
> *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.*
> *    See the License for the specific language governing permissions and*
> *    limitations under the License.*
>
> *-->*
> *<project xmlns="http://maven.apache.org/POM/4.0.0
> <http://maven.apache.org/POM/4.0.0>"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> <http://www.w3.org/2001/XMLSchema-instance>"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> <http://maven.apache.org/POM/4.0.0>
> http://maven.apache.org/maven-v4_0_0.xsd
> <http://maven.apache.org/maven-v4_0_0.xsd>">*
> *  <modelVersion>4.0.0</modelVersion>*
>
> *  <groupId>com.gkp.app</groupId>*
> *  <artifactId>MyProject</artifactId>*
> *  <version>1.0-SNAPSHOT</version>*
> *  <packaging>swf</packaging>*
>
> *  <name>MyProject Flex</name>*
> *  <properties>*
> * <flexmojos.version>6.0.1</flexmojos.version>*
> * <flex.version>4.6.0.23201</flex.version>*
> * <flash.version>11.1</flash.version>*
> *  </properties>*
>
> *  <build>*
> *    <sourceDirectory>src/main/flex</sourceDirectory>*
> *    <plugins>*
> *      <plugin>*
>
> *        <groupId>net.flexmojos.oss</groupId>*
> *        <artifactId>flexmojos-maven-plugin</artifactId>*
> *        <version>${flexmojos.version}</version>*
> *        <extensions>true</extensions>*
> * <configuration>*
> * <sourceFile>Main.mxml</sourceFile>*
> * <sourcePaths>*
> * <path>src/main/flex</path>*
> * <path>src/main/resources</path>*
> * </sourcePaths> *
> * <debug>true</debug>*
> * </configuration>*
> * <dependencies>*
> * <dependency>*
> * <groupId>net.flexmojos.oss</groupId>*
> * <artifactId>flexmojos-maven-plugin</artifactId>*
> * <version>${flexmojos.version}</version>*
> * </dependency>*
> * <dependency>*
> *  <groupId>com.adobe.flex</groupId>*
> *  <artifactId>compiler</artifactId>*
> *  <version>${flex.version}</version>*
> *  <type>pom</type>*
> * </dependency>*
> *        </dependencies>*
>
> *      </plugin>*
> *    </plugins>*
> *  </build>*
>
> *  <dependencies>*
> * <dependency>*
> * <groupId>net.flexmojos.oss</groupId>*
> * <artifactId>flexmojos-maven-plugin</artifactId>*
> * <version>${flexmojos.version}</version>*
> * </dependency>*
> * <dependency>*
> *      <groupId>com.adobe.flex.framework</groupId>*
> *      <artifactId>flex-framework</artifactId>*
> *      <version>${flex.version}</version>*
> *      <type>pom</type>*
> *    </dependency>*
>
> *    <dependency>*
> *      <groupId>com.adobe.flash.framework</groupId>*
> *      <artifactId>playerglobal</artifactId>*
> *      <version>${flash.version}</version>*
> *      <type>swc</type>*
> *    </dependency>*
> *  </dependencies>*
>
> *  <!-- Repository and PluginRepository section for Flex SDK and compiler
> dependencies. *
> *       Note: instead of including this in every POM, you can append it to
> your user (~/.m2/settings.xml) or global *
> *  (M2_HOME/conf/settings.xml) settings file. *
> *    -->*
> *  <repositories>*
> *     <repository>*
> *        <id>flex-mojos-repository</id>*
> *        <url>http://repository.sonatype.org/content/groups/flexgroup
> <http://repository.sonatype.org/content/groups/flexgroup></url>*
> *     </repository>*
> *  </repositories>*
>
> *  <pluginRepositories>*
> *     <pluginRepository>*
> *        <id>flex-mojos-plugin-repository</id>*
> *        <url>http://repository.sonatype.org/content/groups/flexgroup
> <http://repository.sonatype.org/content/groups/flexgroup></url>*
> *     </pluginRepository>*
> *  </pluginRepositories>*
> *</project>*
>
> *And Main.mxml is :*
>
> <?xml version="1.0" encoding="utf-8"?>
> <!--
>
>      Copyright 2008 Marvin Herman Froeder
>      Licensed under the Apache License, Version 2.0 (the "License"); you
> may not use this file except in compliance with the License. You may obtain
> a copy of the License at
>      http://www.apache.org/licenses/LICENSE-2.0
>      Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
> WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
> License for the specific language governing permissions and limitations
> under the License.
>
>
> -->
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>    xmlns:s="library://ns.adobe.com/flex/spark"
>    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
> minHeight="600">
> <fx:Script>
> <![CDATA[
> [Bindable]
> [Embed(source="add.png")]
> private var imgclass : Class;
> ]]>
> </fx:Script>
> <fx:Declarations>
> <!-- Place non-visual elements (e.g., services, value objects) here -->
> </fx:Declarations>
> <s:Label text="Hello World." left="60" top="20"/>
> <s:Image source="{imgclass}" left="20" top="20"/>
> </s:Application>
>
> --
> *Thanks & Regards*
> *Gautam Pandey*
> *Tegile Systems*
> *Ph : 9243014820*
>
>
> On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com> wrote:
>
> > Thanks Chris,
> >      I have mavenized the 4.13 FDK following the steps given in
> >
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
> and
> > copied to my local repo. I never did maven things so I am not sure about
> > the things. Currently learning maven concepts to point out the exact
> cause.
> > Do I need to build flexmojos also and deploy to local repo?
> >
> > Thanks
> > Gautam
> >
> > On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <
> christofer.dutz@c-ware.de
> > > wrote:
> >
> >> Have you manually created the Maven artifacts for Flex 4.13?
> >> If not that's exactly what Maven is complaining about. Currently there
> is
> >> no Apache Flex FDK publicaly available in any public Maven repository.
> We
> >> are working on this, but I't still a mile to go.
> >>
> >> Chris
> >>
> >> ________________________________________
> >> Von: Gautam Pandey <gk...@gmail.com>
> >> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> >> An: users@flex.apache.org
> >> Betreff: Re: Need help on flexmojo
> >>
> >> I guess I am missing repositories and pluginRepositories like things. I
> >> don't know what should be added in this section. Can someone confirm
> below
> >> default things will work or not?
> >>
> >>  <!-- Repository and PluginRepository section for Flex SDK and compiler
> >> dependencies.
> >>        Note: instead of including this in every POM, you can append it
> to
> >> your user (~/.m2/settings.xml) or global
> >>   (M2_HOME/conf/settings.xml) settings file.
> >>     -->
> >>   <repositories>
> >>      <repository>
> >>         <id>flex-mojos-repository</id>
> >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> >> </url>
> >>      </repository>
> >>   </repositories>
> >>
> >>   <pluginRepositories>
> >>      <pluginRepository>
> >>         <id>flex-mojos-plugin-repository</id>
> >>         <url>http://repository.sonatype.org/content/groups/flexgroup
> >> </url>
> >>      </pluginRepository>
> >>   </pluginRepositories>
> >>
> >> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com>
> wrote:
> >>
> >> > On 08/10/14 11:23, Gautam Pandey wrote:
> >> >
> >> >> Fai
> >> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> >> >> http://repo.maven.apache.org/maven2  was cached in the local
> >> repository,
> >> >> resolution wi
> >> >> ll not be reattempted until the update interval of central has
> elapsed
> >> or
> >> >> updates are forced
> >> >>
> >> > I don't know much Maven, but did you try forcing this update ?
> >> >
> >> > Tom
> >> >
> >>
> >>
> >>
> >> --
> >> *Thanks & Regards*
> >> *Gautam Pandey*
> >> *Tegile Systems*
> >> *Ph : 9243014820*
> >>
> >
> >
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
When embedding fonts and images I have found that you need to add the threadlocal toolkit dependency before the compiler artifact in the plugin configuration ... just search for "threadlocal toolkit".

Chris
________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Montag, 13. Oktober 2014 08:00
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

Hi Chris,
   Now I am trying to build the sample application with 4.6 SDK. Without
adding any image, build is going fine but when I add an image to the
Main.mxml, it is throwing error* Unable to transcode add.png.* Error stack
is as follow:

*Writing configuration dump to
D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
*D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable to
resolve 'add.png' for transcoding*

*                        [Embed(source="add.png")]*

*D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable to
transcode add.png.*

*                        [Embed(source="add.png")]*

*[INFO]
------------------------------------------------------------------------*
*[INFO] BUILD FAILURE*
*[INFO]
------------------------------------------------------------------------*
*[INFO] Total time: 7.396s*
*[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
*[INFO] Final Memory: 35M/495M*
*[INFO]
------------------------------------------------------------------------*
*[ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
(default-compile-swf) on project MyProject: Got 2*
* errors building project, check logs -> [Help 1]*
*org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
*default-compile-swf) on project MyProject: Got 2 errors building project,
check logs*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
*        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
*        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
*        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
*        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
*        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
*        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
*        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
*        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
*        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
*        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
*        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
*        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
*        at java.lang.reflect.Method.invoke(Method.java:606)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
*Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
building project, check logs*
*        at
net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
*        at
net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
*        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
*        ... 19 more*
*[ERROR]*
*[ERROR]*
*[ERROR] For more information about the errors and possible solutions,
please read the following articles:*
*[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
<http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*
*D:\FlexMavenTest\MyProject>*


Do you have any idea how this can be resolved ? I am able to run the
application from my Flash Builder without any problem. It will be great
help if you can point out the issue.

*My pom.xml  is :*

*<?xml version="1.0" encoding="UTF-8"?>*
*  <!--*

*    Copyright 2008 Marvin Herman Froeder*
*    Licensed under the Apache License, Version 2.0 (the "License");*
*    you may not use this file except in compliance with the License.*
*    You may obtain a copy of the License at*

*        http://www.apache.org/licenses/LICENSE-2.0
<http://www.apache.org/licenses/LICENSE-2.0>*

*    Unless required by applicable law or agreed to in writing, software*
*    distributed under the License is distributed on an "AS IS" BASIS,*
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.*
*    See the License for the specific language governing permissions and*
*    limitations under the License.*

*-->*
*<project xmlns="http://maven.apache.org/POM/4.0.0
<http://maven.apache.org/POM/4.0.0>"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance>"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
<http://maven.apache.org/POM/4.0.0>
http://maven.apache.org/maven-v4_0_0.xsd
<http://maven.apache.org/maven-v4_0_0.xsd>">*
*  <modelVersion>4.0.0</modelVersion>*

*  <groupId>com.gkp.app</groupId>*
*  <artifactId>MyProject</artifactId>*
*  <version>1.0-SNAPSHOT</version>*
*  <packaging>swf</packaging>*

*  <name>MyProject Flex</name>*
*  <properties>*
* <flexmojos.version>6.0.1</flexmojos.version>*
* <flex.version>4.6.0.23201</flex.version>*
* <flash.version>11.1</flash.version>*
*  </properties>*

*  <build>*
*    <sourceDirectory>src/main/flex</sourceDirectory>*
*    <plugins>*
*      <plugin>*

*        <groupId>net.flexmojos.oss</groupId>*
*        <artifactId>flexmojos-maven-plugin</artifactId>*
*        <version>${flexmojos.version}</version>*
*        <extensions>true</extensions>*
* <configuration>*
* <sourceFile>Main.mxml</sourceFile>*
* <sourcePaths>*
* <path>src/main/flex</path>*
* <path>src/main/resources</path>*
* </sourcePaths> *
* <debug>true</debug>*
* </configuration>*
* <dependencies>*
* <dependency>*
* <groupId>net.flexmojos.oss</groupId>*
* <artifactId>flexmojos-maven-plugin</artifactId>*
* <version>${flexmojos.version}</version>*
* </dependency>*
* <dependency>*
*  <groupId>com.adobe.flex</groupId>*
*  <artifactId>compiler</artifactId>*
*  <version>${flex.version}</version>*
*  <type>pom</type>*
* </dependency>*
*        </dependencies>*

*      </plugin>*
*    </plugins>*
*  </build>*

*  <dependencies>*
* <dependency>*
* <groupId>net.flexmojos.oss</groupId>*
* <artifactId>flexmojos-maven-plugin</artifactId>*
* <version>${flexmojos.version}</version>*
* </dependency>*
* <dependency>*
*      <groupId>com.adobe.flex.framework</groupId>*
*      <artifactId>flex-framework</artifactId>*
*      <version>${flex.version}</version>*
*      <type>pom</type>*
*    </dependency>*

*    <dependency>*
*      <groupId>com.adobe.flash.framework</groupId>*
*      <artifactId>playerglobal</artifactId>*
*      <version>${flash.version}</version>*
*      <type>swc</type>*
*    </dependency>*
*  </dependencies>*

*  <!-- Repository and PluginRepository section for Flex SDK and compiler
dependencies. *
*       Note: instead of including this in every POM, you can append it to
your user (~/.m2/settings.xml) or global *
*  (M2_HOME/conf/settings.xml) settings file. *
*    -->*
*  <repositories>*
*     <repository>*
*        <id>flex-mojos-repository</id>*
*        <url>http://repository.sonatype.org/content/groups/flexgroup
<http://repository.sonatype.org/content/groups/flexgroup></url>*
*     </repository>*
*  </repositories>*

*  <pluginRepositories>*
*     <pluginRepository>*
*        <id>flex-mojos-plugin-repository</id>*
*        <url>http://repository.sonatype.org/content/groups/flexgroup
<http://repository.sonatype.org/content/groups/flexgroup></url>*
*     </pluginRepository>*
*  </pluginRepositories>*
*</project>*

*And Main.mxml is :*

<?xml version="1.0" encoding="utf-8"?>
<!--

     Copyright 2008 Marvin Herman Froeder
     Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You may obtain
a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
     Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.


-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
[Bindable]
[Embed(source="add.png")]
private var imgclass : Class;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Label text="Hello World." left="60" top="20"/>
<s:Image source="{imgclass}" left="20" top="20"/>
</s:Application>

--
*Thanks & Regards*
*Gautam Pandey*
*Tegile Systems*
*Ph : 9243014820*


On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com> wrote:

> Thanks Chris,
>      I have mavenized the 4.13 FDK following the steps given in
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven and
> copied to my local repo. I never did maven things so I am not sure about
> the things. Currently learning maven concepts to point out the exact cause.
> Do I need to build flexmojos also and deploy to local repo?
>
> Thanks
> Gautam
>
> On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <christofer.dutz@c-ware.de
> > wrote:
>
>> Have you manually created the Maven artifacts for Flex 4.13?
>> If not that's exactly what Maven is complaining about. Currently there is
>> no Apache Flex FDK publicaly available in any public Maven repository. We
>> are working on this, but I't still a mile to go.
>>
>> Chris
>>
>> ________________________________________
>> Von: Gautam Pandey <gk...@gmail.com>
>> Gesendet: Mittwoch, 8. Oktober 2014 15:50
>> An: users@flex.apache.org
>> Betreff: Re: Need help on flexmojo
>>
>> I guess I am missing repositories and pluginRepositories like things. I
>> don't know what should be added in this section. Can someone confirm below
>> default things will work or not?
>>
>>  <!-- Repository and PluginRepository section for Flex SDK and compiler
>> dependencies.
>>        Note: instead of including this in every POM, you can append it to
>> your user (~/.m2/settings.xml) or global
>>   (M2_HOME/conf/settings.xml) settings file.
>>     -->
>>   <repositories>
>>      <repository>
>>         <id>flex-mojos-repository</id>
>>         <url>http://repository.sonatype.org/content/groups/flexgroup
>> </url>
>>      </repository>
>>   </repositories>
>>
>>   <pluginRepositories>
>>      <pluginRepository>
>>         <id>flex-mojos-plugin-repository</id>
>>         <url>http://repository.sonatype.org/content/groups/flexgroup
>> </url>
>>      </pluginRepository>
>>   </pluginRepositories>
>>
>> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com> wrote:
>>
>> > On 08/10/14 11:23, Gautam Pandey wrote:
>> >
>> >> Fai
>> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
>> >> http://repo.maven.apache.org/maven2  was cached in the local
>> repository,
>> >> resolution wi
>> >> ll not be reattempted until the update interval of central has elapsed
>> or
>> >> updates are forced
>> >>
>> > I don't know much Maven, but did you try forcing this update ?
>> >
>> > Tom
>> >
>>
>>
>>
>> --
>> *Thanks & Regards*
>> *Gautam Pandey*
>> *Tegile Systems*
>> *Ph : 9243014820*
>>
>
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Hi Chris,
   Now I am trying to build the sample application with 4.6 SDK. Without
adding any image, build is going fine but when I add an image to the
Main.mxml, it is throwing error* Unable to transcode add.png.* Error stack
is as follow:

*Writing configuration dump to
D:\FlexMavenTest\MyProject\target\MyProject-1.0-SNAPSHOT-configs.xml*
*D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: unable to
resolve 'add.png' for transcoding*

*                        [Embed(source="add.png")]*

*D:\FlexMavenTest\MyProject\src\main\flex\Main.mxml(17): Error: Unable to
transcode add.png.*

*                        [Embed(source="add.png")]*

*[INFO]
------------------------------------------------------------------------*
*[INFO] BUILD FAILURE*
*[INFO]
------------------------------------------------------------------------*
*[INFO] Total time: 7.396s*
*[INFO] Finished at: Mon Oct 13 11:22:31 IST 2014*
*[INFO] Final Memory: 35M/495M*
*[INFO]
------------------------------------------------------------------------*
*[ERROR] Failed to execute goal
net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf
(default-compile-swf) on project MyProject: Got 2*
* errors building project, check logs -> [Help 1]*
*org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:compile-swf (*
*default-compile-swf) on project MyProject: Got 2 errors building project,
check logs*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)*
*        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)*
*        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)*
*        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)*
*        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)*
*        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)*
*        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)*
*        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)*
*        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)*
*        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)*
*        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
*        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)*
*        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*
*        at java.lang.reflect.Method.invoke(Method.java:606)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)*
*        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)*
*Caused by: org.apache.maven.plugin.MojoFailureException: Got 2 errors
building project, check logs*
*        at
net.flexmojos.oss.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:314)*
*        at
net.flexmojos.oss.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1691)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody0(MxmlcMojo.java:169)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody1$advice(MxmlcMojo.java:53)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody2(MxmlcMojo.java:163)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody3$advice(MxmlcMojo.java:31)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody4(MxmlcMojo.java:1)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute_aroundBody5$advice(MxmlcMojo.java:34)*
*        at
net.flexmojos.oss.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:1)*
*        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)*
*        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)*
*        ... 19 more*
*[ERROR]*
*[ERROR]*
*[ERROR] For more information about the errors and possible solutions,
please read the following articles:*
*[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
<http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException>*
*D:\FlexMavenTest\MyProject>*


Do you have any idea how this can be resolved ? I am able to run the
application from my Flash Builder without any problem. It will be great
help if you can point out the issue.

*My pom.xml  is :*

*<?xml version="1.0" encoding="UTF-8"?>*
*  <!--*

*    Copyright 2008 Marvin Herman Froeder*
*    Licensed under the Apache License, Version 2.0 (the "License");*
*    you may not use this file except in compliance with the License.*
*    You may obtain a copy of the License at*

*        http://www.apache.org/licenses/LICENSE-2.0
<http://www.apache.org/licenses/LICENSE-2.0>*

*    Unless required by applicable law or agreed to in writing, software*
*    distributed under the License is distributed on an "AS IS" BASIS,*
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.*
*    See the License for the specific language governing permissions and*
*    limitations under the License.*

*-->*
*<project xmlns="http://maven.apache.org/POM/4.0.0
<http://maven.apache.org/POM/4.0.0>"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance>"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
<http://maven.apache.org/POM/4.0.0>
http://maven.apache.org/maven-v4_0_0.xsd
<http://maven.apache.org/maven-v4_0_0.xsd>">*
*  <modelVersion>4.0.0</modelVersion>*

*  <groupId>com.gkp.app</groupId>*
*  <artifactId>MyProject</artifactId>*
*  <version>1.0-SNAPSHOT</version>*
*  <packaging>swf</packaging>*

*  <name>MyProject Flex</name>*
*  <properties>*
* <flexmojos.version>6.0.1</flexmojos.version>*
* <flex.version>4.6.0.23201</flex.version>*
* <flash.version>11.1</flash.version>*
*  </properties>*

*  <build>*
*    <sourceDirectory>src/main/flex</sourceDirectory>*
*    <plugins>*
*      <plugin>*

*        <groupId>net.flexmojos.oss</groupId>*
*        <artifactId>flexmojos-maven-plugin</artifactId>*
*        <version>${flexmojos.version}</version>*
*        <extensions>true</extensions>*
* <configuration>*
* <sourceFile>Main.mxml</sourceFile>*
* <sourcePaths>*
* <path>src/main/flex</path>*
* <path>src/main/resources</path>*
* </sourcePaths> *
* <debug>true</debug>*
* </configuration>*
* <dependencies>*
* <dependency>*
* <groupId>net.flexmojos.oss</groupId>*
* <artifactId>flexmojos-maven-plugin</artifactId>*
* <version>${flexmojos.version}</version>*
* </dependency>*
* <dependency>*
*  <groupId>com.adobe.flex</groupId>*
*  <artifactId>compiler</artifactId>*
*  <version>${flex.version}</version>*
*  <type>pom</type>*
* </dependency>*
*        </dependencies>*

*      </plugin>*
*    </plugins>*
*  </build>*

*  <dependencies>*
* <dependency>*
* <groupId>net.flexmojos.oss</groupId>*
* <artifactId>flexmojos-maven-plugin</artifactId>*
* <version>${flexmojos.version}</version>*
* </dependency>*
* <dependency>*
*      <groupId>com.adobe.flex.framework</groupId>*
*      <artifactId>flex-framework</artifactId>*
*      <version>${flex.version}</version>*
*      <type>pom</type>*
*    </dependency>*

*    <dependency>*
*      <groupId>com.adobe.flash.framework</groupId>*
*      <artifactId>playerglobal</artifactId>*
*      <version>${flash.version}</version>*
*      <type>swc</type>*
*    </dependency>*
*  </dependencies>*

*  <!-- Repository and PluginRepository section for Flex SDK and compiler
dependencies. *
*       Note: instead of including this in every POM, you can append it to
your user (~/.m2/settings.xml) or global *
*  (M2_HOME/conf/settings.xml) settings file. *
*    -->*
*  <repositories>*
*     <repository>*
*        <id>flex-mojos-repository</id>*
*        <url>http://repository.sonatype.org/content/groups/flexgroup
<http://repository.sonatype.org/content/groups/flexgroup></url>*
*     </repository>*
*  </repositories>*

*  <pluginRepositories>*
*     <pluginRepository>*
*        <id>flex-mojos-plugin-repository</id>*
*        <url>http://repository.sonatype.org/content/groups/flexgroup
<http://repository.sonatype.org/content/groups/flexgroup></url>*
*     </pluginRepository>*
*  </pluginRepositories>*
*</project>*

*And Main.mxml is :*

<?xml version="1.0" encoding="utf-8"?>
<!--

     Copyright 2008 Marvin Herman Froeder
     Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You may obtain
a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
     Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.


-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
[Bindable]
[Embed(source="add.png")]
private var imgclass : Class;
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Label text="Hello World." left="60" top="20"/>
<s:Image source="{imgclass}" left="20" top="20"/>
</s:Application>

-- 
*Thanks & Regards*
*Gautam Pandey*
*Tegile Systems*
*Ph : 9243014820*


On Thu, Oct 9, 2014 at 7:07 PM, Gautam Pandey <gk...@gmail.com> wrote:

> Thanks Chris,
>      I have mavenized the 4.13 FDK following the steps given in
> https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven and
> copied to my local repo. I never did maven things so I am not sure about
> the things. Currently learning maven concepts to point out the exact cause.
> Do I need to build flexmojos also and deploy to local repo?
>
> Thanks
> Gautam
>
> On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <christofer.dutz@c-ware.de
> > wrote:
>
>> Have you manually created the Maven artifacts for Flex 4.13?
>> If not that's exactly what Maven is complaining about. Currently there is
>> no Apache Flex FDK publicaly available in any public Maven repository. We
>> are working on this, but I't still a mile to go.
>>
>> Chris
>>
>> ________________________________________
>> Von: Gautam Pandey <gk...@gmail.com>
>> Gesendet: Mittwoch, 8. Oktober 2014 15:50
>> An: users@flex.apache.org
>> Betreff: Re: Need help on flexmojo
>>
>> I guess I am missing repositories and pluginRepositories like things. I
>> don't know what should be added in this section. Can someone confirm below
>> default things will work or not?
>>
>>  <!-- Repository and PluginRepository section for Flex SDK and compiler
>> dependencies.
>>        Note: instead of including this in every POM, you can append it to
>> your user (~/.m2/settings.xml) or global
>>   (M2_HOME/conf/settings.xml) settings file.
>>     -->
>>   <repositories>
>>      <repository>
>>         <id>flex-mojos-repository</id>
>>         <url>http://repository.sonatype.org/content/groups/flexgroup
>> </url>
>>      </repository>
>>   </repositories>
>>
>>   <pluginRepositories>
>>      <pluginRepository>
>>         <id>flex-mojos-plugin-repository</id>
>>         <url>http://repository.sonatype.org/content/groups/flexgroup
>> </url>
>>      </pluginRepository>
>>   </pluginRepositories>
>>
>> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com> wrote:
>>
>> > On 08/10/14 11:23, Gautam Pandey wrote:
>> >
>> >> Fai
>> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
>> >> http://repo.maven.apache.org/maven2  was cached in the local
>> repository,
>> >> resolution wi
>> >> ll not be reattempted until the update interval of central has elapsed
>> or
>> >> updates are forced
>> >>
>> > I don't know much Maven, but did you try forcing this update ?
>> >
>> > Tom
>> >
>>
>>
>>
>> --
>> *Thanks & Regards*
>> *Gautam Pandey*
>> *Tegile Systems*
>> *Ph : 9243014820*
>>
>
>

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
Thanks Chris,
     I have mavenized the 4.13 FDK following the steps given in
https://cwiki.apache.org/confluence/display/FLEX/Building+Flex+applications+with+Maven
and
copied to my local repo. I never did maven things so I am not sure about
the things. Currently learning maven concepts to point out the exact cause.
Do I need to build flexmojos also and deploy to local repo?

Thanks
Gautam

On Thu, Oct 9, 2014 at 6:20 PM, Christofer Dutz <ch...@c-ware.de>
wrote:

> Have you manually created the Maven artifacts for Flex 4.13?
> If not that's exactly what Maven is complaining about. Currently there is
> no Apache Flex FDK publicaly available in any public Maven repository. We
> are working on this, but I't still a mile to go.
>
> Chris
>
> ________________________________________
> Von: Gautam Pandey <gk...@gmail.com>
> Gesendet: Mittwoch, 8. Oktober 2014 15:50
> An: users@flex.apache.org
> Betreff: Re: Need help on flexmojo
>
> I guess I am missing repositories and pluginRepositories like things. I
> don't know what should be added in this section. Can someone confirm below
> default things will work or not?
>
>  <!-- Repository and PluginRepository section for Flex SDK and compiler
> dependencies.
>        Note: instead of including this in every POM, you can append it to
> your user (~/.m2/settings.xml) or global
>   (M2_HOME/conf/settings.xml) settings file.
>     -->
>   <repositories>
>      <repository>
>         <id>flex-mojos-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </repository>
>   </repositories>
>
>   <pluginRepositories>
>      <pluginRepository>
>         <id>flex-mojos-plugin-repository</id>
>         <url>http://repository.sonatype.org/content/groups/flexgroup</url>
>      </pluginRepository>
>   </pluginRepositories>
>
> On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com> wrote:
>
> > On 08/10/14 11:23, Gautam Pandey wrote:
> >
> >> Fai
> >> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> >> http://repo.maven.apache.org/maven2  was cached in the local
> repository,
> >> resolution wi
> >> ll not be reattempted until the update interval of central has elapsed
> or
> >> updates are forced
> >>
> > I don't know much Maven, but did you try forcing this update ?
> >
> > Tom
> >
>
>
>
> --
> *Thanks & Regards*
> *Gautam Pandey*
> *Tegile Systems*
> *Ph : 9243014820*
>

AW: Need help on flexmojo

Posted by Christofer Dutz <ch...@c-ware.de>.
Have you manually created the Maven artifacts for Flex 4.13?
If not that's exactly what Maven is complaining about. Currently there is no Apache Flex FDK publicaly available in any public Maven repository. We are working on this, but I't still a mile to go.

Chris

________________________________________
Von: Gautam Pandey <gk...@gmail.com>
Gesendet: Mittwoch, 8. Oktober 2014 15:50
An: users@flex.apache.org
Betreff: Re: Need help on flexmojo

I guess I am missing repositories and pluginRepositories like things. I
don't know what should be added in this section. Can someone confirm below
default things will work or not?

 <!-- Repository and PluginRepository section for Flex SDK and compiler
dependencies.
       Note: instead of including this in every POM, you can append it to
your user (~/.m2/settings.xml) or global
  (M2_HOME/conf/settings.xml) settings file.
    -->
  <repositories>
     <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </repository>
  </repositories>

  <pluginRepositories>
     <pluginRepository>
        <id>flex-mojos-plugin-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </pluginRepository>
  </pluginRepositories>

On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com> wrote:

> On 08/10/14 11:23, Gautam Pandey wrote:
>
>> Fai
>> lure to find com.adobe.flash:playerglobal:swc:11.1 in
>> http://repo.maven.apache.org/maven2  was cached in the local repository,
>> resolution wi
>> ll not be reattempted until the update interval of central has elapsed or
>> updates are forced
>>
> I don't know much Maven, but did you try forcing this update ?
>
> Tom
>



--
*Thanks & Regards*
*Gautam Pandey*
*Tegile Systems*
*Ph : 9243014820*

Re: Need help on flexmojo

Posted by Gautam Pandey <gk...@gmail.com>.
I guess I am missing repositories and pluginRepositories like things. I
don't know what should be added in this section. Can someone confirm below
default things will work or not?

 <!-- Repository and PluginRepository section for Flex SDK and compiler
dependencies.
       Note: instead of including this in every POM, you can append it to
your user (~/.m2/settings.xml) or global
  (M2_HOME/conf/settings.xml) settings file.
    -->
  <repositories>
     <repository>
        <id>flex-mojos-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </repository>
  </repositories>

  <pluginRepositories>
     <pluginRepository>
        <id>flex-mojos-plugin-repository</id>
        <url>http://repository.sonatype.org/content/groups/flexgroup</url>
     </pluginRepository>
  </pluginRepositories>

On Wed, Oct 8, 2014 at 6:52 PM, Tom Chiverton <tc...@extravision.com> wrote:

> On 08/10/14 11:23, Gautam Pandey wrote:
>
>> Fai
>> lure to find com.adobe.flash:playerglobal:swc:11.1 in
>> http://repo.maven.apache.org/maven2  was cached in the local repository,
>> resolution wi
>> ll not be reattempted until the update interval of central has elapsed or
>> updates are forced
>>
> I don't know much Maven, but did you try forcing this update ?
>
> Tom
>



-- 
*Thanks & Regards*
*Gautam Pandey*
*Tegile Systems*
*Ph : 9243014820*

Re: Need help on flexmojo

Posted by Tom Chiverton <tc...@extravision.com>.
On 08/10/14 11:23, Gautam Pandey wrote:
> Fai
> lure to find com.adobe.flash:playerglobal:swc:11.1 in
> http://repo.maven.apache.org/maven2  was cached in the local repository,
> resolution wi
> ll not be reattempted until the update interval of central has elapsed or
> updates are forced
I don't know much Maven, but did you try forcing this update ?

Tom