archiva

How to setup Archiva internal+snapshot repository for Maven?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 05:53:30
问题 We are trying to use Archiva as a Maven proxy for central and other external repositories and also as a snapshot storage for our artifacts which are automatically built by Hudson from SVN and installed to the snapshot repository. I can't setup my Maven client to use the internal and snapshots repositories together. My project has some external dependencies (like log4j ) which are downloaded from the Archiva internal repository correctly. Also my project has a dependency to an own project

Best practices in naming conventions on Maven artifactID (is there restriction?)

廉价感情. 提交于 2019-12-03 04:44:12
问题 My team is new to Maven and we haven't been able to find any definitive guidance on selecting artifactIDs for our projects. I know that the Guide to naming conventions says that artifactIDs should be "whatever name you want with lowercase letters and no strange symbols" but some folks in my group want to use the reverse domain name style for both groupIDs and artifactIDs. Based on the above-mentioned guidelines plus all the examples that I've seen in the central repository I don't think it

How to setup Archiva internal+snapshot repository for Maven?

落花浮王杯 提交于 2019-12-02 19:18:59
We are trying to use Archiva as a Maven proxy for central and other external repositories and also as a snapshot storage for our artifacts which are automatically built by Hudson from SVN and installed to the snapshot repository. I can't setup my Maven client to use the internal and snapshots repositories together. My project has some external dependencies (like log4j ) which are downloaded from the Archiva internal repository correctly. Also my project has a dependency to an own project which's artifact is already built and installed to the snapshot repository. However if i try to build the

How to publish aar file to Apache Archiva with Gradle

夙愿已清 提交于 2019-11-30 14:00:20
问题 I´m trying to publish the generated aar file of my android library to my Apache Archiva Maven server, but I haven´t manage to get it working yet because either the examples are outdated or they are for java and not for android After noticing that most methods of the gradle examples are deprecated, I found this new documentation: Gradle Documentation Which describes how to use the new API which seems to replace uploadArchives with publishing and so on.... So this is what I´ve got so far: apply

How to publish aar file to Apache Archiva with Gradle

烈酒焚心 提交于 2019-11-30 09:05:28
I´m trying to publish the generated aar file of my android library to my Apache Archiva Maven server, but I haven´t manage to get it working yet because either the examples are outdated or they are for java and not for android After noticing that most methods of the gradle examples are deprecated, I found this new documentation: Gradle Documentation Which describes how to use the new API which seems to replace uploadArchives with publishing and so on.... So this is what I´ve got so far: apply plugin: 'com.android.library' apply plugin: 'maven' apply plugin: 'maven-publish' android {

now getting 401 unauthorized in jenkins when deploying artifact to archiva maven repo

一世执手 提交于 2019-11-29 02:34:34
This used to work before I upgraded Jenkins to 1.494. Now I get this error in Jenkins when using the build promotion plugin to copy the war artifact to the snapshot repo: ERROR: Failed to deploy artifacts: Could not transfer artifact com.blah.data:RestWebServices:war:1.0-20121224.163825-2 from/to archiva.apache.snapshots (http://10.31.31.64:8080/archiva/repository/snapshots): Failed to transfer file: http://10.31.31.64:8080/archiva/repository/snapshots/com/blah/data/RestWebServices/1.0-SNAPSHOT/RestWebServices-1.0-20121224.163825-2.war. Return code is: 401, ReasonPhrase:Unauthorized. org

Maven private remote repository setup

雨燕双飞 提交于 2019-11-28 15:36:04
I'm trying to set up a private remote repository for our team. Now the repository serves the following with so far I have tried - When a ' mvn compile ' is issued, then it searches dependencies in "~/.m2". If it is not found there then it goes to the remote private repository and when the dependencies still absent here then it goes to the central repository. Before compilation, I have to put all dependencies in our private (and remote) repository along with checksum and metadata. When we need an artifact(eg - spring-mvc), we need to put it in the remote private repository along with all

Maven repository lookup order

佐手、 提交于 2019-11-28 12:21:17
We have an internal Apache Archiva based repository and we have configured the repositories tag in pom.xml to be as follows. Can I assume that all dependency access will get resolved by internal repository if you have access to it and will get resolved by other repositories listed below, if internal repository is down for a certain reason. <repositories> <repository> <id>internal</id> <name>Internal Repository</name> <url>http://192.168.1.2/archiva/repository/internal</url> </repository> <repository> <id>jboss</id> <url>https://repository.jboss.org/nexus/content/repositories/releases</url>

now getting 401 unauthorized in jenkins when deploying artifact to archiva maven repo

余生长醉 提交于 2019-11-27 17:01:47
问题 This used to work before I upgraded Jenkins to 1.494. Now I get this error in Jenkins when using the build promotion plugin to copy the war artifact to the snapshot repo: ERROR: Failed to deploy artifacts: Could not transfer artifact com.blah.data:RestWebServices:war:1.0-20121224.163825-2 from/to archiva.apache.snapshots (http://10.31.31.64:8080/archiva/repository/snapshots): Failed to transfer file: http://10.31.31.64:8080/archiva/repository/snapshots/com/blah/data/RestWebServices/1.0

Maven private remote repository setup

半城伤御伤魂 提交于 2019-11-27 09:17:58
问题 I'm trying to set up a private remote repository for our team. Now the repository serves the following with so far I have tried - When a ' mvn compile ' is issued, then it searches dependencies in "~/.m2". If it is not found there then it goes to the remote private repository and when the dependencies still absent here then it goes to the central repository. Before compilation, I have to put all dependencies in our private (and remote) repository along with checksum and metadata. When we need