0

在使用 Teamcity 构建的 maven 中,maven-metadata.xml 有这个区别,然后我想引用 jar-with-dependencies,它总是给我没有依赖项的版本。不确定问题是 maven 还是 Teamcity。

<?xml version="1.0" encoding="UTF-8"?>
<metadata modelVersion="1.1.0">
  <groupId>com.aa</groupId>
  <artifactId>bb</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <versioning>
    <snapshot>
      <timestamp>20161213.151229</timestamp>
      <buildNumber>5</buildNumber>
    </snapshot>
    <lastUpdated>20161213151229</lastUpdated>
    <snapshotVersions>
      <snapshotVersion>
        <extension>jar</extension>
        <value>1.0.0-20161213.151229-5</value>
        <updated>20161213151229</updated>
      </snapshotVersion>
      <snapshotVersion>
        <extension>pom</extension>
        <value>1.0.0-20161213.151229-5</value>
        <updated>20161213151229</updated>
      </snapshotVersion>
      <snapshotVersion>
        <classifier>jar-with-dependencies</classifier>
        <extension>jar</extension>
        <value>1.0.0-20161213.151229-5</value>
        <updated>20161213151229</updated>
      </snapshotVersion>
    </snapshotVersions>
  </versioning>
</metadata>

谢谢。

4

0 回答 0