GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — google-cloud-java/java-pubsub/samples at main · googleapis/google-cloud-java

Expand file tree

/

samples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

samples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
install-without-bom
install-without-bom
 
 
snapshot
snapshot
 
 
snippets
snippets
 
 
README.md
README.md
 
 
checkstyle-suppressions.xml
checkstyle-suppressions.xml
 
 
pom.xml
pom.xml
 
 

README.md

How to run the samples

  1. Clone this repo and navigate to the snippets directory.

    git clone https://github.com/googleapis/java-pubsub
    cd java-pubsub/samples/snippets
  2. Obtain GCP user access credentials via a web flow for your application.

    gcloud auth application-default login
  3. With Maven installed, run a sample that has the to-do section completed:

    mvn clean compile exec:java -Dexec.mainClass=pubsub.CreateTopicExample
  4. To run the samples test:

    mvn -Dtest=pubsub.AdminIT test
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.