0 Replies Latest reply on Dec 12, 2011 8:26 AM by kcbabo

    Maven settings for the Workshop labs

    kcbabo

      For those of you trying to run the workshop labs found here:

       

      http://community.jboss.org/wiki/SwitchYardWorkshop-Asia

       

      You will need to configure Maven so that it can find SwitchYard artifacts in the JBoss Nexus repository.  There are a couple ways to get this done:

       

      1) Update the repository information in the parent pom of the workshop (labs/pom.xml).  The pom has some commented lines which reference a local file system repository.  Add the following instead:

       

      <repositories>
            <repository>
              <id>jboss-public-repository-group</id>
              <name>JBoss Public Maven Repository Group</name>
              <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
              <layout>default</layout>
              <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
              </releases>
              <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
              </snapshots>
            </repository>
          </repositories>
          <pluginRepositories>
            <pluginRepository>
              <id>jboss-public-repository-group</id>
              <name>JBoss Public Maven Repository Group</name>
              <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
              <layout>default</layout>
              <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
              </releases>
              <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
              </snapshots>
            </pluginRepository>
          </pluginRepositories>
      
      

       

      2) Configure your Maven environment to automatically search the JBoss repository for all projects by updating $HOME/.m2/settings.xml.  More information on that can be found here:

       

      http://community.jboss.org/wiki/MavenGettingStarted-Users