Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.7
-
Fix Version/s: None
-
Component/s: Maven
-
Labels:None
-
Number of attachments :
Description
The released project 'project' (see for example http://repository.codehaus.org/org/mortbay/jetty/project/6.1.7/project-6.1.7.pom) has repositories and pluginRepositories sections. This repositories section defines snapshots.repository.codehaus.org.
As this project is used as parent in other maven Jetty projects, this definition is pulled in causing my build to load jars from the snapshots repository, I see for example:
Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/servlet-api-2.5/6.1.7/servlet-api-2.5-6.1.7.jar
This messes up my build environment /causes me to loose control over my environment.
repositories and pluginrepositories sections should not be part of the parent-pom (same probably for distributionManagement)
If such definitions are needed maybe a parent project seperate from the modules/aggregation pom is usefull.
At the very least on release the snapshot definitions must be released
I'm not sure how having the snapshot repo defined could influence anything - after all, you'd have to have specified snapshot versions of something rather than release versions in the pom?