Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

war overlay

Mark Prins edited this page Sep 29, 2015 · 3 revisions

A war overlay is a means to extend and build upon a Maven war artifact.

Flamingo artifacts are published in the B3Partners repository manager so to use any artifacts from that server add the following to the <repositories> element of your project pom.

    <repositories>
        <repository>
            <id>b3p</id>
            <name>Releases and snapshots hosted by B3Partners</name>
            <url>http://repo.b3p.nl/nexus/content/groups/public/</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>

You can then inherit from the viewer artifact as follows:

    <dependencies>
        <!-- if you just want to create a custom viewer --> 
        <dependency>
            <groupId>org.flamingo-mc</groupId>
            <artifactId>viewer</artifactId>
            <version>${flamingo.version}</version>
            <type>war</type>
            <scope>runtime</scope>
        </dependency>
       <!-- if you want to inherit from any beans or other java classes -->
        <dependency>
            <groupId>org.flamingo-mc</groupId>
            <artifactId>viewer</artifactId>
            <version>${flamingo.version}</version>
            <classifier>classes</classifier>
        </dependency>

If you just want to create a custom viewer war with some things like third party components you only need the viewer war, if you also want to inherit from the java code you will also need the -classes artifact of the war.

You can also inherit from the viewer-admin ofcourse.

For an example see: https://github.com/B3Partners/flamingo-ibis/

Clone this wiki locally