Fix BUG 4281
[openflowjava.git] / openflow-protocol-api / pom.xml
index 80e5103f1ab16b7e8440c47fc891a9c93c5b6ab4..efaa892af2935024940845f1c187861c29ceeb5c 100644 (file)
       </dependencies>
     </dependencyManagement>
 
-    <build>
-      <plugins>
-            <!-- TODO: maven-antrun-plugin deletes yang source files from target.
-                       This is done because otherwise openflowjava models are stored in controller
-                       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 is added into 
-                       yang-maven-plugin - which is supposed to happen in BERYLLIUM release -->
-            <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}/classes/META-INF/yang">
-                                        <include name="*.yang"/>
-                                        <exclude name="openflow-types.yang"/>
-                                        <exclude name="openflow-extensible-match.yang"/>
-                                        <exclude name="openflow-action.yang"/>
-                                        <exclude name="openflow-configuration.yang"/>
-                                    </fileset>
-                                    <fileset dir="${project.build.directory}/generated-sources/yang/META-INF/yang">
-                                        <include name="*.yang"/>
-                                        <exclude name="openflow-types.yang"/>
-                                        <exclude name="openflow-extensible-match.yang"/>
-                                        <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>