From 027dc255e7f47086aaac9cb613a042a504471434 Mon Sep 17 00:00:00 2001 From: Jason Hoetger Date: Sun, 11 Dec 2016 11:15:29 -0800 Subject: [PATCH 1/2] Removed ossrh parent pom --- pom.xml | 91 ++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 78 insertions(+), 13 deletions(-) diff --git a/pom.xml b/pom.xml index 07dfd19c7..878c240a6 100644 --- a/pom.xml +++ b/pom.xml @@ -16,15 +16,9 @@ pom - 3.0.1 + 3.0.4 - - org.sonatype.oss - oss-parent - 9 - - The Apache Software License, Version 2.0 @@ -52,6 +46,17 @@ HEAD + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + UTF-8 UTF-8 @@ -128,7 +133,7 @@ org.apache.maven.plugins maven-resources-plugin - 3.0.1 + 3.0.2 org.apache.maven.plugins @@ -175,11 +180,6 @@ maven-dependency-plugin 2.10 - - org.apache.maven.plugins - maven-gpg-plugin - 1.6 - @@ -441,6 +441,71 @@ + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + true + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + attach-sources + package + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.4 + + + attach-javadocs + package + + jar + + + ${javadoc.opts} + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://oss.sonatype.org/ + false + + org.apache.maven.plugins maven-release-plugin From 32051f62ac417c1125f7b100484d184a48c1aa34 Mon Sep 17 00:00:00 2001 From: Jason Hoetger Date: Sun, 11 Dec 2016 12:09:29 -0800 Subject: [PATCH 2/2] Always building distributable zip file, even when release profile is not specified --- README.md | 4 +- browsermob-dist/pom.xml | 139 ++++++++++++++++++---------------------- 2 files changed, 63 insertions(+), 80 deletions(-) diff --git a/README.md b/README.md index 8514bbd80..06c37254f 100644 --- a/README.md +++ b/README.md @@ -398,9 +398,9 @@ The BrowserMobProxyServer implementation uses native DNS resolution by default, ## Building the latest from source -You'll need maven (`brew install maven` if you're on OS X); use the `release` profile to generate the batch files from this repository. +You'll need maven (`brew install maven` if you're on OS X): - [~]$ mvn -DskipTests -P release + [~]$ mvn -DskipTests You'll find the standalone BrowserMob Proxy distributable zip at `browsermob-dist/target/browsermob-proxy-2.1.3-SNAPSHOT-bin.zip`. Unzip the contents and run the `browsermob-proxy` or `browsermob-proxy.bat` files in the `bin` directory. diff --git a/browsermob-dist/pom.xml b/browsermob-dist/pom.xml index 185579327..91e970e37 100644 --- a/browsermob-dist/pom.xml +++ b/browsermob-dist/pom.xml @@ -1,5 +1,6 @@ - + browsermob-proxy net.lightbody.bmp @@ -77,93 +78,75 @@ package - + org.apache.maven.plugins - maven-jar-plugin + maven-install-plugin - true + true - + org.apache.maven.plugins - maven-install-plugin + maven-jar-plugin + ${maven-jar-plugin.version} - true + true + false - - - - - - - release - - - - - org.apache.maven.plugins - maven-jar-plugin - ${maven-jar-plugin.version} + + org.apache.maven.plugins + maven-shade-plugin + 2.4.3 + + + package + + shade + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + net.lightbody.bmp.proxy.Main + + + false + + + + + + maven-assembly-plugin + 3.0.0 + + + make-bundles + + single + + package - true - false + + assembly.xml + + ${zip.name} - - - org.apache.maven.plugins - maven-shade-plugin - 2.4.3 - - - package - - shade - - - - - *:* - - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - - - - - - net.lightbody.bmp.proxy.Main - - - false - - - - - - maven-assembly-plugin - 3.0.0 - - - make-bundles - - single - - package - - - assembly.xml - - ${zip.name} - - - - - - - - + + + + + \ No newline at end of file