flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <christofer.d...@c-ware.de>
Subject AW: Help with My-first-basic-flex-maven project
Date Sat, 03 Oct 2015 17:36:52 GMT
Hi Jason,

 glad you managed to get that far :-)

 just have a look at apache flex flexing and use that instead. I would be glad to help you
in detail, but I'm still not home from the apachecon. Just go to search.maven.org and search
for flexunit .... Take the result with apache in the groupId

I'll help you as soon as I'm home tomorrow.


Von meinem Samsung Galaxy Smartphone gesendet.

-------- Urspr√ľngliche Nachricht --------
Von: Jasen Martin <jasen.martin@gmail.com>
Datum: 03.10.2015 17:49 (GMT+01:00)
An: dev@flex.apache.org
Betreff: Help with My-first-basic-flex-maven project


I am trying to come up to speed with the modern maven world, so thought I
would start with the apache wiki (I am using windows 10/64 with Java 8/64).


Following the instructions, I successfully converted 4.14.1 /AIR 16 - SDK
into my local maven repository using:

*java -jar apache-flex-sdk-converter-1.0.0-SNAPSHOT.jar -mavenDir
C:\Users\manager\.m2\repository -flexVersion 4.14.1 -flashVersions 16.0
-airVersion 16.0 -platforms WINDOWS -fontkit -fdkDir
D:\FlexSDK_4.14.1_AIR-16 download convert*

I also made sure I upgraded to maven 3.3.3 and added the path to the bin

*mvn --version*

*Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06;
*Maven home: D:\Maven\apache-maven-3.3.3*
*Java version: 1.8.0_31, vendor: Oracle Corporation*
*Java home: D:\Java\jdk1.8.0_31\jre*
*Default locale: en_GB, platform encoding: Cp1252*
*OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"*

Then I run to create basic project.


*mvn archetype:generate -DarchetypeGroupId=net.flexmojos.oss

*[INFO] Scanning for projects...*
*[INFO] Building Maven Stub Project (No POM) 1*
*[INFO] >>> maven-archetype-plugin:2.4:generate (default-cli) >
generate-sources @ standalone-pom >>>*
*[INFO] <<< maven-archetype-plugin:2.4:generate (default-cli) <
generate-sources @ standalone-pom <<<*
*[INFO] --- maven-archetype-plugin:2.4:generate (default-cli) @
standalone-pom ---*
*[INFO] Generating project in Interactive mode*
*[INFO] Archetype repository not defined. Using the one from
[net.flexmojos.oss:flexmojos-archetypes-application:7.0.1] found in catalog
*Define value for property 'groupId': : org.apache.flex.examples*
*Define value for property 'artifactId': : my-first-maven-flex-application*
*Define value for property 'version':  1.0-SNAPSHOT: :*
*Define value for property 'package':  org.apache.flex.examples: :*
*Confirm properties configuration:*
*groupId: org.apache.flex.examples*
*artifactId: my-first-maven-flex-application*
*version: 1.0-SNAPSHOT*
*package: org.apache.flex.examples*
* Y: : y*
*[INFO] Using following parameters for creating project from Old (1.x)
Archetype: flexmojos-archetypes-application:7.1.0-SNAPSHOT*
*[INFO] Parameter: basedir, Value: D:\wwwApplications_Apache*
*[INFO] Parameter: package, Value: org.apache.flex.examples*
*[INFO] Parameter: groupId, Value: org.apache.flex.examples*
*[INFO] Parameter: artifactId, Value: my-first-maven-flex-application*
*[INFO] Parameter: packageName, Value: org.apache.flex.examples*
*[INFO] Parameter: version, Value: 1.0-SNAPSHOT*
*[INFO] project created from Old (1.x) Archetype in dir:
*[INFO] Total time: 04:05 min*
*[INFO] Finished at: 2015-10-03T23:23:48+10:00*
*[INFO] Final Memory: 17M/487M*

Here is the POM file created for this test project:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="


    <name>my-first-flex-application Flex</name>





All that worked nicely until I did the > *mvn install*

*[INFO] Scanning for projects...*
*[INFO] Building my-first-flex-application Flex 1.0-SNAPSHOT*
*[WARNING] The POM for com.adobe.flash.framework:playerglobal:swc:18.0 is
missing, no dependency information available*
*[WARNING] The POM for org.flexunit:flexunit:swc:flex4:4.1.0 is missing, no
dependency information available*
*[INFO] Total time: 3.689 s*
*[INFO] Finished at: 2015-10-03T22:47:18+10:00*
*[INFO] Final Memory: 16M/487M*
*[ERROR] Failed to execute goal on project my-first-flex-application: Could
not resolve dependencies for project
org.apache.flex.examples:my-first-flex-application:swf:1.0-SNAPSHOT: The
following artifacts could not be resolved:
org.flexunit:flexunit:swc:flex4:4.1.0: Failure to find
com.adobe.flash.framework:playerglobal:swc:18.0 in
http://repo1.maven.org/maven2/ <http://repo1.maven.org/maven2/> was cached
in the local repository, resolution will not be reattempted until the
update interval of maven-central has elapsed or updates are forced -> [Help
*[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] For more information about the errors and possible solutions,
please read the following articles:*
*[ERROR] [Help 1]

How do I get the org.flexunit into my local repository, I had not luck
finding it on sontatype, and my flash builder 4.7 version is still
com.adobe.flexunit....and I am sure there is a better way.

How do I map flashplayer and AIR to work with package types?

Do I need to do? *set
PLAYERGLOBAL_HOME=D:\FlexSDK_4.14.1_AIR-16\frameworks\libs\player\16.0 *because
It does not seem to help

And why is the version 18? I did change the version to 16 but no luck!

*        <dependency>*
*            <groupId>com.adobe.flash.framework</groupId>*
*            <artifactId>playerglobal</artifactId>*
*            <version>18.0</version>*
*            <type>swc</type>*
*        </dependency>*

I am sure I have just missed something, hope this makes some sense, any
help much appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message