English 中文(简体)
元数据元件缩影 3.0
原标题:artifactory classifier metadata snapshot maven 3.0

我的问题是“简单”,但我直到现在才找到解决办法:

I have 2 projects.

  • Project A built with a classifier (called dev or pro) with help of a specific profile
  • 项目B,dependency to A (using categoryifier dev or pro)

  • 页: 1

  • I re-execute install goal with another classifier (pro)

Then I compile the B project (and i put the dependency to A, with classifier DEV)

www.un.org/Depts/DGACM/index_spanish.htm 它运作良好。


But when I do the same with artifactory (goal deploy) , it doesn´t work (and the repository is configured "unique")

It doesn´t work because artifactory? maven dependency? is trying to download A with classifier dev AND latest timestamp, buildnumber of whatever.

但是,这一“生态”是错误的,因为最新的安放时间对于一个班子来说是有效的!

我阅读了当地存放处和艺术品保管处之间的元数据。 情况类似(但并非完全相同)。

What i´m wrong? Thanks guys!

  • Maven version : 3.03
  • Artifactory version : 2.3.4.1
问题回答

这可能是因为,在撰写本答复时,Artiouky生成了Maven 2类元数据,而Maven3生成的新元数据则没有具体规定每类艺术品的“最新版本”。

That is, while Maven 2 metadata specifies the latest build and known history:

<?xml version="1.0" encoding="UTF-8"?>
    <metadata>
      <groupId>org.jfrog.test</groupId>
      <artifactId>multi1</artifactId>
      <version>2.1-SNAPSHOT</version>
      <versioning>
        <snapshot>
          <timestamp>20110928.112713</timestamp>
          <buildNumber>14</buildNumber>
        </snapshot>
        <lastUpdated>20110928112718</lastUpdated>
      </versioning>
    </metadata>

第3号明确规定了每个工艺品类型和分类器的最新建筑:

<?xml version="1.0" encoding="UTF-8"?>
<metadata>
  <groupId>org.jfrog.test</groupId>
  <artifactId>multi1</artifactId>
  <version>2.1-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20110928.112713</timestamp>
      <buildNumber>14</buildNumber>
    </snapshot>
    <lastUpdated>20110928112718</lastUpdated>
    <snapshotVersions>
      <snapshotVersion>
        <classifier>tests</classifier>
        <extension>jar</extension>
        <value>2.1-20110928.112713-14</value>
        <updated>20110928112713</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>pom</extension>
        <value>2.1-20110928.112713-14</value>
        <updated>20110928112713</updated>
      </snapshotVersion>
      ...
    </snapshotVersions>
  </versioning>
</metadata>

Support for Maven 3 metadata generation is currently planned for Artifactory s next version (2.3.5).
Until then I can only suggest that you produce both artifacts with different artifact IDs.





相关问题
JavaFX with Maven [closed]

I recently started a JavaFX project, and I d like to use Maven as my compiler/deployment tool. Is there a good tutorial or plugin to integrate JavaFX and Maven?

How to upload jar to respository?

I have jar files that cannot be found on Maven Central repository. I would like to add the jar so I can just include extra tag in my pom.xml file and other developer can use the jar. What are the ...

Debug Maven project in Eclipse with third party sources

I am currently developing a maven project in eclipse. The m2eclipse plugin works beautifully. It even works out of the box with debugging. But when I am debugging open source third party libarries. ...

Could Free Pascal benefit of something like Apache Maven?

Apache Maven is a very popular build and dependency management tool in the Java open source ecosphere. I did some tests to find out if it can handle compiled Free Pascal / Delphi units and found it ...

Run a single test method with maven

I know you can run all the tests in a certain class using: mvn test -Dtest=classname But I want to run an individual method and -Dtest=classname.methodname doesn t seem to work.

Uploading a directory using sftp with Maven

How can I upload a directory - Eclipse update site - using sftp with public key authentication in Maven? For background information: I m using tycho to build an Eclipse plugin and want to get the ...

What are solid NMaven or build servers for .NET alternatives?

Maven had a long history and is well supported in the Java world. NMaven has received a less successful start and has never become as popular in the C#/.NET world as its larger cousin was in the Java ...

热门标签