Changes between Version 1 and Version 2 of Maven


Ignore:
Timestamp:
Mar 26, 2010, 2:19:30 AM (14 years ago)
Author:
fxp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Maven

    v1 v2  
    1 Building and configuring the software. Options:
    2  * Ant
    3  * Maven
     1= Compute bounding box based on keyword analysis         =
    42
    5 We have chosen for Maven. Maven follows the design principal "convention over configuration". If one follows the convention of Maven, very little needs to be done to build the software. With Ant a lot of configuration needs to be done.
     3|| '''Date''' || 2010/03/25 ||
     4|| '''Contact(s)''' || Mathieu, Francois ||
     5|| '''Last edited''' || [[Timestamp]] ||
     6|| '''Status''' || Draft ||
     7|| '''Assigned to release''' || ||
     8|| '''Resources''' || ||
     9|| '''Ticket''' ||  ||
    610
    7 Maven is only used for the ebxml parts. GN itself works with Ant. Integration of Maven tasks within Ant is not difficult and might be done at a later stage.
     11== Overview ==
     12In Bolsena hacking event 2009, we decided to move from ant build to maven.
     13
     14=== Maven structure ===
     15
     16[[Image(maven.png)]]
     17
     18 * GeoServer : no more embedded in GeoNetwork
     19 * CSW client : removed
     20 * jetty : via Maven (see Run the application)
     21
     22=== Maven build ===
     23==== Build the application ====
     24{{{
     25mvn clean install
     26}}}
     27
     28
     29==== Packaging the application ====
     30GeoNetwork is distributed as WAR files (intermap.war and geonetwork.war) packaged by maven process.
     31
     32
     33==== Run the application ====
     34Maven plugins for Jetty or Cargo allows to quickly start the application after build.
     35
     36===== War files ====
     37Publish war files created by maven to your favorite webapp directory (Tomcat, Jetty).
     38
     39===== Maven plugin / Cargo =====
     40See : http://cargo.codehaus.org/
     41{{{
     42mvn cargo:start
     43mvn cargo:stop
     44}}}
     45===== Maven plugin / Jetty =====
     46{{{
     47mvn jetty:run
     48}}}
     49Current issue with jetty plugin is that we cannot run more than one application at a time (only geonetwork.war is started, not intermap.war).
     50
     51
     52==== Create an eclipse workspace ====
     53{{{
     54mvn eclipse:eclipse
     55}}}
     56
     57=== Proposal Type ===
     58 * '''Type''': Architecture
     59 * '''App''': !GeoNetwork
     60 * '''Module''': All
     61
     62=== Links ===
     63 
     64 * '''Email discussions''':
     65  * http://n2.nabble.com/Re-switch-to-maven-tp4569552p4569552.html
     66  * http://n2.nabble.com/Maven-tp4009861p4009861.html
     67 * '''IRC discussions''':
     68
     69=== Voting History ===
     70 *
     71
     72== Proposal details ==
     73
     74
     75== Backwards Compatibility Issues ==
     76None.
     77
     78== Risks ==
     79
     80
     81== Participants ==
     82 * Francois
     83 * Mathieu
     84 * Maven expert very welcomed !