Could someone tell me how to approach this ?
 
I have a parent project as follows:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>bpb</groupId>
<artifactId>bpb</artifactId>
<version>1.0</version>
</project>
this is just a placeholder (no code).
 
I have some utilities classes:
<modelVersion>4.0.0</modelVersion>
<groupId>uk.xyz.bpb</groupId>
<artifactId>util</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>BPB :: Utilities</name>

 
<parent>
<groupId>uk.xyz.bpb</groupId>
<artifactId>bpb</artifactId>
<version>1.0</version>
</parent>

 
<dependencies>
... several dependencies, JUnit etc.
 
and a domain layer, that depends on the utilities classes:
<modelVersion>4.0.0</modelVersion>
<groupId>uk.xyz.bpb</groupId>
<artifactId>domain</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>BPB :: Domain</name>

 
<parent>
<groupId>uk.xyz.bpb</groupId>
<artifactId>bpb</artifactId>
<version>1.0</version>
</parent>

<dependencies>
 
<!-- Util -->
<dependency>
<groupId>uk.xyz.bpb</groupId>
<artifactId>util</artifactId>
<version>1.0.0</version>
</dependency>
.. other dependencies
 
 
I've set up 3 projects in eclipse (bpb, util, domain).
For the first two, I can enable maven and all is well.  
I can run 'package' on util, which downloads all dependencies from the central 
repository and builds util-1.0.jar.
So far so good.
 
However, when I try and enable maven & package 'domain' it can't find util..
--------------
1 required artifact is missing.

for artifact: 
uk.gov.ukti.bpb:domain:jar:1.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2)
....
 
It seems as though it's looking in the central repository (where it won't find 
it) - but I'd like it to look in my local eclipse projects.
 
How should I go about setting this up ?  Do I have to set up some dependencies 
between my projects in Eclipse or something ?  Should util-1.0.jar be placed in 
a particular directory ?
 
Any help appreciated.
I'm using 0.0.10.
 
_________________________________________________________________
Celeb spotting – Play CelebMashup and win cool prizes
https://www.celebmashup.com/index2.html

Reply via email to