Maven won't run my Project : Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

后端 未结 14 663
暖寄归人
暖寄归人 2020-12-09 04:21

I can\'t run the Maven Netbeans JavaFX example :

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exe         


        
14条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 05:02

    Maven needs to be able to access various Maven repositories in order to download artifacts to the local repository. If your local system is accessing the Internet through a proxy host, you might need to explicitly specify the proxy settings for Maven by editing the Maven settings.xml file. Maven builds ignore the IDE proxy settings that are set in the Options window. For many common cases, just passing -Djava.net.useSystemProxies=true to Maven should suffice to download artifacts through the system's configured proxy. NetBeans 7.1 will offer to configure this flag for you if it detects a possible proxy problem. https://netbeans.org/bugzilla/show_bug.cgi?id=194916 has discussion.

提交回复
热议问题