Do not pull in javax.inject into runtime
[genius.git] / networkutils / networkutils / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright © 2018 Ericsson India Global Services Pvt Ltd. and others.All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <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">
10   <modelVersion>4.0.0</modelVersion>
11
12   <parent>
13     <groupId>org.opendaylight.genius</groupId>
14     <artifactId>binding-parent</artifactId>
15     <version>0.9.0-SNAPSHOT</version>
16     <relativePath>../../commons/binding-parent</relativePath>
17   </parent>
18
19   <groupId>org.opendaylight.genius</groupId>
20   <artifactId>networkutils</artifactId>
21   <version>0.9.0-SNAPSHOT</version>
22   <packaging>bundle</packaging>
23   <!-- <name> formatting is used by autorelease to parse and notify projects on
24        build failure. Please do not modify this unless you have a good reason. -->
25   <name>ODL :: genius :: ${project.artifactId}</name>
26
27   <dependencyManagement>
28     <dependencies>
29       <dependency>
30         <groupId>com.google.inject</groupId>
31         <artifactId>guice</artifactId>
32         <version>4.2.2</version>
33       </dependency>
34     </dependencies>
35   </dependencyManagement>
36
37   <dependencies>
38     <dependency>
39       <groupId>org.apache.aries.blueprint</groupId>
40       <artifactId>blueprint-maven-plugin-annotation</artifactId>
41       <optional>true</optional>
42     </dependency>
43     <dependency>
44       <groupId>org.opendaylight.genius</groupId>
45       <artifactId>idmanager-api</artifactId>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.genius</groupId>
49       <artifactId>mdsalutil-api</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>javax.inject</groupId>
53       <artifactId>javax.inject</artifactId>
54       <scope>provided</scope>
55       <optional>true</optional>
56     </dependency>
57     <dependency>
58       <groupId>org.opendaylight.genius</groupId>
59       <artifactId>testutils</artifactId>
60       <version>${project.version}</version>
61       <scope>test</scope>
62     </dependency>
63     <dependency>
64       <groupId>org.opendaylight.genius</groupId>
65       <artifactId>idmanager-impl</artifactId>
66       <version>${project.version}</version>
67       <scope>test</scope>
68     </dependency>
69     <dependency>
70       <groupId>org.opendaylight.genius</groupId>
71       <artifactId>lockmanager-impl</artifactId>
72       <version>${project.version}</version>
73       <scope>test</scope>
74     </dependency>
75     <dependency>
76       <groupId>org.opendaylight.genius</groupId>
77       <artifactId>mdsalutil-testutils</artifactId>
78       <version>${project.version}</version>
79       <scope>test</scope>
80     </dependency>
81     <dependency>
82       <groupId>org.opendaylight.infrautils</groupId>
83       <artifactId>infrautils-testutils</artifactId>
84     </dependency>
85   </dependencies>
86   <build>
87     <plugins>
88       <!-- Do *NOT* use annotation based DI with the blueprint-maven-plugin here; the issue is that this
89            will cause problems in other projects having a dependency to this one (they would repeat and re-generate this project's BP XML). -->
90       <plugin>
91         <groupId>org.codehaus.mojo</groupId>
92         <artifactId>build-helper-maven-plugin</artifactId>
93         <executions>
94           <execution>
95             <id>attach-artifacts</id>
96             <goals>
97               <goal>attach-artifact</goal>
98             </goals>
99             <phase>package</phase>
100             <configuration>
101               <artifacts>
102                 <artifact>
103                   <file>${project.build.directory}/classes/initial/genius-network-config.xml</file>
104                   <type>xml</type>
105                   <classifier>config</classifier>
106                 </artifact>
107               </artifacts>
108             </configuration>
109           </execution>
110         </executions>
111       </plugin>
112       <plugin>
113         <groupId>org.apache.aries.blueprint</groupId>
114         <artifactId>blueprint-maven-plugin</artifactId>
115       </plugin>
116     </plugins>
117   </build>
118 </project>