2 Replies Latest reply on Aug 15, 2013 12:09 PM by Joshua Wilson

    Instructions on how to build snowdrop project

    Zemian Deng Apprentice

      I didn't see clear instruction on how to do this with latest code from GitHub, so I thought I will share with you how to get the latest project compile.

       

      Install Maven 3 and edit your $HOME/.m2/settings.xml to have at least this:

       

      <settings>
                <profiles>
                          <profile>
                                    <id>global-repos</id>
                                    <activation>
                                              <activeByDefault>true</activeByDefault>
                                    </activation>
                                    <repositories>
                                              <repository>
                                                        <id>jboss-public-repo</id>
                                                        <name>jboss-public-repo</name>
                                                        <url>http://repository.jboss.org/nexus/content/groups/public</url>
                                              </repository>
                                              <repository>
                                                        <id>jboss-deprecated-repo</id>
                                                        <name>jboss-deprecated-repo</name>
                                                        <url>https://repository.jboss.org/nexus/content/repositories/deprecated</url>
                                              </repository>
                                    </repositories>
                                    <pluginRepositories>
                                              <pluginRepository>
                                                        <id>jboss-public-repo</id>
                                                        <name>jboss-public-repo</name>
                                                        <url>http://repository.jboss.org/nexus/content/groups/public</url>
                                              </pluginRepository>
                                    </pluginRepositories>
                          </profile>
                </profiles>
      </settings>
      

       

      Now get the latest source code

       

      1. cd $HOME/projects
      2. git clone https://github.com/snowdrop/snowdrop.git
      3. cd snowdrop
      4. # Manually edit pom.xml and comment out "<showDeprecation>true</showDeprecation>" from the compiler plugin. This is giving me a compile error.
      5. mvn install
      

       

      That should get you a successful build and place the jars into your local Maven repository.

       

      Enjoys!

      Zemian Deng

        • 1. Re: Instructions on how to build snowdrop project
          Darryl Miles Novice

          Great information.

           

          I do no use the <activeByDefault> part and instead in step 5 run the command as "mvn -Pglobal-repos install" to active it, this way all my other projects are not affected.

          • 2. Re: Instructions on how to build snowdrop project
            Joshua Wilson Newbie

            I would like to add that there is now an Install option available.

             

            If you go to the Install directory in Snowdrop you can:

             

            Simply, run:

                     mvn package -DJBOSS_HOME=/path/to/jboss_home

             

            By default snowdrop version 3.0.1.SNAPSHOT and spring 3.2.3.RELEASE will be installed. To change this simply execute:

                     mvn package -P${desired-spring-version} -DJBOSS_HOME=/path/to/jboss_home -Dversion.snowdrop=${desired-snowdrop-version}

             

            There are four possible spring version profiles: spring-2.5, spring-3, spring-3.1, and spring-3.2 (the default).

             

            NOTE: Make sure to pass in -DJBOSS_HOME=/path/to/EAP installation

            NOTE: If you are installing a non released version, be sure to mvn clean install on the top level.