You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2018/01/03 21:14:56 UTC

[royale-asjs.wiki] branch master updated: Add instruction how to create project with Maven

This is an automated email from the ASF dual-hosted git repository.

piotrz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-asjs.wiki.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f1e99e  Add instruction how to create project with Maven
2f1e99e is described below

commit 2f1e99e32fcb6d8c5fc18f85e95861a077c1b764
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Wed Jan 3 22:14:55 2018 +0100

    Add instruction how to create project with Maven
---
 Create-Royale-project-with-Maven.md | 42 +++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/Create-Royale-project-with-Maven.md b/Create-Royale-project-with-Maven.md
new file mode 100644
index 0000000..3fc1522
--- /dev/null
+++ b/Create-Royale-project-with-Maven.md
@@ -0,0 +1,42 @@
+With Maven you can create a Royale Project using Maven Archetypes. The following steps-by-step guide are for Mac users, but similar steps can be followed by Windows users.
+
+# Create Royale project
+  1. Open Terminal Window and go to the folder where you want to create your new Royale Project (i.e: cd ~/Desktop, to create the project directly in Desktop).
+  2. The following instruction is an example to create a project:
+
+    mvn -s /Users/<YourUser>/<Path-To-You-Royale-Repo>/settings-template.xml archetype:generate -DarchetypeGroupId=org.apache.royale.framework -DarchetypeArtifactId=royale-simple-application-archetype -DarchetypeVersion=0.9.0-SNAPSHOT
+
+  3. Maven will start to create the new project from scratch and will ask you some questions (the following are the questions and an example of possible responses):
+
+    Define value for property 'groupId': : org.apache.royale.examples
+    Define value for property 'artifactId': : ASimpleRoyaleTestApp
+    Define value for property 'version':  1.0-SNAPSHOT: : 
+    Define value for property 'package':  org.apache.royale.examples: : 
+    Confirm properties configuration:
+    groupId: org.apache.royale.examples
+    artifactId: ASimpleFlexJSTestApp
+    version: 1.0-SNAPSHOT
+    package: org.apache.royale.examples
+    Y: : Y
+
+# Created application
+
+In this example, you should get a project folder called **ASimpleRoyaleTestApp** in the folder you have located in 1.
+Inside the project you will have a basic Application, located in **/src/main/flex** folder with the following code created.
+
+    <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+                    xmlns:js="library://ns.apache.org/royale/basic" >
+      <js:valuesImpl>
+         <js:SimpleCSSValuesImpl />
+      </js:valuesImpl>
+      <js:initialView>
+         <js:View>
+           <js:Label text="Hello World!" />
+        </js:View>
+      </js:initialView>
+    </js:Application>
+
+# Build Royale project
+In order to build created project, go to the root folder where Maven pom.xml file is located and type:
+
+    mvn -s /Users/<YourUser>/<Path-To-You-Royale-Repo>/settings-template.xml clean install
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <co...@royale.apache.org>'].