Uploaded image for project: 'JBoss AS Maven Plugins'
  1. JBoss AS Maven Plugins
  2. JBASMP-78

Requirement to ser JBOSS_HOME as soon as commands are executed

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 7.7.Final
    • Fix Version/s: None
    • Component/s: common
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      create an ear pom for an example project on a machine without any JBOSS_HOME variable set.
      Add a command:

      <plugin>
                      <groupId>org.jboss.as.plugins</groupId>
                      <artifactId>jboss-as-maven-plugin</artifactId>
                      <version>7.7.Final</version>
                      <executions>
                          <execution>
                              <id>default-deploy</id>
                              <phase>deploy</phase>
                              <goals>
                                  <goal>run</goal>
                              </goals>
                              <configuration>
                                  <before-deployment>
                                      <commands>
                                          <command>module add --name=oracle.jdbc --resources=/LocalData/maven-local-repo/oracle/oracle-jdbc/11.2g/oracle-jdbc-11.2g.jar --dependencies=javax.api,javax.transaction.api</command>
                                      </commands>
                                  </before-deployment>
                              </configuration>
                          </execution>
                      </executions>
                  </plugin>
      

      And start the execution

      mvn jboss-as:run
      
      Show
      create an ear pom for an example project on a machine without any JBOSS_HOME variable set. Add a command: <plugin> <groupId>org.jboss.as.plugins</groupId> <artifactId>jboss-as-maven-plugin</artifactId> <version>7.7.Final</version> <executions> <execution> <id> default -deploy</id> <phase>deploy</phase> <goals> <goal>run</goal> </goals> <configuration> <before-deployment> <commands> <command>module add --name=oracle.jdbc --resources=/LocalData/maven-local-repo/oracle/oracle-jdbc/11.2g/oracle-jdbc-11.2g.jar --dependencies=javax.api,javax.transaction.api</command> </commands> </before-deployment> </configuration> </execution> </executions> </plugin> And start the execution mvn jboss-as:run

      Description

      If I run jboss-as:run without any configuration and no JBoss installed, the plugin correctly downloads JBoss and unpacks it in my ear projects target directory. It also correctly starts the server and tries to deploy the application. Unfortunately I need to do some configuration first, so I added some "before-deployment" commands. Now the build fails with a message, that the JBOSS_HOME variable isn't set. As soon as I set it to the "target/jboss-as-run/jboss-as-7.1.1.Final" it is able to continue. Would be good however if the plugin could already ensure the variable from being set.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  cdutz Christofer Dutz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: