Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Search in "Add" dialog finds artifact in Windows instance, not in Linux instance, but available in both


> -----Original Message-----
> From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-
> bounces@xxxxxxxxxxx] On Behalf Of KARR, DAVID
> Sent: Thursday, September 08, 2016 8:34 AM
> To: m2e-users@xxxxxxxxxxx
> Subject: [m2e-users] Search in "Add" dialog finds artifact in Windows
> instance, not in Linux instance, but available in both
> 
> *** Security Advisory: This Message Originated Outside of AT&T ***.
> Reference http://cso.att.com/EmailSecurity/IDSP.html for more
> information.
> 
> I have the same version of Eclipse (Neon/4.6.0) installed on Win7 and a
> CentOS7.2 VM, with just about the same set of plugins.  All updated.  I
> created a small Maven project with the same components in both
> workspaces.  Both projects specify the same particular external Maven
> artifact repository.  In the "Maven Repositories" view, I set that repo
> to "Full Index Enabled" and made sure the index was updated and rebuilt,
> just in case.  In the "Add" dialog for dependencies, I specified a
> particular search string in both instances.  In the Win7 instance, it
> showed all of the occurrences I expected to see.  In the Linux instance,
> it omitted several instances that I expected to see, including the one I
> really wanted.
> 
> I then browsed into the same repo in the Maven Repositories view, on
> both instances, I saw the same results in both instances.
> 
> I also manually deleted the parent directory in $HOME/.m2/repository on
> both boxes and rechecked.  Same results.
> 
> In the Win7 instance, I added the artifact that I wanted, which I didn't
> see in the Linux instance.  I verified it compiled successfully.
> 
> I then copied the dependency entry from the pom in the Win7 instance and
> inserted it into the POM in the CentOS instance.  Saved it.  Compiled
> successfully.
> 
> What's going on here?

If it matters, I've filed the following bug for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=501548 .

Note that the description in the bug report varies slightly from what I said here.  I was able to repeatedly "toggle" the behavior of the search results by simply changing the order of the specified repositories in the POM file.  It always only gets the artifacts from the repo that is listed SECOND in the list, ignoring the first one.


Back to the top