Strange NullPointerException in maven-resources-plugin

时间秒杀一切 提交于 2019-12-05 17:59:21
Michael-O

Try to run maven with -X and analyze the debug output. This might help. At least for me it does very often.

Edit: This is the problematic spot:

113  public boolean filteredFileExtension( String fileName, List userNonFilteredFileExtensions )
114 {
115 List nonFilteredFileExtensions = new ArrayList( getDefaultNonFilteredFileExtensions() );

getDefault.. returns null. Did you change the nonFilteredExts somehow? Because they are populated by default here:

63  // ------------------------------------------------
64 // Plexus lifecycle
65 // ------------------------------------------------
66 public void initialize()
67 throws InitializationException
68 {
69 // jpg,jpeg,gif,bmp,png
70 this.defaultNonFilteredFileExtensions = new ArrayList( 5 );
71 this.defaultNonFilteredFileExtensions.add( "jpg" );
72 this.defaultNonFilteredFileExtensions.add( "jpeg" );
73 this.defaultNonFilteredFileExtensions.add( "gif" );
74 this.defaultNonFilteredFileExtensions.add( "bmp" );
75 this.defaultNonFilteredFileExtensions.add( "png" );
76 }

Since you are building in parallel, this might be a race condition. You should really raise an issue at MRESOURCES.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!