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
Maven profiles not managed #117
Comments
@loryx636 I think it might be the issue of mvnw/mvn, the extension only concat commands for users. What if VS Code is NOT open? Does the maven wrapper work well? |
I'm developing in my local docker container. Docker image starts with
I tried to remove above activation config. This plugin then chose the default profile and failed to run.
P.S. |
I've found the problem. I installed the Java Extension Pack which includes this plugin in VSCode. However, some of them will force build the project when you change files and build without options(like -Pdev or something else you set). |
I guess it's vscode-java's setting |
@Eskibear I ran into the exact same issue and debugged this for a couple of hours only to realize that it was VS Code. If I quit VS Code, then the command works perfectly. When VS Code is open, it simply ignores the -Pprofile flag and uses the default profile specified in the POM. Not sure if there's a fix for this. |
@spaghett1c0de |
@Eskibear |
Good finding. So you might be experiencing the same issue mentioned in #117 (comment) I'll suggest that you open an issue in their repo. But you may have a try with the setting |
@Eskibear I tried disabling |
Describe the bug
If VS Code is open, and from a terminal (internal or external) launch the execution of the project with "mvnw -PprofileName", the execution exclude the profile, using the default configuration in pom.xml.
Expected behavior
A clear and concise description of what you expected to happen.
Environments (please complete the following information as much as possible):
The text was updated successfully, but these errors were encountered: