Skip to content

Build failure on latest maven version #3

@benwalther

Description

@benwalther

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions