Differences between revisions 5 and 6
Revision 5 as of 2006-11-10 08:46:48
Size: 3760
Editor: leo
Comment:
Revision 6 as of 2009-09-20 21:55:19
Size: 3764
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
  i. Download maven binary from [http://maven.apache.org/download.html] and unzip it. Add bin to system path.
  i. Checkout maven source code from[http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4] to MAVEN_ROOT
  i. Download maven binary from [[http://maven.apache.org/download.html]] and unzip it. Add bin to system path.
  i. Checkout maven source code from[[http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4]] to MAVEN_ROOT

10th Nov: Harmony passses 100% tests on Maven 2.0.4 after applying patch for JIRA 2075.

Summary:

Maven version: 2.0.4

  • Platform\VM

    RI

    J9

    DRLVM

    RedHat Enterprise4

    100%

    100%

    /

    Windows xp2

    100%

    100%

    100%

Harmony classlib with J9 vm also passes on ubuntu6.0.6 and suse 10.

How to:

  1. Build Maven 2.0.4
    1. Download maven binary from http://maven.apache.org/download.html and unzip it. Add bin to system path.

    2. Checkout maven source code fromhttp://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4 to MAVEN_ROOT

    3. (if have difficult in download) Set download proxy:
      • In USER_HOME/.m2 add a settings.xml file with such content:
            <settings>
                <proxies>
                    <proxy>
                         <active>true</active>
                         <protocol>http</protocol>
                         <host>PROXY_HOST</host>
                         <port>PROXY_PORT</port>
                    </proxy>
                </proxies>
            </settings>
    4. "mvn compile" to compile source code, "mvn test-compile" to compile testcases.
  2. Test Maven 2.0.4 on Harmony
    1. Set variable JAVA_HOME=HARMONY_CLASSLIB/deploy/jdk/jre
    2. Set java compiler to javac in MAVEN_ROOT/pom.xml
      • Add such property in <plugins></plugins>

               <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-compiler-plugin</artifactId>
                     <configuration>
                           <fork>true</fork>
                           <executable>PATH TO JAVAC\javac.exe</executable>
                     </configuration>
                </plugin>
      i."mvn test" to run tests.
    # I have problem in testing Maven on drlvm on Redhat Linux Enterprise 4.
    • It has such output"
      [INFO] org/apache/maven/surefire/booter/IsolatedClassLoader
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/IsolatedClassLo ader
              at org.apache.maven.plugin.surefire.SurefirePlugin.constructSurefireBoot er(SurefirePlugin.java:437)
              at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugi n.java:390)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:409)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:534)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:473)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:453)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:271)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:138)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:110)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:250)
              at java.lang.reflect.VMReflection.invokeMethod(Native Method)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
              at org.codehaus.classworlds.Launcher.launch(Launcher.java)
              at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:426)
              at org.codehaus.classworlds.Launcher.main(Launcher.java)

Apache_Maven (last edited 2009-09-20 21:55:19 by localhost)