Escidoc Building and Developing Environment

From MPDLMediaWiki
Jump to navigation Jump to search

Build infrastructure[edit]

Maven build1.png

The build infrastructure consists of several servers and tools to support all developers and testers of the escidoc project in the development process.

The build process is supported by several servers:

  • Nexus, which holds all the binary artifacts (including external and internal binary dependencies), works as artifacts proxy
  • Continuum, a testing server for nightly builds, unit- and integration testing, releases
  • Maven, a software project management and comprehension tool, used for building, testing and release management
  • Subversion, a source control management tool, with the following repositories:
    • common used by project common_services
    • pubman used by project PubMan
    • virr used by project ViRR
    • faces used by project Faces

Release management[edit]

The release management takes care of building new releases which are automatically transferred to archiva to make it available to the public. The eSciDoc Release Lifecycle is responsible that any tasks involved are correctly implemented. After the release is done, the next step is to deploy the release binary to a target system.

Deployment process

The necessary steps for a deployment is highly affected on the domain of the target system.



Setting up the workstation[edit]

In oder to work on a specific project, you need to setup your workstation to contribute your effort. These Howtos shall help you to install maven and include your favourite IDE in the developing process.

Deploy own libraries to archiva

To deploy own external(!!!) libraries to archiva, use the following instructions in a shell:

mvn deploy:deploy-file -DgroupId=<groupid> -DartifactId=<artifact-id> -Dversion=<version-number> -Dpackaging=jar -Dfile=/path/to/file 
   -Durl= -DrepositoryId=deployment.webdav

But remember:

  • Before uploading any libraries, check if the artifact you wish to upload is already in the repository. Use the Find artifact functionality of archiva to ensure this.
  • If the upload fails, check if you have the permissions to upload artifacts to the internal archiva repository

Project webpage[edit]

The project webpage is a useful information resource for developers or any other interested people. The project webpage contains useful information on the build environment, source code access, javadocs, code analysis etc.

All the information of a project is visible on an apache server by project. The current RELEASED project descriptions are:

Information about the current development can be found in the SNAPSHOT project descriptions:

Most of the data on the project webpage is created automatically by maven itself. If you want to add your own content to the project webpage or modify an exsiting one, take a look at the Maven project site guide.

Interesting links[edit]

Maven: The Definitive Guide  : A deeper look onto Maven.

Current problems and workarounds[edit]

  • A release with the continuum build server doesn't work. When preparing the release, continuum complains that it cannot handle snapshot dependencies when you do a single module release.
[INFO] Updating local copy against the scm...
[INFO] Verifying that there are no local modifications...
[ERROR] org.apache.maven.shared.release.ReleaseFailureException: Can't release project due to non released dependencies :
in project 'endnotemanager' (
	at org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.checkProject(
	at org.apache.maven.shared.release.phase.CheckDependencySnapshotsPhase.execute(
	at org.apache.maven.shared.release.DefaultReleaseManager.prepare(
	at org.apache.maven.shared.release.DefaultReleaseManager.prepareWithResult(
	at org.apache.maven.continuum.release.executors.PrepareReleaseTaskExecutor.execute(
	at org.apache.maven.continuum.release.executors.AbstractReleaseTaskExecutor.executeTask(
	at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$
The strange behavior is, it works if you do a command line release.
  • Maven has currently problems with tagging a release, if the svn client is > 1.5 It aborts with a 'Item already tagged error'
Use these commands for a workaround:
svn up -r head
mvn release:prepare -Dresume