首页 > 解决方案 > 使用 Ant 构建 Java Web 项目时出现 Azure Pipeline 错误

问题描述

我有这个错误,我无法得到解决方案。我在我的本地机器上使用 netbeans,它的工作很完美,但是在天蓝色的错误发生中,我不知道那条路径是什么或如何手动添加。

-init-user:

-init-project:

-init-macrodef-property:

-do-init:

-post-init:

-init-check:

BUILD FAILED
/home/vsts/work/1/s/Src/teatro/nbproject/build-impl.xml:257: The Java EE server classpath is not correctly set up - server home directory is missing.
Either open the project in the IDE and assign the server or setup the server classpath manually.
For example like this:
   ant -Dj2ee.server.home=<app_server_installation_directory>

Total time: 0 seconds
The process '/usr/bin/ant' failed with exit code 1
##[error]Error: The process '/usr/bin/ant' failed with exit code 1
Finishing: Ant  Src/teatro/build.xml

标签: javaazurejspantpipeline

解决方案


推荐阅读