Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAK-9896 - Running unit-tests in IntelliJ dos not work #664

Merged
merged 2 commits into from Aug 22, 2022

Conversation

jsedding
Copy link
Contributor

No description provided.

@jsedding jsedding requested a review from reschke August 10, 2022 14:58
@@ -1316,5 +1297,53 @@
</pluginManagement>
</build>
</profile>
<profile>
<id>intellij-build-workaround</id>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it a bit nasty that this workaround profile is actually containing the default configuration when it is not running in IntelliJ. Can we rather leave the default in place without any profile, and override only for IntelliJ (with this profile)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you in principle. The problem is that I don't know how to remove the _plugin.scr instruction once it's configured. Do you know of a way to achieve that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the pointer! Please have a look at the revised change.

@jsedding jsedding force-pushed the OAK-9896-intellij-build-workaround branch from 9aea662 to 7e08cfa Compare August 22, 2022 09:20
<id>intellij-build-workaround</id>
<!-- workaround for IntelliJ issue https://youtrack.jetbrains.com/issue/IDEA-141732/OSMORC-unable-to-load-bnd-plugin -->
<!-- IntelliJ does not add the plugin's extra dependency to the plugin's class-path, which causes the build to fail. -->
<!-- This means unit-tests cannot be run from within the IDE. Adding the relevant configuration only in the absence -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment is outdated now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank's again :) Should be ok now.

Copy link
Member

@kwin kwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now.

@jsedding jsedding merged commit 44155cd into trunk Aug 22, 2022
@jsedding jsedding deleted the OAK-9896-intellij-build-workaround branch August 22, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants