Please have a look on the following....
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
</configuration>
</plugin>
</plugins>
</build>
-----Original Message-----
From: Daivish Shah [mailto:[email protected]]
Sent: Tuesday, February 21, 2012 3: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 transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]