我正在尝试在Netbeans 11中创建一个项目。
我已经创建了一个新的Maven Java项目(不是FX项目),但是我决定向其中添加一些小的目录选择器元素。
我添加了javafx依赖项,并且没有用于目录选择器的javadoc。 。
这是我的POM:
$.ajax
如何获得Javadoc?我的平台是JDK 12。
编辑0:
我还尝试了Maven – Always download sources and javadocs中链接的解决方案
例如在Netbeans项目的属性菜单中将$.ajax
添加为操作,然后通过运行该操作来运行它。其他答案将在下面尝试。
发生了一些事情,但是即使在编译并重新打开Netbeans之后,Javadoc仍然没有出现。
我不认为所链接的答案有用,因为它们不能解决问题并且不特定于Netbeans。
我添加了用于下载依赖项的maven插件:
<IP1> - - [05/Aug/2019:16:35:03 +0000] "GET /submit_time?payload=.... HTTP/1.1" 200 76 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1" "<IP>" response-time=0.217
<IP2> - - [05/Aug/2019:16:35:05 +0000] "GET /submit_time?payload=.... HTTP/1.1" 200 71 "http://www.katchup.work/create" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36" "<IP2>" response-time=0.198
但这仍然没有帮助。
运行动作和缺少Javadoc: https://www.youtube.com/watch?v=TGDgrvpJsNg&feature=youtu.be
我还按照官方说明从官方maven存储库中在项目中安装JavaFX:
编辑2:玩了一段时间之后,发生了一些有趣的事情:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.protonmail.sarahszabo.wanderingecho</groupId>
<artifactId>WanderingEcho</artifactId>
<version>0.1-Alpha</version>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<!-- Download Java source JARs. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<goals>
<goal>sources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.protonmail.sarahszabo.wanderingecho.Init</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>Shaded</shadedClassifierName> <!-- Any name that makes sense -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>12</maven.compiler.source>
<maven.compiler.target>12</maven.compiler.target>
<!-- Use the latest version whenever possible. -->
<jackson.version>2.9.9</jackson.version>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>12.0.2</version>
</dependency>
</dependencies>
</project>
maven操作的最新运行下载了javadocs,但是当我输入platf并使用Ctrl + Space自动完成功能时,它们仍然没有出现: