Announcement Announcement Module
Collapse
No announcement yet.
Error when I deploy my app inside tc via STS Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when I deploy my app inside tc via STS

    I have a maven war project that includes another maven jar project.

    When I click on Right button > run as > server and select my war project, I have the following error :
    Publishing failed
    Error creating zip file t3-conformity.jar: duplicate entry: compliance_template.html
    duplicate entry: compliance_template.html
    Error creating zip file t3-conformity.jar: duplicate entry: compliance_template.html
    duplicate entry: compliance_template.html

    This file is in src/main/ressources AND in src/test/resources.

    I think, that the files in src/test/resources MUST not be deployed (as it is pretty common to override a file in the tests) !

  • #2
    cblin,

    this is a non-problem of Eclipse and nothing specific to STS. Essentially it comes down to the missing notion of test-folders inside Eclipse: all source folders are treated in the same way and if you have files with the same name in different source folders you'll get this error.

    The only work-around is to exclude the src/test/resources folder from being exported (use the Java Build Path preference page to configure this) or rename the file.

    HTH

    Christian

    Comment


    • #3
      Thanks for the explanation.

      Hopefully for me, this was used in a test that can take another file name, so I simply rename the file.

      Comment

      Working...
      X