简体   繁体   English

使用Vaadin插件在NetBeans项目中更改为Vaadin的更高版本

[英]Change to later version of Vaadin in a NetBeans project using Vaadin plugin

I am using the Vaadin Plug-in for Netbeans version 1.1.0 with NetBeans 8.1 & 8.2 (as shown here . This plugin defaults to using Vaadin 7.5.9 rather than the current version of Vaadin for a new project created by choosing File > New Project > Categories (list) > Vaadin > Projects (list) > Vaadin Multi Module Project . 我在NetBeans 8.1和8.2中使用了Vaadin NetBeans 1.1.0版插件(如下所示 。)对于通过选择“ File >“ New Project创建的新项目,该插件默认使用Vaadin 7.5.9,而不是当前版本的Vaadin。 New Project > Categories (列表)> Vaadin > Projects (列表)> Vaadin Multi Module Project

How does one change the Vaadin version from 7.5.9 to 7.7.3 (the latest)? 如何将Vaadin版本从7.5.9更改为7.7.3(最新版本)?

By context-clicking on the “…-ui” module in the Projects navigator in NetBeans, I accessed the Properties > Project Properties > Categories (list) > Vaadin (list item) > Vaadin Version pop-up menu. 通过在NetBeans的“ Projects导航器中的“…-ui”模块上单击上下文,可以访问“ Properties >“ Project Properties >“ Categories (列表)>“ Vaadin (列表项)>“ Vaadin Version弹出菜单。

在此处输入图片说明

This seemed to work. 这似乎有效。 But when I do a clean-and-build on the …-parent module, I still see line items for Vaadin version 7.5.9 in the NetBeans console output. 但是,当我在…-parent模块上进行清理和构建时,我仍然在NetBeans控制台输出中看到Vaadin版本7.5.9的行项目。

So what is the proper way to get a Vaadin multi-module project in NetBeans 8 to use a later version of Vaadin? 那么,在NetBeans 8中使Vaadin多模块项目使用更高版本的Vaadin的正确方法是什么?

You are right. 你是对的。 Something is broken with latest Vaadin version support for projects. 最新的Vaadin版本对项目的支持有些问题。

Version 7.5.9 used to be the latest available version when the NetBeans plugin has been built. 构建NetBeans插件后,版本7.5.9曾经是最新的可用版本。 To be able to support latest stable versions plugin reads some URL from vaadin.com site and uses versions from there. 为了能够支持最新的稳定版本,插件从vaadin.com网站读取了一些URL并从那里使用版本。

But apparently this is broken. 但是显然这是坏的。 New projects are created with old version. 使用旧版本创建新项目。 Could you please create a ticket for that here https://github.com/vaadin/netbeans-plugin/issues ? 您可以在这里https://github.com/vaadin/netbeans-plugin/issues为此创建票证吗? Thanks a lot. 非常感谢。

We are working currently on Vaadin version 8.0 and soon we will have to release new NetBeans plugin version to support it. 我们目前正在开发Vaadin 8.0版,不久我们将不得不发布新的NetBeans插件版本来支持它。 So this issue might be fixed in this update. 因此,此问题可能在此更新中得以解决。

Multimodule project support is not completely implemented unfortunately. 不幸的是,多模块项目支持并未完全实现。 That's why version is not correctly updated via project settings. 因此,无法通过项目设置正确更新版本。 You can create an issue about this as well (though I think I already made it in our old tracker https://dev.vaadin.com/ ). 您也可以为此创建一个问题(尽管我想我已经在我们的旧跟踪器https://dev.vaadin.com/中做到了)。

But back to your issue: you can fix it via editing POM file manually. 但是回到您的问题:您可以通过手动编辑POM文件来修复它。 Please open POM.xml file in your root parent project and find 请在您的根父项目中打开POM.xml文件,然后找到

<properties>

section. 部分。

There is <vaadin.version>7.5.9</vaadin.version> string. <vaadin.version>7.5.9</vaadin.version>字符串。 Just replace 7.5.9 with required version. 只需将7.5.9替换为所需版本即可。

Thanks and sorry for inconvenience. 多谢您,不便之处,敬请见谅。

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

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