Hi,

It is skipping the compile the test sources but it is loading the jars
during this phase even though it is skipped.. you
can see this in the logs with -X option. Is it supposed to load these jars
even though it is skipped.

Should it also skip the resources:testResources when this property is set to
true ?

Thanks
Gautham Pamu

[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[DEBUG] com.mycompany.app:my-app:jar:1.0-SNAPSHOT (selected for null)
[DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-compiler-plugin:2.0.1:testCompile' -->
[DEBUG]   (f) basedir = C:\temp\my-app
[DEBUG]   (f) buildDirectory = C:\temp\my-app\target
[DEBUG]   (f) classpathElements = [C:\temp\my-app\target\classes,
C:\temp\my-app\target\test-classes, C:\Documents and
Settings\Administrator\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar]
[DEBUG]   (f) compileSourceRoots = [C:\temp\my-app\src\test\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) debug = true
[DEBUG]   (f) fork = false
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory = C:\temp\my-app\target\test-classes
[DEBUG]   (f) outputFileName = my-app-1.0-SNAPSHOT
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) skip = true
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[DEBUG] com.mycompany.app:my-app:jar:1.0-SNAPSHOT (selected for null)
[DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
[DEBUG]
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.1.3:runtime(selected
for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for
runtime)
[DEBUG]   junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire-root::1.1for project:
null:surefire:jar:
1.5.3 from the repository.
[DEBUG]   org.apache.maven.surefire:surefire:jar:1.5.3:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
project: null:plexus-utils:jar:1.1 from the repository.
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (removed -
nearer found: 1.0.4)
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire-root::1.1for project:
null:surefire-booter:jar:
1.5.3 from the repository.
[DEBUG]   org.apache.maven.surefire:surefire-booter:jar:1.5.3:runtime(selected
for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-surefire-plugin:2.1.3:test' -->
[DEBUG]   (f) basedir = C:\temp\my-app
[DEBUG]   (f) childDelegation = true
[DEBUG]   (f) classesDirectory = C:\temp\my-app\target\classes
[DEBUG]   (f) classpathElements = [C:\temp\my-app\target\classes,
C:\temp\my-app\target\test-classes, C:\Documents and
Settings\Administrator\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar]
[DEBUG]   (f) forkMode = none
[DEBUG]   (f) jvm = java
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents and
Settings\Administrator\.m2\repository
[DEBUG]   (f) pluginArtifacts = [junit:junit:jar:3.8.1:runtime,
org.apache.maven.surefire:surefire:jar:1.5.3:runtime,
org.apache.maven.surefire:surefire-booter:jar:1.5.3:runtime,
org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime,
org.apache.maven:maven-plugin-api:jar:2.0:runtime,
org.apache.maven:maven-artifact:jar:2.0:runtime]
[DEBUG]   (f) printSummary = true
[DEBUG]   (f) reportFormat = brief
[DEBUG]   (f) reportsDirectory = C:\temp\my-app\target/surefire-reports
[DEBUG]   (f) skip = true
[DEBUG]   (f) testClassesDirectory = C:\temp\my-app\target\test-classes
[DEBUG]   (f) useFile = true
[DEBUG] -- end configuration --
[INFO] [surefire:test]
[INFO] Tests are skipped.
[DEBUG] 
org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.0:runtime(selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-archiver:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-archiver:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime(selected
for runtime)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
for runtime)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG]       org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0:runtime(selected
for runtime)
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime(selected
for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected
for runtime)
[DEBUG]       org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3:runtime(selected
for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime(selected
for runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime(selected
for runtime)
[DEBUG]       
org.apache.maven:maven-repository-metadata:jar:2.0:runtime(selected
for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected
for runtime)
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for
runtime)
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.0:jar'
-->
[DEBUG]   (f) basedir = C:\temp\my-app\target
[DEBUG]   (f) finalName = my-app-1.0-SNAPSHOT
[DEBUG]   (f) outputDirectory = C:\temp\my-app\target\classes
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [jar:jar]
[INFO] Building jar: C:\temp\my-app\target\my-app-1.0-SNAPSHOT.jar
[DEBUG] adding directory META-INF/
[DEBUG] adding entry META-INF/MANIFEST.MF
[DEBUG] adding directory com/
[DEBUG] adding directory com/mycompany/
[DEBUG] adding directory com/mycompany/app/
[DEBUG] adding entry com/mycompany/app/App.class
[DEBUG] adding directory META-INF/maven/
[DEBUG] adding directory META-INF/maven/com.mycompany.app/
[DEBUG] adding directory META-INF/maven/com.mycompany.app/my-app/
[DEBUG] adding entry META-INF/maven/com.mycompany.app/my-app/pom.xml
[DEBUG] adding entry META-INF/maven/com.mycompany.app/my-app/pom.properties
[DEBUG]
org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.1:runtime(selected
for runtime)
[DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected
for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime(selected
for runtime)
[DEBUG]       classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG]       junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-repository-metadata:jar:2.0:runtime(selected
for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected
for runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-install-plugin:2.1:install' -->
[DEBUG]   (f) artifact = com.mycompany.app:my-app:jar:1.0-SNAPSHOT
[DEBUG]   (f) attachedArtifacts = []
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents and
Settings\Administrator\.m2\repository
[DEBUG]   (f) packaging = jar
[DEBUG]   (f) pomFile = C:\temp\my-app\pom.xml
[DEBUG] -- end configuration --
[INFO] [install:install]
[INFO] Installing C:\temp\my-app\target\my-app-1.0-SNAPSHOT.jar to
C:\Documents and
Settings\Administrator\.m2\repository\com\mycompany\app\my-app\1.0-SNAPSHOT\my-
app-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Wed May 03 14:32:28 CDT 2006
[INFO] Final Memory: 5M/16M
[INFO]
------------------------------------------------------------------------


On 5/3/06, Gautham Pamu <[EMAIL PROTECTED]> wrote:

Hi

I am doing mvn install with maven.test.skip=true, it is skipping to run
the testcases but is it possible to even skip compiling the testcases.

-Dmaven.test.skip =true

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.

Thanks
--
-Gautham Pamu




--
-Gautham Pamu

Reply via email to