README.md for MAVEN project in NetBeans - maven

I want add README.md file for in will be visible and editable in NetBeans 8.2 in Maven Java project type, But when the file lies in th project root it still unvisible in the IDE...

Interestingly enough there is a plugin for it.
See at github or at netbeans portal
To install it go to Tools -> plugins -> Available Plugins and search for readme. Choose plugin called Display readme files in project view. You can change which files to show on the Tools -> options -> Miscellaneous->Display more files panel:
UPDATE 2022:
Currently, the old NetBeans portal unavailable because it was decommissioned. You can download plugin from here and install manually. To install it manually, download the file readmeinprojectview-1.6.0.nbm then go to Tools -> Plugins -> Donwloaded -> Add Plugins. Then select the plugin and click Install.

Because readme.md is not part of project code. It is a descriptor file for marking down specific lines and paragraphs to highlight project details and it is used to generate the html summary you see at the bottom of projects on pages like GitHub.
It will be visible in the Files tab.

Related

“Maven Project” option is not showing in Jenkins under New Item section (latest version 2.60.1 for Windows)

Open Jenkins server, go to >> New Item
As i want to work with Maven Project but i cant find 'maven project' option available there.
►To add Maven Project in New Item Page,
just go to Manage Jenkins >> Manage Plugin,
click on Available Tab,
In the filter box enter "Maven plugin" and you will get search result as "Unleash Maven Plugin",
√ enable the check-box, click on "Download now and install after restart"
Below screenshot will help you more-
1) Go to Jenkins Dashboard ->Manage Jenkins ->Manage plugins ->Available ->Maven Integration ->Install
2) Go to Manage Jenkins->Global tool configuration->Maven -> Add Maven_home variable value (i.e. path of the maven file on your system)
3) Go to Jenkins Dashboard -> New Item -> Maven Project option will be available
Here is a latest updates as per Jenkins the Plugin name to installed is changed to "Maven Integration" highlighted below:
PFB

How to save a module from one computer and import into into another computer in IntelliJ with Maven

I have a Maven module in IntelliJ which works fine from one computer. I have saved the ".iml" file together with the project in Git. When I check it out on another computer,
"New Project"
then "File" -> "New Module from Existing Sources" -> Select the ".iml" file, the structure is all there, but no Maven dependencies are resolved.
How do I get IntelliJ to download and import the Maven dependencies?
Things I have tried:
"Re-build Project"
Right-click the module and "Re-build module"
"File" -> "Invalidate Caches / Restart" (both invalidate and restart)
"Re-import All Maven Projects", this simply deleted the two Maven modules from the project. I then had to re-create the modules as above, once they were there again I had the same problem.
On the comand-line "mvn" is able to import the project and resolve all dependencies just fine.
Additional information:
The ".iml" file, when I look at it in a text editor, does not have any absolute paths in it.
Here is a picture of the module settings window:
If your goal is to just import the project on another PC, don't rely on the iml files. Some even consider it bad practice to commit IDE specific files in maven projects, as not everyone on a project might use the same version or even a different IDE. If you take a look at popular .gitignore files (e.g. this one), you'll most often find that any IDE specific files get excluded.
Consider importing the projects pom.xml:
Import Project -> from external model -> Maven
EDIT
JetBrains recommends to NOT include the iml file with Maven or Gradle projects, see here

How to fetch Source Configuration from AnthillPro programatically?

I went through the REST API doc of AnthillPro but couldn't find anything useful on fetching source configuration for a workflow.
What I need exactly is the code repository(svn/git) for the workflow. In anthillPro, it can be seen/edited from Administration >> Folder >> Project >> Build >> SourceConfigurations
Have you installed the proper plugin ? Use this site to download what you need -
https://developer.ibm.com/urbancode/plugins/anthillpro/
I use AHP 5, so after installing the plugins you should do the followings:
Check to see if plugin installed and all the steps and details - you should see them in
System -> Server -> Plugins
Then you should create a new repository from:
System -> Project support -> Repositories
Then add steps to a job, that is assigned to the workflow you have, from:
Administration -> Job -> "Add step icon"
From the steps popup:
Repositories -> source -> GIT -> ALL THE AVAILABLE STEPS
Option 2 (never did that myself) -
Add a shell script/ batch as a step and write your own code to fetch you desired code
Enjoy,
Eli

cant' install sublimemaven plugin successfully

I follow this https://coderwall.com/p/etesrq to install the sublimemaven plugin for my sublime2.
All steps seems ok, but I can't get the 'Maven' menu item in 'Tools->Build System'.
I have added the
"m2_home": "F:/jill/job/software/apache-maven-3.0.4",
add
"maven_menu_commands":
by following https://github.com/nlloyd/SublimeMaven.
and restart sublime2 several times.
but still can't get it.
Could some body help?
Thanks
I find that I don't have "maven" in "tools" -> "build system" either, but using cmd + shift + p , then type in "maven", I can see several commands, one of them is "maven: Run...", I use this command when I need to specify one. Commonly, other default maven commands could satisfy your requirement.
Nick Lloyd's SublimeMaven plug-in installed nicely for me on Sublime Text 3 but showed build commands only in the Command Palette (CTRL+SHIFT+P).
Only after I added Andres Koetter's configuration file to the Packages/User directory of my portable SUBLIME_TEXT_3/Data/ dir (or ~/.config/sublime-text-3/ for some) I found a Maven build option in the Tools > Build menu. This new option enables Sublime Text 3's build system run commands for Maven builds, that is:
Build (CTRL+B) : run default build configuration
Build with ... (CTRL+SHIFT+B) : select mvn goals, profiles, command-line options, etc.
Just adding a working directory tip that I found on this URL: https://gist.github.com/4ndrej/5162986
Once I finished instructions provided by user2951392, I got working Maven menu on sublime text 3. Then I tried to build some projects, but for each one of them I got an error like this: "...there is no pom.xml file on directory E:\sublime...".
So, just change the following content on Maven.sublime-build file:
old: "$file_path"
new: "${project_path:${folder}}"
With this final change I got my sublime text 3 and Maven 3+ working fine.
Cheers!

How to enable jsp-tags autocompletion in NetBeans within NetBeans Maven projects?

Using NetBeans 7.1.2.
When editing pages with NetBeans as per the procedure explained below, the IDE offers only autocompletion for <jsp:...> tags:
This is how I have created the NetBeans project and the jsp (though it isn't archetype specific, nor the issue has anything to do with opencms): I have created a maven project with the OpenCms-Module archetype
mvn archetype:generate -DarchetypeCatalog=http://bp-cms-commons.sourceforge.net/m2repo
The archetype creates a maven project with jar packaging.
After that, I have added a jsp under src/main/opencms/modules/blahblah/templates.
And then I have added the taglibs.standard dependency to the project, to try to provide NetBeans with the corresponding tlds.
After several hours trying to get this working, I found this reported and closed bug that hinted me into the right direction:
Added src/main/webapp directory Edit 1: There is autocompletion only for jstl tags if the files are inside src/main/webapp. Workaround in linux (not sure if windows links will work): Create a symlink:
ln -s opencms/ src/main/webapp from the project root folder
Change maven project packaging to war (Project properties -> General -> Packaging)
(Notice that neither the #taglib directive nor the taglibs.standard dependency are necessary.)
If the Web Pages entry does not appear under your project (in the projects view), you may need to restart NetBeans. Now you'll have full autocompletion (only) under src/main/webapp! :-)
Edit 2
Unfortunately, if under version control, NetBeans sees the symlink as a new directory, and all files under it, as new files :-( This is very inconvenient, because to access the IDE integrated version control functionality, you still need to open the original resource.

Resources