Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

1. Plugin Basics > Troubleshooting a Build

Troubleshooting a Build

In theory building your plugin should just work. In practice you may have one of the following common errors.[2]

If the build fails with the error Cannot execute mojo: resources then check that you’re in the same directory as the pom.xml file.

If you get errors about missing dependencies it means that Maven didn’t know how to download a particular file that was specified in a dependency element in pom.xml. Check for typos in the groupId and artifactId elements of the dependency, particularly if you added them by hand. You may also want to check for newer versions of the same dependency using Google. A few files such as activation.jar are not available from a Maven repository due to licensing restrictions, so they have to be downloaded and installed locally if needed.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint