Do you mean I should add the parent in the sub-module's dependency?
[EMAIL PROTECTED] wrote: > > youhaodeyi schrieb: >> Sometimes a project has many sub-modules and each of them may have >> sub-sub-modules. I don't want to get all the source codes. How can I work >> on >> a sub-module without its parent pom file? >> > The parent pom just needs to be in a repository that can be seen when > you are building the sub-module. > > So if the sub-module is referencing a "released" parent pom, there > should be no problem. The released pom will be in a repository. > > If the sub-module is referencing a "snapshot" version of a parent pom, > then someone needs to set up a snapshot repository somewhere, and deploy > that parent pom into the snapshot repository. Then when building the > sub-module, you just need to have that snapshot repository defined, > either by having it in the pom.xml for the sub-module, or by adding it > to your personal ~/.m2/settings.xml file. Of course you won't see any > changes that people make to that parent pom until they deploy the > modified version to the snapshot repository again. > > Regards, Simon > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-build-sub-module-without-parent-pom--tp17147483p17163006.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
