Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 04BBD200B9D for ; Thu, 29 Sep 2016 00:07:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0341F160AD4; Wed, 28 Sep 2016 22:07:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C5B88160AD3 for ; Thu, 29 Sep 2016 00:07:47 +0200 (CEST) Received: (qmail 91446 invoked by uid 500); 28 Sep 2016 22:07:41 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 91430 invoked by uid 99); 28 Sep 2016 22:07:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 22:07:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DA1901A6144 for ; Wed, 28 Sep 2016 22:07:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.928 X-Spam-Level: *** X-Spam-Status: No, score=3.928 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cwareitservice.onmicrosoft.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4ZkvnnGkAS0f for ; Wed, 28 Sep 2016 22:07:36 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20107.outbound.protection.outlook.com [40.107.2.107]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 2CED95F65B for ; Wed, 28 Sep 2016 22:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CWareITService.onmicrosoft.com; s=selector1-cware-de0c; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BGr0yi7zcQom1977S11amh4S3ivOOnTNlLI5/hj3szg=; b=EfCXT5qrBtKHPiP88jyANhV7o0MysndB1WRmNQXPn5fgEXKBLCDx6YEmudlIle6XyJcaNURgrq/aNDtV3tj6jkGmd8NJun6IWag0QNDwr2H4VAHHeZgpeUlPcvqzzD/2/Q0vzDCUSFLhYo4iC7nJ66zW1p+f0BDTCjzmIR1D0QU= Received: from HE1PR0501MB2428.eurprd05.prod.outlook.com (10.168.126.8) by HE1PR0501MB2427.eurprd05.prod.outlook.com (10.168.126.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Wed, 28 Sep 2016 22:07:26 +0000 Received: from HE1PR0501MB2428.eurprd05.prod.outlook.com ([10.168.126.8]) by HE1PR0501MB2428.eurprd05.prod.outlook.com ([10.168.126.8]) with mapi id 15.01.0639.013; Wed, 28 Sep 2016 22:07:26 +0000 From: Christofer Dutz To: "dev@flex.apache.org" Subject: AW: [FlexJS][Maven] Simple pom with js output Thread-Topic: [FlexJS][Maven] Simple pom with js output Thread-Index: AQHSGNoE/6vNzXQFNkyY4sKwCcYSPqCNse1dgAAnmYCAAYx1AIAAAkcbgAAFhICAAAmIKQ== Date: Wed, 28 Sep 2016 22:07:26 +0000 Message-ID: References: , In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=christofer.dutz@c-ware.de; x-originating-ip: [25.168.27.132] x-ms-office365-filtering-correlation-id: 4fc9dd00-d77a-4f7c-268a-08d3e7ebd4e8 x-microsoft-exchange-diagnostics: 1;HE1PR0501MB2427;7:rscwpMTV1LbbGO4U7SjI2/G3wPlvuzKCPnEVHBWhRHxHLrbJSIJgZ9mI/aj1p3g9GsB8BEcQqBQWjva/OvpE1Dy8T8lnbmcOkTj+PwhrCpOKRfqWlDsASQTBbtu5Pq/OHLN8rdTWnr0zgW1N/lcuOU6FbXxJm1iR7s7O5rT1px4jvNWZy45QvV8CEod0PcwDaoOwFrmVOu3ybH1L4+8C4ZcGKzCqfarYjCCkI+oujJiLBB0tZ5xydPiTwe61eR2ijFhjOESwnpdj9lYE5X4CeUbb5PcVHsAu9LYjOVxvkpRyZbsZG3vH2WxcgmyI/tw33sEJFr9MlLqLZbjTnvFxIw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0501MB2427; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(5213294742642)(185789414550570); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6042046)(6043046);SRVR:HE1PR0501MB2427;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0501MB2427; x-forefront-prvs: 0079056367 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(51444003)(51874003)(377424004)(189002)(199003)(68736007)(74482002)(6916009)(16601075003)(7846002)(2950100002)(5660300001)(9686002)(15975445007)(77096005)(101416001)(10400500002)(7736002)(11100500001)(7696004)(110136003)(586003)(16236675004)(33656002)(19617315012)(97736004)(15395725005)(3660700001)(3280700002)(7906003)(92566002)(87936001)(66066001)(86362001)(2900100001)(15974865002)(106116001)(189998001)(50986999)(2351001)(15198665003)(76576001)(2501003)(450100001)(105586002)(106356001)(122556002)(229853001)(74316002)(102836003)(3846002)(6116002)(5002640100001)(107886002)(93886004)(8676002)(81166006)(19580405001)(75402003)(54356999)(19580395003)(76176999)(8936002)(2906002)(81156014)(19625215002)(1730700003)(18265965002);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0501MB2427;H:HE1PR0501MB2428.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: c-ware.de does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_HE1PR0501MB2428BE4D49F4D194F1577924A2CF0HE1PR0501MB2428_" MIME-Version: 1.0 X-OriginatorOrg: c-ware.de X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Sep 2016 22:07:26.2064 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9d387546-1437-4b89-846c-691d64a7e74d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2427 archived-at: Wed, 28 Sep 2016 22:07:49 -0000 --_000_HE1PR0501MB2428BE4D49F4D194F1577924A2CF0HE1PR0501MB2428_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In contrast to the usual setup using Ant where you simply always add all fr= amework SWCs, with maven you only add the ones you use, so you need some of= the Framework dependencies in you pom. Let me whip up the artifacts ... I think that will help a lot :-) Chris ________________________________ Von: carlos.rovira@gmail.com im Auftrag von Carlo= s Rovira Gesendet: Mittwoch, 28. September 2016 23:31:57 An: dev@flex.apache.org Betreff: Re: [FlexJS][Maven] Simple pom with js output Hi Chris, thanks, I try to remove that tag but now I get a failure :( [INFO] ------------------------------------------------------------------------ [INFO] Building My Own TestFlexJS 0.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ TestFlexJS --- [INFO] Deleting /Users/carlosrovira/Dev/Flex/projects/flexjs/TestFlexJS/target [INFO] [INFO] --- flexjs-maven-plugin:0.7.0:compile-app (compile-javascript) @ TestFlexJS --- [INFO] Executing MXMLC in tool group FlexJS with args: [-load-config=3D/Users/carlosrovira/Dev/Flex/projects/flexjs/TestFlexJS/tar= get/compile-app-javascript-config.xml, /Users/carlosrovira/Dev/Flex/projects/flexjs/TestFlexJS/src/HelloWorld.mxml= ] Missing builtin type Object Unable to build SWF /Users/carlosrovira/Dev/Flex/projects/flexjs/TestFlexJS/target/javascript [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.951 s [INFO] Finished at: 2016-09-28T23:28:08+02:00 [INFO] Final Memory: 12M/307M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.7.0:compile-app (compile-javascript) on project TestFlexJS: There were errors during the build. -> [Help 1] btw, it would be great to get a template and simplify a project setup :) Thanks Carlos 2016-09-28 23:15 GMT+02:00 Christofer Dutz : > Hi Carlos, > > > remove the pluginManagment tags and make the plugins a direct child of > build. > > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > > XML Schema instance namespace - w3.org XMLSchema-instance> > www.w3.org > $Date: 2001/03/16 20:25:57 $ $Id: XMLSchema-instance.xsd,v 1.4 2001/03/16 > 20:25:57 ht Exp $ This schema should never be used as such: the XML ... > > > > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > 4.0.0 > > com.carlosrovira.flexjs.examples > TestFlexJS > 0.1.0-SNAPSHOT > pom > > My Own TestFlexJS > > > 0.7.0 > > > > src > > > org.apache.flex.flexjs.compiler > flexjs-maven-plugin > ${flexjs.compiler.version} > true > > > > compile-javascript > compile > > compile-app > > > HelloWorld.mxml > true > > > > > > > org.apache.flex.flexjs.compiler > compiler-jx > ${flexjs.compiler.version} > > > > > > > > > > That should probably do the trick. > > > By the way ... I'm currently working on some maven archetypes. These are > something like templates to automatically generate and setup new maven > projects. Was stuck in preparations for ApacheCon today and struggling to > find out why the builds wasn't working, but perhaps I'll manage to delive= r > something tomorrow. > > > Chris > > > Chris > > ________________________________ > Von: carlos.rovira@gmail.com im Auftrag von > Carlos Rovira > Gesendet: Mittwoch, 28. September 2016 23:04:04 > An: dev@flex.apache.org > Betreff: Re: [FlexJS][Maven] Simple pom with js output > > Hi Chris, > > final y I get a BUILD SUCCESS :) > But there's no target and no output :( > Do you know what could be happen? > > This is the pom.xml (notice that the project only has one file in src > folder called 'HelloWorld.mxml'): > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > 4.0.0 > > com.carlosrovira.flexjs.examples > TestFlexJS > 0.1.0-SNAPSHOT > pom > > My Own TestFlexJS > > > 0.7.0 > > > > src > > > > org.apache.flex.flexjs.compiler > flexjs-maven-plugin > ${flexjs.compiler.version} > true > > > > compile-javascript > compile > > compile-app > > > HelloWorld.mxml > true > > > > > > > org.apache.flex.flexjs.compiler > compiler-jx > ${flexjs.compiler.version} > > > > > > > > > > Thanks > > > > > > > > > > > 2016-09-27 23:25 GMT+02:00 Carlos Rovira : > > > Thanks Chris, > > > > I start to see the way...but something is failing. I try some > combinations > > without luck. The following pom I try is what I think is more close to > > something OK: > > > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 > > http://maven.apache.org/maven-v4_0_0.xsd"> > > 4.0.0 > > > > com.carlosrovira.flexjs.examples > > TestFlexJS > > 0.8.0-SNAPSHOT > > swf > > > > Apache Flex - FlexJS: Examples: FlexJS: TestFlexJS > > > > > > > > > > org.apache.flex.flexjs.compiler > > flexjs-maven-plugin > > true > > > > Main.as > > true > > > > > > > > > > > > > > > > but I get: > > > > [INFO] BUILD FAILURE > > > > [INFO] ------------------------------------------------------------ > > ------------ > > > > [ERROR] Failed to execute goal org.apache.flex.flexjs. > > compiler:flexjs-maven-plugin:0.7.0:compile-app (default-compile-app) on > > project TestFlexJS: *Could not find tool group: FlexJS* -> [Help 1] > > > > Some clue about what can be the problem? > > > > Thanks > > > > > > 2016-09-27 21:14 GMT+02:00 Christofer Dutz : > > > >> Hi Carlos, > >> > >> > >> "swf" and "swc" is more a placeholder for "application" or "library" .= .. > >> it's more historically to name them that way. > >> > >> > >> The default of a "swf" module would produce a swf file. But by using t= he > >> config option: > >> > >> true > >> > >> the output should be JavaScript instead. > >> > >> > >> In the examples I use the default to produce the swf and add a second > >> "execution" to produce the JavaScript output (see the pom in > >> flex-asjs/examples/flexjs/pom.xml). Additionally I use the > >> maven-war-plugin to create a war file from the debug-output and add > that to > >> the build using the build-helper-maven-plugin (This way the war is > >> automatically installed and deployed). The cool thing about this is th= at > >> you can use this war as an overlay to bundle the client with a server > >> application. > >> > >> > >> I guess I'll be writing some documentation, now that the site deployme= nt > >> seems to be setup. > >> > >> > >> When building pure JavaScript output you can probably omit the > >> playerglobal. Just give it a try. > >> > >> > >> I just had a look at your pom ... you need a packaging of swf, > >> additionally you need the outputJavaScript =3D true. You can omit the = war > and > >> buildhelper plugin for now, the output will be in > >> > >> target/javascript/bin/js-debug > >> > >> > >> Chris > >> > >> > >> > >> ________________________________ > >> Von: carlos.rovira@gmail.com im Auftrag von > >> Carlos Rovira > >> Gesendet: Dienstag, 27. September 2016 18:12:29 > >> An: dev@flex.apache.org > >> Betreff: [FlexJS][Maven] Simple pom with js output > >> > >> Hi Chris, > >> > >> I'm trying to make a test flex's maven project. I check some projects = in > >> "examples" folder and the poms has SWF packing > >> (swf) > >> So first question is...to get JS output I should use other kind of > >> packaging?) > >> > >> I could remove the dependency on player global? > >> > >> Hope you could help me to configure it a get a successful build. > >> > >> This is a my basic pom.xml (note: I suppose I can use Main.as as main > >> class > >> or Main.mxml, I used .as since I'm testing VisualCode extension from > >> NextGenAS in parallel) > >> > >> >> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > >> xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 > >> http://maven.apache.org/maven-v4_0_0.xsd"> > >> 4.0.0 > >> > >> com.carlosrovira.flexjs.examples > >> TestFlexJS > >> 0.1.0-SNAPSHOT > >> ??? > >> > >> Apache Flex - FlexJS: Examples: FlexJS: TestFlexJS > >> > >> > >> > >> > >> org.apache.flex.flexjs.compiler > >> flexjs-maven-plugin > >> true > >> > >> Main.as > >> > >> > >> > >> org.apache.maven.plugins > >> maven-war-plugin > >> > >> > >> org.codehaus.mojo > >> build-helper-maven-plugin > >> > >> > >> > >> > >> > >> > >> > >> > >> Thanks in advance > >> > >> > >> > >> -- > >> Carlos Rovira > >> http://about.me/carlosrovira > >> > > > > > > > > -- > > > > Carlos Rovira > > Director General > > M: +34 607 22 60 05 > > http://www.codeoscopic.com > > http://www.avant2.es > > > > > > Este mensaje se dirige exclusivamente a su destinatario y puede contene= r > > informaci?n privilegiada o confidencial. Si ha recibido este mensaje po= r > > error, le rogamos que nos lo comunique inmediatamente por esta misma v?= a > y > > proceda a su destrucci?n. > > > > De la vigente Ley Org?nica de Protecci?n de Datos (15/1999), le > > comunicamos que sus datos forman parte de un fichero cuyo responsable e= s > > CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la > > prestaci?n del servicio o informaci?n solicitados, teniendo usted derec= ho > > de acceso, rectificaci?n, cancelaci?n y oposici?n de sus datos > dirigi?ndose > > a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la > > documentaci?n necesaria. > > > > > > > -- > > Carlos Rovira > Director General > M: +34 607 22 60 05 > http://www.codeoscopic.com > http://www.avant2.es > > > Este mensaje se dirige exclusivamente a su destinatario y puede contener > informaci?n privilegiada o confidencial. Si ha recibido este mensaje por > error, le rogamos que nos lo comunique inmediatamente por esta misma v?a = y > proceda a su destrucci?n. > > De la vigente Ley Org?nica de Protecci?n de Datos (15/1999), le comunicam= os > que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC > S.A. La finalidad de dicho tratamiento es facilitar la prestaci?n del > servicio o informaci?n solicitados, teniendo usted derecho de acceso, > rectificaci?n, cancelaci?n y oposici?n de sus datos dirigi?ndose a nuestr= as > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentaci?n > necesaria. > -- Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinatario y puede contener informaci=F3n privilegiada o confidencial. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma v=EDa = y proceda a su destrucci=F3n. De la vigente Ley Org=E1nica de Protecci=F3n de Datos (15/1999), le comunic= amos que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la prestaci=F3n del servicio o informaci=F3n solicitados, teniendo usted derecho de acceso, rectificaci=F3n, cancelaci=F3n y oposici=F3n de sus datos dirigi=E9ndose a = nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentaci=F3n necesaria. --_000_HE1PR0501MB2428BE4D49F4D194F1577924A2CF0HE1PR0501MB2428_--