Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1316

examples, "mvn jboss-as:run" ignores JBOSS_HOME

XMLWordPrintable

    • Workaround Exists
    • Hide

      run:

      mvn jboss-as:run -Djboss-as.home=${JBOSS_HOME}
      

      instread of

      mvn jboss-as:run
      
      Show
      run: mvn jboss-as:run -Djboss-as.home=${JBOSS_HOME} instread of mvn jboss-as:run

      The instructions in the examples' readme files says, e.g. :

      Deploying to JBoss AS
      ---------------------
      
      Make sure you have assigned the absolute path of your JBoss AS installation to the
      JBOSS_HOME environment variable.
      
      To deploy the example run:
      
         mvn jboss-as:run
      
      Now you can view the application at <http://localhost:8080/weld-numberguess>.
      

      This is imprecise, running "mvn jboss-as:run" will ignore JBOSS_HOME property and download AS 7.1.1.

      workaround is to add -Djboss-as.home=${JBOSS_HOME}

      (I am not sure if the readme files should be changed, or the jboss-as-maven-plugin to be configured to read the JBOSS_HOME property)

      see http://docs.jboss.org/jbossas/7/plugins/maven/final/run-mojo.html#jbossHome

              mbriskar_jira Matej Briskar (Inactive)
              maschmid@redhat.com Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: