Hi R.C.,

If your project has no real sources, then you don't need the reporting
provided by coberatura-maven-plugin, right?  Just remove mention of it
from the <build><reporting> section of your POM.

Steve

CodingPlayer wrote:
> Hi,
> 
> i'm trying to run 'mvn site' for my archetype-project, but always get the
> following error.
> 
> The  archetype itself has no REAL sources, but defines some source
> templates.
> 
> I believe the cobertura-maven-plugin detects those sources and beliefs that
> they are part of the project.
> 
> 
> 
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building Project Archetype
> [INFO]    task-segment: [clean, deploy, site, site:deploy]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target
> [INFO] Deleting directory
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/classes
> [INFO] Deleting directory
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/test-classes
> [INFO] Deleting directory
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/site
> [INFO] [cobertura:clean {execution: clean}]
> [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for
> updates from sat-maven-repository-http
> [INFO] artifact org.apache.maven.plugins:maven-plugin-plugin: checking for
> updates from central
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from sat-maven-repository-http
> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
> for updates from central
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [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] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/surefire-reports
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
> 
> Results :
> 
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] [jar:jar]
> [INFO] Building jar:
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [jar:test-jar {execution: default}]
> [INFO] Building jar:
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-tests.jar
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] No goals needed for project - skipping
> [INFO] [source:jar {execution: attach-sources}]
> [INFO] Building jar:
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-sources.jar
> [INFO] Preparing source:test-jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] No goals needed for project - skipping
> [INFO] [source:test-jar {execution: attach-sources}]
> [INFO] Building jar:
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-test-sources.jar
> [INFO] [install:install]
> [INFO] Installing
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT.jar
> to
> /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT.jar
> [INFO] Installing
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-tests.jar
> to
> /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT-tests.jar
> [INFO] Installing
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-sources.jar
> to
> /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT-sources.jar
> [INFO] Installing
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/sat-archetype-1.1-SNAPSHOT-test-sources.jar
> to
> /home/continuum/.m2/repository/at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-SNAPSHOT-test-sources.jar
> [INFO] [plugin:updateRegistry]
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] Retrieving previous build number from sat-maven-repository
> Uploading:
> scp://satsrv03.researchstudio.at/var/www/mvn/internal/repository//at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-20070628.140149-14.jar
> 4/14K
> 8/14K
> 12/14K
> 14/14K
> 14K uploaded
> [INFO] Retrieving previous metadata from sat-maven-repository
> [INFO] Uploading repository metadata for: 'at.researchstudio.sat'
> [INFO] Retrieving previous metadata from sat-maven-repository
> [INFO] Uploading repository metadata for: 'artifact
> at.researchstudio.sat:sat-archetype'
> [INFO] Retrieving previous metadata from sat-maven-repository
> [INFO] Uploading repository metadata for: 'snapshot
> at.researchstudio.sat:sat-archetype:1.1-SNAPSHOT'
> [INFO] Retrieving previous metadata from sat-maven-repository
> [INFO] Uploading project information for sat-archetype
> 1.1-20070628.140149-14
> [INFO] Retrieving previous build number from sat-maven-repository
> Uploading:
> scp://satsrv03.researchstudio.at/var/www/mvn/internal/repository//at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-20070628.140149-14-tests.jar
> 2/2K
> 2K uploaded
> [INFO] Retrieving previous build number from sat-maven-repository
> Uploading:
> scp://satsrv03.researchstudio.at/var/www/mvn/internal/repository//at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-20070628.140149-14-sources.jar
> 4/11K
> 8/11K
> 11/11K
> 11K uploaded
> [INFO] Retrieving previous build number from sat-maven-repository
> Uploading:
> scp://satsrv03.researchstudio.at/var/www/mvn/internal/repository//at/researchstudio/sat/sat-archetype/1.1-SNAPSHOT/sat-archetype-1.1-20070628.140149-14-test-sources.jar
> 327/327b
> 327b uploaded
> [INFO] Preparing javadoc:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive
> invocation.
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] No goals needed for project - skipping
> [INFO] [javadoc:jar {execution: default}]
> [INFO] Preparing cobertura:cobertura
> [WARNING] Removing: cobertura from forked lifecycle, to prevent recursive
> invocation.
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [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] [cobertura:instrument]
> [WARNING] No files to instrument.
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/target/surefire-reports
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no tests to run.
> 
> Results :
> 
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] [cobertura:cobertura {execution: cobertura}]
> [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
> 
> [ERROR] Error: data file
> /usr/local/continuum-1.0.3/apps/continuum/workdir/22/cobertura.ser does not
> exist
> 
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An error has occurred in Cobertura Test Coverage report generation.
> 
> Embedded error: Error in Cobertura Report generation: Unable to generate
> Cobertura Report for project.
> 
> 
> Maybe someone can help me out here.
> 
> thx 4 help
> R.C.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to