0

I've defined repository in my pom:

<repositories>
    <repository>
        <id>EvoSuite</id>
        <name>EvoSuite Repository</name>
        <url>http://www.evosuite.org/m2</url>
    </repository>
</repositories>

<pluginRepositories>
    <pluginRepository>
        <id>EvoSuite</id>
        <name>EvoSuite Repository</name>
        <url>http://www.evosuite.org/m2</url>
    </pluginRepository>
</pluginRepositories>

But getting this error (repositories are coming from settings.xml that I can't change)

No plugin found for prefix 'evosuite' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\LOde.m2\repository), remote-mirror (http://xxxxxxxx/nexus/content/repositories/repo), nexus-central-remote-repo (http://yyyyyyy/nexus/content/repositories/public)]

I don't see in the error the custom repository from pom.

Adding plugin to pom:

<plugin>
        <groupId>org.evosuite.plugins</groupId>
        <artifactId>evosuite-maven-plugin</artifactId>
        <version>1.0.3</version>
      </plugin>

didn't help

yuris
  • 1,109
  • 4
  • 19
  • 33
  • The plugin prefix resolution works by declaring `` in your settings. See the linked question where it is explained how all of this works. – Tunaki Nov 29 '16 at 09:48
  • In my question I stated explicitly that I can't change settings.xml! – yuris Nov 29 '16 at 09:50
  • Yes, the linked question also deals with that and shows how to get rid of it without changing the settings as well. If you don't want to change the settings, you can declare the plugin in the POM -- that's the last section of the answer. – Tunaki Nov 29 '16 at 09:51
  • tried that, didn't help – yuris Nov 29 '16 at 10:01
  • 1
    I'll need more information. Where did you put the plugin? Inside ``? Don't put it inside ``. I checked, and the repository contain the right metadata information (i.e. right `maven-metadata.xml`) here http://www.evosuite.org/m2/org/evosuite/plugins/maven-metadata.xml, so declaring the plugin in the right section works. Unless there is another issue like a proxy involved. – Tunaki Nov 29 '16 at 10:23
  • Yes, under , my concern is that I don't see this repository listed in the error message – yuris Nov 29 '16 at 11:09
  • Are you absolutely triple sure that you're not behind a proxy? Or that the proxy [is rightly configured](http://stackoverflow.com/questions/1251192/how-do-i-use-maven-through-a-proxy)? Please remove the `~/.m2/repository/org/evosuite` folder from your local repository, it sounds like it might be corrupted, and try again. Because I can't reproduce the problem. I'm using Maven 3.3.9. When you did all that, run `mvn clean evosuite:help`. – Tunaki Nov 29 '16 at 11:23
  • OK, just checked on another computer under same network but with default settings.xml, got same error but this time: No plugin found for prefix 'evosuite' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\xxxx\.m2\repository), EvoSuite (http://www.evosuite.org/m2), central (https://repo.maven.apache.org/maven2)] EvoSuite is now displayed in error – yuris Nov 29 '16 at 11:29
  • Then it means that, on the first computer, the settings has a mirror configuration, redirecting things to a mirror, and your repository is just ignored. And on the second computer, the local repository is corrupted; run the command in the comment above (delete the folder `~/.m2/repository/org/evosuite`). Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/129343/discussion-between-tunaki-and-yuris). – Tunaki Nov 29 '16 at 11:31

0 Answers0