Please post the POM because it's hard to help without it :)

On 5/18/06, Roland Asmann <[EMAIL PROTECTED]> wrote:
Hi,

I have a project, that is defined as a 'simple' JAR, but for some reason it 
doesn't build correct.
It's part of a larger project, where all my other modules build without 
problems, all based on similar POM's...

Maven's output looks like this:

[INFO] 
----------------------------------------------------------------------------
[INFO] Building Hermes Person - Test module
[INFO]    task-segment: [clean, install]
[INFO] 
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
/home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-test/target
[INFO] Deleting directory 
/home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-test/target/classes
[INFO] Deleting directory 
/home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-test/target/test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 3 source files to 
/home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-test/target/test-classes
[INFO] [cargo:start {execution: start}]
[INFO] [talledLocalContainer] Parsed JBoss version = [4.0.3]
[INFO] [talledLocalContainer] JBoss 4.0.3 starting...
[INFO] [talledLocalContainer] JBoss 4.0.3 started on port [8080]
[INFO] [surefire:test]
[INFO] Surefire report directory: 
/home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-test/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running at.cfc.hermes.person.logging.LoggingTest
log4j:WARN No appenders could be found for logger 
(at.cfc.hermes.person.logging.LoggingTest).
log4j:WARN Please initialize the log4j system properly.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.397 sec
Running at.cfc.hermes.person.test.ServletTest
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.061 sec <<< 
FAILURE!
Running at.cfc.hermes.person.test.HttpUnitTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.149 sec

Results :
Tests run: 6, Failures: 0, Errors: 1, Skipped: 0

[ERROR] There are test failures.
[INFO] [cargo:stop {execution: stop}]
[INFO] [talledLocalContainer] Parsed JBoss version = [4.0.3]
[INFO] [talledLocalContainer] JBoss 4.0.3 is stopping...
[INFO] [talledLocalContainer] JBoss 4.0.3 is stopped
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: 
/home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-test/target/hermes-person-test-0.0.1.jar
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: 
org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class 
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: 
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class 
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any 
resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm : 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT 
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be  
global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [clover:clover {execution: default}]
Clover Version 1.3.12, built on February 08 2006
loaded from: 
/home/asr/.m2/repository/com/cenqua/clover/clover/1.3.12/clover-1.3.12.jar
Server License registered to CFC
Loaded results from 10 coverage recordings.
Writing report to 
'/home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-test/target/site/clover'
Done. Processed 34 packages.
[INFO] [clover:instrumentInternal {execution: default}]
[WARNING] No Clover instrumentation done as no matching sources files found
[INFO] [install:install]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The packaging for this project did not assign a file to the build 
artifact
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The packaging for this 
project did not assign a file to the build artifact
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
Caused by: org.apache.maven.plugin.MojoExecutionException: The packaging for 
this project did not assign a file to the build artifact
        at 
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:112)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 39 seconds
[INFO] Finished at: Thu May 18 12:42:57 CEST 2006
[INFO] Final Memory: 37M/63M
[INFO] ------------------------------------------------------------------------


Could anybody tell me what I'm doing wrong here?

Roland


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



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

Reply via email to