Hudson führt keine Maven-Builds aus [gelöst]

Ich versuche gerade meine Hudson-Installation auf den neuen Ubuntu-Rechner zu migrieren, sobald ich allerdings ein Maven-Projekt builden möchte, hagelt es Fehlermeldungen:


Started by user anonymous
Checking out a fresh workspace because /home/jr/hudson/jobs/adelio-Model/workspace/adelio-Model doesn't exist
Checking out file:///usr/local/svn/repos/adelio/adelio/adelio-Model/trunk/adelio-Model
A         adelio_checkstyle.xml
A         nbactions.xml
A         src
A         src/test
A         src/test/java
A         src/test/java/de
A         src/test/java/de/adelio
A         src/test/java/de/adelio/model
A         src/test/java/de/adelio/model/UserTest.java
A         src/test/java/de/adelio/model/ArticleTest.java
A         src/main
A         src/main/java
A         src/main/java/de
A         src/main/java/de/adelio
A         src/main/java/de/adelio/domain
A         src/main/java/de/adelio/domain/Comment.java
A         src/main/java/de/adelio/domain/Category.java
A         src/main/java/de/adelio/domain/User.java
AU        src/main/java/de/adelio/domain/Article.java
A         src/main/java/de/adelio/domain/DomainObject.java
A         src/main/java/de/adelio/domain/administrative
A         src/main/java/de/adelio/domain/administrative/Language.java
A         src/main/java/de/adelio/domain/administrative/FaqCategory.java
A         src/main/java/de/adelio/model
A         src/main/java/de/adelio/persistence
A         src/main/java/de/adelio/persistence/hibernate
A         src/main/java/de/adelio/persistence/hibernate/FaqCategoryDaoImpl.java
A         src/main/java/de/adelio/persistence/hibernate/ArticleDaoImpl.java
A         src/main/java/de/adelio/persistence/hibernate/LanguageDaoImpl.java
A         src/main/java/de/adelio/persistence/hibernate/UserDaoImpl.java
A         src/main/java/de/adelio/persistence/hibernate/CategoryDaoImpl.java
A         src/main/java/de/adelio/persistence/hibernate/CommentDaoImpl.java
A         src/main/java/de/adelio/persistence/hibernate/AbstractHibernateDaoImpl.java
A         src/main/java/de/adelio/persistence/ArticleDao.java
A         src/main/java/de/adelio/persistence/LanguageDao.java
A         src/main/java/de/adelio/persistence/UserDao.java
A         src/main/java/de/adelio/persistence/CategoryDao.java
A         src/main/java/de/adelio/persistence/CommentDao.java
A         src/main/java/de/adelio/persistence/Dao.java
A         src/main/resources
A         src/main/resources/hibernate.cfg.xml
A         adelio_checkstyle_suppression.xml
A         pom.xml
A         adelio_pmd_ruleset.xml
A         findbugs-exclude.xml
 U        .
At revision 431
Parsing POMs
Discovered a new module de.adelio:adelio-Model adelio-Model
[adelio-Model] $ java -cp /home/jr/hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.334.jar:/usr/share/maven2/boot/classworlds.jar hudson.maven.agent.Main /usr/share/maven2 /var/lib/tomcat6/webapps/hudson/WEB-INF/lib/remoting-1.334.jar /home/jr/hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.334.jar 42918
<===[HUDSON REMOTING CAPACITY]===>???channel started
Executing Maven:  -B -f /home/jr/hudson/jobs/adelio-Model/workspace/adelio-Model/pom.xml install
[WARNING]
************ WARNING ************

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration.

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor
Missing component requirement: org.apache.maven.project.MavenProjectBuilder

NOTE: This seems to be a third-party Maven derivative you are using. If so, please
notify the developers for this derivative project of the problem. The Apache Maven team is not
responsible for maintaining the integrity of third-party component overrides.

[WARNING]
************ WARNING ************

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration.

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor
Missing component requirement: org.apache.maven.project.interpolation.ModelInterpolator

NOTE: This seems to be a third-party Maven derivative you are using. If so, please
notify the developers for this derivative project of the problem. The Apache Maven team is not
responsible for maintaining the integrity of third-party component overrides.

[WARNING]
************ WARNING ************

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration.

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor
Missing component requirement: org.apache.maven.ConfigurationInterpolator

NOTE: This seems to be a third-party Maven derivative you are using. If so, please
notify the developers for this derivative project of the problem. The Apache Maven team is not
responsible for maintaining the integrity of third-party component overrides.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building adelio-Model
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.1/maven-resources-plugin-2.4.1.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.4.1' from repository central (http://repo1.maven.org/maven2): Specified destination directory cannot be created: /usr/share/tomcat6/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.1/maven-resources-plugin-2.4.1.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-resources-plugin:pom:2.4.1' from repository central (http://repo1.maven.org/maven2): Specified destination directory cannot be created: /usr/share/tomcat6/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: org.apache.maven.plugins:maven-resources-plugin

Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in repository: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-resources-plugin:pom:2.4.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.maven.plugins:maven-resources-plugin

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Nov 18 20:48:36 CET 2009
[INFO] Final Memory: 3M/59M
[INFO] ------------------------------------------------------------------------
channel stopped
Finished: FAILURE

Irgend jemand eine Idee woran das liegen könnte? Rufe ich Maven von der Konsole aus auf, erhalte ich die Fehlermeldung nicht. Ich denke mal, dass das ein Konfigurationsproblem ist. Nur welches? Google hat mich da bisher noch nicht weitergebracht.

[UPDATE]

Nach weiterer Suche hab ich irgendwann im Hudson-Wiki einen Hinweis darauf gefunden, dass es unter Ubuntu mit Tomcat-Installationen Probleme geben kann, wenn diese über den Packet-Manager installiert werden.

Testweise Hudson in der Tomcat-Instanz deployt, welche von Netbeans installiert wurde und siehe da, das Problem schien gelöst. Der Lösungsvorschlag aus dem Wiki hingegen, den Security-Manager in /etc/init.d/tomcat6 auszuschalten, funktionierte nicht.

Also doch eine eigene Tomcat-Instanz aufgesetzt und Hudson läuft.

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>