是的,是的,这是XY类型的问题。(我想在不丢失任何信息的情况下更好地展示它)
在我的项目中,当我尝试在maven中执行ANT任务时,它给了我与该示例相同的错误。我从这里举了这个例子。
我尝试使用来执行多个ant目标maven-antrun-plugin
。但是,它总是只执行最下面的目标(当我不提及依赖服装时)。当我使用它时,它给出以下异常:
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (default) on project jibx-mvn-demo: An Ant BuildException has occured: Target "compile" does not exist in the project "maven-antrun-". It is used from target "myDAO". -> [Help 1]
pom.xml
maven-antrun-plugin 1.7 install Clean up my working directory to be nice and sparkly Initialize stuff for my DAO build Maybe setup some properties? I need my directories for building. But first, I need to setup stuff" I need to compile my dao source" But first, I need to make the necessary directories Here's where I package up my DAO But I have to compile stuff before I can package it run
这是什么原因呢?如何在Maven中执行多个Ant任务?