Problems configurating Maven inside BusinessWorks 6.2

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:

maven-problem-1

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:

maven-problem-2

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!

Advertisements

4 thoughts on “Problems configurating Maven inside BusinessWorks 6.2

  1. You mention: “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!”

    Where did you create the settings.xml file?

    I have a similar problem. I get the error: Failed to read artifact descriptor for com.tibco.plugins:bw6-maven-plugin:jar:1.0.0. The jar is present in studio\4.0\eclipse\plugins

  2. I am facing error while installing maven plugin…yet to open and see the bwinstallmavenplugin.xml file..

    ——

    C:\TibcoBW6.2\bw\6.2\bin>bwinstall bw6-plugin-maven
    Buildfile: C:\TibcoBW6.2\bw\6.2\scripts\bwinstall.xml

    bw6-plugin-maven:

    getTibcoHome:

    setupMacros:

    maven-install:
    [echo] Installing Maven Mojo for BW Packaging
    [unzip] Expanding: C:\TibcoBW6.2\bw\6.2\samples\plugins\maven\Installer\config\com.tibco.bw.maven.packager.zip into C:\TibcoBW6.2\bw\6.2\maven\plugins\com.tibco.bw.maven.packager

    winInstall:
    [exec] ‘mvn’ is not recognized as an internal or external command,
    [exec] operable program or batch file.
    [exec]
    [exec] C:\TibcoBW6.2\bw\6.2\maven\plugins\com.tibco.bw.maven.packager>echo Installing Maven Plugin to Maven Repository
    [exec] Installing Maven Plugin to Maven Repository
    [exec]
    [exec] C:\TibcoBW6.2\bw\6.2\maven\plugins\com.tibco.bw.maven.packager>mvn install:install-file -Dfile=bw-archiver-1.0.0.jar -DpomFile=pom.xml

    BUILD FAILED
    C:\TibcoBW6.2\bw\6.2\scripts\bwinstall.xml:195: The following error occurred while executing this line:
    C:\TibcoBW6.2\bw\6.2\scripts\bwinstallmavenplugin.xml:86: The following error occurred while executing this line:
    C:\TibcoBW6.2\bw\6.2\scripts\bwinstallmavenplugin.xml:93: The following error occurred while executing this line:
    C:\TibcoBW6.2\bw\6.2\scripts\bwinstallmavenplugin.xml:251: exec returned: 1

    Total time: 1 second

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s