archiva

How to setup Apache Archiva to use HTTPS instead of HTTP

不打扰是莪最后的温柔 提交于 2019-12-07 18:48:35
问题 In default configuration, Apache Archiva 2.2 uses HTTP, and official documentation tells nothing how to change it to HTTPS. I think that this can be done by modifying conf/jetty.xml file, but when I try to do this, as described in Jetty documentation, it only gives me errors like: java.lang.NoSuchMethodException: class org.eclipse.jetty.util.ssl.SslContextFactory.setTrustStorePath(class java.lang.String) Is it possible to do this? 回答1: I used Apache as a HTTPS proxy, configuring new virtual

Using Maven-3 Got Http 409 error when re-deploy with archiva

僤鯓⒐⒋嵵緔 提交于 2019-12-07 06:33:25
问题 I am deploying jar file to maven repository (archiva) pom.xml : <distributionManagement> <repository> <id>archiva.internal</id> <uniqueVersion>false</uniqueVersion> <name>Internal Release Repository</name> <url>http://server:8080/archiva/repository/internal</url> </repository> <snapshotRepository> <id>archiva.snapshots</id> <uniqueVersion>false</uniqueVersion> <name>Internal Snapshot Repository</name> <url>http://server:8080/archiva/repository/internal/snapshots</url> </snapshotRepository> <

How to configure Maven or Apache Archiva that it keeps only N builds of an snapshot

陌路散爱 提交于 2019-12-07 05:45:15
问题 Our Archiva Repository never deletes old Snapshots. That generates a lot of garbage. Is it possible to tell Archiva to keep only N builds of an Snapshot? Best Regards, Christian. 回答1: Please go through http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html You will find following repository purge by days older - the first option for repository purge. Archiva will check how old the artifact is and if it is older than the set number of days in this field, then the artifact will be

How to reset Apache Archiva Password

谁都会走 提交于 2019-12-07 02:21:38
问题 I am using apache-archiva-2.2.0 version. I lost the admin password so I want to reset the password of admin user. I tried to reset the password through remove the below mentioned files. ./apache-archiva-2.2.0/data/databases/users/dbex.lck ./apache-archiva-2.2.0/data/databases/users/db.lck But still it's asking for password post restart the service. Database details- <New id="users" class="org.eclipse.jetty.plus.jndi.Resource"> <Arg>jdbc/users</Arg> <Arg> <New class="org.apache.tomcat.jdbc

Any SaaS solution to host a private maven repository [closed]

孤街浪徒 提交于 2019-12-07 01:03:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Is there any SaaS solution to host a maven repository? I know I can host it myself on Nexus or Archiva or Artifactory, just want to

Apache Archiva using JDK 11 throwing BeanCreationException: Error creating bean with name 'roleManager'

限于喜欢 提交于 2019-12-06 11:52:07
Using apache archiva with Oracle JDK 11 configured on Windows with class path. The exception trace shows as following on running archiva.bat console using PowerShell PS D:\Programs\apache-archiva-2.2.3\bin> .\archiva.bat console wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. jvm 1 | jvm 1 | 2018-10-31 11:29:42.367:WARN:oejd

How to setup Apache Archiva to use HTTPS instead of HTTP

只谈情不闲聊 提交于 2019-12-06 11:41:33
In default configuration, Apache Archiva 2.2 uses HTTP, and official documentation tells nothing how to change it to HTTPS. I think that this can be done by modifying conf/jetty.xml file, but when I try to do this, as described in Jetty documentation , it only gives me errors like: java.lang.NoSuchMethodException: class org.eclipse.jetty.util.ssl.SslContextFactory.setTrustStorePath(class java.lang.String) Is it possible to do this? I used Apache as a HTTPS proxy, configuring new virtual host: Listen 8081 <VirtualHost *:8081> ServerName archiva.example.com SSLEngine On SSLCertificateFile /path

How to configure Maven or Apache Archiva that it keeps only N builds of an snapshot

巧了我就是萌 提交于 2019-12-05 08:29:57
Our Archiva Repository never deletes old Snapshots. That generates a lot of garbage. Is it possible to tell Archiva to keep only N builds of an Snapshot? Best Regards, Christian. Prasad S Deshpande Please go through http://archiva.apache.org/docs/2.2.0/adminguide/repositories.html You will find following repository purge by days older - the first option for repository purge. Archiva will check how old the artifact is and if it is older than the set number of days in this field, then the artifact will be deleted respecting the retention count (see #7) of course. In order to disable the purge by

Gradle Not Resolving Maven Repo on localhost

*爱你&永不变心* 提交于 2019-12-05 06:20:56
问题 I have setup an Archiva instance on my localhost using the default configuration. I have tried several different Gradle configs to resolve to the archiva instance, but none seem to work. using mavenRepo maven using Ivy and only specifying the artifact pattern (which worked when I used Ivy) build.gradle subprojects { apply plugin: 'java' apply plugin: 'maven' repositories { mavenRepo url: 'http://localhost:8080/archiva', artifactUrls: [ 'http://localhost:8080/archiva/repository/internal',

Maven checksum failed

前提是你 提交于 2019-12-03 16:18:43
问题 I am working on a project that uses Maven as the build tool. I am using version 2.2.1 of the tool. Recently a coworker mentioned that he couldn't build the project because of checksum errors. I wasn't getting these errors so I deleted my local repository. Sure enough, I also got the checksum errors on the next attempt to build. We are using Archiva as our central repository, so I uploaded the jars again hoping to resolve the issue. No luck. What could be causing these errors and how do I