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.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...