| <?xml version="1.0" encoding="UTF-8"?> |
| <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/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <artifactId>airavata-kubernetes</artifactId> |
| <groupId>org.apache.airavata</groupId> |
| <version>1.0-SNAPSHOT</version> |
| <relativePath>../../../../pom.xml</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>command-task</artifactId> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.5.1</version> |
| <configuration> |
| <source>${java.version}</source> |
| <target>${java.version}</target> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifest> |
| <mainClass>org.apache.airavata.helix.task.command.Participant</mainClass> |
| </manifest> |
| </archive> |
| <descriptorRefs> |
| <descriptorRef>jar-with-dependencies</descriptorRef> |
| </descriptorRefs> |
| </configuration> |
| <executions> |
| <execution> |
| <id>make-assembly</id> |
| <phase>package</phase> |
| <goals> |
| <goal>single</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Create a docker image that runs the executable jar--> |
| <plugin> |
| <groupId>com.spotify</groupId> |
| <artifactId>docker-maven-plugin</artifactId> |
| <version>1.0.0</version> |
| <configuration> |
| <imageName>${docker.image.prefix}/command-task</imageName> |
| <baseImage>java:openjdk-8-jdk-alpine</baseImage> |
| <exposes> |
| <expose>8080</expose> |
| </exposes> |
| <entryPoint>["java","-jar","/${project.build.finalName}-jar-with-dependencies.jar"]</entryPoint> |
| <resources> |
| <resource> |
| <targetPath>/</targetPath> |
| <directory>${project.build.directory}</directory> |
| <include>${project.build.finalName}-jar-with-dependencies.jar</include> |
| </resource> |
| </resources> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>build</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>helix-task-api</artifactId> |
| <version>1.0-SNAPSHOT</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.helix</groupId> |
| <artifactId>helix-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </dependency> |
| </dependencies> |
| |
| </project> |