Build CREAM with Maven

Maven user setup

The user setting file for maven, usually located at $HOME/.m2/settings.xml must contain the following definitions:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
          
  <profiles>
    <profile>
      <id>igi-profile</id>
      <activation><activeByDefault>true</activeByDefault></activation>
        <repositories>
          
          <repository>
            <id>cream-repo</id>
            <name>CREAM releases</name>
            <url>http://ci-01.cnaf.infn.it:8081/nexus/content/repositories/releases/</url>
          </repository>

          <!-- voms-api-java 2.0.x repo -->
          <repository>
            <id>cnaf-releases</id>
            <name>CNAF releases</name>
            <url>http://radiohead.cnaf.infn.it:8081/nexus/content/repositories/cnaf-releases/</url>
          </repository>
        
          <!-- argus-pep-common and argus-parent repo -->
          <repository>
            <id>switch</id>
            <name>SWITCH releases</name>
            <url>http://www.switch.ch/grid/authz/docs/maven2/release</url>
          </repository>
          
        </repositories>
        
        <properties>
          <cream.wsdl.url>http://italiangrid.github.io/cream-interface/WS/CREAM</cream.wsdl.url>
          <es.wsdl.url>http://italiangrid.github.io/cream-interface/WS/ES</es.wsdl.url>
        </properties>

    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>********</activeProfile>
  </activeProfiles>

</settings>

The supported active profiles are:

  • SL5_x86_64
  • SL6_x86_64

The external dependencies are selected according to chosen profile.

RPM from maven

Binary and source RPMs can be created specifying the property rpm.repackaging in the command line:

mvn -Drpm.repackaging=true install

The artifacts are stored in the directory target/rpmbuild.

-- PaoloAndreetto - 2013-03-22


This topic: CREAM > WebHome > OtherDocumentation > InternalInfo > MavenBuildCREAM
Topic revision: r4 - 2013-10-25 - PaoloAndreetto
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback