Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用maven运行wget命令_Maven_Ftp_Maven 3_Wget - Fatal编程技术网

使用maven运行wget命令

使用maven运行wget命令,maven,ftp,maven-3,wget,Maven,Ftp,Maven 3,Wget,我有一个有效的命令 但我想和maven一起运行 wget-r*.dmp 有人能告诉我pom.xml的样子吗 B.T.W我尝试了这个pom,但无法获得大文件: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.8&

我有一个有效的命令

但我想和maven一起运行

wget-r*.dmp

有人能告诉我pom.xml的样子吗

B.T.W我尝试了这个pom,但无法获得大文件:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.8</version>
        <configuration>
            <target>
                <ftp action="get"
                     server="192.168.1.1"
                     remotedir="remoteDir"
                     userid="anonymous"
                     password="anonymous">
                    <fileset dir="${project.build.directory}">
                        <include name="**/*.*"/>
                    </fileset>
                </ftp>
            </target>
        </configuration>
        <dependencies>
            <dependency>
                <groupId>commons-net</groupId>
                <artifactId>commons-net</artifactId>
                <version>1.4.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant-commons-net</artifactId>
                <version>1.8.1</version>
            </dependency>
        </dependencies>
    </plugin>

org.apache.maven.plugins
maven antrun插件
1.8
公用网络
公用网络
1.4.1
org.apache.ant
蚂蚁公地网
1.8.1

您是否收到任何错误消息?没有,我让它运行了2个小时,但什么也没发生。使用wget命令不到一个小时。