Skip to content

Instantly share code, notes, and snippets.

@suztomo
Created May 9, 2023 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suztomo/af1d49b2e4cebb57246dbbf5438d30d8 to your computer and use it in GitHub Desktop.
Save suztomo/af1d49b2e4cebb57246dbbf5438d30d8 to your computer and use it in GitHub Desktop.
Pom.xml modification (not finished) to pass Java 7 build
suztomo@suztomo2:~/google-http-java-client$ cat /tmp/x
diff --git a/google-http-client-bom/pom.xml b/google-http-client-bom/pom.xml
index dbde7bb8..187b1467 100644
--- a/google-http-client-bom/pom.xml
+++ b/google-http-client-bom/pom.xml
@@ -114,6 +114,7 @@
</dependencyManagement>
<build>
<plugins>
+ <!-- Java 7 build
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -125,6 +126,7 @@
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
+ -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
diff --git a/google-http-client-protobuf/pom.xml b/google-http-client-protobuf/pom.xml
index 4e882cfe..79113bd4 100644
--- a/google-http-client-protobuf/pom.xml
+++ b/google-http-client-protobuf/pom.xml
@@ -12,6 +12,7 @@
<name>Protocol Buffer extensions to the Google HTTP Client Library for Java.</name>
<build>
+ <!-- Java 7 test
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
@@ -19,6 +20,7 @@
<version>1.7.1</version>
</extension>
</extensions>
+ -->
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
diff --git a/pom.xml b/pom.xml
index 6e2a4904..50c6fdb0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -535,10 +535,12 @@
</execution>
</executions>
</plugin>
+ <!-- Testing with Java 7
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>
+ -->
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
diff --git a/samples/dailymotion-simple-cmdline-sample/pom.xml b/samples/dailymotion-simple-cmdline-sample/pom.xml
index ee27e3fb..291bbfd7 100644
--- a/samples/dailymotion-simple-cmdline-sample/pom.xml
+++ b/samples/dailymotion-simple-cmdline-sample/pom.xml
@@ -55,6 +55,7 @@
<skip>true</skip>
</configuration>
</plugin>
+ <!-- Java 7 test
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -62,6 +63,7 @@
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
+ -->
</plugins>
<finalName>${project.artifactId}-${project.version}</finalName>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment