[ 
http://jira.codehaus.org/browse/JIBX-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137956#action_137956
 ] 

Jerome Bernard commented on JIBX-181:
-------------------------------------

I don't understand how building both A and B at the same time (I assume you 
mean a multimodule Maven build) differs from building A, then B.

JiBX needs to "instrument" classes in project A. This means adding some classes 
in A Jar.
This is something done by the Maven plugin for JiBX so if your are using it, 
you should not care much.

So is this issue still relevant or fixed with recent releases of the Maven 
plugin?
If not, can you give some extracts of both A and B poms regarding JiBX 
configuration?

Thanks.

> Jibx compiler modified "non-jibx" classes in multi-module Maven environment
> ---------------------------------------------------------------------------
>
>                 Key: JIBX-181
>                 URL: http://jira.codehaus.org/browse/JIBX-181
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.1.5
>         Environment: jdk 1.5;  maven 2.0.5
>            Reporter: Frank Luo
>            Assignee: Jerome Bernard
>
> This problem only exists with maven projects with multi-modules.
> Supposing there are two maven projects A and B. B depends on A and jibx is 
> used in B but classes in A is refered in the binding files via 
> get/set-methods. So in theory, classes in A shouldn't be modified because 
> only getter/setters are accessed by Jibx, but it might or might not be true, 
> depends on how maven is invoked.
> If the projects are built separately, namely build A first, then B. Because B 
> is refering A throught a jar file, then classes in A are not modified (of 
> course). But if A and B are built at the same time, then at the time B is 
> built, maven is smart enough to add project A's classes,  instead of A.jar, 
> in the classpath for compiling, and somehow A's classes are modified by Jibx, 
> which is not desired.
> Did I make myself clear? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to