[jboss-jira] [JBoss JIRA] (JBJCA-847) CodeGenerator Maven configuration misconfigures src/build paths, sets incorrect java version.
Jeff Zhang (JIRA)
jira-events at lists.jboss.org
Wed Jul 18 03:00:07 EDT 2012
[ https://issues.jboss.org/browse/JBJCA-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706496#comment-12706496 ]
Jeff Zhang commented on JBJCA-847:
----------------------------------
Hi Logan, I had looked your patch.
1. Java 1.6 source and target.
OK
2. 0.1 to 0.0.1-SNAPSHOT
OK
3. Changed packaging to RAR from JAR
Use RAR as default package type, maven is still to use maven-rar-plugin.
We use maven-jar-plugin and maven-rar-plugin both, that could package rar file as we want.
So I think currently it works well.
4. Change the src/main to src/main/java and src/test to src/test/java
? We use maven layout now "src/main/java"
BTW: our eclipse plugin for ironjacamar can import generated maven style project.
I will look to import into eclipse by "mvn eclipse:eclipse"
please comment if I miss something
> CodeGenerator Maven configuration misconfigures src/build paths, sets incorrect java version.
> ---------------------------------------------------------------------------------------------
>
> Key: JBJCA-847
> URL: https://issues.jboss.org/browse/JBJCA-847
> Project: IronJacamar
> Issue Type: Bug
> Components: Code Generator
> Affects Versions: 1.1.0.Beta1
> Reporter: Murray Todd Williams
> Assignee: Jeff Zhang
> Labels: maven
> Attachments: jbjca-847.patch, pom.xml
>
>
> If one uses the CodeGenerator (via command line or Eclipse plugin) with the option to export to Maven, the resulting code (a) cannot be imported into an Eclipse Maven project, (b) cannot run a test via "mvn test" and (c) generates Eclipse code errors because the source/target are set to Java 1.5 but the @Override annotation is not allowed for Interface overrides in Java 1.5.
> (I've lumped these all into one JIRA ticket report because I think it can all be resolved with some tweaks to the pom.xml generation.)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list