You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -31,18 +31,18 @@ Pomgen uses the lockfiles generated by [rules_jvm_external](https://github.com/b
31
31
- pomgen >= 2.0.0 is compatible with rules_jvm_external >= 5.0
32
32
33
33
34
-
## Setup
34
+
## Setup 101
35
35
36
-
- Add a `java_library` rule to your Bazel Package as the [default target](https://bazel.build/concepts/labels) (the target has same name as its Bazel Package, ie the directory the BUILD file lives in)
37
-
-For each Maven Artifact producing Bazel Package, a [BUILD.pom](examples/hello-world/healthyfoods/fruit-api/MVN-INF/BUILD.pom) file defines Maven specific metadata
38
-
-A special [marker file](examples/hello-world/healthyfoods/MVN-INF/LIBRARY.root)groups one or more Maven Artifacts into a Library
36
+
- Add a `java_library` rule that builds the jar, make it the [default target](https://bazel.build/concepts/labels) (or [configure](docs/mdfiles.md#maven_artifacttarget_name)the target name)
37
+
-Add a [MVN-INF/BUILD.pom](examples/hello-world/healthyfoods/fruit-api/MVN-INF/BUILD.pom) file to define Maven specific metadata (artifactId etc)
38
+
-Add a [MVN-INF/LIBRARY.root](examples/hello-world/healthyfoods/MVN-INF/LIBRARY.root)file to mark the Bazel Package as a library with a single jar artifact
39
39
40
-
See [this doc](docs/mdfiles.md) for more information on pomgen files.
40
+
See [this doc](docs/mdfiles.md) for more information on pomgen metadata files.
41
41
42
42
43
43
## Bazel Package References
44
44
45
-
The BUILD file of a Maven Artifact producing Bazel Package may obviously reference other Bazel Packages in the repository. pomgen will follow these references and generate pom.xmls for all referenced Bazel Packages.
45
+
The BUILD file of a Maven Artifact producing Bazel Package may obviously reference other Bazel Packages in the repository. pomgen will follow these references and generate pom.xml files for all referenced Bazel Packages.
0 commit comments