我有一个运行Tomcat 8服务器的Java/Maven/JSP.项目结构如下,
我在pom.xml
下面提供了这个文件,
4.0.0 com.puut.wallet 1.0-SNAPSHOT war WalletApp simple-bitcoin-wallet org.bitcoinj bitcoinj-parent RELEASE src/main/resources true src/main/java org.bitcoinj bitcoinj-core ${project.parent.version} com.google.guava guava 18.0 org.slf4j slf4j-log4j12 1.7.20 net.glxn qrgen 1.3 javax.servlet javax.servlet-api 3.1.0 provided
当我运行该项目时,我收到以下错误,
Error:Maven Resources Compiler: Maven project configuration required for module 'WalletApp' isn't available. Compilation of Maven projects is supported only if external build is started from an IDE.
我采取了几项措施,
a. in the terminal, run `mvn clean` b. project -> right click -> `Make Module WalletApp` c. project -> right click -> `Recompile Module WalletApp` d. File -> Invalide Caches/Restart .... [This restarts the project] e. Synchronize
显然,他们都没有解决这个问题.顺便说一句,我InteliIJ
用于该项目.我该怎么做才能解决这个问题?
在Event Log
,我得到一个选项Add as maven project
.我选择了该选项,问题立即得到解决.