Put this in your pojo and java poms:
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
It will still install to local, but won't deploy to remote.
> -----Original Message-----
> From: Daivish Shah [mailto:[email protected]]
> Sent: Tuesday, February 21, 2012 1:09 PM
> To: Maven Users List
> Subject: One question about Multi Project Structure in MAVEN
>
> Hi,
>
> I have a project with following structure.
>
> maven-main-project
> maven-ear
> maven-ejb
> maven-schema
> maven-pojo
> maven-java
>
> This is my project structure for multi-module project. And now if i
> don't
> want to publish any artifacts outside of this project. I mean to say i
> don't want to publish any artifactory/nexus/archiva repository copy
for
> other people to use it.
>
> *Use Case :*
>
> Here my maven-ear is part of the maven-main-project and that's the
only
> module which use the maven-pojo and maven-java generated artifacts and
> which i don't want to publish it on repository but just want to use it
> for
> building the EAR.
>
> How can i disable those 2 (maven-pojo and maven-java) projects not to
> publish artifacts at repository level.
>
> Looking for some solution on this, As don't want to create unncessary
> artifacts on repository as nobody is going to use it other then my own
> Main
> project EAR project.
>
> Thanks.
______________________________________________________________________
This message, including any attachments, is confidential and contains
information intended only for the person(s) named above. Any other
distribution, copying or disclosure is strictly prohibited. If you are not the
intended recipient or have received this message in error, please notify us
immediately by reply email and permanently delete the original transmission
from all of your systems and hard drives, including any attachments, without
making a copy.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]