maven-metadata

How do I generate maven-metata.xml with maven-publish and the artifactory-gradle-plugin?

こ雲淡風輕ζ 提交于 2020-12-01 07:40:44
问题 I've written a Gradle plugin in groovy and used Gradle to build it. I've got a local network Artifactory server that I publish the results to using the Gradle Artifactory plugin and the maven-publish plugin in Gradle. I have another Gradle build script that relies on this plugin as a dependency. I've been able to get this all working if I list my dependency with a specific version. I've tried to use a maven version range (ex. '[1.0,2.0)'), but this fails saying it can't find maven-metadata

How do I generate maven-metata.xml with maven-publish and the artifactory-gradle-plugin?

让人想犯罪 __ 提交于 2020-12-01 07:40:06
问题 I've written a Gradle plugin in groovy and used Gradle to build it. I've got a local network Artifactory server that I publish the results to using the Gradle Artifactory plugin and the maven-publish plugin in Gradle. I have another Gradle build script that relies on this plugin as a dependency. I've been able to get this all working if I list my dependency with a specific version. I've tried to use a maven version range (ex. '[1.0,2.0)'), but this fails saying it can't find maven-metadata

maven-metadata.xml is not updated when deploying to nexus

断了今生、忘了曾经 提交于 2020-01-01 04:51:04
问题 i am using Apache Maven 3.0 Nexus Open Source Edition, Version: 1.8.0.1 this is part of my pom.xml <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <version>2.1</version> </plugin> <distributionManagement> <repository> <id>nexus</id> <name>nexus</name> <url>http://myrepo/nexus/content/repositories/releases</url> </repository> </distributionManagement> it is a very simple project. when i do mvn release

How does Maven plugin prefix resolution work? Why is it resolving “findbugs” but not “jetty”?

随声附和 提交于 2019-12-27 17:32:11
问题 I was doing some testing using Maven and realized that I can execute the findbugs goal of the Findbugs plugin without adding the plugin to the POM file. On the other hand, when I needed to run the run goal of the Jetty plugin, I was forced to add the plugin to the POM file or the build failed. Why Jetty needed configuration in the POM while Findbugs didn't? How does Maven know which Findbugs to execute (suppose we have to plugins with the same name but different group id)? When I run the

How to rebuild maven-metadata.xml in Artifactory?

◇◆丶佛笑我妖孽 提交于 2019-12-21 12:07:10
问题 We're using Artifactory 3.9.2 and had to merge parts of two repositories (by copying over the artifacts) which had the same ( SNAPSHOT -versioned) artifact. This screwed up the maven-metadata.xml . In Nexus its possible to simply rebuild the metadata for this artifact and let the repository manager sort out things for you. I can't seem to find any links/explanations on how to do this with Artifactory. Could somebody please tell me how I can do this? 回答1: I'm not sure if this is possible in

Publishing Ivy SNAPSHOTS with Maven metadata

流过昼夜 提交于 2019-12-18 04:23:34
问题 I have an Ivy project that publishes its artifacts to a Nexus Maven repository. I then need other Maven projects to be able to use those jars as dependencies. I have been able to get Ivy to create and upload the pom.xml along with the jars, which is working fine. The problem is, when I use Ivy to publish a new SNAPSHOT version - none of the Maven projects will retrieve the new snapshot dependency, even if I do: mvn clean install -U I have noticed that Ivy does not publish a maven-metadata.xml

Finding list of versions available in a Maven repository for a specific plugin?

人盡茶涼 提交于 2019-12-08 14:43:56
问题 Given the following repository URL from my pom.xml how can I determine what the latest versions of spring and hibernate are available in the repository? http://repo1.maven.org/maven2 回答1: Programatically or just manually? Since the repository works over HTTP you can just navigate it manually: http://repo2.maven.org/maven2/org/springframework/spring/ http://repo2.maven.org/maven2/org/hibernate/hibernate/ http://repo2.maven.org/maven2/org/hibernate/hibernate-core/ 回答2: Retrieve the maven

How does Maven2 know where to find plugins?

廉价感情. 提交于 2019-12-06 05:37:04
问题 I'm using Maven2 and I can't seem to find any plugins in my repository. I'm getting errors like repository metadata for: 'org.apache.maven.plugins' could not be found on repository: myrepo where myrepo is the name of my repository. My question is how does Maven know where to find plugins? There's a reference in my error to metadata, what metadata is expected where and what format must it take? I've not had much luck so far looking for documentation... (I'm not interested in the easy answer to

maven-metadata.xml is not updated when deploying to nexus

不问归期 提交于 2019-12-03 12:04:45
i am using Apache Maven 3.0 Nexus Open Source Edition, Version: 1.8.0.1 this is part of my pom.xml <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <version>2.1</version> </plugin> <distributionManagement> <repository> <id>nexus</id> <name>nexus</name> <url>http://myrepo/nexus/content/repositories/releases</url> </repository> </distributionManagement> it is a very simple project. when i do mvn release:prepare mvn release:perform everything runs fine: ... [INFO] [INFO] --- maven-deploy-plugin:2.5:deploy

Publishing Ivy SNAPSHOTS with Maven metadata

孤街浪徒 提交于 2019-11-29 05:16:28
I have an Ivy project that publishes its artifacts to a Nexus Maven repository. I then need other Maven projects to be able to use those jars as dependencies. I have been able to get Ivy to create and upload the pom.xml along with the jars, which is working fine. The problem is, when I use Ivy to publish a new SNAPSHOT version - none of the Maven projects will retrieve the new snapshot dependency, even if I do: mvn clean install -U I have noticed that Ivy does not publish a maven-metadata.xml file to the repos -- I assume that is the problem? If so, are there any ways to get Ivy to produce