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.

Source Location

Maven2 expects the source files to be located in src/main/webapp. Some of our projects have the source code in src/webapp. To tell maven2 to look in the latter location add the following to your pom file:

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <warSourceDirectory>${basedir}/src/webapp</warSourceDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>

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

In Hudson

Comments

org-glast-maven-project

(tick)

(tick)

 

org-glast-maven-jar-project

(tick)

(tick)

 

org-glast-maven-jar-archetype

(tick)

(tick)

 

org-glast-maven-war-project

(tick)

(tick)

 

org-glast-maven-war-archetype

(tick)

(tick)

 

org-glast-maven-aida-project

(tick)

(tick)

 

org-glast-tomcat-deploy-maven-plugin

(tick)

(tick)

 

org-glast-base-web

(tick)

(tick)

 

org-glast-base-application

(tick)

(tick)

 

org-glast-servermapping

(tick)

(tick)

 

org-glast-groupmanager

(tick)

(tick)

Unnecessary dependence on aidatld. Still on branch

org-glast-dataportal-astro-model

(tick)

(tick)

 

org-glast-datahandling-common

(tick)

(tick)

 

org-glast-telemetry-trending

(tick)

(tick)

 

org-glast-telemetry-trending-web

(tick)

(tick)

 

org-glast-installer-gui

(error)

 

 

org-glast-releasemanager

(error)

 

 

TomcatConfigurationBuilder

(error)

 

 

org-glast-dataportal-astro

(error)

 

 

org-glast-isoc-cfgwebbrowser

(tick)

(tick)

 

org-glast-reports-web

(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

(tick)

(tick)

 

org-glast-historyprocessing-web

(tick)

(tick)

 

org-glast-latba-web

(tick)

(tick)

 

org-glast-dataportal-model

(tick)

(tick)

Version 1.8 but depends on SNAPSHOTs

org-glast-isoc-mpwebview

(error)

 

 

org-glast-dataportal-portal

(error)

 

 

org-glast-jobcontrol

(tick)

(tick)

Version 1.8

org-glast-servermon-web

(error)

 

 

org-glast-asp-skimmer

(error)

 

 

org-glast-dataportal-simpleskimmer

(tick)

(tick)

Unnecessary dependence on aidatld

org-glast-latcatalog-web

(error)

 

 

org-glast-shiftschedule-web

(error)

 

 

org-glast-dataportal-skimmer-fits

(error)

 

 

org-glast-logging

(error)

 

 

org-glast-aspdataviewer-web

(error)

 

 

org-glast-dataportal-wired

(error)

 

 

org-glast-maven-jar-archetype

(error)

 

 

org-glast-skimmer-web

(error)

 

 

org-glast-dataportal-xroot-gateway

(error)

 

 

org-glast-sourcemonitoring

(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-systemtests-web

(error)

 

 

org-glast-calibrationtrending

(error)

 

 

org-glast-dataqualitymonitoring-web

(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-clock

(error)

 

 

org-glast-elog-base

(error)

 

 

org-glast-monitor

(error)

 

 

org-glast-common

(error)

 

 

org-glast-elog-web

(error)

 

 

org-glast-pipeline-client

(tick)

(tick)

 

org-glast-telemetry-trends

(error)

 

 

org-glast-commons-web

(tick)

(tick)

 

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-countdown-clock

(error)

 

 

org-glast-fcmonitor

(error)

 

 

org-glast-pipeline-server

(error)

 

 

org-glast-trendable-db

(error)

 

 

org-glast-datacat-client

(tick)

 

Version is 2.3.2 but depends on SNAPSHOTs. Test do not work

org-glast-fcwebview

(error)

 

 

org-glast-pipeline-web

(error)

 

 

org-glast-util-grep

(error)

 

 

org-glast-datacat-server

(error)

 

 

org-glast-pipeline-xml

(error)

 

 

org-glast-visitor-web

(error)

 

 

org-glast-datacat-sp

(tick)

(tick)

Version is 2.2.1, but depends on SNAPSHOTs

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-silicondetecor-web

(error)

 

 

org-glast-dataflow-web

(error)

 

 

org-glast-groupmanager-example

(error)

 

 

org.glast.test

(error)

 

 

org-glast-hello

(error)

 

 

org-glast-profile

(error)

 

 

tomcat

(error)

 

 

org-glast-fcwebview-portlet

(question)

 

What do we do with portlet code?

org-glast-portlet

(question)

 

What do we do with portlet code?

org-glast-portlet-base

(question)

 

What do we do with portlet code?

org.glast.portlet

(question)

 

What do we do with portlet code?

org-glast-portlets

(question)

 

What do we do with portlet code?

org-glast-skeleton-portlet

(question)

 

What do we do with portlet code?

org-glast-asdc-sourceviewer

(question)

 

Is this obsolete?

org-glast-asp-sourceviewer

(question)

 

Is this obsolete?

org-glast

(question)

 

Is this obsolete?

datacatalog-web

(question)

 

Is this obsolete?

org-glast-datamonitoring

(warning)

 

Obsolete

org-glast-datamonitoring-web

(warning)

 

Obsolete