I've been messing around with some Maven POM files recently and started getting this error - MojoExecutionException: The artifact location was not specified.
It probably took longer than it should have to resolve it but the solution was very simple in the end.
This is what the full error from Maven looked like...
The problem was that I was missing the <source>
configuration for the Maven Weblogic Plugin execution I was running. Fixing it was as simple as adding the correct path to my target artifact...
The path to the artifact (WAR file in my case) can differ, it depends how the rest of the POM file is set up.
After making this change the error went away and I was able to deploy to WebLogic successfully.
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
If you spot something out of place, please do let me know.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...