Skip to content

Instantly share code, notes, and snippets.

@neomatrix369
Last active August 29, 2015 14:09
Show Gist options
  • Save neomatrix369/9fa4147ee8999cfd3a4e to your computer and use it in GitHub Desktop.
Save neomatrix369/9fa4147ee8999cfd3a4e to your computer and use it in GitHub Desktop.
Build JBoss Forge on m2 (Jigsaw)
$ gedit .bashrc
$ export SOURCE_CODE=$HOME/dev/jigsaw
$ export JAVA_HOME=$SOURCE_CODE/m2/build/linux-x86_64-normal-server-release/images/jdk
Ensure -XX:MaxPermSize=128m is removed from MAVEN_OPTS or any other XXX_OPTS env variables
git clone https://github.com/forge/core.git forge-core
Change the $HOME/.m2/settings.xml file
<settings>
<profiles>
<profile>
<id>forge-20</id>
<pluginRepositories>
<pluginRepository>
<id>build.snapshots</id>
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>build.snapshots</id>
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
</profile>
</profiles>
</settings>
To Install downloaded package of maven apache-maven-3.1.1-bin.tar.gz
cd ~/Downloads
wget http://apache.mirrors.timporter.net/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
sudo mkdir -p /usr/local/apache-maven
sudo mv apache-maven-3.1.1-bin.tar.gz /usr/local/apache-maven
cd /usr/local/apache-maven
sudo tar -xzvf apache-maven-3.1.1-bin.tar.gz
Edit ~/.bashrc with gedit ~/.bashrc and add these four lines:
export M2_HOME=/usr/local/apache-maven/apache-maven-3.1.1
export M2=$M2_HOME/bin
export MAVEN_OPTS="-Xms256m -Xmx512m"
export PATH=$M2:$JAVA_HOME:$PATH
Add the below block into the respective pom.xml files (see below):
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>simple-api</artifactId>
<scope>provided</scope>
</dependency>
Fix : https://issues.jboss.org/browse/FORGE-2019 into /home/satyasai/git-repos/forge-core/shell/impl/pom.xml
a) ../shell/impl/pom.xml
b) ../javaee/impl/pom.xml
$ mvn clean install -Pforge-20 -DskipTests -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment