Skip to content

Using Maven to configure Designer

Richard Tomlinson edited this page Jul 9, 2017 · 4 revisions

Maven (Within Designer) needs to find the wmaop released files on Bintray to automatically resolve dependencies.

Add the following to a file called settings.xml Where no previous Maven installation exists, this is in the ${user.home}/.m2 directory on Linux or on Windows within the .m2 directory of your user profile, e.g. C:\Users\Richard\.m2

You can also choose where Designer picks up the settings.xml by changing its default location. Within Designer, select Window -> Preferences from the menu bar then expand Maven and select User Settings. For the User Settings option you can browse to the location of the settings.xml file.

More details about settings on the Maven settings guide

settings.xml contents

<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
    xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>

    <profiles>
        <profile>
            <repositories>
                <repository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-wmaop-maven</id>
                    <name>bintray</name>
                    <url>http://dl.bintray.com/wm-aop/maven</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-wmaop-maven</id>
                    <name>bintray-plugins</name>
                    <url>http://dl.bintray.com/wm-aop/maven</url>
                </pluginRepository>
            </pluginRepositories>
            <id>bintray</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>bintray</activeProfile>
    </activeProfiles>
</settings>

If errors exist in project, open the pom.xml file to check if the wm-jbehave dependency is not found. Verify that your Designer has access to the internet. You can refresh the project if you correct the problem and its still not apparently working by right clicking on the project and selecting Maven -> Update Project... then clicking OK