Page tree
Skip to end of metadata
Go to start of metadata

If you are using Maven and Liberty, the pom.xml will have a reference to Liberty's tools, as below.

In Window > Preferences go to Maven > User Settings and open the user settings file. At the start will be a reference to the location of the local repository. A repository and plugin repository will need adding, showing where to find the Maven repository for Liberty.

<?xml version="1.0" encoding="UTF-8"?>
<settings
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"
    xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <localRepository>E:\crossworlds\maven-repo</localRepository>
    <profiles>
        <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
        </profile>
        <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <releases>
                        <updatePolicy>never</updatePolicy>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                        <updatePolicy>never</updatePolicy>
                    </snapshots>
                    <id>ibm-maven-repo</id>
                    <name>ibm-maven-repo</name>
                    <url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <releases>
                        <updatePolicy>never</updatePolicy>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                        <updatePolicy>never</updatePolicy>
                    </snapshots>
                    <id>ibm-maven-repo</id>
                    <name>ibm-maven-repo</name>
                    <url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
                </pluginRepository>
            </pluginRepositories>
            <id>standard-extra-repos</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>standard-extra-repos</activeProfile>
    </activeProfiles>
</settings>
  • No labels