在使用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>
感谢。