Hudson does not directly support maven 3.0, so you need to use free-style job type. Here is Hudson job definition for m2e [1] (hopefully formatting won't be too off).

<code>
export DISPLAY=:2
export M2_HOME=/home/j2ee-hudson/tycho.m2e
cd $WORKSPACE/trunk/org.maven.ide.eclipse.parent
$M2_HOME/bin/mvn clean install -B -e -Dmaven.repo.local=/home/j2ee-hudson/repos/m2eclipse-with-e33 -Dtycho.targetPlatform=/home/j2ee-hudson/eclipse-tp-e33/eclipse
</code>


[1] http://ci.sonatype.org/view/m2eclipse/job/m2eclipse-with-e33/

seb1234 wrote:
hi,

i use tycho since a week. I have succesfully compiled my eclipse plugin with
tycho and now i try to compile my plugin in hudson and i have problems.

i try in hudson to configure tycho as a maven2 home.
i have this exception:

ERROR: Pas de fichier classworlds*.jar trouvé dans /applis/tycho -- Est-ce
un répertoire maven2 valide?

so hudson not found classworlds*.jar, so i try to rename
boot/plexus-classworlds-1.2-alpha-13.jar to boot/classworlds-1.2-alpha-13.jar and i retry:

Exception in thread "main" java.lang.NoSuchMethodError:
org.codehaus.classworlds.Launcher.getWorld()Lorg/codehaus/classworlds/ClassWorld;

        at hudson.maven.agent.Main.main(Main.java:84)

        at hudson.maven.agent.Main.main(Main.java:38)


so how can i run tycho builds in hudson ?

thanks,
Seb.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to