2011-08-19 14 views
3

我正在使用Tapestry5JSPEditorForEclipse通过tapestry-tldgen Maven插件生成TLD文件。我已经在项目pom.xml中添加了条目。以下是参考条目。用于TML页面的Tapestry5JSPEditorEclipse

<plugin> 
    <groupId>fr.exanpe</groupId> 
    <artifactId>tapestry-tldgen</artifactId> 
    <version>1.0.0</version> 
     <dependencies> 
      <dependency> 
       <groupId>com.sun</groupId> 
       <artifactId>tools</artifactId> 
       <version>1.5.0</version> 
     </dependency> 
     </dependencies> 
    <executions> 
     <execution> 
      <goals> 
       <goal>tld-generate</goal> 
      </goals> 
      <phase>process-classes</phase> 
      <configuration> 
       <uri>http://tapestry.apache.org/schema/tapestry_5_0_0.xsd</uri> 
       <rootPackage>net.awl.bfi.websuite</rootPackage> 
      </configuration> 
     </execution> 
    </executions> 
</plugin> 

当我尝试安装在Eclipse中的项目,我收到以下错误。

[ERROR] Failed to execute goal fr.exanpe:tapestry-tldgen:1.0.0:tld-generate (default) on project WebSuiteTerminalMonitoringTapestry: Execution default of goal fr.exanpe:tapestry-tldgen:1.0.0:tld-generate failed. NullPointerException -> [Help 1] 

请帮助我生成顶级域名,以便我可以在Tapestry项目中使用TML的JSP编辑器。

你的帮助appricated。

问候,
马亨德拉Athneria

回答

0

,项目的Frequently Asked Questions页上写着:

The compilation doesn't work on Eclipse. Why ?
It seems the m2eclipse extension for Eclipse doesn't take into account the plexus components.xml descriptor file. This is the reason why the project doesn't run on Eclipse auto build, but does on command line. We are trying to find a way to get through...

所以,如果你在命令行中尝试mvn package,它可能工作。

编辑:如果您还有问题,请参阅该插件的最新版本:1.1.1-SNAPSHOT

+0

嗨@Jan我试着用MVN包。它不适合我。我正在低于错误。 java.lang.RuntimeException:java.util.concurrent.ExecutionException:java.lang.N oClassDefFoundError:javax/persistence/EntityNotFoundException –

+0

Hi @ mahendra-athneria,假设你的项目是在你禁用插件的时候生成的,对吗?如果是这样,请尝试插件的最新版本。我已经将'1.1.1-SNAPSHOT'包含到了我的项目中,因为我也遇到了'1.0.0'的问题。 – Jan

+0

嗨@Jan我无法找到1.1.1-SNAPSHOT jar。你可以请给我/共享链接罐? –