Java Vaadin Maven插件可以';我找不到目标
我的vaadin项目有个问题。我已经添加了一个附加组件,我在瓦丁市场上找到的,用于制作二维码。为了使一切正常工作,我需要在此加载项中编译widgetset,但问题是 当我尝试在eclipse中使用用于编译widgetset的按钮或直接使用Java Vaadin Maven插件可以';我找不到目标,java,maven,vaadin,pom.xml,Java,Maven,Vaadin,Pom.xml,我的vaadin项目有个问题。我已经添加了一个附加组件,我在瓦丁市场上找到的,用于制作二维码。为了使一切正常工作,我需要在此加载项中编译widgetset,但问题是 当我尝试在eclipse中使用用于编译widgetset的按钮或直接使用mvn vaadin:update widgetset时,我得到以下错误: [INFO] Scanning for projects... [INFO] ------------------------------------------------------
mvn vaadin:update widgetset
时,我得到以下错误:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.649 s
[INFO] Finished at: 2018-08-09T18:13:34+02:00
[INFO] Final Memory: 9M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'update-widgetset' in plugin com.vaadin:vaadin-maven-plugin:10.0.1 among available goals copy-production-files, package-for-production -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
经过一点研究,似乎没有找到其他一些目标,因为现在当我尝试构建解决方案时,我得到了一个类似的错误,但有另一个目标:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Padoo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.148 s
[INFO] Finished at: 2018-08-09T18:17:00+02:00
[INFO] Final Memory: 11M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'update-theme' in plugin com.vaadin:vaadin-maven-plugin:10.0.1 among available goals copy-production-files, package-for-production -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
显然,我在pom.xml中遗漏了一些内容。我是马文的新手,我不知道我错过了什么
这是我的pom:
<?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.metaverse</groupId>
<artifactId>Padoo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>Padoo</name>
<description></description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<vaadin.version>8.3.1</vaadin.version>
</properties>
<repositories>
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
</dependency>
<dependency>
<groupId>org.vaadin.addons</groupId>
<artifactId>qrcode</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>com.mvcpt</groupId>
<artifactId>mapgenerator</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<version>${vaadin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>10.0.1</version>
<configuration>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<webappDirectory>${basedir}/target/classes/VAADIN/widgetsets</webappDirectory>
<draftCompile>false</draftCompile>
<compileReport>false</compileReport>
<style>OBF</style>
<strict>true</strict>
</configuration>
<executions>
<execution>
<goals>
<goal>update-theme</goal>
<goal>update-widgetset</goal>
<goal>compile</goal>
<goal>compile-theme</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
4.0.0
com.metaverse
帕杜
0.0.1-快照
战争
帕杜
org.springframework.boot
spring启动程序父级
2.0.0.1版本
UTF-8
UTF-8
1.8
8.3.1
瓦丁插件
http://maven.vaadin.com/vaadin-addons
org.springframework.boot
spring引导启动器数据jpa
org.springframework.boot
弹簧启动安全
com.vaadin
瓦丁弹簧靴起动器
com.h2数据库
氢
org.springframework.boot
弹簧启动机tomcat
假如
org.springframework.boot
弹簧起动试验
测试
org.springframework.security
弹簧安全性试验
测试
com.vaadin
瓦丁主题
org.vaadin.addons
QR码
2.1
com.mvcpt
地图生成器
1.0-快照
com.vaadin
瓦丁波姆
${vaadin.version}
聚甲醛
进口
com.vaadin
vaadin maven插件
10.0.1
-Xmx512M-Xss1024k
${basedir}/target/classes/VAADIN/widgetsets
假的
假的
OBF
真的
更新主题
更新WidgeSet
编译
编译主题
将10.0.1
更改为类似${vaadin.version}
。您正在使用用于Vaadin 10的Maven插件,它不包含与Vaadin 8相同的目标。根据错误消息,此插件只有目标:复制生产文件
,用于生产的包
…看,似乎OP已经设置好了,我们的pom也设置类似,因此,你没有访问目标的权限是很不寻常的。检查vaadin maven插件的版本和你正在使用的vaadin版本是否一致。我想应该是这样的。。。。