import java.io.File;
import java.io.FileInputStream;
-import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.List;
import java.util.Properties;
-
import org.apache.maven.it.VerificationException;
import org.apache.maven.it.Verifier;
-import org.junit.BeforeClass;
import org.junit.Test;
public class YangToSourcesPluginTestIT {
- private static final String SRC_PROPERTIES = "target/it-project.properties";
- private static final String VERSION_PROP = "it-project.version";
- private static Properties props;
// TODO Test yang files in transitive dependencies
@Test
public void testYangRootNotExist() throws URISyntaxException {
try {
- setUp("YangRootNotExist/", false);
+ setUp("test-parent/YangRootNotExist/", false);
} catch (VerificationException e) {
assertVerificationException(e,
"[ERROR] yang-to-sources: Unable to parse yang files from ");
@Test
public void testCorrect() throws Exception {
- Verifier v = setUp("Correct/", false);
+ Verifier v = setUp("test-parent/Correct/", false);
verifyCorrectLog(v);
}
@Test
public void testAdditionalConfiguration() throws Exception {
- Verifier v = setUp("AdditionalConfig/", false);
+ Verifier v = setUp("test-parent/AdditionalConfig/", false);
v.verifyTextInLog("[DEBUG] yang-to-sources: Additional configuration picked up for : org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl: {nm1=abcd=a.b.c.d, nm2=abcd2=a.b.c.d.2}");
v.verifyTextInLog("[DEBUG] yang-to-sources: Additional configuration picked up for : org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl: {c1=config}");
v.verifyTextInLog(File.separator
@Test
public void testMissingYangInDep() throws Exception {
try {
- setUp("MissingYangInDep/", false);
+ setUp("test-parent/MissingYangInDep/", false);
} catch (VerificationException e) {
assertVerificationException(
e,
@Test
public void testNamingConflict() throws Exception {
- Verifier v = setUp("NamingConflict/", false);
+ Verifier v = setUp("test-parent/NamingConflict/", false);
v.verifyErrorFreeLog();
String baseDir = v.getBasedir();
String fileName = v.getLogFileName();
@Test
public void testNoGenerators() throws Exception {
- Verifier v = setUp("NoGenerators/", false);
+ Verifier v = setUp("test-parent/NoGenerators/", false);
v.verifyErrorFreeLog();
v.verifyTextInLog("[WARNING] yang-to-sources: No code generators provided");
}
@Test
public void testInvalidVersion() throws Exception {
- Verifier v = setUp("InvalidVersion/", false);
+ Verifier v = setUp("test-parent/InvalidVersion/", false);
v.verifyErrorFreeLog();
v.verifyTextInLog("[WARNING] yang-to-sources: Dependency resolution conflict:");
}
@Test
public void testUnknownGenerator() throws Exception {
- Verifier v = setUp("UnknownGenerator/", true);
+ Verifier v = setUp("test-parent/UnknownGenerator/", true);
v.verifyTextInLog("[ERROR] yang-to-sources: Unable to generate sources with unknown generator");
v.verifyTextInLog("java.lang.ClassNotFoundException: unknown");
v.verifyTextInLog("[INFO] yang-to-sources: Code generator instantiated from org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl");
@Test
public void testNoYangFiles() throws Exception {
- Verifier v = setUp("NoYangFiles/", false);
+ Verifier v = setUp("test-parent/NoYangFiles/", false);
v.verifyTextInLog("[INFO] yang-to-sources: No input files found");
}
assertThat(e.getMessage(), containsString(string));
}
- @BeforeClass
- public static void generateProps() throws IOException {
- final Properties sp = new Properties();
- try (InputStream is = new FileInputStream(new File(SRC_PROPERTIES))) {
- sp.load(is);
- }
-
- props = new Properties(System.getProperties());
- props.put(VERSION_PROP, sp.getProperty(VERSION_PROP));
- }
-
static Verifier setUp(String project, boolean ignoreF)
throws VerificationException, URISyntaxException {
final URL path = YangToSourcesPluginTestIT.class.getResource("/"
if (ignoreF)
verifier.addCliOption("-fn");
verifier.setMavenDebug(true);
- verifier.setSystemProperties(props);
verifier.executeGoal("generate-sources");
return verifier;
}
@Test
public void testNoOutputDir() throws Exception {
- Verifier v = YangToSourcesPluginTestIT.setUp("NoOutputDir/", false);
+ Verifier v = YangToSourcesPluginTestIT.setUp("test-parent/NoOutputDir/", false);
verifyCorrectLog(v);
}
@Test
public void testFindResourceOnCp() throws Exception {
Verifier v1 = new Verifier(new File(getClass().getResource(
- "/GenerateTest1/pom.xml").toURI()).getParent());
- v1.setSystemProperties(props);
+ "/test-parent/GenerateTest1/pom.xml").toURI()).getParent());
v1.executeGoal("clean");
v1.executeGoal("package");
- v1.assertFilePresent("target/classes/META-INF/yang/testfile1.yang");
- v1.assertFilePresent("target/classes/META-INF/yang/testfile2.yang");
- v1.assertFilePresent("target/classes/META-INF/yang/testfile3.yang");
- Verifier v2 = YangToSourcesPluginTestIT.setUp("GenerateTest2/", false);
+ Properties sp = new Properties();
+ try (InputStream is = new FileInputStream(v1.getBasedir() + "/it-project.properties")) {
+ sp.load(is);
+ }
+ String buildDir = sp.getProperty("target.dir");
+
+ v1.assertFilePresent(buildDir + "/classes/META-INF/yang/testfile1.yang");
+ v1.assertFilePresent(buildDir + "/classes/META-INF/yang/testfile2.yang");
+ v1.assertFilePresent(buildDir + "/classes/META-INF/yang/testfile3.yang");
+
+ Verifier v2 = new Verifier(new File(getClass().getResource(
+ "/test-parent/GenerateTest2/pom.xml").toURI()).getParent());
v2.executeGoal("clean");
v2.executeGoal("package");
- v2.assertFilePresent("target/classes/META-INF/yang/private.yang");
- v2.assertFileNotPresent("target/classes/META-INF/yang/testfile1.yang");
- v2.assertFileNotPresent("target/classes/META-INF/yang/testfile2.yang");
- v2.assertFileNotPresent("target/classes/META-INF/yang/testfile3.yang");
+
+ sp = new Properties();
+ try (InputStream is = new FileInputStream(v2.getBasedir() + "/it-project.properties")) {
+ sp.load(is);
+ }
+ buildDir = sp.getProperty("target.dir");
+
+ v2.assertFilePresent(buildDir + "/classes/META-INF/yang/private.yang");
+ v2.assertFileNotPresent(buildDir + "/classes/META-INF/yang/testfile1.yang");
+ v2.assertFileNotPresent(buildDir + "/classes/META-INF/yang/testfile2.yang");
+ v2.assertFileNotPresent(buildDir + "/classes/META-INF/yang/testfile3.yang");
}
+
}
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
- <artifactId>test</artifactId>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>additional-config</artifactId>
<dependencies>
<dependency>
<nm2>abcd2=a.b.c.d.2</nm2>
</additionalConfiguration>
<resourceBaseDir>/target/resourcesGenerated</resourceBaseDir>
- <outputBaseDir>
- target/AdditionalConfig
+ <outputBaseDir>
+ target/AdditionalConfig
</outputBaseDir>
</generator>
<generator>
<additionalConfiguration>
<c1>config</c1>
</additionalConfiguration>
- <outputBaseDir>
- target/AdditionalConfig
+ <outputBaseDir>
+ target/AdditionalConfig
</outputBaseDir>
</generator>
</codeGenerators>
</configuration>
</execution>
</executions>
-
<dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
</dependency>
</dependencies>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ </plugin>
</plugins>
</build>
+
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
- <artifactId>test</artifactId>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>correct</artifactId>
<dependencies>
<dependency>
<codeGeneratorClass>
org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl
</codeGeneratorClass>
- <outputBaseDir>
- target/correct
+ <outputBaseDir>
+ target/correct
</outputBaseDir>
</generator>
</codeGenerators>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
<artifactId>generator-test1</artifactId>
- <version>0.5-SNAPSHOT</version>
+
+ <properties>
+ <target.dir>${project.build.directory}</target.dir>
+ </properties>
<build>
<plugins>
<codeGeneratorClass>
org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl
</codeGeneratorClass>
- <outputBaseDir>
- target/GenerateTest1
+ <outputBaseDir>
+ target/GenerateTest1
</outputBaseDir>
</generator>
</codeGenerators>
</configuration>
</execution>
</executions>
-
<dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
</dependency>
</dependencies>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ </plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
<artifactId>generator-test2</artifactId>
+ <properties>
+ <target.dir>${project.build.directory}</target.dir>
+ </properties>
<dependencies>
<dependency>
<artifactId>generator-test1</artifactId>
<version>${it-project.version}</version>
<scope>system</scope>
- <systemPath>${project.basedir}/../GenerateTest1/target/generator-test1-0.5-SNAPSHOT.jar</systemPath>
+ <systemPath>${project.basedir}/../GenerateTest1/target/generator-test1-1.0.jar</systemPath>
</dependency>
</dependencies>
</configuration>
</execution>
</executions>
-
<dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
</dependency>
</dependencies>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ </plugin>
</plugins>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <artifactId>binding-generator</artifactId>
<groupId>org.opendaylight.yangtools</groupId>
- <version>${it-project.version}</version>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
</parent>
- <artifactId>test</artifactId>
+
+ <artifactId>generator</artifactId>
<build>
<plugins>
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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
- <artifactId>test</artifactId>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>invalid-version</artifactId>
<!-- Testing dependency -->
- <!-- yang-common dependency added here only for purpose of 'artifact version
- check' test: version of yang-common artifact has to be different than one defined
+ <!-- yang-common dependency added here only for purpose of 'artifact version
+ check' test: version of yang-common artifact has to be different than one defined
in yang-maven-plugin to make test pass -->
<repositories>
<repository>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
- <artifactId>generator-test2</artifactId>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>missing-yang-in-dep</artifactId>
<build>
<plugins>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!-- 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
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
- <artifactId>test</artifactId>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>naming-conflict</artifactId>
<build>
<plugins>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <version>0.5-SNAPSHOT</version>
- <artifactId>test</artifactId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>no-generators</artifactId>
<build>
<plugins>
</configuration>
</execution>
</executions>
- <dependencies>
+ <dependencies>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-maven-plugin-spi</artifactId>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>test</artifactId>
- <version>0.5-SNAPSHOT</version>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>no-output-dir</artifactId>
<build>
<plugins>
<codeGeneratorClass>
org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl
</codeGeneratorClass>
- <outputBaseDir>
- target/NoOutputDir
+ <outputBaseDir>
+ target/NoOutputDir
</outputBaseDir>
</generator>
</codeGenerators>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
- <artifactId>test</artifactId>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
+
+ <artifactId>no-yang-files</artifactId>
<build>
<plugins>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
- <artifactId>test</artifactId>
+ <artifactId>unknown-generator</artifactId>
<build>
<plugins>
<?xml version="1.0" encoding="UTF-8"?>
<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- 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
--->
+<!-- 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 -->
<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>
- <groupId>org.opendaylight.yangtools</groupId>
- <version>0.5-SNAPSHOT</version>
+ <parent>
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ </parent>
- <artifactId>test</artifactId>
+ <artifactId>yang-root-not-exist</artifactId>
<build>
<plugins>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!-- 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 -->
+<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>
+
+ <groupId>org.opendaylight.yangtools</groupId>
+ <artifactId>test-parent</artifactId>
+ <version>1.0</version>
+ <packaging>pom</packaging>
+
+ <properties>
+ <it-project.version>0.6.2-SNAPSHOT</it-project.version>
+ </properties>
+
+ <modules>
+ <module>additional-config</module>
+ <module>correct</module>
+ <module>generate-test1</module>
+ <module>generate-test2</module>
+ <module>generator</module>
+ <module>invalid-version</module>
+ <module>missing-yang-in-dep</module>
+ <module>naming-conflict</module>
+ <module>no-generators</module>
+ <module>no-output-dir</module>
+ <module>no-yang-files</module>
+ <module>unknown-generator</module>
+ <module>yang-root-not-exist</module>
+ </modules>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <version>1.0-alpha-2</version>
+ <executions>
+ <execution>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>write-project-properties</goal>
+ </goals>
+ <configuration>
+ <outputFile>it-project.properties</outputFile>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+</project>