MavenSetup

!! moved http://code.google.com/p/webical/wiki/DevelopmentEnvironmentSetup !!

Development environment setup

  • download maven2
  • add mvn to the path
  • define a variable in eclipse named M2_REPO that points to /home/'your_name'/.m2/repository for your system
    • from the menu: window > preferences > java > build path > classpath variables)
  • Checkout the project from SVN
  • download jta classes -> due to license issues it is not in any maven repository
    • install the file in your local repository:
      mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=jta-1_0_1B-classes.zip -DgeneratePom=true
  • go to the project root directory
  • run:
    mvn -Dwtpversion=1.5 eclipse:eclipse
    • optional: you can add the option -DdownloadSources=true to download the source files from the maven repository
  • refresh the view in eclipse
  • Add the M2_REPO variable in eclipse for the project (properties->build path->add variable)

After every added dependency to the pom

  • run:
    mvn -Dwtpversion=1.5 eclipse:eclipse

First time setup (done once to setup the project)

Note: this was done once to setup the project initially. To check out the project follow the steps above.

  • setup maven (first three steps noted above)
  • run:
    mvn archetype:create -DgroupId=org.webical.calendar -DartifactId=webical -DarchetypeArtifactId=maven-archetype-webapp
  • run:
    mvn -Dwtpversion=1.5 eclipse:eclipse

-- MattijsHoitink - 12 Sep 2007

Topic revision: r8 - 28 Jan 2008 - 10:18:50 - MattijsHoitink
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback