aschuma

MVN + OSGi :: pom.xml Example

Feb 14th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. Maven
  2. =====
  3.  
  4. OSGi Bundle Example
  5. -------------------
  6.  
  7. https://bitbucket.org/atlassian/fugue/src/776e6283937ec273b751f8eb42714bff6c269629/fugue/pom.xml?at=negative_guava_and_guava_collections
  8.  
  9. <!-- Copyright 2010 Atlassian Licensed under the Apache License, Version
  10. 2.0 (the "License"); you may not use this file except in compliance with
  11. the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  12. Unless required by applicable law or agreed to in writing, software distributed
  13. under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  14. OR CONDITIONS OF ANY KIND, either express or implied. See the License for
  15. the specific language governing permissions and limitations under the License. -->
  16. <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/maven-v4_0_0.xsd">
  17.  
  18. <modelVersion>4.0.0</modelVersion>
  19. <parent>
  20. <groupId>com.atlassian.fugue</groupId>
  21. <artifactId>fugue-parent</artifactId>
  22. <version>2.2.2-SNAPSHOT</version>
  23. </parent>
  24.  
  25. <artifactId>fugue</artifactId>
  26. <packaging>jar</packaging>
  27. <name>Functional Guava Extensions</name>
  28.  
  29. <build>
  30. <plugins>
  31. <plugin>
  32. <groupId>org.apache.felix</groupId>
  33. <artifactId>maven-bundle-plugin</artifactId>
  34. <executions>
  35. <execution>
  36. <id>bundle-manifest</id>
  37. <phase>package</phase>
  38. <goals>
  39. <goal>manifest</goal>
  40. <goal>bundle</goal>
  41. </goals>
  42. </execution>
  43. </executions>
  44. <configuration>
  45. <instructions>
  46. <Export-Package>
  47. com.atlassian.fugue.*;version="${project.version}"
  48. </Export-Package>
  49. <Import-Package>
  50. com.atlassian.util.concurrent;version="${atlassian-util-concurrent.version}"
  51. org.slf4j;version="${slf4j-api.version}"
  52. </Import-Package>
  53. </instructions>
  54. </configuration>
  55. </plugin>
  56.  
  57. </plugins>
  58. </build>
  59.  
  60. <dependencies>
  61. <dependency>
  62. <groupId>org.slf4j</groupId>
  63. <artifactId>slf4j-api</artifactId>
  64. <scope>provided</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.slf4j</groupId>
  68. <artifactId>slf4j-nop</artifactId>
  69. <scope>test</scope>
  70. </dependency>
  71. <dependency>
  72. <!-- findbugs is only useful for compile/analysis, not needed
  73. at runtime -->
  74. <groupId>com.google.code.findbugs</groupId>
  75. <artifactId>jsr305</artifactId>
  76. <scope>provided</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.atlassian.util.concurrent</groupId>
  80. <artifactId>atlassian-util-concurrent</artifactId>
  81. <scope>provided</scope>
  82. </dependency>
  83.  
  84. <!-- Test deps -->
  85. <dependency>
  86. <groupId>junit</groupId>
  87. <artifactId>junit</artifactId>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.mockito</groupId>
  92. <artifactId>mockito-core</artifactId>
  93. <scope>test</scope>
  94. <exclusions>
  95. <exclusion>
  96. <groupId>org.hamcrest</groupId>
  97. <artifactId>hamcrest-core</artifactId>
  98. </exclusion>
  99. </exclusions>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.hamcrest</groupId>
  103. <artifactId>hamcrest-library</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. </dependencies>
  107.  
  108. </project>
Advertisement
Add Comment
Please, Sign In to add comment