Results 1 to 3 of 3

Thread: Error when I deploy my app inside tc via STS

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    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
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •