Вопрос

I'm working with a plugin mechanism of a web application which is deployed locally with cargo. So I mostly do changes in the plugin and not in the application (the WAR) itself. But when starting cargo it deploys the WAR file each time even there were no modifications. Can cargo be configured this way that it, let’s say reuses the already deployed war file to save time?

My current mvn file:

<plugin>
   <groupId>org.codehaus.cargo</groupId>
   <artifactId>cargo-maven2-plugin</artifactId>
   ...
    <deployables>
        <deployable>
           <location>${project.build.directory}/${project.build.finalName}</location>
           <pingURL>http://localhost:8080</pingURL>
           <properties>
              <context></context>
           </properties>
         </deployable>
    </deployables>
Это было полезно?

Решение

Found the cargo.tomcat.copywars parameter for that which is by default true. http://cargo.codehaus.org/Configuration+properties

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top