Results 1 to 3 of 3

Thread: Maven filtering (token substitution)/Eclipse (STS)Version: 2.9.2./ Tomcat not working

  1. #1
    Join Date
    Aug 2012
    Posts
    1

    Question Maven filtering (token substitution)/Eclipse (STS)Version: 2.9.2./ Tomcat not working

    I have a Webapp which I build using Maven with the following parameters : goals: -e clean package install profiles :env-test

    This runs fine and and installs the proper code including the filtered information from the profiles correctly to the "target" directories.

    My problem is when I "publish" to the tomcat server, it seems to publish from the resource directory and not the target directories which means I get my property files with all the variable names in them instead of the converted variables which have been completed in the target directories.

    How can I get it to publish the Maven build files which were built correctly?

    Any direction would be greatly appreciated.

  2. #2

    Default

    I have the same exact problem, but I am using STS version 3.0.0.RELEASE.

  3. #3
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,638

    Default

    Hey!

    Did you take a look at the "Deployment Assembly" properties of your project? Since there is an integration between WTP tooling in Eclipse and the Maven Integration into the IDE, I think it tries to deploy from your workspace (so that you typically don't need to trigger a Maven build manually). Maybe the "Deployment Assembly" settings help here. Sorry for just guessing here, but I hope it helps nonetheless...

    -Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

Tags for this Thread

Posting Permissions

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