Run mvn exec:exec without a pom.xml

后端 未结 2 1807
梦毁少年i
梦毁少年i 2021-02-19 15:58

I am trying to find a way just to fetch a library from maven repository and run it. I want to define everything by command line and ignore the pom. I am trying following:

<
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 16:51

    Nope. It's impossible. Mvn Exec is, in fact, Maven Pluging dedicated to execute something as part of maven-nature project. If you need to execute Jar outcome why not use just java ***.jar ?

提交回复
热议问题