Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-625

Remove Maven exec plugin configuration from dist module

XMLWordPrintable

      As for now, the best way to start forge is to get into dist/target/forge-distribution-1.0.6-SNAPSHOT/bin and run ./forge.

      However, some time ago it used to be run using mvn exec:exec, which should no longer be used, since it has some issues with JBoss modules itself.

      The following should be removed from pom.xml in dist module and documentation should be properly updated:

            <profile>
               <id>runForge</id>
               <build>
                  <plugins>
                     <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.2.1</version>
                        <configuration>
                           <executable>java</executable>
                           <workingDirectory>${java.io.tmpdir}</workingDirectory>
                           <arguments>
                              <argument>-cp</argument>
                              <classpath />
                              <argument>org.jboss.modules.Main</argument>
                              <argument>-modulepath</argument>
                              <argument>${project.build.directory}/${project.artifactId}-${forge.release.version}/modules:${user.home}/.forge/plugins</argument>
                              <argument>org.jboss.forge</argument>
                           </arguments>
                        </configuration>
                     </plugin>
                  </plugins>
               </build>
            </profile>
            <profile>
               <id>debugForge</id>
               <build>
                  <plugins>
                     <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>exec-maven-plugin</artifactId>
                        <version>1.2.1</version>
                        <configuration>
                           <executable>java</executable>
                           <workingDirectory>${java.io.tmpdir}</workingDirectory>
                           <arguments>
                              <argument>-Xdebug</argument>
                              <argument>${debug.props}</argument>
                              <argument>-cp</argument>
                              <classpath />
                              <argument>org.jboss.modules.Main</argument>
                              <argument>-modulepath</argument>
                              <argument>${project.build.directory}/${project.artifactId}-${forge.release.version}/modules:${user.home}/.forge/plugins</argument>
                              <argument>org.jboss.forge</argument>
                           </arguments>
                        </configuration>
                     </plugin>
                  </plugins>
               </build>
            </profile>
      

              rhn-support-ggastald George Gastaldi
              rhn-support-ggastald George Gastaldi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: