简体   繁体   English

Seam Solder @MessageBundle生成实现类Maven错误

[英]Seam Solder @MessageBundle generating the implementation classes Maven Error

I followed the documentation to use @MessageBundle with Seam Solder 3.1.0 here : 我按照文档在此处将@MessageBundle与Seam Solder 3.1.0结合使用:

http://docs.jboss.org/seam/3/3.1.0.Final/reference/en-US/html/solder-logging.html#typed-message-bundles http://docs.jboss.org/seam/3/3.1.0.Final/reference/en-US/html/solder-logging.html#typed-message-bundles

but a get en error at compile time when Maven try to compile generated annotation : 但是在Maven尝试编译生成的注释时,在编译时出现了一个en en错误:

[ERROR] error: Cannot read com.apps.web.messages package files, cause : java.io.FileNotFoundException: com.apps.web.messages/WebMessages [错误]错误:无法读取com.apps.web.messages包文件,原因:java.io.FileNotFoundException:com.apps.web.messages / WebMessages

When I check in target directory the file is generated correctly : 当我检入目标目录时,文件正确生成:

target/generated-sources/annotations/com/apps/web/messages/WebMessages_$bundle.java 目标/生成源/注释/com/apps/web/messages/WebMessages_$bundle.java

It seems that the maven plugins or the compiler can not find the interface WebMessages localized in src/main/java/com/apps/web/messages/ when he try to compile WebMessages_$bundle generated file. 当他尝试编译WebMessages_ $ bundle生成的文件时,似乎maven插件或编译器找不到src / main / java / com / apps / web / messages /中本地化的接口WebMessages。

Environnement: 环境:

Seam Solder 3.1.0.Final / Maven 3.0.3 / JDK 1.7 / JBoss AS 6.1.0 焊缝3.1.0。最终版/ Maven 3.0.3 / JDK 1.7 / JBoss AS 6.1.0

In my pom.xml : 在我的pom.xml中:

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
  <source>1.7</source>
  <target>1.7</target>
  <compilerArgument>-AtranslationFilesPath=${project.basedir}/target/generated-sources/annotations</compilerArgument>
</configuration>
</plugin>

The compilerArgument solve the issue. 该CompilerArgument解决了该问题。

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

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