MavenTipsAndTricksPage edited by Felix MeschbergerChanges (3)
Full ContentHere's our collection of tips and tricks for building Sling with Maven. Maven local repositoryThe first time you run a Maven build, or when Maven needs additional build components, it downloads plugins and dependencies under its local repository folder on your computer. By default, this folder is named .m2/repository in your home directory. Maven uses this repository as a cache for artifacts that it might need for future builds, which means that the first Sling build usually takes much longer than usual, as Maven needs to download many tools and dependencies into its local repository while the build progresses. The build might fail if one of those downloads fails, in that case it might be worth retrying the build, to check if that was just a temporary connection problem, or if there's a more serious error. In some cases, the local Maven repository might get corrupted - if your build fails on a computer and works on another one, clearing the local repository before restarting the build might be worth trying. Maven settingsIgnore your local settingsTo make sure you're getting the same results as we are when building Sling, it is recommend to ignore any local settings. On unixish platforms, using mvn -s /dev/null ... does the trick.
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
