这是一个使用NetBeans和一个简单
创建的简单Maven项目。 System.out.println("hello world");
在主班上。
Docker正在运行,并且可以在NetBeans中作为服务使用。
Docker文件为:
FROM anapsix/alpine-java:latest
copy target/TestDocker-1.0-SNAPSHOT.jar .
CMD ["java","-jar", "TestDocker-1.0-SNAPSHOT.jar"]
构建文件时,错误为:
java.lang.NullPointerException
at org.netbeans.core.output2.OutWriter.printANSI(OutWriter.java:632)
at org.netbeans.core.output2.OutWriter.print(OutWriter.java:591)
at org.netbeans.core.output2.ErrWriter.print(ErrWriter.java:211)
at org.netbeans.core.output2.ErrWriter.println(ErrWriter.java:165)
at org.netbeans.modules.docker.ui.build2.BuildTask.run(BuildTask.java:200)
at org.netbeans.modules.docker.ui.build2.BuildImageWizard$1.run(BuildImageWizard.java:276)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)