My favorites | Sign in
Project Logo
                
Search
for
Updated Dec 04 (4 days ago) by axelclk
Labels: Featured, Phase-Implementation
MavenSupport  
How to use the Maven repository

IN PROGRESS

Introduction

This example demonstrates the configuration of the bliki engine for a Maven project:

Include release version

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>test</groupId>
        <artifactId>test-bliki</artifactId>
        <packaging>jar</packaging>
        <version>0.0.1</version>

	<dependencies>
		<dependency>
			<groupId>info.bliki.wiki</groupId>
			<artifactId>bliki-core</artifactId>
			<version>3.0.13</version>
		</dependency>
	</dependencies>

...

...
        <repositories>
                <repository>
                        <id>info-bliki-repository</id>
                        <url>http://gwtwiki.googlecode.com/svn/maven-repository/</url>
                        <releases>
                                <enabled>true</enabled>
                        </releases>
                        <snapshots>
                                <enabled>false</enabled>
                        </snapshots>
                </repository>
        </repositories>
</project>

Include snapshot version

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>test</groupId>
        <artifactId>test-bliki</artifactId>
        <packaging>jar</packaging>
        <version>0.0.1-SNAPSHOT</version>

	<dependencies>
		<dependency>
			<groupId>info.bliki.wiki</groupId>
			<artifactId>bliki-core</artifactId>
			<version>3.0.14-SNAPSHOT</version>
		</dependency>
	</dependencies>

...

...
        <repositories>
                <repository>
                        <id>info-bliki-repository</id>
                        <url>http://gwtwiki.googlecode.com/svn/maven-snapshot-repository/</url>
                        <releases>
                                <enabled>false</enabled>
                        </releases>
                        <snapshots>
                                <enabled>true</enabled>
                        </snapshots>
                </repository>
        </repositories>
</project>

Comment by daltodavide, Sep 21, 2009

I would like to download the sources using maven. Could you upload them on the maven repository?

Davide


Sign in to add a comment
Hosted by Google Code