Version 4

    Ajax4jsf. Maven Repository Configuration

     

    This document contains instruction how to configure Maven to work with Ajax4jsf repository.

     

    1. You should have Maven installed. In order to install:

     

         Go to http://maven.apache.org/download.html page

     

         Download version 2.0.6 and install on your local computer

     

         Add Maven bin folder to your PATH

     

     

    Type mvn -version in the command line. If you see a version of the Maven printed on the screen, you are done with it

     

    2. Go to the directory on the local computer where you just install Maven

    Open for edit conf/settings.xml file

     

    Add to the section the following code:

     

        <profile>
           <id>ajax4jsf</id>
       <repositories>
          <repository>
             <releases>
                <enabled>true</enabled>
             </releases>
             <snapshots>
                <enabled>false</enabled>
                <updatePolicy>never</updatePolicy>
             </snapshots>
             <id>repository.jboss.com</id>
             <name>Jboss Repository for Maven</name>
             <url>
                http://repository.jboss.com/maven2/
             </url>
             <layout>default</layout>
          </repository>
          <repository>
             <releases>
                <enabled>false</enabled>
             </releases>
             <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
             </snapshots>
             <id>maven.exadel.com</id>
             <name>Exadel Repository for Maven Snapshots</name>
             <url>http://maven.exadel.com/</url>
             <layout>default</layout>
          </repository>
       </repositories>
     <pluginRepositories>
       <pluginRepository>
             <id>maven.exadel.com</id>
             <name>Exadel Repository for Maven Snapshots</name>
             <url>http://maven.exadel.com/</url>
         <releases>
           <enabled>false</enabled>
         </releases>
         <snapshots>
           <enabled>true</enabled>
           <updatePolicy>always</updatePolicy>
         </snapshots>
       </pluginRepository>
       <pluginRepository>
             <releases>
                <enabled>true</enabled>
             </releases>
             <snapshots>
                <enabled>false</enabled>
                <updatePolicy>never</updatePolicy>
             </snapshots>
             <id>repository.jboss.com</id>
             <name>Jboss Repository for Maven</name>
             <url>
                http://repository.jboss.com/maven2/
             </url>
             <layout>default</layout>
       </pluginRepository>
     </pluginRepositories>
       </profile>
    

     

    just after the </profiles> Add the following:

     

    <activeProfiles>
        <activeProfile>ajax4jsf</activeProfile>
    </activeProfiles>

     

    The configuration is done.