如何在Maven中执行多个Ant目标

 sdfsadfwforever 发布于 2022-12-29 18:48

是的,是的,这是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任务?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有