Nexus server works in browser, but not in build

0

I installed a local Nexus server on my computer to centralize the dependencies of my projects.

I configured on port 2312 and when I access localhost:2312 opens the configuration interface.

If I access for example:

http://localhost:2312/repository/my_repo/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

The browser displays the contents of the file I'm looking for ... If you change your browser, download it ....

But when I call maven to build it, it can not download the dependencies ...

At the prompt the output is as follows:

[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to Nexus (http://localhost:2312/repository/my_repo/): Failed to transfer file: http://localhost:2312/repository/my_repo/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom. Return code is: 504 , ReasonPhrase:Gateway Timeout.

Can anyone tell me what I'm doing wrong?

    
asked by anonymous 07.08.2018 / 19:52

0 answers