Print

Print


Hi, Pelle.

RE: settings.xml file for Maven

Look under the section "Maven and CVS" here:

https://confluence.slac.stanford.edu/display/hpsg/Installing+HPS+Software

It shows how to add the lcsim repository to your Maven settings so that snapshot dependencies can be downloaded by the HPS Maven modules.
Using this method basically means that all Maven projects will be able to download jars from the lcsim repository.

This should fix any problems with dependencies not being found locally, as the snapshots for all modules are deployed by our automated build system
after SVN checkins occur.
________________________________________
From: [log in to unmask] [[log in to unmask]] On Behalf Of McCormick, Jeremy I. [[log in to unmask]]
Sent: Friday, December 06, 2013 6:43 PM
To: Hansson Adrian, Per Ola
Cc: hps-software
Subject: Re: help with eclipse

Oh I know.  It can't find the parent pom file.  If you checkout the whole set of modules at hps/java/trunk then all dependencies will be locally installed including hps-parent.  Then any builds you do in Eclipse after that will overwrite the snapshots for the modules you're working with, e.g. for hps-java.

Or you can add a dependencies section to your settings.xml file including the lcsim maven repo which has snapshots of the dependencies.  There's a confluence page on that which Sho wrote I think.  I'll send in a follow up email once I find it.

Probably just building all modules locally is the way to go though.

> On Dec 6, 2013, at 5:54 PM, "Hansson Adrian, Per Ola" <[log in to unmask]> wrote:
>
> Hey,
>
> I'm trying to get eclipse to work properly with the new svn stuff.
>
> So I check out java/trunk to a project, I turn it into a maven project and a java project. Then I go and change all internal packages to be "source folders".
>
> Now, there is something fundamental missing as eclipse can't resolve the package details. For example, each of the java files in those package have e.g.  "package org.lcsim.hps.users.phansson" and it can never resole that. If I look at the pom in each of these I see that groupId is org.hps and the groupId is users. How does it know it's supposed to be part of org.lcsim.?
>
> Everything compiles but I can't really use eclipse…
>
> Thanks
>
> /Pelle
>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1