136424f46SEd Warnicke<?xml version="1.0" encoding="UTF-8"?>
236424f46SEd Warnicke<!-- vi: set et smarttab sw=4 tabstop=4: -->
336424f46SEd Warnicke<!--
436424f46SEd Warnicke Copyright (c) 2015 Cisco and/or its affiliates.
536424f46SEd Warnicke Licensed under the Apache License, Version 2.0 (the "License");
636424f46SEd Warnicke you may not use this file except in compliance with the License.
736424f46SEd Warnicke You may obtain a copy of the License at:
836424f46SEd Warnicke
936424f46SEd Warnicke     http://www.apache.org/licenses/LICENSE-2.0
1036424f46SEd Warnicke
1136424f46SEd Warnicke Unless required by applicable law or agreed to in writing, software
1236424f46SEd Warnicke distributed under the License is distributed on an "AS IS" BASIS,
1336424f46SEd Warnicke WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1436424f46SEd Warnicke See the License for the specific language governing permissions and
1536424f46SEd Warnicke limitations under the License.
1636424f46SEd Warnicke-->
1736424f46SEd Warnicke<project 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/maven-4.0.0.xsd">
1836424f46SEd Warnicke
1936424f46SEd Warnicke  <parent>
205cfbc703SMaros Marsalek    <groupId>io.fd.honeycomb.common</groupId>
215cfbc703SMaros Marsalek    <artifactId>honeycomb-parent</artifactId>
22b52cda3fSMichal Cmarada    <version>1.19.08-SNAPSHOT</version>
235cfbc703SMaros Marsalek    <relativePath>../honeycomb-parent</relativePath>
2436424f46SEd Warnicke  </parent>
2536424f46SEd Warnicke
2636424f46SEd Warnicke  <modelVersion>4.0.0</modelVersion>
2736424f46SEd Warnicke  <artifactId>impl-parent</artifactId>
28bc335de4SMaros Marsalek  <name>${project.artifactId}</name>
29b52cda3fSMichal Cmarada  <version>1.19.08-SNAPSHOT</version>
3036424f46SEd Warnicke  <packaging>pom</packaging>
31b1390876SRobert Varga
3236424f46SEd Warnicke  <properties>
33d022ca8dSMaros Marsalek    <guice.version>4.1.0</guice.version>
34d022ca8dSMaros Marsalek    <guice.config.version>1.2.0</guice.config.version>
3514bdeaccSMarek Gradzki    <skinny.logback.version>1.0.8</skinny.logback.version>
3662dd4d32SJan Srnicek    <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
37556a0f59SMichal Cmarada    <osgi-core.version>5.0.0</osgi-core.version>
3836424f46SEd Warnicke  </properties>
39b1390876SRobert Varga
401326e9faSMaros Marsalek  <dependencyManagement>
411326e9faSMaros Marsalek    <dependencies>
421326e9faSMaros Marsalek      <!-- DI -->
431326e9faSMaros Marsalek      <dependency>
441326e9faSMaros Marsalek        <groupId>com.google.inject</groupId>
451326e9faSMaros Marsalek        <artifactId>guice</artifactId>
461326e9faSMaros Marsalek        <version>${guice.version}</version>
471326e9faSMaros Marsalek      </dependency>
481326e9faSMaros Marsalek      <dependency>
491326e9faSMaros Marsalek        <groupId>net.jmob</groupId>
501326e9faSMaros Marsalek        <artifactId>guice.conf</artifactId>
511326e9faSMaros Marsalek        <version>${guice.config.version}</version>
521326e9faSMaros Marsalek      </dependency>
531326e9faSMaros Marsalek      <dependency>
541326e9faSMaros Marsalek        <groupId>com.google.inject.extensions</groupId>
551326e9faSMaros Marsalek        <artifactId>guice-multibindings</artifactId>
561326e9faSMaros Marsalek        <version>${guice.version}</version>
571326e9faSMaros Marsalek      </dependency>
585cfbc703SMaros Marsalek      <!-- tests -->
5914bdeaccSMarek Gradzki      <dependency>
6014bdeaccSMarek Gradzki        <groupId>org.skinny-framework</groupId>
6114bdeaccSMarek Gradzki        <artifactId>skinny-logback</artifactId>
6214bdeaccSMarek Gradzki        <version>${skinny.logback.version}</version>
6314bdeaccSMarek Gradzki        <scope>test</scope>
6414bdeaccSMarek Gradzki      </dependency>
65b0160e9eSMarek Gradzki      <dependency>
66b0160e9eSMarek Gradzki        <groupId>com.google.inject.extensions</groupId>
67b0160e9eSMarek Gradzki        <artifactId>guice-testlib</artifactId>
68b0160e9eSMarek Gradzki        <version>${guice.version}</version>
69b0160e9eSMarek Gradzki        <scope>test</scope>
70b0160e9eSMarek Gradzki      </dependency>
71a7a8f982SMichal Cmarada      <dependency>
72a7a8f982SMichal Cmarada        <groupId>org.javassist</groupId>
73a7a8f982SMichal Cmarada        <artifactId>javassist</artifactId>
74a7a8f982SMichal Cmarada        <version>3.24.1-GA</version>
75a7a8f982SMichal Cmarada      </dependency>
761326e9faSMaros Marsalek    </dependencies>
771326e9faSMaros Marsalek  </dependencyManagement>
7862dd4d32SJan Srnicek
7962dd4d32SJan Srnicek  <build>
8062dd4d32SJan Srnicek    <pluginManagement>
8162dd4d32SJan Srnicek      <!-- Must be done in parent, to unpack jars for all projects that we generate yang module index for -->
8262dd4d32SJan Srnicek      <plugins> <!-- Copy all dependencies -->
8362dd4d32SJan Srnicek        <plugin>
8462dd4d32SJan Srnicek          <groupId>org.apache.maven.plugins</groupId>
8562dd4d32SJan Srnicek          <artifactId>maven-dependency-plugin</artifactId>
8662dd4d32SJan Srnicek          <version>2.10</version>
8762dd4d32SJan Srnicek          <executions>
8862dd4d32SJan Srnicek            <execution>
8962dd4d32SJan Srnicek              <id>copy-dependencies</id>
9062dd4d32SJan Srnicek              <!-- Must be done before generating yang to module index -->
9162dd4d32SJan Srnicek              <phase>process-sources</phase>
9262dd4d32SJan Srnicek              <goals>
9362dd4d32SJan Srnicek                <goal>copy-dependencies</goal>
9462dd4d32SJan Srnicek              </goals>
9562dd4d32SJan Srnicek              <configuration>
9662dd4d32SJan Srnicek                <outputDirectory>${project.build.directory}/lib</outputDirectory>
9762dd4d32SJan Srnicek                <useBaseVersion>true</useBaseVersion>
9862dd4d32SJan Srnicek                <useRepositoryLayout>true</useRepositoryLayout>
9962dd4d32SJan Srnicek                <excludeArtifactIds>yang-jmx-generator,test-api</excludeArtifactIds>
10062dd4d32SJan Srnicek              </configuration>
10162dd4d32SJan Srnicek            </execution>
10262dd4d32SJan Srnicek          </executions>
10362dd4d32SJan Srnicek        </plugin>
10462dd4d32SJan Srnicek        <!-- Generate module to yang provider index -->
10562dd4d32SJan Srnicek        <plugin>
106a7a8f982SMichal Cmarada          <groupId>org.codehaus.gmavenplus</groupId>
107a7a8f982SMichal Cmarada          <artifactId>gmavenplus-plugin</artifactId>
108a7a8f982SMichal Cmarada          <version>${maven.groovy.version}</version>
10962dd4d32SJan Srnicek          <executions>
11062dd4d32SJan Srnicek            <execution>
11162dd4d32SJan Srnicek              <id>generate-yang-index</id>
11262dd4d32SJan Srnicek              <phase>generate-resources</phase>
11362dd4d32SJan Srnicek              <goals>
11462dd4d32SJan Srnicek                <goal>execute</goal>
11562dd4d32SJan Srnicek              </goals>
11662dd4d32SJan Srnicek              <configuration>
117a7a8f982SMichal Cmarada                <scripts>
118a7a8f982SMichal Cmarada                  <script>
119a7a8f982SMichal Cmarada                    <![CDATA[
120a7a8f982SMichal Cmarada                      import io.fd.honeycomb.common.scripts.ModuleYangIndexGenerator
121a7a8f982SMichal Cmarada                      ModuleYangIndexGenerator.generateIndexForPresentModules(project, log)
122a7a8f982SMichal Cmarada                    ]]>
123a7a8f982SMichal Cmarada                  </script>
124a7a8f982SMichal Cmarada                </scripts>
12562dd4d32SJan Srnicek              </configuration>
12662dd4d32SJan Srnicek            </execution>
12762dd4d32SJan Srnicek          </executions>
12862dd4d32SJan Srnicek          <dependencies>
12962dd4d32SJan Srnicek            <dependency>
13062dd4d32SJan Srnicek              <groupId>io.fd.honeycomb.common</groupId>
13162dd4d32SJan Srnicek              <artifactId>common-scripts</artifactId>
132b52cda3fSMichal Cmarada              <version>1.19.08-SNAPSHOT</version>
13362dd4d32SJan Srnicek            </dependency>
13462dd4d32SJan Srnicek          </dependencies>
13562dd4d32SJan Srnicek        </plugin>
13662dd4d32SJan Srnicek      </plugins>
13762dd4d32SJan Srnicek    </pluginManagement>
13862dd4d32SJan Srnicek
13962dd4d32SJan Srnicek    <plugins>
14062dd4d32SJan Srnicek      <plugin>
141a7a8f982SMichal Cmarada        <groupId>org.codehaus.gmavenplus</groupId>
142a7a8f982SMichal Cmarada        <artifactId>gmavenplus-plugin</artifactId>
14362dd4d32SJan Srnicek      </plugin>
14462dd4d32SJan Srnicek    </plugins>
14562dd4d32SJan Srnicek
14662dd4d32SJan Srnicek    <resources>
14762dd4d32SJan Srnicek      <resource>
14862dd4d32SJan Srnicek        <directory>src/main/resources</directory>
14962dd4d32SJan Srnicek        <includes>
15062dd4d32SJan Srnicek          <include>**/*</include>
15162dd4d32SJan Srnicek        </includes>
15262dd4d32SJan Srnicek      </resource>
15362dd4d32SJan Srnicek      <resource>
15462dd4d32SJan Srnicek        <directory>${project.build.outputDirectory}</directory>
15562dd4d32SJan Srnicek        <includes>
15662dd4d32SJan Srnicek          <include>**/yang-modules-binding/yang-modules</include>
15762dd4d32SJan Srnicek        </includes>
15862dd4d32SJan Srnicek      </resource>
15962dd4d32SJan Srnicek    </resources>
16062dd4d32SJan Srnicek  </build>
16136424f46SEd Warnicke</project>
162