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 <[email protected]> Gesendet: Mittwoch, 15. Oktober 2014 14:23 An: [email protected] 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 <[email protected]> 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 <[email protected]> > Gesendet: Mittwoch, 15. Oktober 2014 11:34 > An: [email protected] > 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 <[email protected]> > 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 < > > [email protected]> wrote: > > > >> Ok ... you found it yourself ;-) > >> > >> ________________________________________ > >> Von: Gautam Pandey <[email protected]> > >> Gesendet: Dienstag, 14. Oktober 2014 09:12 > >> An: [email protected] > >> 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 < > >> [email protected] > >> > wrote: > >> > >> > Forget my last mail ... just not used to google drive yet ;-) > >> > > >> > > >> > ________________________________________ > >> > Von: Christofer Dutz <[email protected]> > >> > Gesendet: Dienstag, 14. Oktober 2014 08:57 > >> > An: [email protected] > >> > 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 <[email protected]> > >> > Gesendet: Dienstag, 14. Oktober 2014 08:45 > >> > An: [email protected] > >> > 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 < > >> > [email protected]> > >> > 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 <[email protected]> > >> > > Gesendet: Montag, 13. Oktober 2014 10:59 > >> > > An: [email protected] > >> > > 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 < > >> > > [email protected]> > >> > > 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 <[email protected]> > >> > > > Gesendet: Montag, 13. Oktober 2014 08:34 > >> > > > An: [email protected] > >> > > > 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 < > >> > > > [email protected] > >> > > > > 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 <[email protected]> > >> > > > > Gesendet: Montag, 13. Oktober 2014 08:00 > >> > > > > An: [email protected] > >> > > > > 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 < > [email protected] > >> > > >> > > > 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 < > >> > > > > [email protected] > >> > > > > > > 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 <[email protected]> > >> > > > > >> Gesendet: Mittwoch, 8. Oktober 2014 15:50 > >> > > > > >> An: [email protected] > >> > > > > >> 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 < > >> [email protected] > >> > > > >> > > > > 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* > >> > > > > >> > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > > > > >
