Who knows Maven?
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Who knows Maven?

3 Posts
3 Users
0 Reactions
71 Views
Posts: 91000
Free Member
Topic starter
 

I only know vaguely what it's meant to do - but as far as I know it's supposed to collect all the dependencies for my proect automatically before building - right?

So I have a project (sample downloaded from the internet) that depends on objectdb, and there is a dependency in the pom. I'm using only eclipse here and not the command line tools, and I'd like to keep it that way for now if possible for consistency's sake. The POM gives a URL for the remote repo, it seems, but I don't think I should have to go there in a browser and download it myself?

<repository>
<id>objectdb</id>
<name>ObjectDB Repository</name>
<url> http://m2.objectdb.com</url>
</repository>

...

<dependency>
<groupId>com.objectdb</groupId>
<artifactId>objectdb</artifactId>
<version>2.6.8_14</version>
<scope>provided</scope>
</dependency>


 
Posted : 08/02/2017 11:44 am
Posts: 0
Free Member
 

Yes, Maven should go and fetch the dependencies and then install them into your local repo. Repository info included in the <repositories> section of the POM should mean Maven will check them.

It looks like the version you're trying to pull down doesn't exist in that [url= http://m2.objectdb.com/com/objectdb/objectdb/ ]repo[/url], try changing it to "2.6.8".

Using the command line tool might be a better way to debug as you'll see where Maven is looking, although I'd expect the Eclipse console to show the same info. Been a while since I've used Eclipse but the dependencies tab on the POM editor might give you some useful error messages.


 
Posted : 08/02/2017 12:18 pm
Posts: 91000
Free Member
Topic starter
 

Well, that was easy 🙂

Ta!


 
Posted : 08/02/2017 12:23 pm
Posts: 1766
Free Member
 

Is this french or Italian they're speaking ?


 
Posted : 08/02/2017 12:26 pm

6 DAYS LEFT
We are currently at 95% of our target!