Can anybody propose a better solution for this https://bugs.opendaylight.org/show_bug.cgi?id=4281?


Yang, Yi Y
 

Hi, openflowjava guys

 

I encountered this bug https://bugs.opendaylight.org/show_bug.cgi?id=4281 when I run unit tests in openflowplugin, but it can run normally when I applied this patch:

 

diff --git a/openflow-protocol-api/pom.xml b/openflow-protocol-api/pom.xml

index 80e5103..efaa892 100644

--- a/openflow-protocol-api/pom.xml

+++ b/openflow-protocol-api/pom.xml

@@ -43,49 +43,6 @@

       </dependencies>

     </dependencyManagement>

 

-    <build>

-      <plugins>

-            <!-- TODO: maven-antrun-plugin deletes yang source files from target.

-                       This is done because otherwise openflowjava models are stor

-                       and exposed for further use - which is not desired.

-                       (https://bugs.opendaylight.org/show_bug.cgi?id=2926)

-

-                       This plugin should be removed after relevant configuration

-                       yang-maven-plugin - which is supposed to happen in BERYLLIU

-            <plugin>

-                <groupId>org.apache.maven.plugins</groupId>

-                <artifactId>maven-antrun-plugin</artifactId>

-                <executions>

-                    <execution>

-                        <phase>prepare-package</phase>

-                        <goals>

-                            <goal>run</goal>

-                        </goals>

-                        <configuration>

-                            <tasks>

-                                <delete>

-                                    <fileset dir="${project.build.directory}/class

-                                        <include name="*.yang"/>

-                                        <exclude name="openflow-types.yang"/>

-                                        <exclude name="openflow-extensible-match.y

-                                        <exclude name="openflow-action.yang"/>

-                                        <exclude name="openflow-configuration.yang

-                                    </fileset>

-                                    <fileset dir="${project.build.directory}/gener

-                                        <include name="*.yang"/>

-                                        <exclude name="openflow-types.yang"/>

-                                        <exclude name="openflow-extensible-match.y

-                                        <exclude name="openflow-action.yang"/>

-                                        <exclude name="openflow-configuration.yang

-                                    </fileset>

-                                </delete>

-                            </tasks>

-                        </configuration>

-                    </execution>

-                </executions>

-            </plugin>

-        </plugins>

-    </build>

     <dependencies>

         <dependency>

             <groupId>org.opendaylight.mdsal</groupId>

 

Can anybody propose a better solution for this?

Join z.archive.openflowjava-dev@lists.opendaylight.org to automatically receive all group messages.