Tôi đang sử dụng Maven 3. Tôi đang cố gắng triển khai tạo phẩm của bên thứ ba tới một kho lưu trữ từ xa nhưng đang gặp lỗi lạ. Lệnh tôi đang sử dụng để triển khai làMaven: Sự cố khi triển khai JAR của bên thứ ba tới một kho lưu trữ từ xa
mvn deploy:deploy-file -DgroupId=com.myco.util.ant \
-DartifactId=selenium-ant-task \
-Dversion=1.4 \
-Dpackaging=jar \
-Dfile=/Users/davea/.m2/repository/com/myco/util/ant/selenium-ant-task/1.4/selenium-ant-task-1.4.jar \
-DrepositoryId=sonatype-nexus \
-Durl=http://sonatype.myco.com/nexus/content/repositories/releases
Và lỗi tôi nhận được khi tôi chạy lệnh này là
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file (default-cli) on project maven-selenium-plugin: The parameters 'url' for goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file are missing or invalid -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
gì đang xảy ra ở đây? Tôi đã định nghĩa repositoryId của tôi, "ssonatype-nexus" trong tệp ~/.m2/settings.xml của tôi và đã xác minh thông tin xác thực trong đó là chính xác.
Cảm ơn bạn đã trợ giúp, - Dave
'Chạy lại Maven bằng cách sử dụng chuyển đổi -X để cho phép ghi nhật ký gỡ lỗi đầy đủ.' Có thể giúp bạn sửa lỗi của mình :) – Jacob