ajanata / PretendYoureXyzzy

A web clone of the card game Cards Against Humanity.
https://pretendyoure.xyz/zy
BSD 2-Clause "Simplified" License
1.22k stars 397 forks source link

"No plugin found for prefix 'war' in the current project #179

Closed dinkley closed 5 years ago

dinkley commented 5 years ago

I can't get the program to compile :(. I'm not sure why, but it's probably my fault. I've re-read the steps and started from the beginning but I still get the same errors. I'm not exactly sure how to copy text from a virtual machine so here's an image https://i.gyazo.com/4fc1ef9be6053579727113147b1d2256.png

It lists a bunch of warnings saying it can't retrieve plugin descriptors until it ultimately fails because "No plugin found for prefix 'war' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

devgianlu commented 5 years ago

What command did you execute?

dinkley commented 5 years ago

"mvn clean package war:war -Dmaven.buildNumber.doCheck=false -Dmaven.buildNumber.doUpdate=false" as instructed by the installation guide.

devgianlu commented 5 years ago

If you just want to run the server use mvn clean package war:exploded jetty:run -Dmaven.buildNumber.doCheck=false -Dmaven.buildNumber.doUpdate=false

dinkley commented 5 years ago

Still get the same warnings and build failure after running that command. It doesn't look like it recognises war at all Also: All of the warnings are returning a "java.security.InvalidAlgorithmParameterException" and another also: running -e along with the command tells me the build fails with "org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException"

dinkley commented 5 years ago

It was probably just a firewall or iptables issue. After installing on a real server box it builds successfully.

Not sure how to close issues, but everything's working now.

devgianlu commented 5 years ago

Probably Maven wasn't able to connect to the Maven Central repository.

To close the issue, login and then click on the "close issue" button.

dinkley commented 5 years ago

Cheers. Thanks for your help anyway!