timob256
timob256

Reputation: 158

why can't I download artifacts from JFrog repository?

JFrog artifactory loaded 902 artifacts, I set up to upload through the repository. But I cannot download or view my artifacts. I do not quite understand even what the problem is.

enter image description here

enter image description here

Setting maven from a file settings.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <servers>
   .......
  </servers>
  <mirrors>
    <mirror>
      <mirrorOf>*</mirrorOf>
      <name>libs-snapshot</name>
      <url>http://localhost:8081/artifactory/libs-snapshot</url>
      <id>libs-snapshot</id>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <repositories>
        <repository>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
          <id>central</id>
          <name>libs-release</name>
          <url>http://localhost:8081/artifactory/libs-release</url>
        </repository>
        <repository>
          <snapshots />
          <id>snapshots</id>
          <name>libs-snapshot</name>
          <url>http://localhost:8081/artifactory/libs-snapshot</url>
        </repository>
      </repositories>
      <pluginRepositories>
       ........
      </pluginRepositories>
      <id>artifactory</id>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>artifactory</activeProfile>
  </activeProfiles>
</settings>

I see that the repository does not download and tries to take data from the .m2 folder :3

Upvotes: 3

Views: 2711

Answers (3)

VonC
VonC

Reputation: 1330092

The actual error seems to be:

Goal requires a project to execute, 
but there is no POM in this directory (D:\Newfolder1)

So the first step would be to make sure there is a pom.xml before executing atlas-create-

Upvotes: 0

Ariel
Ariel

Reputation: 3506

The error is saying that you have duplication of the server-id 'maven-external' in your settings.xml. Check your configurations.

Upvotes: 0

Related Questions