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

14 views
Skip to first unread message

Richard Landon

unread,
Mar 25, 2019, 7:52:26 PM3/25/19
to Jenkins Users
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

Adrien Lecharpentier

unread,
Mar 26, 2019, 3:32:39 AM3/26/19
to Jenkins Users
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

--
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 jenkinsci-use...@googlegroups.com.
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.

Slide

unread,
Mar 26, 2019, 10:06:10 AM3/26/19
to Jenkins User Mailing List
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.

--
Reply all
Reply to author
Forward
0 new messages