-
Enhancement
-
Resolution: Done
-
Trivial
-
1.0.5.Final
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>