Remember that there are 2 repositories involved.
1) where you look up things that you need
2) where you store the things that your project makes.
They may be the same but from Maven's point of view they are two
different concepts.
You usually specify 1) globally in your settings file and 2) in the
parent POM for the project.
Ron
On 12/12/2011 8:25 PM, Amit Bhargava wrote:
Thanks Ron. It worked.
Another question, if I may :
In my pom, I had already specified the local repository using the
<repositories> tag as follows
<repositories>
<repository>
<id>local1</id>
<name>My First Repository</name>
<url>file://d:/apache-maven-3.0.3/repository</url>
<layout>default</layout>
</repository>
</repositories>
However, in distribution management, I had to give the details for the same
repository as follows
<distributionManagement>
<repository>
<id>local1</id>
<name>My First Repository</name>
<url>file://d:/apache-maven-3.0.3/repository</url>
</repository>
</distributionManagement>
Seems to be a bit of a redundancy. Is there any way to avoid this?
--
View this message in context:
http://maven.40175.n5.nabble.com/Building-2-dependent-modules-tp5068822p5070035.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]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]