Goal

The goal is to develop a strategy to migrate all existing Glast projects from Maven1 to Maven2 is as unobtrusive a way as possible. The reasons to switch to maven2 are

We will not be able to move all projects over-night, so we need a strategy for which order to move projects, and how projects which have moved can continue to co-exist with projects which have not moved. We will need to provide clear instructions to developers to allow them to move their projects.

We should start with some simple projects, like org-glast-groupmanager.

Requirements

Possible additional features

For Developers

Developing Projects

Parent Repository

All projects have to specify in the pom file the repositories where to find the parent. So the following code is required in every project:

    <repositories>
        <repository>
            <id>glast-maven2</id>
            <name>GLAST Maven 2 central repository</name>
            <url>http://glast-ground.slac.stanford.edu/maven2</url>
        </repository>
        <repository>
            <id>glast-maven2-snapshots</id>
            <name>GLAST Maven2 central SNAPSHOTS repository</name>
            <url>http://glast-ground.slac.stanford.edu/maven2/SNAPSHOTS</url>
        </repository>
    </repositories>

JAR

Parent

A jar project should inherit from org-glast-maven-jar-project; so in your pom add:

    <parent>
        <groupId>glast</groupId>
        <artifactId>org-glast-maven-jar-project</artifactId>
        <version>1.2</version>
    </parent>

WAR

Parent

A jar project should inherit from org-glast-maven-war-project; so in your pom add:

    <parent>
        <groupId>glast</groupId>
        <artifactId>org-glast-maven-war-project</artifactId>
        <version>1.2</version>
    </parent>

Final Name

The final name of the war file is to be set in the pom file as:

    <build>
        <finalName>ServerMapping</finalName>
    </build>

This name is the name of the produced war file and it must be identical to the Application's context. It is also used by the Maven Tomcat Deploy plugin to find the production deployment server.

SCM Plugin

CVS repositories cannot be inherited by the parent pom, so each project will have to add the following lines to their pom file:

    <scm>
        <connection>scm:cvs:pserver:anoncvs@glast-java.slac.stanford.edu:/cvs/java:${artifactId}</connection>
        <developerConnection>scm:cvs:ext:@glast-java.slac.stanford.edu:/cvs/java:${artifactId}</developerConnection>
        <url>http://www-glast.stanford.edu/cgi-bin/viewcvs/${artifactId}/?root=java</url>
    </scm>

Tomcat manager authentification

To be able to deploy to a tomcat server it is necessary to provide the manager's username and password. This can be done in a file called settings.xml located in your HOME\.m2 directory.

For GLAST you have to add the glastServer server element as shown below:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
   <servers>
     <server>
       <id>glastServer</id>
       <username>glast</username>
       <password>GammaRay</password>
     </server>
   </servers>
</settings>

List of Modules in javacvs

Module Name

Converted

org-glast-datamonitoring-web

(error)

org-glast-installer-gui

(error)

org-glast-releasemanager

(error)

TomcatConfigurationBuilder

(error)

org-glast-dataportal-astro

(error)

org-glast-isoc-cfgwebbrowser

(error)

org-glast-reports-web

(error)

datacatalog-web

(error)

org-glast-dataportal-astro-model

(error)

org-glast-isoc-common

(error)

org-glast-resources

(error)

oracle

(error)

org-glast-dataportal-history

(error)

org-glast-isoc-logging

(error)

org-glast-runquality-web

(error)

org-glast

(error)

org-glast-dataportal-model

(error)

org-glast-isoc-mpwebview

(error)

org-glast-servermapping

(error)

org-glast-asdc-sourceviewer

(error)

org-glast-dataportal-portal

(error)

org-glast-jobcontrol

(error)

org-glast-servermon-web

(error)

org-glast-asp-skimmer

(error)

org-glast-dataportal-simpleskimmer

(error)

org-glast-latcatalog-web

(error)

org-glast-shiftschedule-web

(error)

org-glast-asp-sourceviewer

(error)

org-glast-dataportal-skimmer-fits

(error)

org-glast-logging

(error)

org-glast-skeleton-portlet

(error)

org-glast-aspdataviewer-web

(error)

org-glast-dataportal-wired

(error)

org-glast-maven-jar-archetype

(error)

org-glast-skimmer-web

(error)

org-glast-base-application

(error)

org-glast-dataportal-xroot-gateway

(error)

org-glast-maven-jar-project

(error)

org-glast-sourcemonitoring

(error)

org-glast-base-web

(error)

org-glast-dataprocessing-web

(error)

org-glast-maven-plugin-parent

(error)

org-glast-sourcemonitoring-web

(error)

org-glast-batch

(error)

org-glast-dataqualitymonitoring

(error)

org-glast-maven-project

(error)

org-glast-systemtests-web

(error)

org-glast-calibrationtrending

(error)

org-glast-dataqualitymonitoring-web

(error)

org-glast-maven-war-project

(error)

org-glast-telemetry-apidstats

(error)

org-glast-calibrationtrending-web

(error)

org-glast-dataserver-portal

(error)

org-glast-maven-web-project

(error)

org-glast-telemetry-monitor-web

(error)

org-glast-cas-client-example

(error)

org-glast-dataserver-web

(error)

org-glast-maven-xmlbeans-plugin

(error)

org-glast-telemetry-rtdisplay-web

(error)

org-glast-cas-server

(error)

org-glast-downloadmanager

(error)

org-glast-mc-requests

(error)

org-glast-telemetry-trending

(error)

org-glast-clock

(error)

org-glast-elog-base

(error)

org-glast-monitor

(error)

org-glast-telemetry-trending-web

(error)

org-glast-common

(error)

org-glast-elog-web

(error)

org-glast-pipeline-client

(error)

org-glast-telemetry-trends

(error)

org-glast-commons-web

(error)

org-glast-fastmonitoring

(error)

org-glast-pipeline-core

(error)

org-glast-tld-timeline

(error)

org-glast-confluence

(error)

org-glast-fastmonitoring-web

(error)

org-glast-pipeline-log

(error)

org-glast-tomcat-deploy-maven-plugin

(error)

org-glast-countdown-clock

(error)

org-glast-fcmonitor

(error)

org-glast-pipeline-server

(error)

org-glast-trendable-db

(error)

org-glast-datacat-client

(error)

org-glast-fcwebview

(error)

org-glast-pipeline-web

(error)

org-glast-util-grep

(error)

org-glast-datacat-server

(error)

org-glast-fcwebview-portlet

(error)

org-glast-pipeline-xml

(error)

org-glast-visitor-web

(error)

org-glast-datacat-sp

(error)

org-glast-glossary

(error)

org-glast-portal-theme

(error)

org-glast-web-base-application

(error)

org-glast-datacatalog-web

(error)

org-glast-grbmonitoring-web

(error)

org-glast-portlet

(error)

org-silicondetecor-web

(error)

org-glast-dataflow-web

(error)

org-glast-groupmanager

(error)

org-glast-portlet-base

(error)

org.glast.portlet

(error)

org-glast-datahandling-common

(error)

org-glast-groupmanager-example

(error)

org-glast-portlets

(error)

org.glast.test

(error)

org-glast-datamonitoring

(error)

org-glast-hello

(error)

org-glast-profile

(error)

tomcat

(error)