复合组件最终出现在 jboss jsf 工具和 m2eclipse 的错误目录中?
当使用 JBOSS Tools 时,M2E 和 M2E-WTP 创建新的复合组件时希望将新创建的组件放在错误的目录中。它还会在错误的目录中查找组件。
它应该把它放在目录中:
src/main/webapp/resources/components/group-name/tagname.xhtml
但它正在寻找它(并且快速修复创建文件):
target/m2e-wtp/web-resources/resources/components/group-name/tagname.xhtml
以下是我正在使用的版本:
JBoss Tools RichFaces for Eclipse 版本: 3.2.1.v20110730-1214-H169-Final
M2E - Eclipse 的 Maven 集成
版本:1.0.0.20110607-2117
WTP 的 Maven 集成
版本:0.13.1.20110728-1800
更新:
似乎选择 .settings/org.eclipse.wst.common.component 文件中的第一个路径。将非 m2e 更改为第一个似乎使它想要将其放在正确的位置。
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="hcbb">
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<property name="context-root" value="hcbb"/>
<property name="java-output-path" value="/hcbb/target/classes"/>
</wb-module>
</project-modules>
然而,它仍然抱怨属性缺失或无效,并且没有对自定义组件进行自动完成。但不确定 JSF Tools 是否这样做。
When using JBOSS Tools, M2E and M2E-WTP creating a new composite component wants to put the newly created component in the wrong directory. It also looks for components in the wrong directory.
It should be putting it in the directory:
src/main/webapp/resources/components/group-name/tagname.xhtml
but instead it is looking for it (and a quick fix creates file) in:
target/m2e-wtp/web-resources/resources/components/group-name/tagname.xhtml
Here are the versions I am using:
JBoss Tools RichFaces for Eclipse Version:
3.2.1.v20110730-1214-H169-Final
M2E - Maven Integration for Eclipse
Version: 1.0.0.20110607-2117
Maven Integration for WTP
Version: 0.13.1.20110728-1800
Update:
Seems to pick the first path in .settings/org.eclipse.wst.common.component file. Changing the non m2e to be first seems to make it want to put it in the right place.
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="hcbb">
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<property name="context-root" value="hcbb"/>
<property name="java-output-path" value="/hcbb/target/classes"/>
</wb-module>
</project-modules>
However, it is still complaining about missing or invalid attributes and not doing auto completion on the custom components.. Not sure if JSF Tools even does that though.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这个问题在 joss tools 3.3.x 的后续版本中得到了修复。
如果没有,请打开错误,我们会查看它。
I believe this issue is fixed in later release of joss tools 3.3.x.
If not please open bug and we'll look at it.