Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Check CLAMP out of its repo

    Code Block
    languagebash
    git clone "https://gerrit.onap.org/r/clamp"


  2. Change into the "clamp" directory
  3. Build CLAMP

    Code Block
    languagebash
    mvn clean install

      You may get the following error (See

    Jira Legacy
    serverSystem Jira
    serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
    keyCLAMP-944
    )

    Code Block
    languagebash
    [ERROR] DOCKER> I/O Error [[docker.io/python:2-slim] "python": Timeout after 120088 ms while waiting on tcp port '[/172.17.0.3:8080]']

    If so, then run the following command to skip integration tests

    Code Block
    languagebash
    mvn clean install -DskipITs


Getting CLAMP set up locally in your IDE

  1. Import the CLAMP project into your IDE
  2. Eclipse only: Add the following Eclipse profile to pom.xml for Eclipse m2e support

    Code Block
    languagexml
            <profile>
                <!--This profile is used to store Eclipse m2e settings only. It has no 
                    influence on the Maven build itself. -->
                <id>only-eclipse</id>
                <activation>
                    <property>
                        <name>m2e.version</name>
                    </property>
                </activation>
                <build>
                    <pluginManagement>
                        <plugins>
                            <plugin>
                                <groupId>org.eclipse.m2e</groupId>
                                <artifactId>lifecycle-mapping</artifactId>
                                <version>1.0.0</version>
                                <configuration>
                                    <lifecycleMappingMetadata>
                                        <pluginExecutions>
                                            <pluginExecution>
                                                <pluginExecutionFilter>
                                                    <groupId>de.jpdigital</groupId>
                                                    <artifactId>hibernate52-ddl-maven-plugin</artifactId>
                                                    <versionRange>[2.2.0,)</versionRange>
                                                    <goals>
                                                        <goal>gen-ddl</goal>
                                                    </goals>
                                                </pluginExecutionFilter>
                                                <action>
                                                    <execute />
                                                </action>
                                            </pluginExecution>
                                            <pluginExecution>
                                                <pluginExecutionFilter>
                                                    <groupId>org.codehaus.groovy.maven</groupId>
                                                    <artifactId>gmaven-plugin</artifactId>
                                                    <versionRange>[1.0,)</versionRange>
                                                    <goals>
                                                        <goal>execute</goal>
                                                    </goals>
                                                </pluginExecutionFilter>
                                                <action>
                                                    <execute />
                                                </action>
                                            </pluginExecution>
                                            <pluginExecution>
                                                <pluginExecutionFilter>
                                                    <groupId>org.codehaus.mojo</groupId>
                                                    <artifactId>exec-maven-plugin</artifactId>
                                                    <versionRange>[1.3.2,)</versionRange>
                                                    <goals>
                                                        <goal>exec</goal>
                                                    </goals>
                                                </pluginExecutionFilter>
                                                <action>
                                                    <execute />
                                                </action>
                                            </pluginExecution>
                                            <pluginExecution>
                                                <pluginExecutionFilter>
                                                    <groupId>com.github.eirslett</groupId>
                                                    <artifactId>frontend-maven-plugin</artifactId>
                                                    <versionRange>[1.8.0,)</versionRange>
                                                    <goals>
                                                        <goal>npm</goal>
                                                    </goals>
                                                </pluginExecutionFilter>
                                                <action>
                                                    <execute />
                                                </action>
                                            </pluginExecution>
                                        </pluginExecutions>
                                    </lifecycleMappingMetadata>
                                </configuration>
                            </plugin>
                        </plugins>
                    </pluginManagement>
                </build>
            </profile>