My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 298 attachment: osgi.patch (3.3 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Index: pom.xml
===================================================================
--- pom.xml (revision 424)
+++ pom.xml (working copy)
@@ -10,8 +10,7 @@
</parent>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
- <version>2.4.2-pre</version>
- <packaging>jar</packaging>
+ <version>2.4.2-SNAPSHOT</version>
<name>Protocol Buffer Java API</name>
<description>
Protocol Buffers are a way of encoding structured data in an efficient yet
@@ -130,7 +129,77 @@
</execution>
</executions>
</plugin>
+ <!-- OSGi manifest configuration -->
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>2.3.7</version>
+ <configuration>
+ <instructions>
+ <Bundle-Copyright>Copyright (C) 2008 Google Inc.</Bundle-Copyright>
+ <Bundle-DocURL>http://code.google.com/p/protobuf/</Bundle-DocURL>
+ <Bundle-RequiredExecutionEnvironment>
+ J2SE-1.5,JavaSE-1.6
+ </Bundle-RequiredExecutionEnvironment>
+ <Export-Package>com.google.protobuf</Export-Package>
+ <Import-Package>!*</Import-Package>
+ <_nouses>true</_nouses>
+ <_removeheaders>
+ Embed-Dependency,Embed-Transitive,
+ Built-By,Tool,Created-By,Build-Jdk,
+ Originally-Created-By,Archiver-Version,
+ Include-Resource,Private-Package,
+ Ignore-Package,Bnd-LastModified
+ </_removeheaders>
+ </instructions>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>prepare-package</phase>
+ <goals><goal>manifest</goal></goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- Package OSGi manifest in final JAR, also create a JAR of the test classes -->
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.1</version>
+ <configuration>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+ </configuration>
+ </plugin>
</plugins>
+ <pluginManagement>
+ <plugins>
+ <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <versionRange>[1.3,)</versionRange>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore></ignore>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
</build>
<profiles>
<profile>
Powered by Google Project Hosting