Skip to content

AlexBischof/kumuluzee-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kumuluzee-maven-plugin

This repository provides a maven-plugin for KumuluzEE with the following to goals:

Goal: copy-dependencies

Explicit usage of maven-dependency-plugin to copy all dependencies into default output directory which is target/dependency. Looking at the following snippet

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>2.10</version>
    <executions>
        <execution>
            <id>copy-dependencies</id>
            <phase>package</phase>
            <goals>
                <goal>copy-dependencies</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Copy webapp directory from standard directory src/main/webapp to target/classes

<plugin>
    <artifactId>maven-resources-plugin</artifactId>
    <version>2.7</version>
    <executions>
        <execution>
            <id>copy-resources</id>
            <!-- here the phase you need -->
            <phase>validate</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}/target/extra-resources</outputDirectory>
              <resources>          
                <resource>
                  <directory>src/non-packaged-resources</directory>
                  <filtering>true</filtering>
                </resource>
              </resources>              
            </configuration>            
        </execution>
    </executions>
</plugin>

Goal: run

In order to have a short cut to the following bash command now mvn kumuluzee:run can be used.

java -cp target/classes:target/dependency/* com.kumuluz.ee.EeApplication

Usage

<build>
    <plugins>
        <plugin>
            <groupId>de.bischinger</groupId>
            <artifactId>kumuluzee-maven-plugin</artifactId>
            <version>1.0</version>
            <executions>
                <execution>
                   <id>copy-resources</id>
                   <phase>package</phase>
                   <goals>
                    <goal>copy-dependencies</goal>
                   </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages