java - Ubuntu: Gradle maven-publish plugin - Failing to connect by sftp -


i'm trying gradle script upload sftp account, keeps failing error,

failed deploy artifacts: not transfer artifact com.himself12794:heroes-mod:jar:0.9-rev1 from/to remote (sftp://himself1@ftp.himself12794-develops.com:18765/public_html/maven): not write resource 'com/himself12794/heroes-mod/0.9-rev1/heroes-mod-0.9-rev1.jar'

i'm able connect via sftp command:

sftp -p 18765 himself1@ftp.himself12794-develops.com 

however, publishmavenjavapublicationtomavenrepository task fails, above error.

this minecraft forge mod, if sheds light on things.

my build.gradle so:

    buildscript {         repositories {             jcenter()             maven {                 name = "forge"                 url = "http://files.minecraftforge.net/maven"             }         }         dependencies {             classpath 'net.minecraftforge.gradle:forgegradle:2.0-        snapshot'         }     }     apply plugin: 'net.minecraftforge.gradle.forge'     apply plugin: "maven-publish"      // people want stable     /*plugins {         id "net.minecraftforge.gradle.forge" version "2.0.1"         id "maven-publish"     }*/      repositories {         maven {             name = "himself12794-develops"             url = "http://maven.himself12794-develops.com"         }     }      version = "0.9-rev1"     group = "com.himself12794"      archivesbasename = "heroes-mod"      minecraft {         version = "1.8-11.14.3.1514"         rundir = "run"         mappings = "snapshot_20141130"         // makeobfsourcejar = false      }      dependencies {         compile "com.himself12794:powersapi:1.1-rev2"     }      publishing {         publications {             mavenjava(mavenpublication) {                 components.java             }         }     }      publishing {         repositories {             maven {                 url "sftp://himself1@ftp.himself12794-develops.com:18765"             }         }     }      processresources     {         inputs.property "version", project.version         inputs.property "mcversion", project.minecraft.version          from(sourcesets.main.resources.srcdirs) {             include 'mcmod.info'               expand 'version':project.version, 'mcversion':project.minecraft.version         }          from(sourcesets.main.resources.srcdirs) {             exclude 'mcmod.info'         }     } 

any assistance can give appreciated.

i have not solved specific problem yet, have discovered problem original maven plugin caused me try maven-publish plugin issue current stable version of gradle (2.7). using current nightly wrapper build has allowed me circumvent this.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -