Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Unable to build WAR file #362

Open
markediez opened this issue Nov 17, 2017 · 1 comment
Open

Unable to build WAR file #362

markediez opened this issue Nov 17, 2017 · 1 comment

Comments

@markediez
Copy link

On ubuntu 16.04
Apache Maven 3.3.9
Java version: (java -version outputs: 9-internal with path /..../java-9-openjdk-amd64)

Replicated example here

mkdir ~/temp
cd ~/temp
git clone git://github.com/Netflix/exhibitor.git
cd exhibitor/exhibitor-standalone/src/main/resources/buildscripts/war/maven
vi src/main/resources/exhibitor.properties
-- uncommented the two prop lines and then save the file
mvn clean compile war:war

Outputs

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building exhibitor-war 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ exhibitor-war ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ exhibitor-war ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ exhibitor-war ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-war-plugin:2.3:war (default-cli) @ exhibitor-war ---
[INFO] Packaging webapp
[INFO] Assembling webapp [exhibitor-war] in [/home/udiezma/Documents/research/exhibitor/exhibitor-standalone/src/main/resources/buildscripts/war/maven/target/exhibitor-war-1.0]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.015 s
[INFO] Finished at: 2017-11-17T13:41:07-05:00
[INFO] Final Memory: 17M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war (default-cli) on project exhibitor-war: overlay [ id com.netflix.exhibitor:exhibitor-standalone] is not a dependency of the project. -> [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
@pdehlke
Copy link

pdehlke commented Dec 8, 2017

this is fixed in #366

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants