Artifactory Problems?

46 views
Skip to first unread message

DuMaM

unread,
Sep 28, 2022, 7:16:40 AM9/28/22
to Jenkins Developers
Hi,

I was going to release my plugin. I delayed this a bit due to lack of time for testing final change.
Today i was trying to do this, but i faced some issues with pulling old packages:

```
Downloading from central: https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos/org/jenkins-ci/plugins/apache-httpcomponents-client-4-api/4.5.13-1.0/apache-httpcomponents-client-4-api-4.5.13-1.0.jar
Downloading from snapshots: https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos/org/jenkins-ci/plugins/apache-httpcomponents-client-4-api/4.5.13-1.0/apache-httpcomponents-client-4-api-4.5.13-1.0.jar
[WARNING] Missing:
----------
1) org.jenkins-ci.plugins:apache-httpcomponents-client-4-api:jar:4.5.13-1.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.jenkins-ci.plugins -DartifactId=apache-httpcomponents-client-4-api -Dversion=4.5.13-1.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.jenkins-ci.plugins -DartifactId=apache-httpcomponents-client-4-api -Dversion=4.5.13-1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.jenkins-ci.plugins:apache-httpcomponents-client-4-api:jar:4.5.13-1.0

----------
1 required artifact is missing.

for artifact:
  org.jenkins-ci.plugins:apache-httpcomponents-client-4-api:jar:4.5.13-1.0

from the specified remote repositories:
  jcenter (https://jcenter.bintray.com/, releases=true, snapshots=false),
  central (https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos, releases=true, snapshots=false),
  snapshots (https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos, releases=true, snapshots=true)
Path to dependency:
        1) org.jenkins-ci.plugins:apache-httpcomponents-client-4-api:jar:4.5.13-1.0


Downloading from jcenter: https://jcenter.bintray.com/org/jenkins-ci/plugins/mailer/414.vcc4c33714601/mailer-414.vcc4c33714601.jar
Downloading from central: https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos/org/jenkins-ci/plugins/mailer/414.vcc4c33714601/mailer-414.vcc4c33714601.jar
Downloading from snapshots: https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos/org/jenkins-ci/plugins/mailer/414.vcc4c33714601/mailer-414.vcc4c33714601.jar
[WARNING] Missing:
----------
1) org.jenkins-ci.plugins:mailer:jar:414.vcc4c33714601

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.jenkins-ci.plugins -DartifactId=mailer -Dversion=414.vcc4c33714601 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.jenkins-ci.plugins -DartifactId=mailer -Dversion=414.vcc4c33714601 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.jenkins-ci.plugins:mailer:jar:414.vcc4c33714601
```

Anybody knows what is source of those problems?

DuMaM

unread,
Sep 28, 2022, 7:17:53 AM9/28/22
to Jenkins Developers
I was trying to release:
https://github.com/jenkinsci/crowd2-plugin

If this helps :)

Daniel Beck

unread,
Sep 28, 2022, 8:34:07 AM9/28/22
to jenkin...@googlegroups.com
On Wed, Sep 28, 2022 at 1:16 PM DuMaM <nowak.b...@gmail.com> wrote:

  central (https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos, releases=true, snapshots=false),
  snapshots (https://repo.jenkins-ci.org/artifactory/remote-snapshot-repos, releases=true, snapshots=true)

This looks like nonsense. Check your Maven settings.xml.

DuMaM

unread,
Sep 28, 2022, 9:19:08 AM9/28/22
to Jenkins Developers
How does it should look like?

I took it from 
https://repo.jenkins-ci.org/ui/login/
Following with this tutorial
https://www.jenkins.io/doc/developer/publishing/releasing-manually/

I also checked it and there is no such artifacts are available on Jenkins Artifactory.
apache-httpcomponents-client-4-api with version 4.5.13 and others reported as missing

DuMaM

unread,
Sep 28, 2022, 9:21:33 AM9/28/22
to Jenkins Developers

Daniel Beck

unread,
Sep 28, 2022, 10:04:15 AM9/28/22
to jenkin...@googlegroups.com
  Re-read step 7.

Daniel Beck

unread,
Sep 28, 2022, 10:07:18 AM9/28/22
to jenkin...@googlegroups.com
On Wed, Sep 28, 2022 at 3:21 PM DuMaM <nowak.b...@gmail.com> wrote:

Could you share sample of correct settings.xml file so i can compare it?

The linked documentation has two complete examples of the settings.xml file you need (just needs replacing username/password entries as appropriate).

DuMaM

unread,
Oct 20, 2022, 6:40:00 PM10/20/22
to Jenkins Developers
Hi,

I'm still fighting with this problem.
I think it's not a settings.xml fault, because it happens on Jenkins CI infra too.
https://ci.jenkins.io/blue/organizations/jenkins/Plugins%2Fcrowd2-plugin/detail/master/177/pipeline/63

I use standard settings.xml, fetched with curl from artifactory.
I noticed that this error disappeared when I'm setting a default profile in settings.xml.
I guess it's my pom.xml fault.
I would be grateful if somebody could take a look on it and give me some advice what i did wrong.

Thanks

slide

unread,
Oct 21, 2022, 9:07:11 AM10/21/22
to Jenkins Developers
Hi,

I just cloned the repo, ran mvn clean package and I did not see the error you are seeing. Here is my settings.xml


  <servers>
    <server>
      <id>maven.jenkins-ci.org</id>
      <username>slide_o_mix</username>
      <password><REDACTED></password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>repo.jenkins-ci.org</id>
      <mirrorOf>*,!repo.jenkins-ci.org,!incrementals</mirrorOf>
    </mirror>
  </mirrors>
  <pluginGroups>
    <pluginGroup>org.jenkins-ci.tools</pluginGroup>
  </pluginGroups>
  <profiles>
    <!-- Give access to Jenkins plugins -->
    <profile>
      <id>jenkins</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>repo.jenkins-ci.org</id>
          <url>https://repo.jenkins-ci.org/public/</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>repo.jenkins-ci.org</id>
          <url>https://repo.jenkins-ci.org/public/</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</settings>


DuMaM

unread,
Oct 21, 2022, 10:10:56 AM10/21/22
to Jenkins Developers
Thanks @slide, but you got quite complicated settings.xml, and if I use this i still do not fix my problems in CI.
I managed to fix it toady.
Parent pom-xml plugin was the culprit.
I reverted it to 4.42 and it's working again.
Reply all
Reply to author
Forward
0 new messages