简体   繁体   English

Netbeans Maven项目:JavaDoc输出文件夹

[英]Netbeans Maven project: JavaDoc output folder

I'm trying to change the JavaDoc output folder of a Maven project I'm developing in Netbeans. 我试图更改我在Netbeans中开发的Maven项目的JavaDoc输出文件夹。

So far I've been able to change it going to Project Properties > Actions , choosing the actions Generate JavaDoc and then setting the property destDir . 到目前为止,我已经能够将其更改为“ 项目属性” >“ 动作” ,选择动作“ Generate JavaDoc ,然后设置属性destDir

However, the problem is that the folder structure I'd like to have is this: 但是,问题是我想要的文件夹结构是这样的:

Root
 '-MavenProject
 '-Javadoc files

So I try to set the destDir like this: 所以我尝试这样设置destDir

destDir=${project.build.directory}/../../javadoc

but it does not work. 但它不起作用。 Looks like the problem is in using .. to refer to the previous folder, it does not work at all. 看起来问题出在使用..来引用先前的文件夹,它根本不起作用。 If I use something like 如果我使用类似

destDir=${project.build.directory}/javadoc

it works properly, but it's not what I'm looking for. 它可以正常工作,但这不是我想要的。

Any clues? 有什么线索吗?

The workaround is to let Maven generate Javadocs in its natural build directory, then copy the result with the maven-antrun-plugin . 解决方法是让Maven在其自然的构建目录中生成Javadocs,然后使用maven-antrun-plugin复制结果。 It understands /../../ . 它了解/../../ Of course, you have to have ant installed on you pc... 当然,您必须在计算机上安装蚂蚁...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM