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:
243
243
244
244
## Maven POM files
245
245
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
-
251
246
Here is the [ public Selenium Maven
252
247
repository] ( http://repo1.maven.org/maven2/org/seleniumhq/selenium/ ) .
253
248
@@ -302,13 +297,18 @@ and deploy into you local maven repository (`~/.m2/repository`), while
302
297
skipping Selenium's own tests.
303
298
304
299
``` 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
308
308
```
309
309
310
310
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
312
312
the name.
313
313
314
314
## Useful Resources
Original file line number Diff line number Diff line change 493
493
# cp "build/java/client/src/org/openqa/selenium/client-combined-v3.zip", "build/dist/selenium-java-#{version}.zip"
494
494
#end
495
495
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
+
496
506
task :release => JAVA_RELEASE_TARGETS + [
497
507
# Until we mananage to migrate to Buck entirely.
498
508
'//java/server/src/org/openqa/grid/selenium:selenium' ,
You can’t perform that action at this time.
0 commit comments