You probably want to fix your compilation error first. You can't expect
your tests to pass if your project doesn't compile. But since you don't
provide any details about the compile error, it's difficult to help...
(try maven -e java:compile).
-Lukas
Choudhary, Jay wrote:
All
I am new to maven..
My maven.xml is below at top level
<project default="build" xmlns:m="jelly:maven" xmlns:j="jelly:core"
xmlns:ant="jelly:ant">
<goal name="build">
<attainGoal name="buildAll"/>
<attainGoal name="multiproject"/>
</goal>
<goal name="buildAll">
<attainGoal name="cleanAll"/>
<attainGoal name="multiproject:install"/>
</goal>
<goal name="cleanAll">
<attainGoal name="clean"/>
<attainGoal name="multiproject:clean"/>
</goal>
<preGoal name="site">
<attainGoal name="clover:on"/>
</preGoal>
<postGoal name="multiproject:clean">
<ant:delete
dir="${maven.home.local}/repository/com.visaeu.rcs.cts"/>
<ant:delete
dir="${maven.home.local}/repository/com.visaeu.rcs.application"/>
<ant:delete
dir="${maven.home.local}/repository/com.visaeu.rcs.dm"/>
</postGoal>
</project>
Now when I run maven site , it fails on clover test ,,, error given
below
#-----------------------------------------------------------------------
---
[javac] Compiling 18 source files to
/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/classes
[javac] Clover Version 1.3.11, built on November 02 2005
[javac] loaded from:
/home/users/rcsdev/.maven/repository/clover/jars/clover-1.3.11.jar
[javac] 50 Seat Team License registered to [EMAIL PROTECTED], Visa
Europe Services Inc.
[javac] Processing files at 1.5 source level.
[javac] No coverage database
'/vobs/RCSN_Build/builds/outOfContainer/app/Edits/target/clover/database
/clover_coverage.db' found. Creating a fresh one.
[javac] [ERROR]
/tmp/clover20301.tmp/src20302.tmp/com/visaeu/rcs/application/edits/dbper
sistence/EditsDBPersistenceFacade.java.tmp:331:12:expecting "class",
found 'ColBatchControl'
[javac] [ERROR] line 331: expecting "class", found 'ColBatchControl'
[javac] [ERROR] ** Error(s) occurred and the instrumentation process
can't continue.
BUILD FAILED
File...... /home/users/rcsdev/.maven/cache/maven-java-pl
#-----------------------------------------------------------------------
----
I have been told this has happened because the class file was not
created , now when I try to create class file maven jar:install failed
with compilation error .
Shouldn't it be that whole build should compile first and then clover
test should run ?
I am thinking to modify maven.xml with
<goal name="buildAll">
<attainGoal name="cleanAll"/>
<attainGoal name="multiproject:install"/>
<attainGoal name="site"/>
</goal>
This email (including attachments) is confidential and is solely intended for
the addressee. Unless you are the addressee, you may not read, use or store
this email in any way, or permit others to. If you have received it in error,
please contact Visa Europe on +44 (0)20 7937 8111.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]