java - netbeans freermarker 插件错误 : The plugin Lexer to NetBeans Bridge is requested in implementation version

标签 java spring netbeans freemarker netbeans-plugins

我正在使用 netbeans 8,并且我有 freeMarker 作为我的模板引擎,我从此页面下载了这个 freeMarker 插件 http://plugins.netbeans.org/plugin/52115/freemarker-netbeans-plugin我尝试安装,但它给了我这个错误 在实现版本中请求插件 Lexer to NetBeans Bridge 并且它在 UI netbeans 窗口中为我提供的唯一选项是按取消。

编辑:dindt 有效的解决方案之一,但我尝试了以下内容

我在网站上发现要下载整个项目,然后使用 netbeans 构建它并复制生成的 .nbm 文件。

这个解决方案不起作用

我尝试以下解决方案:

解决方案1

1) downloading the project in a .zip file from this URL  https://github.com/nbphpcouncil/freemarker_NB_highlighting 
2) then i choose the option import project form a .zip file
3) then i hit the clean and build botton 
4) then i try to add the .nbm file generated in the cluster folder of the project 
but still it gives me the same error `The plugin Lexer to NetBeans Bridge is requested in implementation version 201207171143.`

第二种解决方案

我发现这个网站http://michalcichon.blogspot.com/2014/02/freemarker-syntax-highlighting-in.html它告诉我首先在此 url http://bits.netbeans.org/maven2/org/netbeans/modules/org-netbeans-modules-lexer-nbbridge/RELEASE71/ 中安装名为“Lexer to NetBeans Bridge”的插件所以我在该网站下载了 .nbm 文件,但是当我尝试将 Lexer 安装到 NetBeans Bridge 插件时,它告诉我已经安装了。由于我不知道如何检查我安装了哪些插件或模块/ide,因此我检查了 C:Netbeans 文件夹中的 module.properties 文件,该文件中有此行 lexer.nbbridge.dir=${netbeans.dest.dir}/ide 但我不知道这是否意味着已安装。

在作者页面https://blogs.oracle.com/geertjan/entry/syntax_coloring_for_freemarker其中一个人说解决方案 1 对他有用,但我尝试过,但对我不起作用。如果可以解决这个问题还是我应该放弃

编辑2

我尝试使用此链接下载一个支持 netbeans 8.0.2+ 的版本,但现在它给了我这个错误

    Some plugins require plugin org.netbeans.modules.editor.deprecated.pre61completion to be installed.
The plugin org.netbeans.modules.editor.deprecated.pre61completion is requested in version 1.0.  The following plugin is affected:       Freemarker NetBeans Plugin

我尝试下载整个 zip 并将其导入到 netbeans 并构建它,稍后我复制生成的 .nbm,但如果我这样做,则会出现错误:在实现版本中请求插件 Lexer to NetBeans Bridge,我开始寻找此错误的解决方案

The plugin org.netbeans.modules.editor.deprecated.pre61completion is requested in version 1.0.  

2009 年的一个网站表示要添加此插件 http://updates.netbeans.org/netbeans/updates/6.5/uc/final/stable/modules/ide10/org-netbeans-modules-editor-deprecated-pre61completion.nbm

当我添加该插件时,它给了我这个错误:

    Some plugins require plugin org.netbeans.modules.editor.deprecated.pre61settings to be installed.
The plugin org.netbeans.modules.editor.deprecated.pre61settings is requested in version 1.0.  The following plugin is affected:       Editor Code Completion Prior 6.1 Separation 
Some plugins require plugin Editor Library to be installed.
The plugin Editor Library is requested in version >= 1.27 (release version 1) but only 3.49.2.22.43 (of release version different from 1) was found.  The following plugin is affected:       Editor Code Completion Prior 6.1 Separation

最佳答案

I solved it by: svn checkout https://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.2/m‌​isc/ftl?rev=333 Then opened that in NetBeans, built, and "Install/Reload module in IDE"

以上说法正确。

您应该这样做。

[步骤 1] 团队 -> Subversion -> 结帐

/image/VbWh2.png

[步骤 2] 使用此存储库 URL:

https://svn.java.net/svn/nb-api-samples~api-samples/versions/7.2/misc/ftl/?rev=333

检查此图片http://content.screencast.com/users/groundbreaker/folders/Jing/media/6fd82a20-bb11-449e-92cb-73af53fd2254/2015-05-22_0928.png

[步骤 3] 单击“完成”

http://content.screencast.com/users/groundbreaker/folders/Jing/media/b59faeab-ca38-4dad-aa56-1e62f1a42627/2015-05-22_0930.png

[步骤 4] 单击“打开项目”

http://content.screencast.com/users/groundbreaker/folders/Jing/media/e37efdcf-0a85-4746-bbca-e13d7bb59dfe/2015-05-22_0930.png

[步骤 5] 您现在将看到“ftl”项目

http://content.screencast.com/users/groundbreaker/folders/Jing/media/4ed866c8-4111-4db0-9057-9f0992fcb4e6/2015-05-22_0931.png

[步骤 6] 右键单击 -> 构建 -> 在开发 IDE 中安装/重新加载

/image/XjUco.png

只需复制粘贴打开网址,因为我仍然无法发布图像和可点击的链接。抱歉给您带来麻烦。

干杯!

关于java - netbeans freermarker 插件错误 : The plugin Lexer to NetBeans Bridge is requested in implementation version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28820030/

相关文章:

java - 我如何接受特定网站上的 cookie?

java - [错误]org.springframework.beans.factory.BeanCreationException

java - java中的新行

Spring boot - Application.properties 中的用户定义变量

java - 如何使用Netbeans调试使用Ant自定义build.xml编译的代码?

java - NetBeans 默认 Jlist 将其更改为 arraylist

java - 设置外观颜色

java - fillRect() 中的负数

java - 在分配大量字符串数据的应用程序中优化字符串数据的最佳方法

java - 绕过 PUT 请求的唯一性 validator