Skip to content

Maven returns error from mvn assembly:assembly #12

Open
@Zaknarfen

Description

I am posting this issue to notify that even after a clean clone from the repository i am getting:

$ mvn -T 1C -q assembly:assembly -Dmaven.test.skip=true
[debug] execute contextualize
[debug] execute contextualize
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:assembly (default-cli) on project pignlproc: Error reading assemblies: No assembly descriptors found. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Solutions i found:

Solution 1)

Using only mvn package as mentioned in [1] instead of the mvn assembly:assembly. This works but states a warning.

Solution 2)

Modify the pom.xml to move the "descriptor" block out of the "execution" block as mentioned in [2] and run the assembly command with mvn -T 1C -q assembly:single -Dmaven.test.skip=true. This solution has no warnings. You need to do both changes or it won't work.

[1] https://github.com/dbpedia-spotlight/pignlproc
[2] http://stackoverflow.com/questions/2463721/maven-assembly-error-reading-assemblies

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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