سؤال

أحاول فهم maven-release-plugin (الإصدار 2.0 ، CVS). ال إطلاق سراح يعمل بشكل جيد. لكني لا أفهم لماذا التحرير-الأداء لا تعمل ؟؟ لقد اختبرت ميزة النشر ويمكنني نشر القطع الأثرية على الريبو البعيد دون أي استثناءات.

[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin:2.4
[INFO] check that the following section of the pom.xml is present and correct:
[INFO] <distributionManagement>
[INFO]   <!-- use the following if you're not using a snapshot version. -->
[INFO]   <repository>
[INFO]     <id>repo</id>
[INFO]     <name>Repository Name</name>
[INFO]     <url>scp://host/path/to/repo</url>
[INFO]   </repository>
[INFO]   <!-- use the following if you ARE using a snapshot version. -->
[INFO]   <snapshotRepository>
[INFO]     <id>repo</id>
[INFO]     <name>Repository Name</name>
[INFO]     <url>scp://host/path/to/repo</url>
[INFO]   </snapshotRepository>
[INFO] </distributionManagement>
[INFO]
[INFO] Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
[INFO] Maven execution failed, exit code: '1'
هل كانت مفيدة؟

المحلول 2

لقد حلت المشكلة. حاولت إصدار الإصدار من طفلي بوم. عنوان URL المستودع المحدد في POM POM. ولكن لماذا لم يرث طفلي بوم ...

نصائح أخرى

أولاً ، يجب عليك التأكد من تكوين إدارة التوزيع بالطريقة الصحيحة ، كما اقترح الخطأ نفسه. ثم تحاول تشغيل الإصدار: قم بإعداد هدف تحديد سطر الأوامر "-dresume = false" مثل هذا:

$ mvn release:prepare -Dresume=false

عند الانتهاء بنجاح ، قم بتشغيل الإصدار: أداء الهدف مرة أخرى ، نأمل أن يختفي الخطأ.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top