【问题标题】:resin-maven-plugin:4.0.14:run:Cannot find setter, adder nor field in com.caucho.maven.MavenRun for 'contextRoot'resin-maven-plugin:4.0.14:run:在 com.caucho.maven.MavenRun 中找不到 setter、adder 或字段以获取“contextRoot”
【发布时间】:2012-08-23 08:45:49
【问题描述】:

在 Maven 网络项目中:

当我点击插件-> 树脂:运行 控制台有一些错误信息: 无法在项目 sohutw-ginkgo-manage-web 上执行目标 com.caucho:resin-maven-plugin:4.0.14:run (default-cli):无法解析 mojo com.caucho:resin-maven-plugin 的配置: 4.0.14:run:在 com.caucho.maven.MavenRun 中找不到 setter、adder 或字段,用于 'contextRoot' -> [帮助 1]

理念:IntelliJ 理念

pom.xml 内容是相关代码: <plugin> <groupId>com.caucho</groupId> <artifactId>resin-maven-plugin</artifactId> <version>4.0.14</version> <configuration> <contextPath>/</contextPath> <port>8080</port> </configuration> </plugin>

【问题讨论】:

    标签: maven-plugin resin


    【解决方案1】:

    它被称为 contextRoot,而不是路径

    【讨论】:

    • jens:你是说,fuyou001可以通过将元素contextPath重命名为contextRoot来解决问题吗?您的回答非常简短,请详细说明。
    • 简明扼要...我喜欢这个答案。不要费心详细说明某人犯的简单错别字。
    • @Jens 我正在设置“contextRoot”,但在 NetBeans 中使用 Resin Maven 插件版本 4.0.16 时仍然遇到相同的错误。有什么想法/帮助吗?
    猜你喜欢
    • 2014-05-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-07
    • 2018-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多