mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-20 16:24:11 +01:00
bug fixes
Former-commit-id: 770436e4eff1f331b122eecd16081194987ba3f9
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -331,6 +331,11 @@ along with DependencyCheck. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>taglist-maven-plugin</artifactId>
|
||||||
|
<version>2.4</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
|||||||
@@ -482,6 +482,12 @@ public class JarAnalyzer extends AbstractAnalyzer {
|
|||||||
protected void parseManifest(Dependency dependency) throws IOException {
|
protected void parseManifest(Dependency dependency) throws IOException {
|
||||||
JarFile jar = new JarFile(dependency.getActualFilePath());
|
JarFile jar = new JarFile(dependency.getActualFilePath());
|
||||||
Manifest manifest = jar.getManifest();
|
Manifest manifest = jar.getManifest();
|
||||||
|
if (manifest == null) {
|
||||||
|
Logger.getLogger(JarAnalyzer.class.getName()).log(Level.SEVERE,
|
||||||
|
"Jar file '{0}' does not contain a manifest.",
|
||||||
|
dependency.getFileName());
|
||||||
|
return;
|
||||||
|
}
|
||||||
Attributes atts = manifest.getMainAttributes();
|
Attributes atts = manifest.getMainAttributes();
|
||||||
|
|
||||||
EvidenceCollection vendorEvidence = dependency.getVendorEvidence();
|
EvidenceCollection vendorEvidence = dependency.getVendorEvidence();
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import org.apache.lucene.document.Field;
|
|||||||
import org.apache.lucene.document.StoredField;
|
import org.apache.lucene.document.StoredField;
|
||||||
import org.apache.lucene.document.TextField;
|
import org.apache.lucene.document.TextField;
|
||||||
import org.apache.lucene.index.CorruptIndexException;
|
import org.apache.lucene.index.CorruptIndexException;
|
||||||
import org.apache.lucene.index.FieldInfo.IndexOptions;
|
|
||||||
import org.apache.lucene.index.Term;
|
import org.apache.lucene.index.Term;
|
||||||
import org.codesecure.dependencycheck.data.cpe.Entry;
|
import org.codesecure.dependencycheck.data.cpe.Entry;
|
||||||
import org.codesecure.dependencycheck.data.cpe.Fields;
|
import org.codesecure.dependencycheck.data.cpe.Fields;
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ import org.apache.lucene.document.Field;
|
|||||||
import org.apache.lucene.document.StoredField;
|
import org.apache.lucene.document.StoredField;
|
||||||
import org.apache.lucene.document.StringField;
|
import org.apache.lucene.document.StringField;
|
||||||
import org.apache.lucene.index.CorruptIndexException;
|
import org.apache.lucene.index.CorruptIndexException;
|
||||||
import org.apache.lucene.index.FieldInfo.IndexOptions;
|
|
||||||
import org.apache.lucene.index.Term;
|
import org.apache.lucene.index.Term;
|
||||||
import org.codesecure.dependencycheck.data.cpe.Entry;
|
import org.codesecure.dependencycheck.data.cpe.Entry;
|
||||||
import org.codesecure.dependencycheck.data.nvdcve.Fields;
|
import org.codesecure.dependencycheck.data.nvdcve.Fields;
|
||||||
|
|||||||
Reference in New Issue
Block a user