0

I've build a custom version of an OSS (zookeeper) project and want to deploy it to a local group-wide repository. So I ran:

mvn deploy:deploy-file -DgroupId=org.apache.zookeeper -DartifactId=zookeeper -Dversion=3.4.5.1 -Dpackaging=jar -Dfile=./zookeeper-3.4.5.1.jar -DrepositoryId=cabot.maven.repo -Durl=file://xxx/myRepo

and got lots of success messages:

Uploading: file://xxx/myRepo/org/apache/zookeeper/zookeeper/3.4.5.1/zookeeper-3.4.5.1.jar Uploaded: file://xxx/myRepo/org/apache/zookeeper/zookeeper/3.4.5.1/zookeeper-3.4.5.1.jar (1292 KB at 12914.2 KB/sec) Uploading: file://xxx/myRepo/org/apache/zookeeper/zookeeper/3.4.5.1/zookeeper-3.4.5.1.pom Uploaded: file://xxx/myRepo/org/apache/zookeeper/zookeeper/3.4.5.1/zookeeper-3.4.5.1.pom (404 B at 394.5 KB/sec) Downloading: file://xxx/myRepo/org/apache/zookeeper/zookeeper/maven-metadata.xml Downloaded: file://xxx/myRepo/org/apache/zookeeper/zookeeper/maven-metadata.xml (313 B at 43.7 KB/sec) Uploading: file://xxx/myRepo/org/apache/zookeeper/zookeeper/maven-metadata.xml Uploaded: file://xxx/myRepo/org/apache/zookeeper/zookeeper/maven-metadata.xml (313 B at 305.7 KB/sec)

but no files were actually uploaded...or at least when I go to the repo url I don't see anything.

If an error had been reported I could fix it but in this case there is no error other than the file(s) were not uploaded. How can I troubleshoot this?

Thanks.

4

1 回答 1

0

khmarbaise 是 99% 正确的。我正在使用file://并且应该声明为file:///,即(file://加上根`/`)

这些文件正在部署,但不是部署myRepo/myRepo我的本地文件系统上。

于 2012-12-26T20:16:26.053 回答