manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Does anyone know enough about maven to answer one simple question?
Date Tue, 09 Aug 2011 12:33:21 GMT
The maven files use the maven-dependency-plugin to copy wars out of
the repository into a place where testing and execution code can find
them.  This currently requires a build-time dependency, but in fact
the wars are not needed unless a test is being run.  I would like to
somehow set the scope of the code that copies the wars so that the
copy only takes place when "test" or "runtime" is the scope.  Is there
any way to do that?

Here's the plugin invocation:

      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
           <execution>
            <id>copy-war</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <outputDirectory>target/dependency</outputDirectory>
              <artifactItems>
                <artifactItem>
                  <groupId>org.apache.chemistry.opencmis</groupId>

<artifactId>chemistry-opencmis-server-inmemory-war</artifactId>
                  <version>0.5.0-SNAPSHOT</version>
                  <type>war</type>
                  <overWrite>false</overWrite>
                </artifactItem>
                <artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>mcf-api-service</artifactId>
                  <version>${project.version}</version>
                  <type>war</type>
                  <overWrite>false</overWrite>
                </artifactItem>
                <artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>mcf-authority-service</artifactId>
                  <version>${project.version}</version>
                  <type>war</type>
                  <overWrite>false</overWrite>
                </artifactItem>
                <artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>mcf-crawler-ui</artifactId>
                  <version>${project.version}</version>
                  <type>war</type>
                  <overWrite>false</overWrite>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>


Karl

Mime
View raw message