guava icon indicating copy to clipboard operation
guava copied to clipboard

Page of useful information about building/hacking on Guava

Open amshali opened this issue 10 years ago • 4 comments

[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 -rf :guava-gwt

amshali avatar Oct 15 '15 23:10 amshali

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.

cpovirk avatar Oct 16 '15 10:10 cpovirk

We should have this and readily findable.

kevinb9n avatar Nov 19 '15 20:11 kevinb9n

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.)

cpovirk avatar Nov 23 '15 21:11 cpovirk

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).

cpovirk avatar Feb 14 '23 15:02 cpovirk