... | ... | @@ -223,57 +223,55 @@ Here’s the completed `pom.xml` file: |
|
|
`pom.xml`
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<?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/maven-v4_0_0.xsd">
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>gs-maven</artifactId>
|
|
|
<groupId>com.totalcross</groupId>
|
|
|
<artifactId>HelloTC</artifactId>
|
|
|
<packaging>jar</packaging>
|
|
|
<version>0.1.0</version>
|
|
|
<name>HelloTC</name>
|
|
|
|
|
|
<properties>
|
|
|
<totalcross.activation_key>placeholder</totalcross.activation_key>
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
<!-- tag::joda[] -->
|
|
|
<dependency>
|
|
|
<groupId>joda-time</groupId>
|
|
|
<artifactId>joda-time</artifactId>
|
|
|
<version>2.2</version>
|
|
|
</dependency>
|
|
|
<!-- end::joda[] -->
|
|
|
<!-- tag::junit[] -->
|
|
|
<dependency>
|
|
|
<groupId>junit</groupId>
|
|
|
<artifactId>junit</artifactId>
|
|
|
<version>4.12</version>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<!-- end::junit[] -->
|
|
|
<dependency>
|
|
|
<groupId>com.totalcross</groupId>
|
|
|
<artifactId>totalcross-sdk</artifactId>
|
|
|
<version>3.40</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
<repositories>
|
|
|
<repository>
|
|
|
<id>totalcross-repo</id>
|
|
|
<name>ip-172-31-40-140-releases</name>
|
|
|
<url>http://ec2-34-210-65-202.us-west-2.compute.amazonaws.com/artifactory/repo1</url>
|
|
|
</repository>
|
|
|
</repositories>
|
|
|
|
|
|
<build>
|
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
<version>2.1</version>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>shade</goal>
|
|
|
</goals>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<version>3.1</version>
|
|
|
<configuration>
|
|
|
<transformers>
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
<mainClass>hello.HelloWorld</mainClass>
|
|
|
</transformer>
|
|
|
</transformers>
|
|
|
<source>1.6</source>
|
|
|
<target>1.6</target>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|
|
|
</project>
|
|
|
```
|
|
|
The completed pom.xml file is using the Maven Shade Plugin for the simple convenience of making the JAR file executable. The focus of this guide is getting started with Maven, not using this particular plugin.
|
... | ... | |