-
1. Re: Dependency isolation
starksm64 Mar 16, 2006 1:20 PM (in response to ruel.loehr)Can't this be dealt with by specifying the jboss repository as the primary one? Really I don't want to be relying on thirdparty (non-jboss hosted) repositories for anything.
-
2. Re: Dependency isolation
starksm64 Mar 16, 2006 1:24 PM (in response to ruel.loehr)Also, a project should not build if a dependency that has inadequate pom info does happen to be used.
-
3. Re: Dependency isolation
ryan.campbell Mar 16, 2006 3:52 PM (in response to ruel.loehr)Just to clarify, we *are* specifying the jboss repository as primary. The issue is
1. a developer builds some non-jboss project, they download the POMs from some other repository.
2. when the developer tries to build JBoss, the POMs from the other repository are not overwritten.
3. We get potentially inconsistent builds, or the build just fails due to the license validation. -
4. Re: Dependency isolation
ruel.loehr Mar 16, 2006 5:39 PM (in response to ruel.loehr)What I want is that whenever a user builds a jboss project (AS, XB, Cache) a specific "jboss" local repository is used (e.g. C:\jboss-maven-repo). This local repo would not be used when building other non-jboss projects. This would ensure we always our building against our own versions of dependencies and there would be no reliance on thirdparty repositories.
There are a few ways to define your own local repo location:
1) in your MAVEN_HOME/conf/settings.xml (global)
2) in your $USER/.m2/settings.xml (user)
3) via command line: mvn -Dmaven.repo.local=C:\blah install
1 & 2 will not work because when the value localRepository is set there it will apply to both jboss & non-jboss projects.
3 will work. A user could set an env variable (or we determine it for them) which points to his jboss-maven-repo . Each jboss project would have a script (build.sh) that kicks off the build with appropriate jboss repo location. -
5. Re: Dependency isolation
starksm64 Mar 16, 2006 6:34 PM (in response to ruel.loehr)The disconnect is that the local repository should be validated against those that the project pom says it will accept content from. If maven does not have this notion its broken for our purposes. There needs to be a notion in the repository as to whether or not its an authoritative source for an artifact. A local repository is by definition authoritative for nothing unless it can match the source of its content against that of the requesting project.
So my question is, is it a plugin that manages the local repository up to date check or is this an inherent behavior in maven? -
6. Re: Dependency isolation
ruel.loehr Mar 17, 2006 10:46 AM (in response to ruel.loehr)It is inherant behavior in the core of Maven. I spoke with their developer lead last night, and he agreed that it is an issue. I'm putting together a patch for it such that artifacts will be updated if their md5 sums do not match those in repository specified in the pom.
-