Title: Handle module projects with separate module-info.java for main and test sources · Issue #2116 · redhat-developer/vscode-java · GitHub
Open Graph Title: Handle module projects with separate module-info.java for main and test sources · Issue #2116 · redhat-developer/vscode-java
X Title: Handle module projects with separate module-info.java for main and test sources · Issue #2116 · redhat-developer/vscode-java
Description: Here is a Java 11 maven module project: https://github.com/microsoft/gctoolkit. The project is a multi-module maven project. One submodule is "api", see its file structure as follows. It describes the module-info.java file in the main so...
Open Graph Description: Here is a Java 11 maven module project: https://github.com/microsoft/gctoolkit. The project is a multi-module maven project. One submodule is "api", see its file structure as follows. It describes ...
X Description: Here is a Java 11 maven module project: https://github.com/microsoft/gctoolkit. The project is a multi-module maven project. One submodule is "api", see its file structure as follows. It ...
Opengraph URL: https://github.com/redhat-developer/vscode-java/issues/2116
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle module projects with separate module-info.java for main and test sources","articleBody":"Here is a Java 11 maven module project: https://github.com/microsoft/gctoolkit. The project is a multi-module maven project. One submodule is **\"api\"**, see its file structure as follows. It describes the module-info.java file in the main sources and the test sources respectively.\r\n\r\n```\r\napi\r\n├───src\r\n│ ├───main\r\n│ │ ├───java\r\n│ │ │ │ module-info.java\r\n│ │ │ └───com.microsoft.gctoolkit\r\n│ │ │ GCToolKit.java\r\n│ └───test\r\n│ ├───java\r\n| | | module-info.java\r\n│ │ └───com.microsoft.gctoolkit.test\r\n│ │ Test.java\r\n```\r\n\r\nHowever, when opening this project in VS Code, it doesn't work. It reports a compile error: **\"The project was not built due to \"Build path contains duplicate entry: 'module-info.java' for project 'api'\". Fix the problem, then try refreshing this project and building it since it may be inconsistent\"**. It doesn't support multiple module-info.java files in one Java project.\r\n\r\n\r\n\r\nThe same project works in maven command line. There should be some gap in the JDT compiler that needs to be fixed.\r\n","author":{"url":"https://github.com/testforstephen","@type":"Person","name":"testforstephen"},"datePublished":"2021-09-17T06:12:19Z","url":"https://github.com/redhat-developer/vscode-java/issues/2116"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a49c20fb-0d62-812d-1752-e301da129c0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C384:35EE49:1359C9:19F26C:6B07349B |
| html-safe-nonce | c3a99fdbf6a392601e40bf903e0cd3cdc93307cd29910cda2807df62497d5c75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzg0OjM1RUU0OToxMzU5Qzk6MTlGMjZDOjZCMDczNDlCIiwidmlzaXRvcl9pZCI6IjU2NDI1ODA3NTIyNjE5MTk4OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d8da314f4c79941e2241097a576ff47dfd053803c827494eed8bb6fcee8b3dd1 |
| hovercard-subject-tag | issue:998982451 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/redhat-developer/vscode-java/2116/issue_layout |
| twitter:image | https://opengraph.githubassets.com/726072782ec80cb7b282ab7cef06098b079acf3e2f9cbde520676e390b590dce/redhat-developer/vscode-java/issues/2116 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/726072782ec80cb7b282ab7cef06098b079acf3e2f9cbde520676e390b590dce/redhat-developer/vscode-java/issues/2116 |
| og:image:alt | Here is a Java 11 maven module project: https://github.com/microsoft/gctoolkit. The project is a multi-module maven project. One submodule is "api", see its file structure as follows. It describes ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | testforstephen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a60952cad7efb2604ea85e500208f51c1ec1943aa260ac605c13eb46a1ed83b |
| turbo-cache-control | no-preview |
| go-import | github.com/redhat-developer/vscode-java git https://github.com/redhat-developer/vscode-java.git |
| octolytics-dimension-user_id | 11033755 |
| octolytics-dimension-user_login | redhat-developer |
| octolytics-dimension-repository_id | 65561709 |
| octolytics-dimension-repository_nwo | redhat-developer/vscode-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65561709 |
| octolytics-dimension-repository_network_root_nwo | redhat-developer/vscode-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 345c27626db08417fdfc84278a4415ae9a48d8f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width