File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed
Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff 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-
251246Here is the [ public Selenium Maven
252247repository] ( http://repo1.maven.org/maven2/org/seleniumhq/selenium/ ) .
253248
@@ -302,13 +297,18 @@ and deploy into you local maven repository (`~/.m2/repository`), while
302297skipping 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
310310This 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
312312the name.
313313
314314## Useful Resources
Original file line number Diff line number Diff line change 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+
496506task :release => JAVA_RELEASE_TARGETS + [
497507 # Until we mananage to migrate to Buck entirely.
498508 '//java/server/src/org/openqa/grid/selenium:selenium' ,
You can’t perform that action at this time.
0 commit comments