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

properties file missing in the deploy-wesphere.hpi

    Details

    • Similar Issues:

      Description

      the properties file appear to be on the source but not on the hpi artifact causing the following exception in case the deploy fails:

      java.util.MissingResourceException: No resource was found for hudson.plugins.de
      loy.websphere.WAS61Adapter
      at org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.ja
      a:104)
      at org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.ja
      a:102)
      at org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.ja
      a:102)
      at org.jvnet.localizer.ResourceBundleHolder.format(ResourceBundleHolder
      java:139)
      at hudson.plugins.deploy.websphere.WAS61Adapter.redeploy(WAS61Adapter.j
      va:44)
      at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:4
      )
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java
      584)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(Abstra
      tBuild.java:564)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(Abstra
      tBuild.java:550)
      at hudson.model.Build$RunnerImpl.post2(Build.java:158)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:52
      )
      at hudson.model.Run.run(Run.java:1267)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)

        Attachments

          Activity

          Hide
          kdsweeney kdsweeney added a comment -

          It looks like the properties file is in the src/main/java directory of the source tree, but it should be in src/main/resources. This is because Maven will only compile and copy .java files in the src/main/java directory to the final jar file.

          However, Maven will copy any file (regardless of file extension) from the src/main/resources directory. Just make sure you keep the same package structure when you copy it into the other directory.

          Show
          kdsweeney kdsweeney added a comment - It looks like the properties file is in the src/main/java directory of the source tree, but it should be in src/main/resources. This is because Maven will only compile and copy .java files in the src/main/java directory to the final jar file. However, Maven will copy any file (regardless of file extension) from the src/main/resources directory. Just make sure you keep the same package structure when you copy it into the other directory.
          Hide
          asanso asanso added a comment -

          thanks a lot I'll commit the file in the proper place asap

          Show
          asanso asanso added a comment - thanks a lot I'll commit the file in the proper place asap
          Hide
          evernat evernat added a comment -

          any news?

          Show
          evernat evernat added a comment - any news?

            People

            • Assignee:
              asanso asanso
              Reporter:
              asanso asanso
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: