In the past days we explained how to configure and how to get to work Maven with the latests version of BusinessWorks at the moment (version 6.2) and if everything goes smoothy for you, I feel very happy, but if you have any kind of problem, please I beg you to leave a comment so we can get to work it out for you. I’ll updated this post with all the problems and the fixes for this configuration and I’ll from one that happened to myself
1.- Eclipse detected M2 repository in the wrong location
After going through all the installation process I have been facing a problem that doesn’t allow me to run any maven command over the BW project, because I was getting these kind of erros over the pom.xml file of the BW projects:
The errors say the following:
Project build error: Unknown packaging: eclipse-plugin
Project build error: Unresolveable build extension: Plugin com.tibco.bw:bw-archiver:1.0.0 or one of its dependencies could not be resolved: Could not find artifact com.tibco.bw:bw-archiver:jar:1.0.0 in central (http://repo.maven.apache.org/maven2)
I don’t understand how this error can be happening when all the instalation and configuration process haven been succesfully and if I navigate through the FIle explorer across the M2 local repository I can find the artifacts create by the TIBCO installation & configuration process as you can see here:
After a few moments trying to understand the error, and looking on the internet anything maven related to this stuff, I finally found the problem and It was inside my Business Studio configuration but I don’t know why. The studio instead to use the default location of the M2 location repository (<USER_ROOT>/.m2) it was using another path, in my case it was changhing the drive letter using D: insted of C: and this was causing all the damage inside my configuration.
To change that I have to create the maven settings.xml file (if you already have one, you’ll have to modified the content of it) and specify inside it the true path of the M2 repository. After that, all problems have been solved and everything was working!