Author: Rafael Benevides
This is a plugin for [JBoss Forge] (http://jboss.org/forge) to simplify the setup of a [JDF - JBoss Developer Framework] (http://www.jboss.org/jdf/) Stack
The Stack is provided through the BOM concept. BOM is the abbreviation for Bill of Materials. More information about the BOM concept can be found at http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
JDF provides some BOMs each one for each available Stack. For more detailed information of each Stack you can take a look at: http://www.jboss.org/jdf/stack/jboss-bom/
The purpose of this plugin is to help the developers to add a JDF Stack to a Project.
All you need is to use this plugin is JBoss Forge 1.0.5 (or latter) and an active Internet connection (at least for the first use of the plugin).
Run forge console by typing
forge
-- Linux
forge.bat
-- Windows
After in Forge prompt type
$ forge install-plugin jdf
OBS: If this is the first time that you use this plugin, you must be online.
In Forge console type:
jdf use-stack --stack [TAB]
this should connect to the JDF Stacks repository (default to https://raw.github.com/jboss-jdf/jdf-stack/master/stacks.yaml) and retrieve the list of available JDF Stacks.
The connection to the repository is made once a day. You can force the refresh of
the available stacks running the refresh-stacks command:
jdf refresh-stacks
You can view the available stacks information running:
jdf show-stacks
You can type the use-stack commmand:
jdf use-stack --stack jboss-javaee-6.0-with-errai
Or you can also type the complete command:
jdf use-stack --stack jboss-javaee-6.0-with-errai --version 1.0.0.Final
You can add multiples stacks to your project
If for any reason you want to change the default repository location, you must configure the jdf settings in Forge
-
Open the user configuration in ~/.forge/config.xml (located in your home directory.)
-
Add the 'jdf' tag and required information inside the 'configuration' root tag:
<configuration> ... <jdf> <stacksRepo>file:///home/benevides/stacks.yaml</stacksRepo> </jdf> ... </configuration>
You must run jdf refresh-stacks to force the update of the repository information
If your are accessing Internet through a proxy, you should configure Forge For more information take a look at https://docs.jboss.org/author/display/FORGE/Configure+HTTP+Proxy
If for any reason you can not be online, the plugin will use a previously stored cache file as source of available stacks.
If you want to force the offline use, you can set the OFFLINE property typing:
set OFFLINE true
If you're experiencing some problems, you can turn on debug messages setting
the VERBOSE property typing:
set VERBOSE true