{"action":"created","issue":{"url":"https://api.github.com/repos/flyway/flyway/issues/996","labels_url":"https://api.github.com/repos/flyway/flyway/issues/996/labels{/name}","comments_url":"https://api.github.com/repos/flyway/flyway/issues/996/comments","events_url":"https://api.github.com/repos/flyway/flyway/issues/996/events","html_url":"https://github.com/flyway/flyway/issues/996","id":69901684,"number":996,"title":"AWS s3 access required when building the fyway-core / flyway-gradle-plugin","user":{"login":"bolke01","id":11995294,"avatar_url":"https://avatars.githubusercontent.com/u/11995294?v=3","gravatar_id":"","url":"https://api.github.com/users/bolke01","html_url":"https://github.com/bolke01","followers_url":"https://api.github.com/users/bolke01/followers","following_url":"https://api.github.com/users/bolke01/following{/other_user}","gists_url":"https://api.github.com/users/bolke01/gists{/gist_id}","starred_url":"https://api.github.com/users/bolke01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolke01/subscriptions","organizations_url":"https://api.github.com/users/bolke01/orgs","repos_url":"https://api.github.com/users/bolke01/repos","events_url":"https://api.github.com/users/bolke01/events{/privacy}","received_events_url":"https://api.github.com/users/bolke01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-21T17:11:22Z","updated_at":"2015-04-22T13:41:35Z","closed_at":null,"body":"Using the command \" mvn compile    -P-CommercialDBTest \"  to build the flyway-gradle-plugin fails due to a need for the s3 access.\r\n\r\ncan someone help to resolve this oddity.  \r\n\r\nNote I'm inside the filrewall in the office, but I can successfully telnet out to the s3 site.\r\n\r\nCENTOS01 flyway-gradle-plugin]# telnet s3.amazonaws.com 80\r\nTrying 54.231.97.74...\r\nConnected to s3.amazonaws.com.\r\nEscape character is '^]'.\r\n\r\ntelnet> \r\n\r\nI have an account and the settings fle has teh required infor and using \r\n\"  mvn   -s /root/.m2/conf/settings.xml -P-CommercialDBTest help:effective-settings\"\r\n\r\nshows what I believe is correct info - several variants have been tried as you can see.\r\n>>>>\r\n\r\n<settings xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd\">\r\n  <localRepository xmlns=\"http://maven.apache.org/SETTINGS/1.1.0\">/root/.m2/repository</localRepository>\r\n  <proxies xmlns=\"http://maven.apache.org/SETTINGS/1.1.0\">\r\n    <proxy>\r\n      <username>MY-ACCOUNT</username>\r\n      <password>***</password>\r\n      <port>80</port>\r\n      <host>s3.amazonaws.com</host>\r\n    </proxy>\r\n  </proxies>\r\n  <servers xmlns=\"http://maven.apache.org/SETTINGS/1.1.0\">\r\n    <server>\r\n      <username>MY-ACCOUNT</username>\r\n      <password>***</password>\r\n      <privateKey>/root/.ssh/id_rsa</privateKey>\r\n      <passphrase>***</passphrase>\r\n      <id>flyway-repo</id>\r\n    </server>\r\n    <server>\r\n      <username>MY-ACCOUNT</username>\r\n      <password>***</password>\r\n      <privateKey>/root/.ssh/id_rsa</privateKey>\r\n      <passphrase>***</passphrase>\r\n      <id>flyway-snapshot</id>\r\n    </server>\r\n    <server>\r\n      <username>MY-ACCOUNT</username>\r\n      <password>***</password>\r\n      <privateKey>/root/.ssh/id_rsa</privateKey>\r\n      <passphrase>***</passphrase>\r\n      <id>aws-snapshot</id>\r\n    </server>\r\n  </servers>\r\n  <pluginGroups xmlns=\"http://maven.apache.org/SETTINGS/1.1.0\">\r\n    <pluginGroup>org.apache.maven.plugins</pluginGroup>\r\n    <pluginGroup>org.codehaus.mojo</pluginGroup>\r\n  </pluginGroups>\r\n</settings>\r\n\r\n\r\n<<<<<\r\n\r\n<<< run log showing error >>>>\r\n\r\nCENTOS01 flyway-gradle-plugin]# mvn compile    -P-CommercialDBTest \r\n[INFO] Scanning for projects...\r\n[INFO]                                                                         \r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Building flyway-gradle-plugin 0-SNAPSHOT\r\n[INFO] ------------------------------------------------------------------------\r\nDownloading: s3://flyway-repo/release/org/flywaydb/flyway-core/0-SNAPSHOT/maven-metadata.xml\r\nDownloading: s3://flyway-repo/snapshot/org/flywaydb/flyway-core/0-SNAPSHOT/maven-metadata.xml\r\n[WARNING] s3://flyway-repo/release - Connection refused\r\n[WARNING] s3://flyway-repo/snapshot - Connection refused\r\n[INFO] Logged off - flyway-repo\r\n[INFO] Logged off - flyway-repo\r\n[WARNING] Could not transfer metadata org.flywaydb:flyway-core:0-SNAPSHOT/maven-metadata.xml from/to flyway-repo (s3://flyway-repo/release): The S3 wagon needs AWS Access Key set as the username and AWS Secret Key set as the password. eg:\r\n<server>\r\n  <id>my.server</id>\r\n  <username>[AWS Access Key ID]</username>\r\n  <password>[AWS Secret Access Key]</password>\r\n</server>\r\n\r\n[WARNING] Could not transfer metadata org.flywaydb:flyway-core:0-SNAPSHOT/maven-metadata.xml from/to aws-snapshot (s3://flyway-repo/snapshot): The S3 wagon needs AWS Access Key set as the username and AWS Secret Key set as the password. eg:\r\n<server>\r\n  <id>my.server</id>\r\n  <username>[AWS Access Key ID]</username>\r\n  <password>[AWS Secret Access Key]</password>\r\n</server>\r\n\r\n[WARNING] Failure to transfer org.flywaydb:flyway-core:0-SNAPSHOT/maven-metadata.xml from s3://flyway-repo/release was cached in the local repository, resolution will not be reattempted until the update interval of flyway-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.flywaydb:flyway-core:0-SNAPSHOT/maven-metadata.xml from/to flyway-repo (s3://flyway-repo/release): The S3 wagon needs AWS Access Key set as the username and AWS Secret Key set as the password. eg:\r\n<server>\r\n  <id>my.server</id>\r\n  <username>[AWS Access Key ID]</username>\r\n  <password>[AWS Secret Access Key]</password>\r\n</server>\r\n\r\n[WARNING] Failure to transfer org.flywaydb:flyway-core:0-SNAPSHOT/maven-metadata.xml from s3://flyway-repo/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of aws-snapshot has elapsed or updates are forced. Original error: Could not transfer metadata org.flywaydb:flyway-core:0-SNAPSHOT/maven-metadata.xml from/to aws-snapshot (s3://flyway-repo/snapshot): The S3 wagon needs AWS Access Key set as the username and AWS Secret Key set as the password. eg:\r\n<server>\r\n  <id>my.server</id>\r\n  <username>[AWS Access Key ID]</username>\r\n  <password>[AWS Secret Access Key]</password>\r\n</server>\r\n\r\nDownloading: s3://flyway-repo/release/org/flywaydb/flyway-core/0-SNAPSHOT/flyway-core-0-SNAPSHOT.pom\r\n[WARNING] s3://flyway-repo/release - Connection refused\r\n[INFO] Logged off - flyway-repo\r\nDownloading: s3://flyway-repo/snapshot/org/flywaydb/flyway-core/0-SNAPSHOT/flyway-core-0-SNAPSHOT.pom\r\n[WARNING] s3://flyway-repo/snapshot - Connection refused\r\n[INFO] Logged off - flyway-repo\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 0.711 s\r\n[INFO] Finished at: 2015-04-21T19:05:40+01:00\r\n[INFO] Final Memory: 9M/150M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal on project flyway-gradle-plugin: Could not resolve dependencies for project org.flywaydb:flyway-gradle-plugin:jar:0-SNAPSHOT: Failed to collect dependencies at org.flywaydb:flyway-core:jar:0-SNAPSHOT: Failed to read artifact descriptor for org.flywaydb:flyway-core:jar:0-SNAPSHOT: Could not transfer artifact org.flywaydb:flyway-core:pom:0-SNAPSHOT from/to flyway-repo (s3://flyway-repo/release): The S3 wagon needs AWS Access Key set as the username and AWS Secret Key set as the password. eg:\r\n[ERROR] <server>\r\n[ERROR] <id>my.server</id>\r\n[ERROR] <username>[AWS Access Key ID]</username>\r\n[ERROR] <password>[AWS Secret Access Key]</password>\r\n[ERROR] </server>\r\n[ERROR] -> [Help 1]\r\n[ERROR] \r\n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\r\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\r\n[ERROR] \r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException\r\nCENTOS01 flyway-gradle-plugin]# "},"comment":{"url":"https://api.github.com/repos/flyway/flyway/issues/comments/95181672","html_url":"https://github.com/flyway/flyway/issues/996#issuecomment-95181672","issue_url":"https://api.github.com/repos/flyway/flyway/issues/996","id":95181672,"user":{"login":"axelfontaine","id":684824,"avatar_url":"https://avatars.githubusercontent.com/u/684824?v=3","gravatar_id":"","url":"https://api.github.com/users/axelfontaine","html_url":"https://github.com/axelfontaine","followers_url":"https://api.github.com/users/axelfontaine/followers","following_url":"https://api.github.com/users/axelfontaine/following{/other_user}","gists_url":"https://api.github.com/users/axelfontaine/gists{/gist_id}","starred_url":"https://api.github.com/users/axelfontaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelfontaine/subscriptions","organizations_url":"https://api.github.com/users/axelfontaine/orgs","repos_url":"https://api.github.com/users/axelfontaine/repos","events_url":"https://api.github.com/users/axelfontaine/events{/privacy}","received_events_url":"https://api.github.com/users/axelfontaine/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T13:41:35Z","updated_at":"2015-04-22T13:41:35Z","body":"You need to run install not package."}}