NetBeans is no longer generating a JAR file for code that it used to

前端 未结 3 1348
暗喜
暗喜 2021-01-27 04:52

Two years ago I wrote a simple upload applet using Java, developed using NetBeans. When I first hit \"Clean and Build\" back then, and for some time afterwards, it worked perfec

3条回答
  •  醉话见心
    2021-01-27 05:34

    Option 1: I tried to run the IDE with "Run as Administrator". It helped me to create the jar file properly

    Option 2: a. After running "Clean and Build" Go to Netbeans Maven Project Navigator and right-click on the Execute Goal With Modifiers...

    b. Remove "test-" from "org.apache.maven.plugins:maven-jar-plugin:2.3.2:test-jar" and selecting all the checkboxes as shown below (You may like to use the command later by selecting the "Remember as" checkbox)

    I hope it will help someone

提交回复
热议问题