Hello all,
i have a webapp in which i am using maven2.
My webapp should produce reports... one of which is cobertura..
but unfortunately, whenever cobertura gets called (either by mvn site, mvn
install, mvn cobertura:check as example)
it fails miserably with a NUllPOInterException and i cannot figure out what
is hte problem..
could anyone help me out?
attached is my pom.xml.
thanks in advance and regards
marco
---------- Forwarded message ----------
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Sep 25, 2007 4:21 PM
Subject: Cobertura fails
To: [EMAIL PROTECTED]
Cobertura: Saved information on 111 classes.
Instrument time: 703ms
[DEBUG] --------------------
[INFO] Instrumentation was successful.
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-resources-plugin:2.3-SN
APSHOT:testResources' -->
[DEBUG] (f) filters = []
[DEBUG] (f) outputDirectory = C:\KPL\target\test-classes
[DEBUG] (f) project = [EMAIL PROTECTED]
[DEBUG] (f) resources = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Copying 4 resources
[DEBUG] KPL:KPL:jar:1.0-SNAPSHOT (selected for null)
[DEBUG] fit:fitWSPricingClient:jar:1.0:system (selected for system)
[DEBUG] axis:axis:jar:1.4:compile (selected for compile)
[DEBUG] axis:axis-jaxrpc:jar:1.4:compile (selected for compile)
[DEBUG] axis:axis-saaj:jar:1.4:compile (selected for compile)
[DEBUG] axis:axis-wsdl4j:jar:1.5.1:runtime (selected for runtime)
[DEBUG] commons-logging:commons-logging:jar:1.0.4:runtime (selected for
runt
ime)
[DEBUG] commons-discovery:commons-discovery:jar:0.2:runtime (selected
for ru
ntime)
[DEBUG] commons-logging:commons-logging:jar:1.0.3:runtime (removed -
neare
r found: 1.0.4)
[DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
[DEBUG] jasperreports:jasperreports:jar:1.3.3:compile (selected for
compile)
[DEBUG] commons-beanutils:commons-beanutils:jar:1.7.0:compile (selected
for
compile)
[DEBUG] commons-logging:commons-logging:jar:1.0.4:runtime (setting
scope t
o: compile)
[DEBUG] commons-logging:commons-logging:jar:1.0.4:compile (selected
for co
mpile)
[DEBUG] commons-collections:commons-collections:jar:20040616:compile
(settin
g version to: 20040616 from range: [2.1,))
[DEBUG] commons-collections:commons-collections:jar:20040616:compile
(select
ed for compile)
[DEBUG] commons-digester:commons-digester:jar:1.7:compile (setting
version t
o: 1.7 from range: [1.7,))
[DEBUG] commons-digester:commons-digester:jar:1.7:compile (selected for
comp
ile)
[DEBUG] commons-beanutils:commons-beanutils:jar:1.6:compile (removed -
nea
rer found: 1.7.0)
[DEBUG] commons-logging:commons-logging:jar:1.0:compile (removed -
nearer
found: 1.0.4)
[DEBUG] commons-collections:commons-collections:jar:2.1:compile (range
res
tricted from: 2.1 and: [2.1,) to: 2.1 )
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile (selected for compile)
[DEBUG] commons-logging:commons-logging:jar:1.1:compile (setting version
to:
1.1 from range: [1.0,))
[DEBUG] commons-logging:commons-logging:jar:1.1:compile (range
restricted fr
om: [1.0,) and: 1.0.4 to: 1.0.4 )
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NullPointerException
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D
efaultArtifactCollector.java:164)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D
efaultArtifactCollector.java:334)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(D
efaultArtifactCollector.java:334)
at
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(D
efaultArtifactCollector.java:75)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:284)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:272)
at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDepende
ncies(DefaultPluginManager.java:1238)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:397)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
cle(DefaultLifecycleExecutor.java:896)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
(Def
aultLifecycleExecutor.java:739)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:510)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Tue Sep 25 16:20:35 BST 2007
[INFO] Final Memory: 5M/9M
[INFO]
------------------------------------------------------------------------
This communication is confidential, may be privileged and is meant
only for the intended recipient. If you are
not the intended recipient, please notify the sender by reply and
delete this message from your system. Any
unauthorised dissemination, distribution or copying hereof is prohibited.
BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK
Limited, BNP Paribas UK Limited,
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited
are authorised and regulated by
the Financial Services Authority.
BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private
Bank are authorised by the CECEI
and AMF. BNP Paribas London Branch, BNP Paribas Securities Services
London Branch and BNP Paribas
Private Bank London Branch are regulated by the Financial Services
Authority for the conduct of their UK
business. BNP Paribas Securities Services London Branch is also a
member of the London Stock Exchange.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>KPL</groupId>
<artifactId>KPL</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>KPL</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>springframework</groupId>
<artifactId>spring-mock</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>C:/KPL/lib/spring-mock-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>lucene</groupId>
<artifactId>lucene</artifactId>
<version>1.4.3</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>jmock</groupId>
<artifactId>jmock</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>1.3.3</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.13</version>
</dependency>
<dependency>
<groupId>jmock</groupId>
<artifactId>jmock-cglib</artifactId>
<version>1.0.0.RC1</version>
</dependency>
<dependency>
<groupId>opensymphony</groupId>
<artifactId>webwork</artifactId>
<version>2.2.5</version>
</dependency>
<dependency>
<groupId>freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.9</version>
</dependency>
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-j2ee</artifactId>
<version>1.4-rc4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>fit</groupId>
<artifactId>fitWSPricingClient</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>c:\KPL\lib\fitWSPricingClient-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>fit</groupId>
<artifactId>fitWSStaticClient</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>c:/KPL/lib/fitWSStaticClient-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>jawin</groupId>
<artifactId>jawin</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>c:/KPL/lib/jawin-1.0.jar</systemPath>
</dependency>
<dependency>
<groupId>poi</groupId>
<artifactId>poi</artifactId>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
<scope>system</scope>
<systemPath>c:/KPL/lib/ant-1.6.5.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<check>
<totalLineRate>50</totalLineRate>
<totalBranchRate>50</totalBranchRate>
</check>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</project>---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]