pedrohidalgo / nbshell

Shell Script File support on NetBeans IDE.
Apache License 2.0
15 stars 5 forks source link

NB 12.6 install #4

Open symio opened 2 years ago

symio commented 2 years ago

Hello and all wishes for 2022,

(sorry for question but i'm not into java developpment)

How to install this plugin in Apache Netbeans 12.6 ?

Chris2011 commented 2 years ago

Hey @symio the old plugin portal is gone so you need to build it by your own. Just clone the repo, open the project with NetBeans and build it. At the end you will find the nbm file in the target folder :).

DimmoK commented 2 years ago

Hello! Sorry for my bad English.

I try build this project, but I have a error.

BUILD FAILURE

Total time: 10.640 s Finished at: 2022-01-27T14:50:11+03:00

Failed to execute goal on project nbshell: Could not resolve dependencies for project com.qualixium:nbshell:nbm:1.2.3: Failed to collect dependencies at org.netbeans.api:org-netbeans-api-annotations-common:jar:RELEASE81: Failed to read artifact descriptor for org.netbeans.api:org-netbeans-api-annotations-common:jar:RELEASE81: Could not transfer artifact org.netbeans.api:org-netbeans-api-annotations-common:pom:RELEASE81 from/to netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans): Authentication failed for http://bits.netbeans.org/nexus/content/groups/netbeans/org/netbeans/api/org-netbeans-api-annotations-common/RELEASE81/org-netbeans-api-annotations-common-RELEASE81.pom 401 Repository decommissioned. Please refer to https://netbeans.apache.org/about/oracle-transition.html for more information. -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.

Chris2011 commented 2 years ago

You should update the RELEASE81 to minimum RELEASE90 or later. I think this will solve the problem. RELEASE* means the platform for NetBeans. RELEASE81 means the API/Packages for NetBeans 8.1 which is very old. We are now close to NetBeans 13.0 which will be RELEASE130 soon. Latest is RELEASE126

DimmoK commented 2 years ago

You should update the RELEASE81 to minimum RELEASE90 or later. I think this will solve the problem. RELEASE* means the platform for NetBeans. RELEASE81 means the API/Packages for NetBeans 8.1 which is very old. We are now close to NetBeans 13.0 which will be RELEASE130 soon. Latest is RELEASE126

Sorry, but I Have a latest version NetBeans

Product Version: Apache NetBeans IDE 12.6 Java: 17.0.2; Java HotSpot(TM) 64-Bit Server VM 17.0.2+8-LTS-86 Runtime: Java(TM) SE Runtime Environment 17.0.2+8-LTS-86 System: Windows 8.1 version 6.3 running on amd64; Cp1251; ru_RU (nb) User directory: C:\Users\DimmKo\AppData\Roaming\NetBeans\12.6 Cache directory: C:\Users\DimmKo\AppData\Local\NetBeans\Cache\12.6

Chris2011 commented 2 years ago

It is not about your IDE that you are working with, it is that you need to build the plugin with the correct platform. Just change this: https://github.com/pedrohidalgo/nbshell/blob/master/pom.xml#L177 to that what I mentioned. The plugin is just build with maven but with the platform 8.1. Doesn't matter which IDE you have.

DimmoK commented 2 years ago

O, Thanks! I succefull build projectand install plugin after that! Now syntaxhighlight for my shell script.

symio commented 2 years ago

Yes !

With pom modification ...

I suggest to write it in the readme for non java developpers on how to install and configure for nb versions. Btw great job and thanks for the plugin it's better with syntax to work with shell script in ide instead of separated editors.