Vaadin在版本升级后无法构建,因为许可证问题。

huangapple go评论56阅读模式
英文:

Vaadin cannot be built after version upgrade because of license issue

问题

我有一个使用Vaadin的个人项目。
如果我在23.2.6版本中运行以下命令:

mvn clean package

它能够完美运行。
但是如果我将pom.xml更新到版本23.3.6,我会遇到以下问题:

执行 com.vaadin:vaadin-maven-plugin:23.3.6:build-frontend 的默认目标失败:无法验证许可证,请检查您的互联网连接。如果需要离线工作,请访问https://vaadin.com/pro/validate-license?getOfflineKey=mid-ef05ac4a-266d8512以检索离线密钥。有关故障排除步骤,请参见https://vaadin.com/licensing-faq-and-troubleshooting。

但我只使用Vaadin的核心部分,而核心部分是免费的。
插件部分的pom.xml如下:

<plugin>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-maven-plugin</artifactId>
    <version>${vaadin.plugin.version}</version>
    <executions>
        <execution>
            <goals>
                <goal>prepare-frontend</goal>
                <goal>build-frontend</goal>
            </goals>
        </execution>
    </executions>
</plugin>

是否有某些库移出了核心部分?如何知道是哪一个?是否是我的本地环境出了问题?

英文:

I have a personnal project using Vaadin.
If I run a

mvn clean package

in 23.2.6, it works perfectly.
If I update the pom.xml to go to version 23.3.6, I have the following issue :

Execution default of goal com.vaadin:vaadin-maven-plugin:23.3.6:build-frontend failed: Unable to validate the license, please check your internet connection. If you need to work offline then please go to https://vaadin.com/pro/validate-license?getOfflineKey=mid-ef05ac4a-266d8512 to retrieve an offline key. For troubleshooting steps, see https://vaadin.com/licensing-faq-and-troubleshooting.

But all I'm using is the core of Vaadin which price is free.
The pom looks like this in the plugin section :

> <plugin>
> <groupId>com.vaadin</groupId>
> <artifactId>vaadin-maven-plugin</artifactId>
> <version>${vaadin.plugin.version}</version>
> <executions>
> <execution>
> <goals>
> <goal>prepare-frontend</goal>
> <goal>build-frontend</goal>
> </goals>
> </execution>
> </executions>
> </plugin>

Has some library moved out of core ? How do I know which one ?
Is there an issue with my local environment ?

答案1

得分: 1

提到的(在评论中)提到的构件(vaadin-server、vaadin-push、vaadin-client-compiled、vaadin-theme)都来自于之前的版本(例如7或8),这些版本不再提供免费支持,并且在7.7.17或8.14.3之后的版本需要许可证。

经验法则:如果你不确定是否需要一个依赖项,就将其移除。不要犹豫地删除不必要的东西 - 如果有遗漏的内容,编译器会报错。

你看到许可证检查器错误是因为在这些版本之间检查器进行了技术改进。

英文:

The (in the comments) mentioned artifacts (vaadin-server, vaadin-push,
vaadin-client-compiled, vaadin-theme) are all from previous versions
(e.g. 7 or 8) which both no longer have free support and need a license for versions newer than 7.7.17 or 8.14.3 respectively.

Rule of thumb: if you don't know you need a dep, remove it. And don't
be shy about throwing things out - the compiler will complain, if
something is missing.

You are seeing the license checker error as there has been technical improvements in the checker between the versions.

huangapple
  • 本文由 发表于 2023年3月4日 00:55:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/75629860.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定