Skip to content

Commit

Permalink
Remove deprecated Maven build from source documentation and pom.xml f…
Browse files Browse the repository at this point in the history
…iles.

This was previously marked deprecated in 4.27.x: 4c8da99

See https://protobuf.dev/news/2024-06-26/ for the corresponding News announcement.

PiperOrigin-RevId: 648505157
  • Loading branch information
zhangskz authored and Copybara-Service committed Jul 1, 2024
1 parent 91dfd86 commit 1dbd154
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 1,183 deletions.
2 changes: 1 addition & 1 deletion java/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sh_test(
"//java/util",
] + glob([
"pom.xml",
"*/pom.xml",
# "*/pom.xml", # TODO: Get from pom_template.xml
"test/linkage-monitor-check-bom/pom.xml",
]),
tags = [
Expand Down
44 changes: 0 additions & 44 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,50 +93,6 @@ package).

4) Install the classes wherever you prefer.

### Build from Source - With Maven

WARNING: Building from source with Maven is deprecated and will be removed in the 4.28.x release.

1) Install Apache Maven if you don't have it:

http://maven.apache.org/

2) Build the C++ code, or obtain a binary distribution of protoc (see
the toplevel [README.md](../README.md)). If you install a binary
distribution, make sure that it is the same version as this package.
If in doubt, run:

$ protoc --version

You will need to place the protoc executable in ../src. (If you
built it yourself, it should already be there.)

3) Run the tests:

$ mvn test

If some tests fail, this library may not work correctly on your
system. Continue at your own risk.

4) Install the library into your Maven repository:

$ mvn install

5) If you do not use Maven to manage your own build, you can build a
.jar file to use:

$ mvn package

The .jar will be placed in the "target" directory.

The above instructions will install 2 maven artifacts:

* protobuf-java: The core Java Protocol Buffers library. Most users only
need this artifact.
* protobuf-java-util: Utilities to work with protos. It contains JSON support
as well as utilities to work with proto3 well-known
types.

## Compatibility Notice

* Protobuf minor version releases are backwards-compatible. If your code
Expand Down
3 changes: 0 additions & 3 deletions java/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ load("//java/internal:testing.bzl", "junit_tests")
load("//upb/cmake:build_defs.bzl", "staleness_test")

LITE_SRCS = [
# Keep in sync with `//java/lite:pom.xml`.
"src/main/java/com/google/protobuf/AbstractMessageLite.java",
"src/main/java/com/google/protobuf/AbstractParser.java",
"src/main/java/com/google/protobuf/AbstractProtobufList.java",
Expand Down Expand Up @@ -523,7 +522,6 @@ protobuf_java_library(
)

LITE_TEST_EXCLUSIONS = [
# Keep in sync with //java/lite:pom.xml id=copy-test-source-files execution.
"src/test/java/com/google/protobuf/AbstractMessageTest.java",
"src/test/java/com/google/protobuf/AbstractProto2SchemaTest.java",
"src/test/java/com/google/protobuf/AnyTest.java",
Expand Down Expand Up @@ -602,7 +600,6 @@ pkg_files(
"BUILD.bazel",
"generate-sources-build.xml",
"generate-test-sources-build.xml",
"pom.xml",
"pom_template.xml",
],
strip_prefix = strip_prefix.from_root(""),
Expand Down
164 changes: 0 additions & 164 deletions java/core/pom.xml

This file was deleted.

1 change: 0 additions & 1 deletion java/kotlin-lite/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ pkg_files(
"generate-sources-build.xml",
"generate-test-sources-build.xml",
"lite.awk",
"pom.xml",
"pom_template.xml",
"process-lite-sources-build.xml",
],
Expand Down
Loading

0 comments on commit 1dbd154

Please sign in to comment.