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

Latest commit

 

History

History
84 lines (71 loc) · 2.48 KB

Readme.md

File metadata and controls

84 lines (71 loc) · 2.48 KB

Maven Wrapper Plugin für OpenCms-Shell

Allgemeine Konfiguration

<plugin>
    <groupId>de.silpion.opencms.maven.plugins</groupId>
    <artifactId>cmsshell-maven-plugin</artifactId>
    <version>1.0</version>
    <configuration>
        <username>Admin</username>
        <password>admin</password>
        <webInfPath>/opt/apache-tomcat-8.5.3/webapps/opencms/WEB-INF/</webInfPath>
        
        <!-- default parameter -->
        <servletMapping>opencms</servletMapping>
        <defaultWebappName>opencms</defaultWebappName>
        <verbose>false</verbose>
    </configuration>
</plugin>

Goals

importResources

<plugin>
    [...]
    <executions>
        <execution>
            <id>import</id>
            <goals>
                <goal>importResources</goal>
            </goals>
            <configuration>
                <artifacts>
                    <artifact>
                        <groupId>de.mnbn.opencms.content</groupId>
                        <artifactId>initial</artifactId>
                        <version>1.0.0</version>
                        <type>zip</type>
                    </artifact>
                </artifacts>
                
                <!-- oder lokale Dateien -->
                <files>
                    <file>
                        <importFile>${project.xxx}/de.mnbn.opencms.content_0.1.zip</importFile>
                    </file>
                </files>
                
                <!-- default parameter -->
                <publishAfter>true</publishAfter>
            </configuration>
        </execution>
    </executions>
</plugin>

deleteResource

<plugin>
    [...]
    <executions>
        <execution>
            <id>delete</id>
            <goals>
                <goal>deleteResource</goal>
            </goals>
            <configuration>
                <resourceNames>
                    <resourceName>/sites/test</resourceName>
                </resourceNames>
                
                <!-- default parameter -->
                <publishAfter>true</publishAfter>
            </configuration>
        </execution>
    </executions>
</plugin>

replaceModule

analog importResources, aber ohne publishAfter