Red Hat Bugzilla – Bug 969903
GSG: maven config settings.xml bug
Last modified: 2013-11-07 17:50:14 EST
Reported by Burr:
6.2. Add a Profile to Your Project
We do not recommend that people make changes to their pom.xml for setting up a file-based repository. We recommend they update their settings.xml - this allows for each developer, to have a unique location on their hard drive for their file-based repos - but have the project's common pom.xml still work via CI.
I am not sure who works on JDG docs
Setting NEEDINFO for mgencur on this one.
It seems that the configuration snippet belongs to settings.xml. We just recommend adding it to pom.xml in the documentation, which is wrong. Every user has their own settings.xml located in $HOME/.m2/settings.xml. In the JDG maven repository there is an example of such a file - called example-settings.xml. We already talk about this file in the documentation: "B.2. Maven Repository Configuration Example" ... Users can take this example configuration file, copy to ~/.m2/ and rename to settings.xml so that Maven picks it up. In the example configuration file, you can see the EAP maven repository is used as well. This is needed for our quickstarts to run but it might not be needed for the initial setup of JDG.
It looks good to me now.
This bug is approved and available at: