OpenCms Maven Plugin

This plugin packages OpenCms module zips.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

de.zebrajaeger
ArtifactId

ArtifactId

opencms-maven-plugin
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

OpenCms Maven Plugin
This plugin packages OpenCms module zips.
Project URL

Project URL

https://github.com/zebrajaeger/opencms-maven-plugin
Source Code Management

Source Code Management

https://github.com/zebrajaeger/opencms-maven-plugin.git

Download opencms-maven-plugin

How to add to project

<plugin>
    <groupId>de.zebrajaeger</groupId>
    <artifactId>opencms-maven-plugin</artifactId>
    <version>1.1</version>
</plugin>

Dependencies

compile (15)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven : maven-model jar 3.3.9
org.apache.maven : maven-project jar 2.2.1
org.apache.maven : maven-artifact jar 3.3.9
org.apache.maven : maven-core jar 3.3.9
org.slf4j : slf4j-simple jar 1.7.5
jaxen : jaxen jar 1.1.4
org.codehaus.plexus : plexus-archiver jar 2.4.4
commons-io : commons-io jar 2.4
org.codehaus.plexus : plexus-utils jar 3.0.15
org.codehaus.plexus : plexus-interpolation jar 1.19
org.apache.maven.shared : maven-common-artifact-filters jar 1.4
org.apache.maven : maven-archiver jar 2.5
org.apache.commons : commons-lang3 jar 3.4
org.apache.maven.shared : maven-filtering jar 1.0-beta-2

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

This is a 'fork' of the mediawork opencms-maven-plugin

All dependencies are integrated into one single project

Some Improvements are done

  • Integrate folders outside the project
    • generated css classes
    • minified javascript
    • images
    • jars

Example pom.xml (partial)

<properties>
    <version.opencms-maven-plugin>...</version.opencms-maven-plugin>
</properties>
    
<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>de.zebrajaeger</groupId>
                <artifactId>opencms-maven-plugin</artifactId>
                <extensions>true</extensions>
                <version>${version.opencms-maven-plugin}</version>
                <configuration>
                    <moduleName>${project.artifactId}</moduleName>
                    <manifestMetaDir>${project.basedir}/src/main/opencms/manifest</manifestMetaDir>
                    <vfsRoot>${project.basedir}/src/main/opencms/vfs</vfsRoot>
                    <replaceMetaVariables>true</replaceMetaVariables>
                    <addDependencies>true</addDependencies>
                    <addClasses>false</addClasses>
                    <failOnMissingResource>true</failOnMissingResource>
                </configuration>
            </plugin>
    </pluginManagement>
</build>

<plugin>
    <groupId>de.zebrajaeger</groupId>
    <artifactId>opencms-maven-plugin</artifactId>
    <configuration>
        <srcResources>
            <resource>
                <directory>${project.build.directory}/frontend/css</directory>
                <targetPath>system/modules/${modulename}/resources/css</targetPath>
            </resource>
            <resource>
                <directory>${project.build.directory}/frontend/js</directory>
                <targetPath>system/modules/${modulename}/resources/js</targetPath>
            </resource>
            <resource>
                <directory>${project.build.sourceFrontend}/src/assets/fonts</directory>
                <targetPath>system/modules/${modulename}/resources/fonts</targetPath>
            </resource>
            <resource>
                <directory>${project.build.sourceFrontend}/src/assets/images</directory>
                <targetPath>system/modules/${modulename}/resources/images</targetPath>
            </resource>
        </srcResources>
    </configuration>
</plugin>    

Versions

Version
1.1
1.0