Skip to content

Commit

Permalink
Update the maven docs in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jun 7, 2016
1 parent 4bfb699 commit 5fa739c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,6 @@ can run all the javascript tests using:

## Maven POM files

Ignore the [Maven](http://maven.apache.org/) POM file present in the
same directory. It is only used for releasing to jars to Maven
Repository (public or local), and is not considered the main build
mechanism.

Here is the [public Selenium Maven
repository](http://repo1.maven.org/maven2/org/seleniumhq/selenium/).

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

```sh
./go release
cd maven
mvn clean install
./go maven-dry-run
```

Read the build output to find the maven jars. You can also publish
directly using Buck:

```sh
buck publish -r your-repo //java/client/src/org/openqa/selenium:selenium
```

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

## Useful Resources
Expand Down
10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,16 @@ end
# cp "build/java/client/src/org/openqa/selenium/client-combined-v3.zip", "build/dist/selenium-java-#{version}.zip"
#end


task :'maven-dry-run' => JAVA_RELEASE_TARGETS do |t|
t.prerequisites.each do |p|
if JAVA_RELEASE_TARGETS.include?(p)
Buck::buck_cmd.call('publish', ['--dry-run', '--to-maven-central', p])
end
end
end


task :release => JAVA_RELEASE_TARGETS + [
# Until we mananage to migrate to Buck entirely.
'//java/server/src/org/openqa/grid/selenium:selenium',
Expand Down

0 comments on commit 5fa739c

Please sign in to comment.