Github user tweise commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/245#discussion_r54453968
  
    --- Diff: docs/application_packages.md ---
    @@ -0,0 +1,667 @@
    +Apache Apex Application Packages
    +================================
    +
    +An Apache Apex Application Package is a zip file that contains all the
    +necessary files to launch an application in Apache Apex. It is the
    +standard way for assembling and sharing an Apache Apex application.
    +
    +# Requirements
    +
    +You will need have the following installed:
    +
    +1. Apache Maven 3.0 or later (for assembling the App Package)
    +2. Apache Apex 3.0.0 or later (for launching the App Package in your 
cluster)
    +
    +# Creating Your First Apex App Package
    +
    +You can create an Apex Application Package using your Linux command
    +line, or using your favorite IDE.
    +
    +## Using Command Line
    +
    +First, change to the directory where you put your projects, and create
    +an Apex application project using Maven by running the following
    +command.  Replace "com.example", "mydtapp" and "1.0-SNAPSHOT" with the
    +appropriate values (make sure this is all on one line):
    +
    +    $ mvn archetype:generate \
    +     -DarchetypeGroupId=org.apache.apex \
    +     -DarchetypeArtifactId=apex-app-archetype 
-DarchetypeVersion=3.2.0-incubating \
    +     -DgroupId=com.example -Dpackage=com.example.mydtapp 
-DartifactId=mydtapp \
    +     -Dversion=1.0-SNAPSHOT
    +
    +This creates a Maven project named "mydtapp". Open it with your favorite
    +IDE (e.g. NetBeans, Eclipse, IntelliJ IDEA). In the project, there is a
    +sample DAG that generates a number of tuples with a random number and
    +prints out "hello world" and the random number in the tuples.  The code
    +that builds the DAG is in
    +src/main/java/com/example/mydtapp/Application.java, and the code that
    +runs the unit test for the DAG is in
    +src/test/java/com/example/mydtapp/ApplicationTest.java. Try it out by
    +running the following command:
    +
    +    $cd mydtapp; mvn package
    +
    +This builds the App Package runs the unit test of the DAG.  You should
    +be getting test output similar to this:
    +
    +```
    + -------------------------------------------------------
    +  TESTS
    + -------------------------------------------------------
    +
    + Running com.example.mydtapp.ApplicationTest
    + hello world: 0.8015370953286478
    + hello world: 0.9785359225545481
    + hello world: 0.6322611586644047
    + hello world: 0.8460953663451775
    + hello world: 0.5719372906929072
    + hello world: 0.6361174312337172
    + hello world: 0.14873007534816318
    + hello world: 0.8866986277418261
    + hello world: 0.6346526809866057
    + hello world: 0.48587295703904465
    + hello world: 0.6436832429676687
    +
    + ...
    +
    + Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.863
    + sec
    +
    + Results :
    +
    + Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
    +```
    +
    +The "mvn package" command creates the App Package file in target
    +directory as target/mydtapp-1.0-SNAPSHOT.apa. You will be able to use
    +that App Package file to launch this sample application in your actual
    +Apex installation.
    +
    +## Using IDE
    +
    +Alternatively, you can do the above steps all within your IDE.  For
    +example, in NetBeans, select File -\> New Project.  Then choose “Maven”
    +and “Project from Archetype” in the dialog box, as shown.
    +
    +![](images/AppPackage/ApplicationPackages.html-image00.png)
    --- End diff --
    
    @davidyan74 can we update the screen shot to reflect the changed groupId?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to