diff --git a/Source/bw6-maven-plugin/src/main/java/com/tibco/bw/maven/plugin/test/setuplocal/ESMTestFile.java b/Source/bw6-maven-plugin/src/main/java/com/tibco/bw/maven/plugin/test/setuplocal/ESMTestFile.java index 1b451c55..daeba9b3 100644 --- a/Source/bw6-maven-plugin/src/main/java/com/tibco/bw/maven/plugin/test/setuplocal/ESMTestFile.java +++ b/Source/bw6-maven-plugin/src/main/java/com/tibco/bw/maven/plugin/test/setuplocal/ESMTestFile.java @@ -113,14 +113,10 @@ private void checkForSharedModule( Map artifactFiles) { continue; } boolean isSharedModule = false; + System.out.println("#### " + file.getAbsolutePath()); Manifest mf = ManifestParser.parseManifestFromJAR( file); - if(mf == null){ - try { - throw new Exception("Failed to get Manifest for - "+ file.getName() +". Please verify if jar file is valid, the MANIFEST.MF should be first or second entry in the jar file. Use Command - jar tf to verify."); - } catch (Exception e) { - e.printStackTrace(); - } - } + if(mf != null){ + for( Object str : mf.getMainAttributes().keySet()) { if( Constants.TIBCO_SHARED_MODULE.equals(str.toString() )) @@ -136,6 +132,7 @@ private void checkForSharedModule( Map artifactFiles) { e.printStackTrace(); } } + } } }