| <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>wskdebug.examples</groupId> |
| <artifactId>hello-java</artifactId> |
| <version>1.0</version> |
| |
| <!-- Output to jar format --> |
| <packaging>jar</packaging> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.google.code.gson</groupId> |
| <artifactId>gson</artifactId> |
| <version>2.8.5</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <sourceDirectory>.</sourceDirectory> |
| <plugins> |
| <!-- Make this jar executable --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>3.1.2</version> |
| <configuration> |
| <archive> |
| <manifest> |
| <!-- Jar file entry point --> |
| <mainClass>Hello</mainClass> |
| </manifest> |
| </archive> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |