1

In my current state of the pom.xml i have

<plugin>  
  <groupId>org.apache.tomcat.maven</groupId>  
  <artifactId>tomcat7-maven-plugin</artifactId>  
  <version>2.0</version>  
  <configuration>  
    <path>/myPath</path>  
  </configuration>
</plugin>

this is working fine. I now am trying to add an extra context for the images on the server, so that the "old" context /myPath is directing to the webapp and /images can be used to address images.
I have tried to add a context file, but when I do this only my /images context is loaded.
Also, I don't want to build the WAR each time (this would be the case if I used two context.xml files for the two contexts)

Is it possible to add a) the context as it is (the current state of development using tomcat7:run AND b) the second context /images that only points to a local folder? And how?

4

1 に答える 1