> From: [email protected]
> To: [email protected]
> Subject: RE: Maven and Eclipse
> Date: Tue, 14 Jun 2016 14:33:31 +0000
> 
> This is a partial update to this issue, which I am posting as requested by 
> Barrie Treloar.
> 
> I encountered this problem on a Windows install of Eclipse.  For the project 
> I am working on I also needed a Linux Eclipse environment.  So I asked our 
> Linux Sys Admin to install a fresh download of Eclipse Mars 2 in a Linux VM I 
> have dedicated to my project.
> 
> I created new projects in this environment as Maven projects.  A Maven 
> Dependencies entry was added to my project's Libraries tab for the Java Build 
> Path.  I then ported my source code from my Windows Eclipse environment to 
> this new Eclipse Linux environment and the related POM files.  I removed the 
> Maven Dependencies entry from the Java Build Path that was created when the 
> project was created.  I then deleted all the entries in my local 
> .m2/repositories directory because when I executed Maven -> Update 
> Project.... from Eclipse I wanted to make sure that both my local repository 
> and my Java Build Path were refreshed.  I then executed Maven -> Update 
> Project.... from Eclipse and unlike in my Windows environment where only the 
> local repo was refreshed not the Maven Dependencies in my Java Build Path, 
> both the Maven Dependencies in my Java Build Path and my local repo were 
> refreshed.
> 
> While the problem I was experiencing in my Windows environment where my 
> Eclipse was upgraded from Luna to Mars 2 without doing a fresh install 
> appears to be resolved by a fresh install on the Linux platform, I am not 
> problem free.  While the Maven Dependencies entry was added to the Libraries 
> tab for the Java Build Path and all the jar files specified in my POM were 
> referenced in the Maven Dependencies, these references are flagged as missing 
> from my local repo.  I am investigating this now.

MG>if you are not doing update (mvn -u phase)
MG>then local repository will contain hint to maven repository URL that 
contains artifact the contents will be NameOf.jar.lastUpdated
#NOTE: This is an internal implementation file, its format can be changed 
without prior notice.#Mon May 04 17:28:11 EDT 
2016http\://repo1.maven.org/maven2/.error=http\://repo1.maven.org/maven2/.lastUpdated=1430774891971

MG>NB: if there was an error the .error entry will be populated with something 
like:
http\://ws.zones.apache.org/repository2/.error=Could not transfer artifact 
bouncycastle\:bcprov-jdk13\:pom\:132 from/to apache-ws-snapshots2 
(http\://ws.zones.apache.org/repository2)\: Error transferring file\: 
ws.zones.apache.org
MG>.lastUpdated entry will be populated with zulu time of last update
MG>.remote.repositories file in that folder will contains entries for central 
repository location to acquire the artifact:

#NOTE: This is an Aether internal implementation file, its format can be 
changed without prior notice.#Tue Aug 18 09:14:32 EDT 
2015bcel-5.1.jar>central=https://repo.maven.apache.org/maven2bcel-5.1.pom>central=https://repo.maven.apache.org/maven2
MG>quick check on which repositories maven can seemvn 
dependency:list-repositorieshttp://stackoverflow.com/questions/4701532/force-maven-update

MG>IMHO :  i play safe by requesting the local artifact be downloaded to my 
local repository with update option e.g.MG> mvn -u
MG>installing m2e for your version of eclipse is necessary when attempting to 
configure eclipse BuildPath from maven pom.xml dependencies
http://download.eclipse.org/technology/m2e/releases/
> 
> I have not had the opportunity to try a fresh install in my Windows 
> environment.  As soon as I have some time to do this I will update the 
> mailing list again with those results as well.
> 
> I hope this explanation has been helpful.
MG>yes..this has been very helpful..thanks
> 
> Michael Tarullo
> Contractor (Engility Corp)
> Software Engineer
> FAA WJH Technical Center
> (609)485-5294
> 
> -----Original Message-----
> From: Barrie Treloar [mailto:[email protected]] 
> Sent: Wednesday, June 08, 2016 7:33 PM
> To: Maven Users List
> Subject: Re: Maven and Eclipse
> 
> On 9 June 2016 at 01:00, <[email protected]> wrote:
> 
> > Thanks Curtis!
> >
> > That's exactly what I did.
> >
> > As soon as I get a chance, I'll try a fresh install of Mars 2 and see 
> > how it goes.  I usually do my Eclipse upgrades with fresh installs, 
> > this is the first time I tried to upgrade from a previous version.
> >
> > Mike
> 
> 
> And when you resolve the issue, can you post back your findings for search 
> engines to find.
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
                                          

Reply via email to