brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neykov <...@git.apache.org>
Subject [GitHub] brooklyn-docs pull request #113: Improvements to java blueprint docs for OSG...
Date Thu, 29 Sep 2016 11:18:51 GMT
Github user neykov commented on a diff in the pull request:

    https://github.com/apache/brooklyn-docs/pull/113#discussion_r81114384
  
    --- Diff: guide/java/archetype.md ---
    @@ -26,11 +26,13 @@ Alternatively, all options can be supplied at the command line. For
example,
     if creating a project named "autobrick" for "com.acme":
     
     {% highlight bash %}
    +# BROOKLYN_VERSION={{ site.brooklyn-version }}
     $ mvn archetype:generate \
     	-DarchetypeGroupId=org.apache.brooklyn \
     	-DarchetypeArtifactId=brooklyn-archetype-quickstart \
    -	-DarchetypeVersion={{ site.brooklyn-version }} \
    -	-DgroupId=com.acme -DartifactId=autobrick \
    +	-DarchetypeVersion=${BROOKLYN_VERSION} \
    --- End diff --
    
    Making this an env variable makes the example non-copy-pasteable. The user needs to edit
it before executing.
    Prefer the old version, or if you really want to make the version stand out change to
something like:
    
    ```
    $ BROOKLYN_VERSION={{ site.brooklyn-version }} \
       mvn archetype:generate \
    	-DarchetypeGroupId=org.apache.brooklyn \
    	-DarchetypeArtifactId=brooklyn-archetype-quickstart \
    	-DarchetypeVersion=${BROOKLYN_VERSION} \
    	-DgroupId=com.acme \
    	-DartifactId=autobrick \
    	-Dversion=0.1.0-SNAPSHOT \
    	-DpackageName=com.acme.autobrick \
    	-DinteractiveMode=false
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message