Netbeans Gluon单视图客户端:构建
这可能很简单:我在Netbeans中创建了一个单视图Gluon应用程序。如果我执行javaFx:run目标,它就会运行,但当我运行client:build目标时,它就会失败。我没有在应用程序中添加任何内容,但正在尝试了解基本知识。Netbeans Gluon单视图客户端:构建,netbeans,client,pom.xml,gluon,Netbeans,Client,Pom.xml,Gluon,这可能很简单:我在Netbeans中创建了一个单视图Gluon应用程序。如果我执行javaFx:run目标,它就会运行,但当我运行client:build目标时,它就会失败。我没有在应用程序中添加任何内容,但正在尝试了解基本知识。 如果我的pom像0.1.38那样指定属性。maven不应该自动拉入与使用该属性相关的所有依赖项吗 <?xml version="1.0" encoding="UTF-8"?> <project xmlns=&
如果我的pom像0.1.38那样指定属性。maven不应该自动拉入与使用该属性相关的所有依赖项吗
<?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.testgluon_4_2_2021</groupId>
<artifactId>testgluon_4_2_2021</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>testGluon_4_2_2021</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>11</maven.compiler.release>
<javafx.version>16</javafx.version>
<attach.version>4.0.11</attach.version>
<client.plugin.version>0.1.38</client.plugin.version>
<javafx.plugin.version>0.0.5</javafx.plugin.version>
<mainClassName>com.testgluon_4_2_2021.TestGluon_4_2_2021</mainClassName>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>com.gluonhq</groupId>
<artifactId>charm-glisten</artifactId>
<version>6.0.6</version>
</dependency>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>display</artifactId>
<version>${attach.version}</version>
</dependency>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>lifecycle</artifactId>
<version>${attach.version}</version>
</dependency>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>statusbar</artifactId>
<version>${attach.version}</version>
</dependency>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>storage</artifactId>
<version>${attach.version}</version>
</dependency>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>util</artifactId>
<version>${attach.version}</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>Gluon</id>
<url>https://nexus.gluonhq.com/nexus/content/repositories/releases</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>${javafx.plugin.version}</version>
<configuration>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>com.gluonhq</groupId>
<artifactId>client-maven-plugin</artifactId>
<version>${client.plugin.version}</version>
<configuration>
<target>${client.target}</target>
<attachList>
<list>display</list>
<list>lifecycle</list>
<list>statusbar</list>
<list>storage</list>
</attachList>
<mainClass>${mainClassName}</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>desktop</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<client.target>host</client.target>
</properties>
<dependencies>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>display</artifactId>
<version>${attach.version}</version>
<classifier>desktop</classifier>
</dependency>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>lifecycle</artifactId>
<version>${attach.version}</version>
<classifier>desktop</classifier>
</dependency>
<dependency>
<groupId>com.gluonhq.attach</groupId>
<artifactId>storage</artifactId>
<version>${attach.version}</version>
<classifier>desktop</classifier>
</dependency>
</dependencies>
</profile>
<profile>
<id>ios</id>
<properties>
<client.target>ios</client.target>
</properties>
</profile>
<profile>
<id>android</id>
<properties>
<client.target>android</client.target>
</properties>
</profile>
</profiles>
</project>
要执行客户机:build,我需要修复什么?您是从x64终端运行的吗?参见文档:不,我没有使用正确的终端。我已经运行了x64 Visual studio提示符,它给了我这个[ERROR]在当前项目和插件组[org.apache.maven.plugins,org.codehaus.mojo]中找不到前缀“client”的插件[local](C:\Users\Darre\.m2\repository),central(->[Help 1]确保您将cd刻录到pom文件所在的项目文件夹中
Failed to execute goal com.gluonhq:client-maven-plugin:0.1.38:compile (default-cli) on project testgluon_4_2_2021: Error: Cannot run program "cl" (in directory "C:\Users\X\Documents\NetBeansProjects\testGluon_4_2_2021\target\client\x86_64-windows\gvm\testGluon_4_2_2021"): CreateProcess error=2, The system cannot find the file specified -> [Help 1