|
19 | 19 |
|
20 | 20 | <parent>
|
21 | 21 | <groupId>net.openhft</groupId>
|
22 |
| - <artifactId>root-parent-pom</artifactId> |
23 |
| - <version>1.1.12</version> |
| 22 | + <artifactId>java-parent-pom</artifactId> |
| 23 | + <version>1.1.16</version> |
24 | 24 | <relativePath />
|
25 | 25 | </parent>
|
26 | 26 |
|
27 | 27 | <modelVersion>4.0.0</modelVersion>
|
28 |
| - <artifactId>Java-Runtime-Compiler</artifactId> |
| 28 | + <artifactId>compiler</artifactId> |
29 | 29 | <version>2.3.2-SNAPSHOT</version>
|
30 |
| - <packaging>pom</packaging> |
| 30 | + <packaging>bundle</packaging> |
31 | 31 |
|
32 |
| - <name>Java Compiler Parent</name> |
33 |
| - <description>Java Runtime Compiler library</description> |
| 32 | + <name>OpenHFT/Java-Runtime-Compiler</name> |
| 33 | + <description>Java Runtime Compiler library.</description> |
34 | 34 |
|
35 |
| - <modules> |
36 |
| - <module>compiler</module> |
37 |
| - </modules> |
| 35 | + <dependencyManagement> |
| 36 | + <dependencies> |
| 37 | + |
| 38 | + <dependency> |
| 39 | + <groupId>net.openhft</groupId> |
| 40 | + <artifactId>third-party-bom</artifactId> |
| 41 | + <type>pom</type> |
| 42 | + <version>3.6.9</version> |
| 43 | + <scope>import</scope> |
| 44 | + </dependency> |
| 45 | + |
| 46 | + </dependencies> |
| 47 | + </dependencyManagement> |
| 48 | + |
| 49 | + <dependencies> |
| 50 | + |
| 51 | + <dependency> |
| 52 | + <groupId>org.slf4j</groupId> |
| 53 | + <artifactId>slf4j-api</artifactId> |
| 54 | + </dependency> |
| 55 | + |
| 56 | + <dependency> |
| 57 | + <groupId>com.intellij</groupId> |
| 58 | + <artifactId>annotations</artifactId> |
| 59 | + </dependency> |
| 60 | + |
| 61 | + <dependency> |
| 62 | + <groupId>org.easymock</groupId> |
| 63 | + <artifactId>easymock</artifactId> |
| 64 | + <scope>test</scope> |
| 65 | + </dependency> |
| 66 | + |
| 67 | + <dependency> |
| 68 | + <groupId>junit</groupId> |
| 69 | + <artifactId>junit</artifactId> |
| 70 | + <scope>test</scope> |
| 71 | + </dependency> |
| 72 | + |
| 73 | + <dependency> |
| 74 | + <groupId>org.slf4j</groupId> |
| 75 | + <artifactId>slf4j-simple</artifactId> |
| 76 | + <scope>test</scope> |
| 77 | + </dependency> |
| 78 | + |
| 79 | + </dependencies> |
| 80 | + |
| 81 | + <build> |
| 82 | + |
| 83 | + <plugins> |
| 84 | + <plugin> |
| 85 | + <groupId>org.apache.maven.plugins</groupId> |
| 86 | + <artifactId>maven-compiler-plugin</artifactId> |
| 87 | + <version>3.6.2</version> |
| 88 | + <configuration> |
| 89 | + <source>1.8</source> |
| 90 | + <target>1.8</target> |
| 91 | + </configuration> |
| 92 | + </plugin> |
| 93 | + <!-- |
| 94 | + generate maven dependencies versions file that can be used later |
| 95 | + to install the right bundle in test phase. |
| 96 | +
|
| 97 | + The file is: |
| 98 | +
|
| 99 | + target/classes/META-INF/maven/dependencies.properties |
| 100 | + --> |
| 101 | + <plugin> |
| 102 | + <groupId>org.apache.servicemix.tooling</groupId> |
| 103 | + <artifactId>depends-maven-plugin</artifactId> |
| 104 | + <executions> |
| 105 | + <execution> |
| 106 | + <id>generate-depends-file</id> |
| 107 | + <goals> |
| 108 | + <goal>generate-depends-file</goal> |
| 109 | + </goals> |
| 110 | + </execution> |
| 111 | + </executions> |
| 112 | + </plugin> |
| 113 | + <plugin> |
| 114 | + <groupId>org.apache.felix</groupId> |
| 115 | + <artifactId>maven-bundle-plugin</artifactId> |
| 116 | + <version>3.3.0</version> |
| 117 | + <extensions>true</extensions> |
| 118 | + <configuration> |
| 119 | + <instructions> |
| 120 | + <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> |
| 121 | + <Bundle-Name>OpenHFT :: ${project.artifactId}</Bundle-Name> |
| 122 | + <Bundle-Version>${project.version}</Bundle-Version> |
| 123 | + <Export-Package> |
| 124 | + net.openhft.compiler.*;-noimport:=true |
| 125 | + </Export-Package> |
| 126 | + </instructions> |
| 127 | + </configuration> |
| 128 | + <executions> |
| 129 | + <!-- |
| 130 | + This execution makes sure that the manifest is available |
| 131 | + when the tests are executed |
| 132 | + --> |
| 133 | + <execution> |
| 134 | + <goals> |
| 135 | + <goal>manifest</goal> |
| 136 | + </goals> |
| 137 | + </execution> |
| 138 | + </executions> |
| 139 | + </plugin> |
| 140 | + </plugins> |
| 141 | + |
| 142 | + </build> |
| 143 | + |
| 144 | + <!-- todo remove once next parent pom is adopted --> |
| 145 | + <repositories> |
| 146 | + <repository> |
| 147 | + <id>sonatype-nexus-staging</id> |
| 148 | + <url>https://oss.sonatype.org/content/repositories/staging</url> |
| 149 | + <releases> |
| 150 | + <enabled>true</enabled> |
| 151 | + </releases> |
| 152 | + </repository> |
| 153 | + </repositories> |
38 | 154 |
|
39 | 155 | <scm>
|
40 | 156 | < url>scm:git: [email protected]:OpenHFT/Java-Runtime-Compiler.git</ url>
|
|
0 commit comments