Intellij Idea hides my spring cloud contracts under test/resources - gradle

I have written my first spring-cloud-contract using Intellij Idea 2018.2. Everything works fine, but I cannot edit the contract from within Idea because it hides the complete src/test/resources/contracts folder in the project view. So I have to individually open each contract vi the file -> open... menu.
Can anybody tell me how I can access my contract files in Idea from the project view?

I have the same problem with maven. It enough to refresh the project and the folder will be added to the classpath

Related

Can't open application.properties in Eclipse

I've encountered a problem as I'm practising with Spring Boot. I've installed in Eclipse the Spring Tool 4 plugin and then created a Spring project. The problem is I can't open the application.properties file within Eclipse and I do not understand the reason. I double click and nothing happens.
Is this a known problem or am I doing something wrong? The file is openable from outside the IDE with a text editor but it seems empty.
Thanks
Try to open the file by pressing ctrl+shift+R and application. properties.

Spring application.properties is grayed out with Spring Initilizr

I am new to spring and trying to use Spring Initilizr for my project.
I am using the code that was generated by this tool after adding dependencies for 'Spring Web' and 'Spring Data Redis'.
When I open the generated code in IntelliJ and try to edit the file application.properties, I notice that everything I type there is grayed out. According to IntelliJ it is an 'unused property'.
Any idea how to enable application.properties in my project?
As it was mentioned in one of the comments, it is indeed an issue with InteliJ. The properties are working as expected, IntelliJ for some reason doesn't display it correctly.
I see that the answer is accepted; but do not see the solution provided explicitly. In the event it helps others, the property file will be read even if it is greyed out or says "unused property". But if you want the color coded keys, this is what I did to make Intellij recognize the application properties file.
Option-1) Recomplile application.properties under Build -> Recomplile 'application.properties' https://i.stack.imgur.com/I6MXc.png
Option-2) Invalidate cache under File -> Invalidate Caches with IDE restart
Rebuild the project with either of these options and see if the file is recognized.

STS unable to bind maven file (.m2)

I'm working on a maven project in Spring tool suite(STS), issue is unable to navigate to other classes and methods (using ctrl+ mouse click), and its showing many error messages near import statements and other places in the class.
When clicked on the red cross mark which states error and select FIX project setup below is the message displayed on popup window.
The following proposals have been found to fix the unresolvable reference to 'Bootstrap'
Add archive 'lpa-core-1.2.5.jar - c:\Users\tom.m2\repository\com\lpa\lpa-core\1.2.5' to buildpath of 'lpa-realtime-service'
Please suggest how to include .m2 file automatically while build process to avoid the error messages and to navigate to other classes and methods using ctrl and mouse click.
It sounds like your project is not properly set up so that the IDE doesn't really configure its classpath correctly. Normally this would all happen automatically via m2e (i.e. Eclipse's maven support).
M2e is included in STS by default, so its probably installed, but somehow your project isn't treated as a maven project.
You can try to re-import it using the proper 'import wizard' which should set things up correctly for you.
Steps:
Delete the project from the workspace. Take care not to actually delete the files themselves. (There's a checkbox 'Delete project contents on disk', so don't select that).
clean out all the 'junk' data from your project. Delete all tese files / folders from your project .classpath, .project, .settings, target.
Now that you have a 'clean slate'. Import it using m2e. Menu: File >> Import >> Existing Maven Projects".
This should setup everything correctly.
I say should because it depends to a large degree on what is in the project itself. But this, in principle, is the correct way to import maven project into STS (or Eclipse in general).

Xcode how to add an external project

I need to add an external project to my Xcode project, the reason for this is I need to add a Target Dependency on that external projects static library.
I can't seem to add it in the way I need, I would like it like this:
However, when I add another project to my actual Xcode project I get the following which doesn't let me explore that project from my one and so I can't add the dependency I need.
Note that these screenshots are from two different projects, and in the one which is showing me what I want to reproduce in my own project, dragging in multiple projects works as expected.
Maybe I have some settings set up wrong in my project ? All I've done is take a template detail-master application from Xcode.
You did it right. The problem is that Xcode cannot have the same project opened twice.
Close Serenity.xcodeproj before reopening your parent project.
Yes, this is possible, it's called a workspace.
In your example:
Open both of your projects
Drag the Serenity project into the Dependant project
I think what you are doing wrong is dragging the Xcodeproj, try opening that project and dragging the project block instead (see pic)

VS 2010: Publish dialog settings not saving for web app

I have an issue that is occurring with one specific solution. Everything works fine for the others.
When you right-click on a web project to publish, it asks you to specify information before you publish. I choose File System, tell it to delete all files, and specify a path. After I publish and shut down the solution, I will open it later again to do another publish. After I do this, I have to set everything back up. This means browsing to the folder every time to point to the publish location.
No other projects in any other solutions have this issue. Does anyone know what could be causing this?
The simplest thing to check is that the local storage file where the web publish settings go isn't read-only. For example, make sure you haven't accidentally checked it in to source control.
The publishing profiles file will be in the same location as the project file, named $(ProjectName).Publish.xml.
Another solution I got here. After I found publish.xml file no where, I did following steps and it worked:
Right Click on Project in Solution Explorer.
Select "Build Deployment Package"
You're done.
Hope this helps somebody.
The publishing profiles file will be in the same location as the project file, named $(ProjectName).Publish.xml.
just delete $(ProjectName).Publish.xml file in project folder.

Resources