{"id":15009293,"url":"https://github.com/esanchezros/bigquery-maven-plugin","last_synced_at":"2025-10-03T18:30:51.215Z","repository":{"id":39817082,"uuid":"142691608","full_name":"esanchezros/bigquery-maven-plugin","owner":"esanchezros","description":"Maven plugin for managing BigQuery datasets, tables and views","archived":true,"fork":false,"pushed_at":"2022-11-16T09:21:26.000Z","size":60,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-29T16:41:20.917Z","etag":null,"topics":["bigquery","java","maven","maven-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/esanchezros.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-28T16:13:11.000Z","updated_at":"2022-11-16T10:33:23.000Z","dependencies_parsed_at":"2022-08-28T02:50:37.381Z","dependency_job_id":null,"html_url":"https://github.com/esanchezros/bigquery-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esanchezros%2Fbigquery-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esanchezros%2Fbigquery-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esanchezros%2Fbigquery-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esanchezros%2Fbigquery-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esanchezros","download_url":"https://codeload.github.com/esanchezros/bigquery-maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235173147,"owners_count":18947449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","java","maven","maven-plugin"],"created_at":"2024-09-24T19:24:18.673Z","updated_at":"2025-10-03T18:30:45.850Z","avatar_url":"https://github.com/esanchezros.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"image:https://travis-ci.org/esanchezros/bigquery-maven-plugin.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/esanchezros/bigquery-maven-plugin\"]\nimage:https://codecov.io/gh/esanchezros/bigquery-maven-plugin/branch/master/graph/badge.svg[\"codecov\", link=\"https://codecov.io/gh/esanchezros/bigquery-maven-plugin\"]\nimage:https://img.shields.io/hexpm/l/plug.svg[\"Apache 2\", link=\"http://www.apache.org/licenses/LICENSE-2.0\"]\n\n= BigQuery Maven plugin\n\nThis Maven plugin provides goals to create datasets, tables and views in Google BigQuery.\n\n== How to use\n\nIn your application, add the following plugin to your pom.xml:\n\n[source, xml]\n----\n\u003cplugin\u003e\n    \u003cgroupId\u003eio.allune\u003c/groupId\u003e\n    \u003cartifactId\u003ebigquery-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003cconfiguration\u003e\n        ...\n    \u003c/configuration\u003e\n\u003c/plugin\u003e\n----\n\n== Supported goals\n\n|===\n|Goal | Description\n\n|bigquery:create|Creates the dataset, tables and views defined in the plugin configuration.\n|bigquery:create-dataset|Creates the dataset defined in the plugin configuration.\n|bigquery:clean|Removes the dataset, tables and views defined in the plugin configuration.\n|bigquery:help|Displays help information on the plugin. Use `mvn bigquery:help -Ddetail=true -Dgoal=[goal]` for detailed goal documentation.\n|===\n\n== Example plugin configuration\n\n[source, xml]\n----\n\u003cplugin\u003e\n    \u003cgroupId\u003eio.allune\u003c/groupId\u003e\n    \u003cartifactId\u003ebigquery-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003cconfiguration\u003e\n        \u003cprojectId\u003eyour_project_id\u003c/projectId\u003e\n        \u003ccredentialsFile\u003e/credentials.json\u003c/credentialsFile\u003e\n        \u003cdatasetName\u003eyour_dataset\u003c/datasetName\u003e\n        \u003cdataLocation\u003eEU\u003c/dataLocation\u003e\n    \u003c/configuration\u003e\n    \u003cexecutions\u003e\n        \u003cexecution\u003e\n            \u003cid\u003ecreate\u003c/id\u003e\n            \u003cgoals\u003e\n                \u003cgoal\u003ecreate\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cphase\u003epre-integration-test\u003c/phase\u003e\n            \u003cconfiguration\u003e\n                \u003cskip\u003e${skipTests}\u003c/skip\u003e\n                \u003ccreateDataset\u003etrue\u003c/createDataset\u003e\n                \u003csourceUri\u003egs://folder/data.json\u003c/sourceUri\u003e\n                \u003cformatOptions\u003eCSV\u003c/formatOptions\u003e\n                \u003cnativeSchemaLocations\u003efile://${project.basedir}/src/main/resources/bigquery/schemas/dir1\u003c/nativeSchemaLocations\u003e\n                \u003cexternalSchemaLocations\u003eclasspath:/bigquery/schemas/dir2\u003c/externalSchemaLocations\u003e\n                \u003cviewLocations\u003efile://${project.basedir}/src/main/resources/bigquery/views\u003c/viewLocations\u003e\n            \u003c/configuration\u003e\n        \u003c/execution\u003e\n        \u003cexecution\u003e\n            \u003cid\u003eclean\u003c/id\u003e\n            \u003cgoals\u003e\n                \u003cgoal\u003eclean\u003c/goal\u003e\n            \u003c/goals\u003e\n            \u003cphase\u003epost-integration-test\u003c/phase\u003e\n            \u003cconfiguration\u003e\n                \u003cskip\u003e${skipTests}\u003c/skip\u003e\n                \u003cdeleteDataset\u003etrue\u003c/deleteDataset\u003e\n                \u003cforceDeleteDataset\u003etrue\u003c/forceDeleteDataset\u003e\n            \u003c/configuration\u003e\n        \u003c/execution\u003e\n    \u003c/executions\u003e\n\u003c/plugin\u003e\n----\n\n== Schema definition\n\nA JSON schema file consists of a JSON array that contains the following:\n\n* (Optional) The column's description\n* The column name\n* The column's data type\n* (Optional) The column's mode (if unspecified, mode defaults to NULLABLE)\n\nReference: https://cloud.google.com/bigquery/docs/schemas\n\n=== Table name\n\nThe schema file name is used as the table name.\n\n=== Example\n\n==== test_table\n\n[source, json]\n----\n[\n  {\n    \"name\": \"id\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"STRING\"\n  },\n  {\n    \"name\": \"subject\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"STRING\"\n  },\n  {\n    \"name\": \"from\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"STRING\"\n  },\n  {\n    \"name\": \"to\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"STRING\"\n  },\n  {\n    \"name\": \"cc\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"STRING\"\n  },\n  {\n    \"name\": \"body\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"STRING\"\n  },\n  {\n    \"name\": \"time\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"TIME\"\n  },\n  {\n    \"name\": \"timestamp\",\n    \"mode\": \"NULLABLE\",\n    \"type\": \"TIMESTAMP\"\n  },\n  {\n    \"name\": \"fields\",\n    \"type\": \"RECORD\",\n    \"mode\": \"REPEATED\",\n    \"fields\": [\n      {\n        \"name\": \"field1\",\n        \"type\": \"STRING\",\n        \"mode\": \"REQUIRED\"\n      },\n      {\n        \"name\": \"moreFields\",\n        \"type\": \"RECORD\",\n        \"mode\": \"REPEATED\",\n        \"fields\": [\n          {\n            \"name\": \"field1\",\n            \"type\": \"STRING\",\n            \"mode\": \"REQUIRED\"\n          },\n          {\n            \"name\": \"field2\",\n            \"type\": \"STRING\",\n            \"mode\": \"REQUIRED\"\n          }\n        ]\n      }\n    ]\n  }\n]\n\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesanchezros%2Fbigquery-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesanchezros%2Fbigquery-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesanchezros%2Fbigquery-maven-plugin/lists"}