Skip to content

Instantly share code, notes, and snippets.

@whaley
Created June 29, 2016 21:57
Show Gist options
  • Select an option

  • Save whaley/4cdccd6a5d4b225758df276467c3f621 to your computer and use it in GitHub Desktop.

Select an option

Save whaley/4cdccd6a5d4b225758df276467c3f621 to your computer and use it in GitHub Desktop.
➜ foo mkdir src/main/resources/package/name/here
➜ foo touch src/main/resources/package/name/here/foo.properties
➜ foo mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building GoProConnector 0.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ GoProConnector ---
[INFO] Deleting /private/tmp/foo/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ GoProConnector ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ GoProConnector ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ GoProConnector ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/foo/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ GoProConnector ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ GoProConnector ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ GoProConnector ---
[INFO] Building jar: /private/tmp/foo/target/GoProConnector-0.1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.899 s
[INFO] Finished at: 2016-06-29T17:55:48-04:00
[INFO] Final Memory: 19M/309M
[INFO] ------------------------------------------------------------------------
➜ foo jar tvf target/GoProConnector-0.1.0.jar | grep .properties
0 Wed Jun 29 17:55:48 EDT 2016 package/name/here/foo.properties
109 Wed Jun 29 17:55:48 EDT 2016 META-INF/maven/net.gojbpm/GoProConnector/pom.properties
➜ foo cat pom.xml
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>net.gojbpm</groupId>
<artifactId>GoProConnector</artifactId>
<version>0.1.0</version>
<packaging>jar</packaging>
<name>GoProConnector</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jbpm.version>6.4.0.Final</jbpm.version>
</properties>
<dependencies>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-api</artifactId>
<version>${jbpm.version}</version>
</dependency>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-workitems</artifactId>
<version>${jbpm.version}</version>
</dependency>
<!-- <dependency>
<groupId>net.gopro.rest</groupId>
<artifactId>goprorestclient</artifactId>
<version>0.9.0</version>
<scope>compile</scope>
</dependency> -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.12</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
➜ foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment