Add CXF to Intellij Web Services Facet - intellij-idea

I have created a maven project using archetype [ org.apache.cxf.archetype » cxf-jaxws-javafirst ]. I have also added tomcat 8.5.34 as run/debug configurations.
But when I try to add CXF framework support, I cannot because the OK button is disabled all the time (even after browsing to the framework folders)
Find image here

Apparently Idea doesn't support Apache CXF version higher than 2.7.16.
Check the ticket here
and If you are interested vote to get it fixed.

Related

Where to find Quarkus run configuration in Intellij IDEA?

Some time ago I used to run Quarkus projects in Linux as any other proyect, this means by clicking "Edit Configurations" and selecting "Quarkus (Maven)" as you can see in this picture:
But now I´m using Windows and those menus have disapeared:
As an alternative currently I´m running my Quarkus projects from Maven tab, which isn´t a fashion way:
So at the begining I thought this was due to a bug in Quarkus Tools plugin that I created a new issue, however that plugin does not offer such feature. Could anybody give a hand on how to run Quarkus projects as any other project? Thanks in advance.
Run configurations are offered by this plugin: https://plugins.jetbrains.com/plugin/14242-quarkus-integration
Looks like it is discontinued though, marked as "deprecated" and it's not showing in the Plugin marketplace (within IntelliJ) for me, so I had to install it via the website.
AFAIK there are plans for the official JetBrains bundled plugin to support it (https://youtrack.jetbrains.com/issue/IDEA-228507), but it's not done yet.

No support for Wildfly 9.0.0.Final in Intellij 12.1.6

When I add a new Application Server IntelliJ, pointing to the home path of the Wildfly 9.0.0.Final, IntelliJ shows me this warning:
"The selected directory is not a valid Jboss home"
Is this a question of Wildfly configuration someone from Wildfly team must fix or it is a question of too old IntelliJ or maybe the 'Jboss integration plugin' needs to be updated?
This is a a result of too old version of Intellij IDEA.
Or as you point out jboss integration plugin, which is bundled with IDEA itself.
There is also a trick to make IDEA belive it still supports newer version of WildFly.
We had it in place for some time in WildFly distro but was later removed as IDEA got official support for wildfly.
in short, this is the workaround https://github.com/wildfly/wildfly/blob/8.x/build/build.xml#L1551
all you need to do is to go to WILDFLY_HOME/modules/system/layers/base/org/jboss/as/version/main/ folder
and make copy of wildfly-version-xx.jar and rename the copy to jboss-as-version-xx.jar
where xx is the version of the wildfly.

How to vizualize spring integration file in intellij idea 14?

On the page https://www.jetbrains.com/idea/whatsnew/ it is said that Intellij Idea 14 has got a visual diagrams for spring integration.
But I can't find how to visualize my integration xml file.
(right click on file)/Diagrams/Show Diagram... shows a diagram with links between the beans. It is not very usefull.
Spring Integration Patterns plugin is enabled
I have Intellij Idea installed on a computer without access to the internet. May it be the reason why the diagrams are not working properly?
What do you want to see there?
For example.
We have stomp-chat sample: https://github.com/spring-projects/spring-integration-samples/tree/master/applications/stomp-chat
And here is a diagram for this config: https://github.com/spring-projects/spring-integration-samples/blob/master/applications/stomp-chat/src/main/resources/org/springframework/integration/samples/chat/stomp/server/stomp-server.xml
I'd say that it is OK, however I agree that it would better if I'd provide id attribute for all components.
Of course, Spring Integration Patterns plugin has to be switched on.
This link helps - https://devnet.jetbrains.com/message/5529839#5529839
"Please make sure the XML file is correctly configured in Spring context setup via Spring facet.
It requires spring-integration-core to be in module dependency of selected XML file."
I had the same problem, and found that in addition to having the Spring facet enabled, and having the spring-integration-core dependency and having the relevant context file set as an application context under the facet, you also need to have just the containing module open. i.e. the stomp-chat spring-integration sample provides the "Spring Integration" diagram option if it is opened from its own pom.xml, however if you open the parent applications\pom.xml then the "Spring Integration" diagram option is not available, regardless of facets etc.
I have the same problem in a project where I use spring integration 2.1.4.
In a newer project I use 4.0.0 and there Intellij Idea offers the option to open the spring integration diagram.
Perhaps that is the reason and you "only" need a newer version of spring integration.
The issue is that the newer versions of Intellij create separate modules per source set by default which somehow ends up conflicting with earlier setups. Using Intellij 2016.1, I instead reimported my project with the following options checked:
Once I did that then (right click on file)/Diagrams/Show Diagram once again gave me the Spring Integration Option.
Yes, click on your Spring Integration context file > Diagrams > Show Diagram... > Spring Integration., but if you haven't this menu follow below:
You should have identified integration context as Spring XML based configurations. Instruction here : Create a Intellij file set
I don't know why, but I had a problem with Spring Integration Diagram when I installed Springirun plugin.

IntelliJ 12 Grails 2.1 Configuration - Grails SDK not configured

I feel like I'm missing something simple at this point. I upgraded to grails 2.1.1 from 1.3.7 while running IntelliJ 10, recently I upgraded to IntelliJ 12 and imported all settings. Somehow in the project in IntelliJ 12, I have no grails SDK.
My Global Library has grails 2.1.1 defined with all the correct .jars included, however, the Tools menu is missing the "Grails" sub-menu, and attempting to run the app gives the error message that Grails SDK is not configured.
If I create a new project for grails, the SDK configures correctly and Grails shows in the Tools menu. What am I missing preventing me from adding the Grails SDK to this project? Thank you, community, for your time and suggestions.
You do not have to create a new project.
Had the same problem, and it took me quite some search to resolve it:
right click your Grails module
click "Add framework support"
select "Groovy"
The dropdown next to "Use library" will allow you to choose a grails library.
If the dropdown is empty press "create" and choose your grails library directory.
Grails SDK is configured then
With Intellij 16 right click on your project in the right hand project pane.
Choose Grails->Configure Grails SDK.
If you're using the grails wrapper I would point to that SDK:
/Users/your user/.grails/wrapper/2.5.2/grails-2.5.2
I have the IntelliJ 12 too, to run app i just click in 'File' -> 'Create Project', select 'Grails Project'
Click Next,
Click em Create, select the folder, who contain the Grails 2, and Voila. :-)
If you has the project before, run in project 'grails integrate-with --intellij' or run import project, and create a Grails SDK
I found a symlink that points to the latest version in:
~/.sdkman/candidates/grails/current
I'm using SDKMAN 4.0.37
Pointing Intellij at that location will allow you to switch versions using sdkman.
Not really an "answer" here, but after seeing similar troubles with IDEA I went ahead and just created a new project and copied my source in and resolved my issues, if not solving the actual problem.
I am working with IntelliJ 12.0.1 ultimate.
I have installed Grails 2.3.1 on my computer, but always got errors when trying to specify it as a Grails SDK-
"failed to create library. Looks like Grails distribution in specified path is broken. Cannot determine version."
I tried with Grails 2.3.0, but got the same error.
Then, I tried my luck with Grails 2.2.4, and I could finally get it work.
Creating a New Project will actually not overwrite any existing code; just point it at your existing project directory, select Grails and open it up.
Your project will now complain that there is no Grails SDK; just point it at your Grails dist and you are good to go.
Recently, I've encountered a similar type of issue. I have the grails SDK folder, but OK Button not enabled when trying to configure from the project. Then we have installed the Grails Plugin in IntelliJ. Then OK Button enabled and grails SDK is configured into project.

IntelliJ Idea 10.5.2 WebLogic Deployment tab is missing context dropdown

IntelliJ Idea 10.5.0 WebLogic Run/Debug configuration documentation mentions context dropdown. I am using 10.5.2 version and cannot find this dropdown. Is there a way to configure application context without editing application server specific descriptor?
Actually it is mistake in documentation. There is no such option for WebLogic run configurations.