m2e shade eclipse “project main artifact does not exist”

后端 未结 2 1358
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-10 16:46

I\'m trying to make a deployment package that bundles all the dependencies of my maven module that has dependencies to another maven project in eclipse.

I have this in m

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-10 17:04

    [ERROR] The project main artifact does not exist. This could have the following

    We were getting this problem recently. What resolved it for us was to not do mvn shade:shade but instead use:

    mvn package
    

    This does additional compilation and package work before running the shade plugin and so the main class was available on the classpath.

提交回复
热议问题