Friday, July 6, 2007

Maven and Continuum

Maven 2
official and wiki


Dowload page
Download direct link (tar.gz ver. 2.0.7)

REPOSITORY:
http://mirrors.ibiblio.org/pub/mirrors/maven2/

mvn clean install
-Dmaven.test.skip=true
-Dxfire.java5=true

Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

We faced problem with antrun plugin

[INFO] [antrun:run {execution: 0}]
[INFO] Executing tasks
[mkdir] Created dir:
D:\exo\projects\projects
\portlet-container\branches\2.0\component\plugins\wsrp1\target\generate
d
[java] java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java
[java] Exception in thread "main"
[java] Java Result: 1



Thats problem solved with change
<latest>1.0</latest>
<release>1.0</release>
within
maven2\repository\org\apache
\maven\plugins\maven-antrun-plugin\maven-metadata-central.xml


Or, much better to point version for maven plugin within pom.xml
For example:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.0</version>

And, sometimes ploblem in that maven doesn't see plugins at all.
Need to point plugin repository
For example:
<pluginRepositories>
<pluginRepository>
<id>snapshot</id>
<name>Snapshot repository</name>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
</pluginRepository>
</pluginRepositories>



Links:
Maven
Documentation
Configuring Maven
Introduction to the POM
POM Reference
SETTINGS Reference

Introduction to the lifecycle
Build Lifecycle Phases

Frequently Asked Technical Questions
The APT format
Download Maven (latest version 2.0.5)
THE BEST MAVEN ARTICLE POST EVER!


Continuum
wiki


Continuum is a continous integration server for building Java based projects.
Continuum is a great partner to Apache Maven which will run builds on a configurable schedule. Continuum will email developers when the build is broken requesting that the culprit fix the problem. You may add a project to Continuum simply by pointing to the pom.xml in the source control system and it will magically do the rest (check out from source control, run a clean build, deploy to the integration server and run unit tests).

Links:
Welcome to Continuum
Documentation
About Continuum
Download Continuum (latest version 1.0.3)

No comments: