< prev index next >

core/pom.xml

Print this page

        

@@ -31,63 +31,111 @@
    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
    WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 -->
 <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">
         <modelVersion>4.0.0</modelVersion>
-        <parent>
+        <!-- <parent>
                 <groupId>org.openjdk.jmc</groupId>
                 <artifactId>missioncontrol</artifactId>
                 <version>7.0.0-SNAPSHOT</version>
-        </parent>
+        </parent> -->
+        <groupId>org.openjdk.jmc</groupId>
         <artifactId>missioncontrol.core</artifactId>
+        <version>7.0.0-SNAPSHOT</version>
         <packaging>pom</packaging>
+
+        <properties>
+                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+                <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+                <maven.compiler.source>1.7</maven.compiler.source>
+                <maven.compiler.target>1.7</maven.compiler.target>
+                <manifest-location>META-INF</manifest-location>
+        </properties>
+
         <modules>
                 <module>org.openjdk.jmc.common</module>
                 <module>org.openjdk.jmc.flightrecorder</module>
                 <module>org.openjdk.jmc.flightrecorder.rules</module>
                 <module>org.openjdk.jmc.flightrecorder.rules.jdk</module>
                 <module>tests</module>
         </modules>
+
+        <distributionManagement>
+                <snapshotRepository>
+                        <id>jmc-publish-snapshot</id>
+                        <url>${snapshot.repo}</url>
+                </snapshotRepository>
+        </distributionManagement>
+
+        <dependencyManagement>
+                <dependencies>
+                        <dependency>
+                                <groupId>org.codehaus.plexus</groupId>
+                                <artifactId>plexus-utils</artifactId>
+                                <version>2.0.7</version>
+                        </dependency>
+                        <dependency>
+                                <groupId>junit</groupId>
+                                <artifactId>junit</artifactId>
+                                <version>4.12</version>
+                                <scope>test</scope>
+                        </dependency>
+                </dependencies>
+        </dependencyManagement>
+
+
         <build>
+                <pluginManagement>
                 <plugins>
                         <plugin>
-                                <groupId>org.apache.maven.plugins</groupId>
-                                <artifactId>maven-source-plugin</artifactId>
-                                <version>3.0.1</version>
-                                <executions>
-                                        <execution>
-                                                <id>attach-sources</id>
-                                                <goals>
-                                                        <goal>jar</goal>
-                                                </goals>
-                                        </execution>
-                                </executions>
+                                        <artifactId>maven-jar-plugin</artifactId>
+                                        <version>2.3.1</version>
+                                        <configuration>
+                                                <archive>
+                                                        <manifestFile>${manifest-location}/MANIFEST.MF</manifestFile>
+                                                </archive>
+                                        </configuration>
+                                </plugin>
+                                <plugin>
+                                        <groupId>org.apache.felix</groupId>
+                                        <artifactId>maven-bundle-plugin</artifactId>
+                                        <version>3.5.1</version>
+                                        <configuration>
+                                                <manifestLocation>${manifest-location}</manifestLocation>
+                                        </configuration>
+                                </plugin>
+                        </plugins>
+                </pluginManagement>
+                <plugins>
+                        <plugin>
+                                <groupId>org.sonatype.plugins</groupId>
+                                <artifactId>nexus-staging-maven-plugin</artifactId>
+                                <version>1.6.8</version>
+                                <extensions>true</extensions>
+                                <configuration>
+                                        <serverId>jmc-publish-snapshot</serverId>
+                                        <autoReleaseAfterClose>true</autoReleaseAfterClose>
+                                </configuration>
                         </plugin>
                         <plugin>
                                 <groupId>org.apache.maven.plugins</groupId>
-                                <artifactId>maven-javadoc-plugin</artifactId>
-                                <version>3.0.0</version>
+                                <artifactId>maven-gpg-plugin</artifactId>
+                                <version>1.6</version>
                                 <executions>
                                         <execution>
-                                                <id>attach-javadocs</id>
+                                                <id>gpg-sign</id>
+                                                <phase>deploy</phase>
                                                 <goals>
-                                                        <goal>jar</goal>
+                                                        <goal>sign</goal>
                                                 </goals>
                                         </execution>
                                 </executions>
-                                <configuration>
-                                        <additionalOptions>
-                                                <additionalOption>-Xdoclint:all</additionalOption>
-                                                <additionalOption>-Xdoclint:-missing</additionalOption>
-                                        </additionalOptions>
-                                        <excludePackageNames>*.internal</excludePackageNames>
-                                        <quiet>true</quiet>
-                                        <failOnError>false</failOnError>
-                                </configuration>
+                        </plugin>
+                        <plugin>
+                                <groupId>org.apache.felix</groupId>
+                                <artifactId>maven-bundle-plugin</artifactId>
+                                <version>3.5.1</version>
                         </plugin>
                 </plugins>
         </build>
-        <properties>
-                <maven.compiler.source>1.7</maven.compiler.source>
-                <maven.compiler.target>1.7</maven.compiler.target>
-        </properties>
+
 </project>
< prev index next >