You can simply mvn deploy. You never want mvn deploy:deploy...this makes me think you have the plugin:goal and lifecycle phases confused. You should look at the initial chapters of http://www.sonatype.com/book to get a better picture.
-----Original Message----- From: youhaodeyi [mailto:[EMAIL PROTECTED] Sent: Saturday, June 14, 2008 10:23 PM To: [email protected] Subject: Re: How to build sub-module without parent pom? I can install the parent module into local repository. but how to deploy it to remote repository? The parent module is packaging of pom. So when I run mvn deploy:deploy I will get this error: The packaging for this project did not assign a file to the build artifact. Olivier Dehon-2 wrote: > > On Fri, 2008-05-09 at 06:03 -0700, youhaodeyi wrote: >> 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? > > If the parent in installed in your local repository of if it is in one > of the remote repositories you have configured in your settings.xml, > then you can simply check the module out and build it, the parent pom > will be retrieved for you like any other dependency. > > -Olivier > > > --------------------------------------------------------------------- > 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--tp1714 7483p17845799.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
