作为一个孩子,用Ant项目构建一个Maven项目(building a Maven project with Ant project as a child)
我正在尝试在Maven中建造一个父母pom,其中包括一个用蚂蚁建造的孩子。 我得到以下例外,
Execution default of goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run failed: A required class was missing while executing org.apache.maven.plugins:maven-antrun-plugin:1.6:run我的代码是:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>compile</phase> <configuration> <target> <ant dir="SampleJava/projectBuilder.xml" /> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions>am trying to build a parent pom in Maven which includes a child which is built in ant. I am getting the below exception,
Execution default of goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run failed: A required class was missing while executing org.apache.maven.plugins:maven-antrun-plugin:1.6:runMy code is:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>compile</phase> <configuration> <target> <ant dir="SampleJava/projectBuilder.xml" /> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions>最满意答案
and it got resolved with the below code: -------- <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>process-resources</phase> <configuration> <tasks> <ant antfile="../SampleJava/projectBuilder.xml" target="makejar"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> and it got resolved with the below code: -------- <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>process-resources</phase> <configuration> <tasks> <ant antfile="../SampleJava/projectBuilder.xml" target="makejar"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>更多推荐
maven,apache,pom,Maven,电脑培训,计算机培训,IT培训"/> <meta name="descri
发布评论