dr0n3
dr0n3

Reputation: 267

Copy a jar file with maven

I'm trying to copy the .jar, created by Maven 3, to another location. Currently, I'm using Ant's copy task, but Maven simply doesn't copy the file.

<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <executions>
    <execution>
      <phase>install</phase>
      <configuration>
        <tasks>
          <copy file="target/myfile.jar" tofile="D:/Bukkit/plugins/myfile.jar"/>
        </tasks>
      </configuration>
    </execution>
  </executions>
</plugin>

Upvotes: 5

Views: 4010

Answers (1)

wytten
wytten

Reputation: 3000

        <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <configuration>
                <tasks>
                    <copy file="target/myfile.jar" tofile="D:/Bukkit/plugins/myfile.jar"/>
                </tasks>
            </configuration>
            <executions>
                <execution>
                    <phase>install</phase>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

Upvotes: 5

Related Questions