guava
guava copied to clipboard
Page of useful information about building/hacking on Guava
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.10:unpack-dependencies (unpack-guava-sources) on project guava-gwt:
Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98. -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
Does it work if you use mvn install? [edit: I usually run mvn clean install just to be safe...]
We should really have some documentation that says to do that, probably on https://github.com/google/guava/wiki/HowToContribute. I had been thinking that we did, but if so, I can't find it.
We should have this and readily findable.
One thing that this could address is https://github.com/google/guava/issues/2235: how to run a specific test. (Arguably that's more of a Maven question, but (a) it would be nice to lower the barrier anyway, and (b) one common "Maven way" of doing it doesn't work for Guava, as noted in that thread.)
If https://github.com/google/guava/pull/6326 and its followup go through, then we'll be able to recommend ./mvnw clean install, which will save people from having to install Maven (and possibly find that Guava doesn't build with the version they have).