loizbak commented on issue #27: MCOMPILER-372 - fix test compile issue: added dependency test path for modules URL: https://github.com/apache/maven-compiler-plugin/pull/27#issuecomment-572721899 Just an idea: To me, problem comes from test artifact which is not modularized. I will experiment auto-modularization of dependent test artifact (use apache-felix maven plugin). If it works, I'll tell you. François Le jeu. 9 janv. 2020 à 19:15, François Loison <[email protected]> a écrit : > OK, I understand why you were reluctant to adress tests jars from > repository. > > *Back to the root cause of the problem:* > The simplest solution would be to setup 2 module-info.java : one for > artefact, one for test artefact (with a different module name). > But IDEs like Eclipse don't support 2 java files with same name, only the > main module-info.java is created. > > Unfortunately, this solution has side-effects on test artefacts > inheritancy. > If "double chance" solution (guess test artifact names) is not accepted, I > don't see possibility of a fix given the single module-info.java assumption. > > Moreover, surefire plugin 3.0.0-SNAPSHOT has same problem. > > So I which modify my code to put test inheritancy in main modules. This is > not recommended because it adds test dependencies to main module (I will > have to filter them from final package). > > I will also release the pull request without the "double chance" solution. > > Best regards, > François > > Le mer. 8 janv. 2020 à 20:04, Robert Scholte <[email protected]> a > écrit : > >> If you only need the reactor, please never use install anymore, but just >> verify. And with this plugin you should only use compile, test-compile >> or package (in case you depend on the jar). >> I wonder if we should allow pulling in test-jars from outside the >> reactor. I know it is possible, but it is a codesmell to me, especially in >> the JPMS world. (and if overcomplicates the code) >> >> — >> You are receiving this because you modified the open/close state. >> Reply to this email directly, view it on GitHub >> <https://github.com/apache/maven-compiler-plugin/pull/27?email_source=notifications&email_token=AEKICU3P5UEJOLDA6WDOQWTQ4YPTRA5CNFSM4J33NR7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEINT3II#issuecomment-572210593>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/AEKICUYAVNE2ZV2MTPIJDRTQ4YPTRANCNFSM4J33NR7A> >> . >> >
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
