User Tools

Site Tools


middleware:maven

Table of Contents

Maven

Getting Started

  • Checkout the ED j2ee source:
    svn co https://svn.middleware.vt.edu:8443/ed/j2ee/trunk j2ee
  • Configure your maven settings to use the dev profile by editing ~/.m2/settings.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <settings
      xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                          http://maven.apache.org/xsd/settings-1.0.0.xsd">
      <usePluginRegistry>true</usePluginRegistry>
      <profiles>
        <profile>
          <id>edu.vt.middleware.ed.env-dev</id>
          <properties>
            <env>dev</env>
          </properties>
        </profile>
      </profiles>
      <activeProfiles>
        <activeProfile>edu.vt.middleware.ed.env-dev</activeProfile>
      </activeProfiles>
    </settings>
  • Configure your maven plugin repository by editing ~/.m2/plugin-registry.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <pluginRegistry
      xmlns="http://maven.apache.org/PLUGIN_REGISTRY/1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/PLUGIN_REGISTRY/1.0.0
                          http://maven.apache.org/xsd/plugin-registry-1.0.0.xsd">
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-eclipse-plugin</artifactId>
          <useVersion>2.6</useVersion>
          <rejectedVersions>
            <rejectedVersion>2.7</rejectedVersion>
          </rejectedVersions>
        </plugin>
      </plugins>
    </pluginRegistry>
  • Run mvn install from the root directory
middleware/maven.txt · Last modified: 2015/06/01 12:02 (external edit)