remove yang models form tr-069-adapter
[oam/tr069-adapter.git] / netconf-server / pom.xml
index 7da657a..e1353dc 100644 (file)
@@ -30,6 +30,9 @@
    <groupId>org.commscope.tr069adapter.netconf.server</groupId>\r
    <artifactId>netconf-server</artifactId>\r
    <name>netconf-server</name>\r
+   <scm>\r
+               <url>https://gerrit.o-ran-sc.org/r/scp/oam/modeling</url>\r
+  </scm>\r
    <packaging>jar</packaging>\r
    <licenses>\r
       <license>\r
          <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>\r
       </license>\r
    </licenses>\r
-   <repositories>\r
-      <repository>\r
-         <id>onap-releases</id>\r
-         <name>onap-releases</name>\r
-         <url>https://nexus.onap.org/content/repositories/releases/</url>\r
-      </repository>\r
-   </repositories>\r
+\r
    <properties>\r
       <docker.image.name>o-ran-sc/tr069adapter-netconf-server</docker.image.name>\r
    </properties>\r
                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate\r
                                         source files -->\r
          </plugin>\r
+                <plugin>\r
+                       <groupId>org.codehaus.mojo</groupId>\r
+                       <artifactId>exec-maven-plugin</artifactId>\r
+                       <version>1.3.2</version>\r
+                       <executions>\r
+                               <execution>\r
+                                       <id>gerrit-wiki-clone</id>\r
+                                       <goals>\r
+                                               <goal>exec</goal>\r
+                                       </goals>\r
+                                       <phase>generate-resources</phase>\r
+                                       <configuration>\r
+                                               <executable>git</executable>\r
+                                               <arguments>\r
+                                                       <argument>clone</argument>\r
+                                                       <argument>-b</argument>\r
+                                                       <argument>master</argument>\r
+                                                       <argument>https://gerrit.o-ran-sc.org/r/scp/oam/modeling</argument>\r
+                                                       <argument>target/gerrit-wiki</argument>\r
+                                               </arguments>\r
+                                       </configuration>\r
+                               </execution>\r
+                       </executions>\r
+               </plugin>\r
+               <plugin>\r
+            <artifactId>maven-resources-plugin</artifactId>\r
+            <version>2.6</version>\r
+            <executions>\r
+                <execution>\r
+                    <id>copy-commscope-yang-models</id>\r
+                    <phase>process-classes</phase>\r
+                    <goals>\r
+                        <goal>copy-resources</goal>\r
+                    </goals>\r
+                    <configuration>\r
+                        <outputDirectory>${basedir}/schemas/base/</outputDirectory>\r
+                        <resources>\r
+                            <resource>\r
+                                <directory>${basedir}/target/gerrit-wiki/data-model/yang/published/commscope</directory>\r
+                                <includes>\r
+                                    <include>**/*.*</include>\r
+                                </includes>\r
+                            </resource>\r
+                        </resources>\r
+                    </configuration>\r
+                </execution>\r
+                               <execution>\r
+                    <id>copy-oran-yang-models</id>\r
+                    <phase>process-classes</phase>\r
+                    <goals>\r
+                        <goal>copy-resources</goal>\r
+                    </goals>\r
+                    <configuration>\r
+                        <outputDirectory>${basedir}/schemas/common/</outputDirectory>\r
+                        <resources>\r
+                            <resource>\r
+                                <directory>${basedir}/target/gerrit-wiki/data-model/yang/published/o-ran/ru-fh/</directory>\r
+                                <includes>\r
+                                                                       <include>**/o-ran-file-management@2019-07-03.yang</include>\r
+                                                                       <include>**/o-ran-hardware@2019-07-03.yang</include>\r
+                                                                       <include>**/o-ran-software-management@2019-07-03.yang</include>\r
+                                </includes>\r
+                            </resource>\r
+                        </resources>\r
+                    </configuration>\r
+                </execution>\r
+                               <execution>\r
+                    <id>copy-ietf-yang-models</id>\r
+                    <phase>process-classes</phase>\r
+                    <goals>\r
+                        <goal>copy-resources</goal>\r
+                    </goals>\r
+                    <configuration>\r
+                        <outputDirectory>${basedir}/schemas/common/</outputDirectory>\r
+                        <resources>\r
+                            <resource>\r
+                                <directory>${basedir}/target/gerrit-wiki/data-model/yang/published/ietf/</directory>\r
+                                <includes>\r
+                                    <include>**/iana-hardware@2018-03-13.yang</include>\r
+                                                                       <include>**/ietf-crypto-types@2019-10-18.yang</include>\r
+                                                                       <include>**/ietf-hardware@2018-03-13.yang</include>\r
+                                                                       <include>**/ietf-inet-types@2013-07-15.yang</include>\r
+                                                                       <include>**/ietf-netconf-acm@2018-02-14.yang</include>\r
+                                                                       <include>**/ietf-yang-types@2013-07-15.yang</include>\r
+                                                                       <include>**/ietf-netconf-monitoring@2010-10-04.yang</include>\r
+                                </includes>\r
+                            </resource>\r
+                        </resources>\r
+                    </configuration>\r
+                </execution>\r
+            </executions>\r
+        </plugin>\r
          <plugin>\r
             <groupId>org.apache.maven.plugins</groupId>\r
             <artifactId>maven-surefire-plugin</artifactId>\r
                <skipTests>false</skipTests>\r
             </configuration>\r
          </plugin>\r
-         <plugin>\r
-            <groupId>org.jacoco</groupId>\r
-            <artifactId>jacoco-maven-plugin</artifactId>\r
-            <executions>\r
-               <execution>\r
-                  <goals>\r
-                     <goal>prepare-agent</goal>\r
-                  </goals>\r
-               </execution>\r
-               <!-- attached to Maven test phase -->\r
-               <execution>\r
-                  <id>report</id>\r
-                  <phase>test</phase>\r
-                  <goals>\r
-                     <goal>report</goal>\r
-                  </goals>\r
-               </execution>\r
-            </executions>\r
-         </plugin>\r
          <plugin>\r
             <artifactId>maven-failsafe-plugin</artifactId>\r
          </plugin>\r
          </plugin>\r
       </plugins>\r
    </build>\r
+    <repositories>\r
+    <repository>\r
+      <id>onap-public</id>\r
+      <url>https://nexus.onap.org/content/groups/public/</url>\r
+      <releases>\r
+        <enabled>true</enabled>\r
+        <updatePolicy>never</updatePolicy>\r
+      </releases>\r
+      <snapshots>\r
+        <enabled>true</enabled>\r
+        <updatePolicy>always</updatePolicy>\r
+      </snapshots>\r
+    </repository>\r
+    <repository>\r
+      <id>onap-staging</id>\r
+      <url>https://nexus.onap.org/content/groups/staging/</url>\r
+      <releases>\r
+        <enabled>true</enabled>\r
+        <updatePolicy>never</updatePolicy>\r
+      </releases>\r
+      <snapshots>\r
+        <enabled>true</enabled>\r
+        <updatePolicy>always</updatePolicy>\r
+      </snapshots>\r
+    </repository>\r
+    <repository>\r
+      <id>ecomp-release</id>\r
+      <name>onap-repository-releases</name>\r
+      <url>https://nexus.onap.org/content/repositories/releases/</url>\r
+      <releases>\r
+        <enabled>true</enabled>\r
+        <updatePolicy>never</updatePolicy>\r
+      </releases>\r
+      <snapshots>\r
+        <enabled>false</enabled>\r
+      </snapshots>\r
+    </repository>\r
+    <repository>\r
+      <id>ecomp-snapshot</id>\r
+      <name>onap-repository-snapshots</name>\r
+      <url>https://nexus.onap.org/content/repositories/snapshots/</url>\r
+      <releases>\r
+        <enabled>false</enabled>\r
+      </releases>\r
+      <snapshots>\r
+        <enabled>true</enabled>\r
+      </snapshots>\r
+    </repository>\r
+  </repositories>\r
    <issueManagement>\r
       <system>JIRA</system>\r
       <url>https://jira.o-ran-sc.org/</url>\r