Skip to content

Commit 5fa739c

Browse files
committed
Update the maven docs in the README
1 parent 4bfb699 commit 5fa739c

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,6 @@ can run all the javascript tests using:
243243

244244
## Maven POM files
245245

246-
Ignore the [Maven](http://maven.apache.org/) POM file present in the
247-
same directory. It is only used for releasing to jars to Maven
248-
Repository (public or local), and is not considered the main build
249-
mechanism.
250-
251246
Here is the [public Selenium Maven
252247
repository](http://repo1.maven.org/maven2/org/seleniumhq/selenium/).
253248

@@ -302,13 +297,18 @@ and deploy into you local maven repository (`~/.m2/repository`), while
302297
skipping Selenium's own tests.
303298

304299
```sh
305-
./go release
306-
cd maven
307-
mvn clean install
300+
./go maven-dry-run
301+
```
302+
303+
Read the build output to find the maven jars. You can also publish
304+
directly using Buck:
305+
306+
```sh
307+
buck publish -r your-repo //java/client/src/org/openqa/selenium:selenium
308308
```
309309

310310
This sequence will push some seven or so jars into your local Maven
311-
repository with something like 'selenium-server-2.0-SNAPSHOT.jar' as
311+
repository with something like 'selenium-server-3.0-SNAPSHOT.jar' as
312312
the name.
313313

314314
## Useful Resources

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,16 @@ end
493493
# cp "build/java/client/src/org/openqa/selenium/client-combined-v3.zip", "build/dist/selenium-java-#{version}.zip"
494494
#end
495495

496+
497+
task :'maven-dry-run' => JAVA_RELEASE_TARGETS do |t|
498+
t.prerequisites.each do |p|
499+
if JAVA_RELEASE_TARGETS.include?(p)
500+
Buck::buck_cmd.call('publish', ['--dry-run', '--to-maven-central', p])
501+
end
502+
end
503+
end
504+
505+
496506
task :release => JAVA_RELEASE_TARGETS + [
497507
# Until we mananage to migrate to Buck entirely.
498508
'//java/server/src/org/openqa/grid/selenium:selenium',

0 commit comments

Comments
 (0)