mvn package fails with Required Artifact Missing even though it exists in my Remote Repository

后端 未结 3 1460
借酒劲吻你
借酒劲吻你 2021-01-19 02:50

I\'m trying to run mvn clean package on my Maven project and it fails with the message:

\"required artifact is missing\" for the artifact net.ezswit

3条回答
  •  既然无缘
    2021-01-19 03:13

    Apparently error message "required artifact is missing" was hiding the actual root cause, which was not visible in the message(s). Running Maven with debug messages on (-X option) will print out additional information that gives more detailed insight as to what would be the problem.

    For future reference, this time the error was

    [WARNING] Unable to get resource 'net.ezswitch:ResourcesComponent:pom:0.0.14' from repository central (ezpay-dev.liquix.eu:9998/repository):
    Specified destination directory cannot be created: /Users/hordine/.m2/repository/net/ezswitch/ResourcesComponent/0.0.14
    

    Which wasn't visible without the debug flag.

提交回复
热议问题