pingidentity / pingid-api-playground

Java application to test the PingID API operations. This sample application can help a developer understand the flows and the tokens involved with using the PingID API.
Apache License 2.0
12 stars 14 forks source link

Build failure on latest maven version #3

Open benwalther opened 8 years ago

benwalther commented 8 years ago

Steps to reproduce:

  1. git clone https://github.com/pingidentity/pingid-api-playground/
  2. cd pingid-api-playground
  3. mvn clean package

Results:

[INFO] Reading assembly descriptor: assembly.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.538 s
[INFO] Finished at: 2016-08-30T14:25:25-07:00
[INFO] Final Memory: 24M/311M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4.1:single (distro-assembly) on project pingid-api-playground: Assembly is incorrectly configured: null: Assembly is incorrectly configured: null:
[ERROR] Assembly: null is not configured correctly: Assembly ID must be present and non-empty.

Reason: Maven 2.2+ now require an assembly ID field: https://issues.apache.org/jira/browse/MASSEMBLY-517

Fix:

diff --git a/assembly.xml b/assembly.xml
index ac9a362..9cac3bc 100644
--- a/assembly.xml
+++ b/assembly.xml
@@ -1,4 +1,5 @@
 <assembly>
+       <id>0</id>
        <formats>
                <format>zip</format>
        </formats>
tmasselink commented 8 years ago

what does 'mvn --version' output for you?

tmasselink commented 8 years ago

I just created fresh linux virtual machine and installed git, mvn and a jdk. Then did the 3 commands you listed and it built fine. Here is the output of 'mvn --version':

Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T05:57:37-06:00) Maven home: /home/tmasselink/Software/apache-maven-3.3.3 Java version: 1.8.0_51, vendor: Oracle Corporation Java home: /opt/jdk1.8.0_51/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-36-generic", arch: "i386", family: "unix