Menu

#22 non-jar dependencies + OutOfMemoryException

release
closed
findbugs (17)
5
2004-08-12
2004-08-04
No

I have mavenized project divided into multiple
subprojects. In one of subprojects I have non-jar
dependencies (binary files) which I've marked with bin
type as below:

<dependency>
<groupId>wrapper</groupId>
<artifactId>wrapper.exe</artifactId>
<jar>wrapper-${serviceWrapper.version}.exe</jar>
<type>bin</type>
<version>${serviceWrapper.version}</version>
<url>http://wrapper.tanukisoftware.org/</url>
</dependency>

This project contains also some RMI compiled classes.
When I run findbugs report I get following:
[echo] Running the FindBugs task...
[findbugs] Running FindBugs...
[findbugs] CLASSPATH component
/home/mwerla/.maven/repository/wrapper/bins/libwrapper-3.1.1.so:
java.util.zip.ZipException: error in opening zip file
[findbugs] CLASSPATH component
/home/mwerla/.maven/repository/wrapper/bins/wrapper-3.1.1.dll:
java.util.zip.ZipException: error in opening zip file
[findbugs] CLASSPATH component
/home/mwerla/.maven/repository/wrapper/bins/wrapper-3.1.1.exe:
java.util.zip.ZipException: error in opening zip file
[findbugs] CLASSPATH component
/home/mwerla/.maven/repository/wrapper/bins/wrapper-3.1.1:
java.util.zip.ZipException: error in opening zip file
[findbugs] Exception in thread "main"
java.lang.OutOfMemoryError
[findbugs] Output saved to
/home/mwerla/dlibra/root/../dlibra-server/target/findbugs-raw-report.xml
[echo] Converting the FindBugs report to xdoc ...

BUILD FAILED
File......
/home/mwerla/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
Element... maven:reactor
Line...... 103
Column.... 9
Unable to obtain goal [site] --
/home/mwerla/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly:120:48:
<x:parse> Error on line 1 of document
file:/home/mwerla/dlibra/root/../dlibra-server/target/findbugs-raw-report.xml
Premature end of file. Nested exception: Premature
end of file.

Discussion

  • Eric Pugh

    Eric Pugh - 2004-08-12

    Logged In: YES
    user_id=140549

    Could you try this again with the latest and greatest? I am
    explicitly filtering in jars only.

     
  • Eric Pugh

    Eric Pugh - 2004-08-12
    • status: open --> closed
     
  • Marcin Werla

    Marcin Werla - 2004-08-13

    Logged In: YES
    user_id=1037533

    I've installed new plugin and I still have empty XML file
    :-( (see attachement)

     
  • Marcin Werla

    Marcin Werla - 2004-08-13

    Work log

     
  • Eric Pugh

    Eric Pugh - 2004-08-13

    Logged In: YES
    user_id=140549

    Not quite sure what to say here.. Have you tried giving it
    more memory?

    Also, what is happening here:
    build:start:
    [echo] Gathering dependencies from associated dlibra
    subprojects...
    [echo] Checking project dlibra:dlibra-common
    [echo] Checking project dlibra:dlibra-common-test
    [echo] Adding: commons-digester:commons-digester []

    Is this using reactor or somethign to pull stuff in? I
    would recommend that you try and tweak around the
    plugin.jelly to get it to work. Maybe hadd some
    maven.findbugs.jars.includes and
    maven.findbugs.jars.excludes to only load certain jar files.

    also, try it on your subprojects..

     

Log in to post a comment.

MongoDB Logo MongoDB