<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- </instructions>
- </configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
+ <!-- Local Dependencies -->
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>binding-model-api</artifactId>
<artifactId>maven-sal-api-gen-plugin</artifactId>
<version>${project.version}</version>
</dependency>
+ <!-- YANG Utilities and Parser -->
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-common</artifactId>
</dependencyManagement>
<build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0</version>
- <inherited>true</inherited>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- </configuration>
- </plugin>
- </plugins>
<pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${maven.jar.version}</version>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
+ <plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
</plugins>
</pluginManagement>
</build>
-
</project>
--- /dev/null
+<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">
+
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yangtools</artifactId>
+ <version>0.5-SNAPSHOT</version>
+ </parent>
+ <packaging>bundle</packaging>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>concepts</artifactId>
+ <name>Concepts</name>
+ <description>Java binding for YANG</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
--- /dev/null
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+/**
+ * Builder of product.
+ *
+ * @author ttkacik
+ *
+ * @param <P> Product of Build process
+ */
+public interface Builder<P> {
+ P toInstance();
+}
--- /dev/null
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+public interface Identifiable<T> {
+ T getIdentifier();
+}
--- /dev/null
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.yangtools.concepts;\r
+\r
+/**\r
+ * Immutable Object - object does not change its state during lifecycle.\r
+ * \r
+ * Implementations of this interface must not change any public state during\r
+ * their whole lifecycle.\r
+ * \r
+ * This interface is mutually exclusive with {@link Mutable} and other\r
+ * {@link MutationBehaviour}s.\r
+ * \r
+ * @author Tony Tkacik <ttkacik@cisco.com>\r
+ * \r
+ */\r
+public interface Immutable extends MutationBehaviour<Immutable> {\r
+\r
+}\r
--- /dev/null
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.yangtools.concepts;
+
+/**
+ * Mutable object - object may change it's state during lifecycle.
+ *
+ * This interface is mutually exclusive with {@link Immutable} and other
+ * {@link MutationBehaviour}s.
+ *
+ * @author Tony Tkacik <ttkacik@cisco.com>
+ *
+ */
+public interface Mutable extends MutationBehaviour<Mutable>{
+
+}
--- /dev/null
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.yangtools.concepts;\r
+\r
+/**\r
+ * Mutation behavior\r
+ * \r
+ * This interface is used to prevent same class extends multiple types of MutationBehaviour\r
+ * such as {@link Immutable} and {@link Mutable} which are mutually exclusive.\r
+ * \r
+ * @author Tony Tkacik <ttkacik@cisco.com>\r
+ *\r
+ * @param <T> Mutation Type\r
+ */\r
+public interface MutationBehaviour<T extends MutationBehaviour<T>> {\r
+\r
+}\r
--- /dev/null
+package org.opendaylight.yangtools.concepts;
+
+import java.util.Set;
+
+public interface Namespace<K,V> {
+
+ V get(K key);
+
+ Namespace<K,V> getParent();
+ Set<Namespace<K,V>> getSubnamespaces();
+ Namespace<K,V> getSubnamespace(V key);
+}
--- /dev/null
+package org.opendaylight.yangtools.concepts;
+import java.util.List;
+import java.util.Set;
+
+
+public interface OrderedSet<E> extends Set<E>,List<E> {
+
+
+}
<modelVersion>4.0.0</modelVersion>
<artifactId>iana-afn-safi</artifactId>
- <version>2013.07.04-SNAPSHOT</version>
+ <version>2013.07.04.0-SNAPSHOT</version>
<build>
<plugins>
<modelVersion>4.0.0</modelVersion>
<artifactId>iana-if-type</artifactId>
- <version>2013.07.04-SNAPSHOT</version>
+ <version>2013.07.04.0-SNAPSHOT</version>
<build>
<plugins>
<modelVersion>4.0.0</modelVersion>
<artifactId>ietf-inet-types</artifactId>
- <version>2010.09.24-SNAPSHOT</version>
+ <version>2010.09.24.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
--- /dev/null
+<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">
+
+ <parent>
+ <artifactId>model-ietf</artifactId>
+ <groupId>org.opendaylight.yangtools.model</groupId>
+ <version>0.5.8-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>ietf-netconf</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>${project.artifactId}</name>
+ <description>${project.artifactId}</description>
+
+ <packaging>bundle</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.yangtools.model</groupId>
+ <artifactId>ietf-inet-types</artifactId>
+ <version>2010.09.24-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.yangtools.model</groupId>
+ <artifactId>ietf-yang-types</artifactId>
+ <version>2010.09.24-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
<modelVersion>4.0.0</modelVersion>
<artifactId>ietf-ted</artifactId>
- <version>2013.07.12-SNAPSHOT</version>
+ <version>2013.07.12.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
<modelVersion>4.0.0</modelVersion>
<artifactId>ietf-topology-isis</artifactId>
- <version>2013.07.12-SNAPSHOT</version>
+ <version>2013.07.12.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
<modelVersion>4.0.0</modelVersion>
<artifactId>ietf-topology-l3-unicast-igp</artifactId>
- <version>2013.07.12-SNAPSHOT</version>
+ <version>2013.07.12.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
<modelVersion>4.0.0</modelVersion>
<artifactId>ietf-topology-ospf</artifactId>
- <version>2013.07.12-SNAPSHOT</version>
+ <version>2013.07.12.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
<modelVersion>4.0.0</modelVersion>
<artifactId>ietf-topology</artifactId>
- <version>2013.07.12-SNAPSHOT</version>
+ <version>2013.07.12.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
<dependency>
<groupId>org.opendaylight.yangtools.model</groupId>
<artifactId>ietf-inet-types</artifactId>
- <version>2010.09.24-SNAPSHOT</version>
+ <version>2010.09.24.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.opendaylight.yangtools.model</groupId>
<artifactId>ietf-yang-types</artifactId>
- <version>2010.09.24-SNAPSHOT</version>
+ <version>2010.09.24.0-SNAPSHOT</version>
</dependency>
</dependencies>
<modelVersion>4.0.0</modelVersion>
<artifactId>ietf-yang-types</artifactId>
- <version>2010.09.24-SNAPSHOT</version>
+ <version>2010.09.24.0-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
<module>ietf-yang-types</module>
<module>ietf-ted</module>
<module>ietf-topology</module>
+ <!--module>ietf-netconf</module -->
<!--
<module>ietf-topology-l3-unicast-igp</module>
<module>ietf-topology-isis</module>
<modelVersion>4.0.0</modelVersion>
<artifactId>opendaylight-l2-types</artifactId>
- <version>2013.08.27-SNAPSHOT</version>
+ <version>2013.08.27.0-SNAPSHOT</version>
<build>
<plugins>
</properties>
<modules>
+ <module>yang-ext</module>
<module>iana</module>
<module>ietf</module>
<!-- <module>model-topology-bgp</module> -->
</plugins>
<pluginManagement>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${maven.jar.version}</version>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>${maven.bundle.version}</version>
- <extensions>true</extensions>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
<!--This plugin's configuration is used to store Eclipse
m2e settings only. It has no influence on the Maven build itself. -->
<plugin>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
\r
<parent>\r
- <groupId>org.opendaylight.yangtools</groupId>\r
- <artifactId>yang</artifactId>\r
+ <groupId>org.opendaylight.yangtools.model</groupId>\r
+ <artifactId>model-parent</artifactId>\r
<version>0.5.8-SNAPSHOT</version>\r
</parent>\r
\r
<modelVersion>4.0.0</modelVersion>\r
<artifactId>yang-ext</artifactId>\r
- <version>2013.09.07-SNAPSHOT</version>\r
+ <version>2013.09.07.0-SNAPSHOT</version>\r
<name>${project.artifactId}</name>\r
<description>${project.artifactId}</description>\r
\r
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
<slf4j.version>1.7.2</slf4j.version>\r
<nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>\r
- <yang.version>0.5.8-SNAPSHOT</yang.version>\r
+ \r
+ <!-- Java Versions -->\r
+ <maven.compiler.source>1.7</maven.compiler.source>\r
+ <maven.compiler.target>1.7</maven.compiler.target>\r
+\r
+ <!-- Build Plugin Versions -->\r
<maven.bundle.version>2.4.0</maven.bundle.version>\r
<maven.jar.version>2.4</maven.jar.version>\r
+ <maven.javadoc.version>2.9.1</maven.javadoc.version>\r
<maven.source.version>2.2.1</maven.source.version>\r
- <maven.surefire.version>2.16</maven.surefire.version>\r
+ <maven.surefire.version>2.16</maven.surefire.version> \r
+\r
+ <!-- Supporting Libraries -->\r
+ <slf4j.version>1.7.2</slf4j.version>\r
+ <guava.version>14.0.1</guava.version>\r
+ <xtend.version>2.4.3</xtend.version>\r
+ <groovy.version>2.1.6</groovy.version>\r
</properties>\r
\r
<modules>\r
+ <module>concepts</module>\r
<module>yang</module>\r
<module>code-generator</module>\r
<module>restconf</module>\r
\r
\r
<repositories>\r
- <!-- EBR release -->\r
- <!-- http://repository.springsource.com/maven/bundles/release -->\r
- <repository>\r
- <id>ebr-bundles-release</id>\r
- <name>ebr-bundles-release</name>\r
- <url>${nexusproxy}/repositories/ebr-bundles-release/</url>\r
- </repository>\r
- <!-- EBR external -->\r
- <!-- http://repository.springsource.com/maven/bundles/external -->\r
- <repository>\r
- <id>ebr-bundles-external</id>\r
- <name>ebr-bundles-external</name>\r
- <url>${nexusproxy}/repositories/ebr-bundles-external/</url>\r
- </repository>\r
<!-- Maven repo2 mirror -->\r
<!-- http://repo2.maven.org/maven2 -->\r
<repository>\r
<name>central</name>\r
<url>${nexusproxy}/repositories/central/</url>\r
</repository>\r
- <!-- Pax mirror -->\r
- <!-- https://oss.sonatype.org/content/repositories/ops4j-releases -->\r
- <repository>\r
- <id>ops4j-releases</id>\r
- <name>ops4j-releases</name>\r
- <url>${nexusproxy}/repositories/ops4j-releases/</url>\r
- </repository>\r
- <!-- Third Packages hosted in local maven because not available in \r
- other places -->\r
- <repository>\r
- <id>thirdparty</id>\r
- <name>thirdparty</name>\r
- <url>${nexusproxy}/repositories/thirdparty/</url>\r
- </repository>\r
- <!-- Jboss mirror -->\r
- <!-- https://repository.jboss.org/nexus/content/repositories/releases -->\r
- <repository>\r
- <id>jboss.releases</id>\r
- <name>jboss.releases</name>\r
- <url>${nexusproxy}/repositories/jboss.releases/</url>\r
- </repository>\r
+\r
<!-- OpenDayLight Released artifact -->\r
<repository>\r
<id>opendaylight-release</id>\r
\r
<dependencyManagement>\r
<dependencies>\r
+ <!-- Testing Dependencies -->\r
<dependency>\r
<groupId>junit</groupId>\r
<artifactId>junit</artifactId>\r
<version>4.10</version>\r
<scope>test</scope>\r
- <optional>true</optional>\r
</dependency>\r
+ <dependency>\r
+ <groupId>org.mockito</groupId>\r
+ <artifactId>mockito-all</artifactId>\r
+ <version>1.9.5</version>\r
+ <scope>test</scope>\r
+ </dependency>\r
+\r
+ <!-- Supporting Libraries -->\r
<dependency>\r
<groupId>org.slf4j</groupId>\r
<artifactId>slf4j-api</artifactId>\r
<artifactId>guava</artifactId>\r
<version>14.0.1</version>\r
</dependency>\r
+ <dependency>\r
+ <groupId>org.eclipse.xtend</groupId>\r
+ <artifactId>org.eclipse.xtend.lib</artifactId>\r
+ <version>${xtend.version}</version>\r
+ </dependency>\r
</dependencies>\r
</dependencyManagement>\r
\r
</distributionManagement>\r
\r
<build>\r
+ <pluginManagement>\r
+ <plugins>\r
+ <plugin>\r
+ <groupId>org.apache.maven.plugins</groupId>\r
+ <artifactId>maven-jar-plugin</artifactId>\r
+ <version>${maven.jar.version}</version>\r
+ <configuration>\r
+ <archive>\r
+ <!-- Bundle OSGi Manifest created by maven-bundle-plugin into jar file -->\r
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
+ </archive>\r
+ </configuration>\r
+ </plugin>\r
+ <plugin>\r
+ <groupId>org.apache.felix</groupId>\r
+ <artifactId>maven-bundle-plugin</artifactId>\r
+ <version>${maven.bundle.version}</version>\r
+ <extensions>true</extensions>\r
+ <executions>\r
+ <execution>\r
+ <id>bundle-manifest</id>\r
+ <phase>process-classes</phase>\r
+ <goals>\r
+ <goal>manifest</goal>\r
+ </goals>\r
+ </execution>\r
+ </executions>\r
+ <configuration>\r
+ <instructions>\r
+ <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
+ </instructions>\r
+ </configuration>\r
+ </plugin>\r
+ <plugin>\r
+ <groupId>org.eclipse.xtend</groupId>\r
+ <artifactId>xtend-maven-plugin</artifactId>\r
+ <version>${xtend.version}</version>\r
+ <executions>\r
+ <execution>\r
+ <goals>\r
+ <goal>compile</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ <plugin>\r
+ <artifactId>maven-clean-plugin</artifactId>\r
+ <version>2.4.1</version>\r
+ <configuration>\r
+ <filesets>\r
+ <fileset>\r
+ <directory>${basedir}/src/main/xtend-gen</directory>\r
+ <includes>\r
+ <include>**</include>\r
+ </includes>\r
+ </fileset>\r
+ </filesets>\r
+ </configuration>\r
+ </plugin>\r
+ <plugin>\r
+ <groupId>org.eclipse.m2e</groupId>\r
+ <artifactId>lifecycle-mapping</artifactId>\r
+ <version>1.0.0</version>\r
+ <configuration>\r
+ <lifecycleMappingMetadata>\r
+ <pluginExecutions>\r
+ <pluginExecution>\r
+ <pluginExecutionFilter>\r
+ <groupId>org.apache.felix</groupId>\r
+ <artifactId>maven-bundle-plugin</artifactId>\r
+ <versionRange>[1.0,)</versionRange>\r
+ <goals>\r
+ <goal>manifest</goal>\r
+ </goals>\r
+ </pluginExecutionFilter>\r
+ <action>\r
+ <execute></execute>\r
+ </action>\r
+ </pluginExecution>\r
+ </pluginExecutions>\r
+ </lifecycleMappingMetadata>\r
+ </configuration>\r
+ </plugin>\r
+ </plugins>\r
+ </pluginManagement>\r
<plugins>\r
<plugin>\r
<groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-compiler-plugin</artifactId>\r
- <version>2.0</version>\r
- <inherited>true</inherited>\r
- <configuration>\r
- <source>1.7</source>\r
- <target>1.7</target>\r
- </configuration>\r
+ <artifactId>maven-jar-plugin</artifactId>\r
+ </plugin>\r
+ <plugin>\r
+ <groupId>org.apache.felix</groupId>\r
+ <artifactId>maven-bundle-plugin</artifactId>\r
</plugin>\r
<plugin>\r
<groupId>org.apache.maven.plugins</groupId>\r
<plugin>\r
<groupId>org.apache.maven.plugins</groupId>\r
<artifactId>maven-javadoc-plugin</artifactId>\r
- <version>2.9.1</version>\r
+ <version>${maven.javadoc.version}</version>\r
<configuration>\r
<stylesheet>maven</stylesheet>\r
</configuration>\r
</plugin>\r
</plugins>\r
</reporting>\r
-\r
</project>\r
-\r
--- /dev/null
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>yangtools</artifactId>
+ <version>0.5-SNAPSHOT</version>
+ </parent>
+ <groupId>org.opendaylight.yangtools.thirdparty</groupId>
+ <artifactId>third-party-parent</artifactId>
+ <packaging>pom</packaging>
+ <scm>
+ <connection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</connection>
+ <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
+ <url>https://wiki.opendaylight.org/view/YANG_Tools:Third-Party</url>
+ </scm>
+
+ <modules>
+ <module>xtend-lib-osgi</module>
+ </modules>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
--- /dev/null
+<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">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.opendaylight.yangtools.thirdparty</groupId>
+ <artifactId>third-party-parent</artifactId>
+ <version>0.5-SNAPSHOT</version>
+ </parent>
+ <artifactId>xtend-lib-osgi</artifactId>
+ <version>2.4.2-SNAPSHOT</version>
+ <packaging>bundle</packaging>
+ <scm>
+ <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
+ <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
+ <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
+ </scm>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
+ <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
+ <Export-Package>
+ org.eclipse.xtend2.lib,
+ org.eclipse.xtend.lib,
+ org.eclipse.xtext.xbase.*
+ </Export-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.xtend</groupId>
+ <artifactId>xtend-maven-plugin</artifactId>
+ <version>2.4.2</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.4.1</version>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${basedir}/src/main/xtend-gen</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.xtend</groupId>
+ <artifactId>org.eclipse.xtend.lib</artifactId>
+ <version>2.4.2</version>
+ </dependency>
+ </dependencies>
+</project>
<module>yang-data-api</module>
<module>yang-data-util</module>
<module>yang-data-impl</module>
- <module>yang-ext</module>
<module>yang-model-api</module>
<module>yang-maven-plugin</module>
<module>yang-maven-plugin-it</module>
</dependency>
</dependencies>
</dependencyManagement>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0</version>
- <inherited>true</inherited>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.9.1</version>
- <configuration>
- <stylesheet>maven</stylesheet>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>aggregate</goal>
- </goals>
- <phase>site</phase>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>${maven.bundle.version}</version>
- <extensions>true</extensions>
- <executions>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <versionRange>[1.0,)</versionRange>
- <goals>
- <goal>manifest</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <execute></execute>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>2.4.0</version>
- <configuration>
- <effort>Max</effort>
- <threshold>Low</threshold>
- <goal>site</goal>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jdepend-maven-plugin</artifactId>
- <version>2.0-beta-2</version>
- </plugin>
- </plugins>
- </reporting>
-
</project>
-
<artifactId>yang-binding</artifactId>\r
<name>${project.artifactId}</name>\r
<description>Java binding for YANG</description>\r
-\r
- <build>\r
- <plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-jar-plugin</artifactId>\r
- <version>${maven.jar.version}</version>\r
- <configuration>\r
- <archive>\r
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
- </archive>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.felix</groupId>\r
- <artifactId>maven-bundle-plugin</artifactId>\r
- <extensions>true</extensions>\r
- <configuration>\r
- <instructions>\r
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
- </instructions>\r
- </configuration>\r
- </plugin>\r
- </plugins>\r
- </build>\r
-\r
</project>\r
<artifactId>slf4j-api</artifactId>\r
</dependency>\r
</dependencies>\r
-\r
- <build>\r
- <plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-jar-plugin</artifactId>\r
- <version>${maven.jar.version}</version>\r
- <configuration>\r
- <archive>\r
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
- </archive>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.felix</groupId>\r
- <artifactId>maven-bundle-plugin</artifactId>\r
- <extensions>true</extensions>\r
- <configuration>\r
- <instructions>\r
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
- </instructions>\r
- </configuration>\r
- </plugin>\r
- </plugins>\r
- </build>\r
-\r
</project>\r
<artifactId>yang-common</artifactId>\r
</dependency>\r
</dependencies>\r
-\r
- <build>\r
- <plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-jar-plugin</artifactId>\r
- <version>${maven.jar.version}</version>\r
- <configuration>\r
- <archive>\r
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
- </archive>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.felix</groupId>\r
- <artifactId>maven-bundle-plugin</artifactId>\r
- <extensions>true</extensions>\r
- <configuration>\r
- <instructions>\r
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
- </instructions>\r
- </configuration>\r
- </plugin>\r
- </plugins>\r
- </build>\r
-\r
</project>\r
\r
<build>\r
<plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-jar-plugin</artifactId>\r
- <version>${maven.jar.version}</version>\r
- <configuration>\r
- <archive>\r
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
- </archive>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.felix</groupId>\r
- <artifactId>maven-bundle-plugin</artifactId>\r
- <extensions>true</extensions>\r
- <configuration>\r
- <instructions>\r
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
- </instructions>\r
- </configuration>\r
- </plugin>\r
<plugin>\r
<groupId>org.apache.maven.plugins</groupId>\r
<artifactId>maven-surefire-plugin</artifactId>\r
<scope>test</scope>\r
</dependency>\r
</dependencies>\r
-\r
</project>\r
<artifactId>yang-data-api</artifactId>\r
</dependency>\r
</dependencies>\r
-\r
- <build>\r
- <plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-jar-plugin</artifactId>\r
- <version>${maven.jar.version}</version>\r
- <configuration>\r
- <archive>\r
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
- </archive>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.felix</groupId>\r
- <artifactId>maven-bundle-plugin</artifactId>\r
- <extensions>true</extensions>\r
- <configuration>\r
- <instructions>\r
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
- </instructions>\r
- </configuration>\r
- </plugin>\r
- </plugins>\r
- </build>\r
-\r
</project>\r
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
- <version>${maven.jar.version}</version>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
<executions>
<execution>
<phase>package</phase>
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- </instructions>
- </configuration>
- </plugin>
</plugins>
</build>
-
</project>
<build>
<plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <configuration>
+ <supportedProjectTypes>
+ <supportedProjectType>maven-plugin</supportedProjectType>
+ </supportedProjectTypes>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<artifactId>yang-common</artifactId>\r
</dependency>\r
</dependencies>\r
-\r
- <build>\r
- <plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-jar-plugin</artifactId>\r
- <version>${maven.jar.version}</version>\r
- <configuration>\r
- <archive>\r
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
- </archive>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.felix</groupId>\r
- <artifactId>maven-bundle-plugin</artifactId>\r
- <extensions>true</extensions>\r
- <configuration>\r
- <instructions>\r
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
- </instructions>\r
- </configuration>\r
- </plugin>\r
- </plugins>\r
- </build>\r
-\r
</project>\r
<dependency>
<groupId>org.eclipse.xtend</groupId>
<artifactId>org.eclipse.xtend.lib</artifactId>
- <version>2.4.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<build>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${maven.jar.version}</version>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- </instructions>
- </configuration>
- </plugin>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
- <version>2.4.2</version>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- </goals>
- <configuration>
- <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.4.1</version>
- <configuration>
- <filesets>
- <fileset>
- <directory>${basedir}/src/main/xtend-gen</directory>
- <includes>
- <include>**</include>
- </includes>
- </fileset>
- </filesets>
- </configuration>
</plugin>
</plugins>
</build>
-
</project>
<artifactId>yang-model-api</artifactId>
</dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${maven.jar.version}</version>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
</project>
<dependency>\r
<groupId>org.eclipse.xtend</groupId>\r
<artifactId>org.eclipse.xtend.lib</artifactId>\r
- <version>2.4.2</version>\r
</dependency>\r
<dependency>\r
<groupId>junit</groupId>\r
\r
<build>\r
<plugins>\r
- <plugin>\r
- <groupId>org.apache.maven.plugins</groupId>\r
- <artifactId>maven-jar-plugin</artifactId>\r
- <version>${maven.jar.version}</version>\r
- <configuration>\r
- <archive>\r
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>\r
- </archive>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <groupId>org.apache.felix</groupId>\r
- <artifactId>maven-bundle-plugin</artifactId>\r
- <extensions>true</extensions>\r
- <configuration>\r
- <instructions>\r
- <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>\r
- </instructions>\r
- </configuration>\r
- </plugin>\r
- <plugin>\r
- <artifactId>maven-clean-plugin</artifactId>\r
- <version>2.4.1</version>\r
- <configuration>\r
- <filesets>\r
- <fileset>\r
- <directory>${basedir}/src/main/xtend-gen</directory>\r
- <includes>\r
- <include>**</include>\r
- </includes>\r
- </fileset>\r
- </filesets>\r
- </configuration>\r
- </plugin>\r
<plugin>\r
<groupId>org.antlr</groupId>\r
<artifactId>antlr4-maven-plugin</artifactId>\r
<plugin>\r
<groupId>org.eclipse.xtend</groupId>\r
<artifactId>xtend-maven-plugin</artifactId>\r
- <version>2.4.2</version>\r
- <executions>\r
- <execution>\r
- <goals>\r
- <goal>compile</goal>\r
- </goals>\r
- <configuration>\r
- <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>\r
- </configuration>\r
- </execution>\r
- </executions>\r
</plugin>\r
<plugin>\r
<groupId>org.codehaus.mojo</groupId>\r
</execution>\r
</executions>\r
</plugin>\r
-\r
<plugin>\r
<groupId>org.apache.maven.plugins</groupId>\r
<artifactId>maven-javadoc-plugin</artifactId>\r
</plugins>\r
</pluginManagement>\r
</build>\r
-\r
</project>\r