Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35200

publish-over-ssh-plugin build is missing Messages.java

      Hi,

      For some reason I am unable to compile the plugin itself. No matter what environment I use (tried JDK 1.7, 1.8; IntelliJ IDEA and NetBeans) it always fail because the jenkins.plugins.publish_over_ssh.Messages class cannot be found.

      Tried

      • looking for the Messages.java in the sources, not there (I checked the repo on Github to rule out a bad git clone)
      • googling Messages.java online (searching for some of the methods the plugin tries to call) and came up with this – it looks like the actual file, but it might be outdated, so I did not try using it
      • ensuring I have all the required dependencies – the plugin uses maven and both my IDEs (IDEA and NetBeans) properly identified it as such and before giving me access to the source code they downloaded all the required libraries upfront (took nearly 30 minutes)

      Will try

      • (WORKAROUND only) downloading the latest officially compiled plugin as .jar file, decompressing it, looking for the Messages.class file and luckily using it as an external library

      I wonder – Is it possible the maintainer of this plugin simply forgot to git add the Messages.java file?

      Thanks

          [JENKINS-35200] publish-over-ssh-plugin build is missing Messages.java

          Arnost Kvasinka added a comment - - edited

          It was actually way easier than I thought. IDEA has decompiled the Messages.class file for me and so I have created Messages.java from the scratch. (I know it's probably not the same one as there should be in the repository, but I've attached it).

          I've been able to successfully package the plugin (some tests also ran in the process and they all passed) with this decompiled Messages.java file.

          Arnost Kvasinka added a comment - - edited It was actually way easier than I thought. IDEA has decompiled the Messages.class file for me and so I have created Messages.java from the scratch. (I know it's probably not the same one as there should be in the repository, but I've attached it). I've been able to successfully package the plugin (some tests also ran in the process and they all passed) with this decompiled Messages.java file.

          Igor Rondarev added a comment - - edited

          Hi,

          please note that Messages.java is still missing in github what makes it impossible to build this plugin from scratch. Please, add this file to source tree.

          P.S. seems that file that's attached to this case is obsolete and cannot be used to build this plugin novadays (and still it's a workaround, not a solution).

          Regards,

          Igor.

          Igor Rondarev added a comment - - edited Hi, please note that Messages.java is still missing in github what makes it impossible to build this plugin from scratch. Please, add this file to source tree. P.S. seems that file that's attached to this case is obsolete and cannot be used to build this plugin novadays (and still it's a workaround, not a solution). Regards, Igor.

          Alex Earl added a comment -

          Messages.java is a generated file. The project is building fine on CI and locally. Please verify your environment for building.

          Alex Earl added a comment - Messages.java is a generated file. The project is building fine on CI and locally. Please verify your environment for building.

          Igor Rondarev added a comment -

          Igor Rondarev added a comment - Got it, thank you! It's all about https://wiki.jenkins.io/display/JENKINS/Internationalization

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/138
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-35200%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/138 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-35200%22 (Note: this is an automated bulk comment)

            slide_o_mix Alex Earl
            arnostk Arnost Kvasinka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: