https://plugins.jetbrains.com/plugin/12030-openshift-connector-by-red-hat
Sample video on how to use it https://www.youtube.com/watch?v=kCESA7a5i3M
I keep getting the message "odo not found, do you want to download it?" , I click "yes" and nothing visible happens.... even if I have odo.exe on the PATH, I still get the error message....
https://github.com/openshift/odo
It doesn't seem very popular though.... very few downloads.... but I don 't want to use Eclipse with its JBoss Openshift Client, I hate Eclipse...
However, Intellij has its own Cloud support for Openshift https://www.jetbrains.com/help/idea/working-with-clouds.html
CTRL-ALT-S, Cloud, Openshift
see also https://www.jetbrains.com/help/idea/run-debug-configuration-openshift-deployment.html
Showing posts with label intellij. Show all posts
Showing posts with label intellij. Show all posts
Saturday, August 10, 2019
Friday, May 10, 2019
CDI in IntelliJ Java Enterprise projects
I was following this https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application.html tutorial to deploy a Primefaces application to Wildfly 16, but I kept getting an error
unable to find cdi beanmanager
I have tried adding Maven support and adding the dependency
<dependencies>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
to no avail.
Funnily, setting webapp version="2.3" instead of version="4.0" in web.xml fixes the problem.
Then I added CDI support as shown here:
https://www.jetbrains.com/help/idea/context-and-dependency-injection-cdi.html
and using version="4.0" and things are working.
unable to find cdi beanmanager
I have tried adding Maven support and adding the dependency
<dependencies>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
to no avail.
Funnily, setting webapp version="2.3" instead of version="4.0" in web.xml fixes the problem.
Then I added CDI support as shown here:
https://www.jetbrains.com/help/idea/context-and-dependency-injection-cdi.html
and using version="4.0" and things are working.
Monday, April 29, 2019
IntelliJ IDEA Essentials

this is a really precious book, very focused and essential, to learn very practical tricks on how to use Intellij effectively
Friday, April 19, 2019
Intellij and WebLogic
https://www.jetbrains.com/help/idea/configuring-and-managing-application-server-integration.html
Sunday, April 7, 2019
Intellij , maven and the source or target java language level
I create a new Java "maven" project, set it to Java 12 (ctrl-alt-shift-S, MOdules, Language level), but when I build I get:
"Warning:java: source value 1.5 is obsolete and will be removed in a future release"
Apparently this is due to the prehistoric, nonsensical Maven Compiler Plugin using Java 1.5 by default
https://stackoverflow.com/questions/27037657/stop-intellij-idea-to-switch-java-language-level-every-time-the-pom-is-reloaded
you can either insert in the pom.xml :
or
Remember also to make sure that ctrl-alt-S (Settings) Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing is set to use JDK 12. So complicated. So brittle. So Maven.
Working with Maven is like traveling back to prehistoric times, like the Mural de la Prehistoria in Cuba, https://en.wikipedia.org/wiki/Vi%C3%B1ales_Valley
developers on the right about to be eaten by Maven on the left
"Warning:java: source value 1.5 is obsolete and will be removed in a future release"
Apparently this is due to the prehistoric, nonsensical Maven Compiler Plugin using Java 1.5 by default
https://stackoverflow.com/questions/27037657/stop-intellij-idea-to-switch-java-language-level-every-time-the-pom-is-reloaded
you can either insert in the pom.xml :
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
or
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.11</source>
<target>1.11</target>
</configuration>
</plugin>
</plugins>
</build>
Remember also to make sure that ctrl-alt-S (Settings) Settings -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing is set to use JDK 12. So complicated. So brittle. So Maven.
Working with Maven is like traveling back to prehistoric times, like the Mural de la Prehistoria in Cuba, https://en.wikipedia.org/wiki/Vi%C3%B1ales_Valley
developers on the right about to be eaten by Maven on the left
Labels:
intellij
Priceless String manipulation Intellij plugin
ctrl-alt-S, then "Plugins" search for "String Manipulations"; install and reboot.
for instance, if you need to "escape XML" (that is transform reserve chars in "% bla ;" sequences :
File/new scratch file (or ctrl-alt-shift-ins), paste your XML, select all, right click "String manipulation", "escape xml"
Normally I used Notepad++ and the "XML Tools Plugin", but this seems more useful.
for instance, if you need to "escape XML" (that is transform reserve chars in "% bla ;" sequences :
File/new scratch file (or ctrl-alt-shift-ins), paste your XML, select all, right click "String manipulation", "escape xml"
Normally I used Notepad++ and the "XML Tools Plugin", but this seems more useful.
Labels:
intellij
Tuesday, March 12, 2019
IntelliJ, Eclipse and Java 11
https://blog.jetbrains.com/idea/2018/06/java-11-in-intellij-idea-2018-2/
you must install IDEA 2018.2 or greater. 2018.1 will not work, it supports only Java 10. It's a 500 MB monster so be patient.
https://www.jetbrains.com/idea/download/ download 2018.3.5 here
then configure the platform JDK with your installed JDK 11 (of course you must have installed this JDK from Oracle or OpenJDK!), with ALT-SHIFT-CONTROL-S (project structure/SDKs)
then configure Java 11 level (File/Project Structure/Modules and File/Project Structure/Project)
also don't forget the bytecode level (File/Settings/Java Compiler):
If you get the "invalid source release: 11" , it's possible that you misconfigured the "platform JDK"
For Eclipse it's much easier: install Eclipse 2018-09 (4.9), then install this add-on:
https://marketplace.eclipse.org/content/java-11-support-eclipse-2018-09-49
make sure you configure the JDK in the "installed JRA" preferences tab,
and when you create a new project, select jdk11 and create the module-info by default.
All works fine.
Sunday, August 13, 2017
Intellij and Git
Basic introduction here, very nice:
Incidentally, at first I could not find the "New/Ignore file" menu, so I have manually created a New File .gitignore, and Idea magically prompted me to install the Gitignore plugin, which I did with great satisfaction.
I kept getting
until in .git/config I changed the URL to https://pvmarmotta:mypassword@github.com/pvmarmotta/pv01.git/
it's tragic that such basic things entail manual hacks... this is the state of IT in 2017... I hope driverless cars will be better engineered otherwise we are toast (we are in any case thanks to AGW)
More interesting stuff on Git:
the infamous "DETACHED HEAD" message: http://gitolite.com/detached-head.html
The "git concepts simplified" http://gitolite.com/gcs.html in gitolite by Sitaram Chamarty
charismatic Jessica Kerr "Git Happens" presentation
Great presentation site Think like a Git http://think-like-a-git.net/
Michael Schwern famous "Git For Ages 4 and up"
Interesting articles on branching and workflow:
http://www.creativebloq.com/web-design/choose-right-git-branching-strategy-121518344
https://www.atlassian.com/git/tutorials/comparing-workflows
Incidentally, at first I could not find the "New/Ignore file" menu, so I have manually created a New File .gitignore, and Idea magically prompted me to install the Gitignore plugin, which I did with great satisfaction.
I kept getting
2017-08-12 12:03:55,303 [2262815] INFO - #git4idea.commands.GitHandler - remote: Permission to pvmarmotta/pv01.git denied to vernetto. 2017-08-12 12:03:55,303 [2262815] INFO - #git4idea.commands.GitHandler - fatal: unable to access 'https://github.com/pvmarmotta/pv01.git/': The requested URL returned error: 403
until in .git/config I changed the URL to https://pvmarmotta:mypassword@github.com/pvmarmotta/pv01.git/
it's tragic that such basic things entail manual hacks... this is the state of IT in 2017... I hope driverless cars will be better engineered otherwise we are toast (we are in any case thanks to AGW)
More interesting stuff on Git:
the infamous "DETACHED HEAD" message: http://gitolite.com/detached-head.html
The "git concepts simplified" http://gitolite.com/gcs.html in gitolite by Sitaram Chamarty
charismatic Jessica Kerr "Git Happens" presentation
Great presentation site Think like a Git http://think-like-a-git.net/
Michael Schwern famous "Git For Ages 4 and up"
Interesting articles on branching and workflow:
http://www.creativebloq.com/web-design/choose-right-git-branching-strategy-121518344
https://www.atlassian.com/git/tutorials/comparing-workflows
Sunday, August 6, 2017
IntelliJ is really awesome
great presentation by Trisha Gee:
You can learn how to make the best of the IDE from this 1 hour video (if you can stand the speaker)
more tips available here:
but of course the official help https://www.jetbrains.com/help/idea/meet-intellij-idea.html contains all that info
and the product blog of course https://blog.jetbrains.com/idea/
Also, after you read this https://dzone.com/articles/why-idea-better-eclipse you definitely want to ditch Eclipse forever.
Very useful the https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf keymap reference (menu Help/Keymap...)
and this list of features and shortcuts:
https://www.jetbrains.com/help/idea/2018.3/discover-intellij-idea.html
You can learn how to make the best of the IDE from this 1 hour video (if you can stand the speaker)
more tips available here:
but of course the official help https://www.jetbrains.com/help/idea/meet-intellij-idea.html contains all that info
and the product blog of course https://blog.jetbrains.com/idea/
Also, after you read this https://dzone.com/articles/why-idea-better-eclipse you definitely want to ditch Eclipse forever.
Very useful the https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf keymap reference (menu Help/Keymap...)
and this list of features and shortcuts:
https://www.jetbrains.com/help/idea/2018.3/discover-intellij-idea.html
Labels:
intellij
Subscribe to:
Posts (Atom)
