Trying to compile docker-plugin -- failure "java: cannot find symbol Messages"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Trying to compile docker-plugin -- failure "java: cannot find symbol Messages"

Richard Landon-2
I see the following 3 error messages trying to compile the Docker plugin from sources on github.

git repo: https://github.com/jenkinsci/docker-plugin.git (branch is master).
Envronment Idea; MacOS Mojave; JDK 8 (8.0.202-zulu); followed plugin development getting started et al: https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingupaproductiveenvironmentwithyourIDE

Here are the message failures.
Any help appreciated.

Error:(183, 37) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerDisabled.DescriptorImpl

Error:(42, 16) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerManagement

Error:(47, 16) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerManagement

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/634d2308-5664-4306-a407-a84f3f8bf07b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile docker-plugin -- failure "java: cannot find symbol Messages"

Adrien Lecharpentier
I'm wondering how are you trying to compile it? From CLI with `mvn compile` or from your IDE?

From the IDE, you would need to add to classpath the folder `target/generated-sources/localise` (not sure about the last folder, but you should have only two folders in this path).

If there is nothing there, run `mvn generate-sources` first.

The class missing are generated from the `Messages.properties` files and are the localisation messages, generally for the UI.

-- Adrien

Le mar. 26 mars 2019 à 00:52, Richard Landon <[hidden email]> a écrit :
I see the following 3 error messages trying to compile the Docker plugin from sources on github.

git repo: https://github.com/jenkinsci/docker-plugin.git (branch is master).
Envronment Idea; MacOS Mojave; JDK 8 (8.0.202-zulu); followed plugin development getting started et al: https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingupaproductiveenvironmentwithyourIDE

Here are the message failures.
Any help appreciated.

Error:(183, 37) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerDisabled.DescriptorImpl

Error:(42, 16) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerManagement

Error:(47, 16) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerManagement

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/634d2308-5664-4306-a407-a84f3f8bf07b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKwJSvz8g9ERbFPrBMrrnxHTo4q5zdLveKq4GWOc5muy3z2%3DjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Trying to compile docker-plugin -- failure "java: cannot find symbol Messages"

slide
In reply to this post by Richard Landon-2
Generally speaking, at some level you need to use maven to build the plugin, whether it is your ide that does it for you, or you do it on the command line, but maven must be invoked to build Jenkins plugins.

On Mon, Mar 25, 2019, 16:52 Richard Landon <[hidden email]> wrote:
I see the following 3 error messages trying to compile the Docker plugin from sources on github.

git repo: https://github.com/jenkinsci/docker-plugin.git (branch is master).
Envronment Idea; MacOS Mojave; JDK 8 (8.0.202-zulu); followed plugin development getting started et al: https://wiki.jenkins.io/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingupaproductiveenvironmentwithyourIDE

Here are the message failures.
Any help appreciated.

Error:(183, 37) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerDisabled.DescriptorImpl

Error:(42, 16) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerManagement

Error:(47, 16) java: cannot find symbol
  symbol:   variable Messages
  location: class com.nirima.jenkins.plugins.docker.DockerManagement

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/634d2308-5664-4306-a407-a84f3f8bf07b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVfny6Bi7zs3M3bVYxO4k3%2BW%3DbB7p7K02y2V8n1J%3D1BG-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.