Hello,

I am running Java 1.5 and Windows 2000 Pro. I have just installed Maven2 and created a test web application by typing in the following:

> mvn archetype:create -DgroupId=com.mycompany.myapp.app -DartifactId=myapp-webapp -DarchetypeArtifactId=maven-archetype-webapp

This produced a fine-looking directory with all of the correct files.

I then cd'd into the myapp-webapp directory and typed the following

> mvn site:site

but I got no site directory or site files. Can anyone give me a clue to fixing this ? Do I first need to insert some commands into the POM.xml ? I see the ERROR but what macro ? A macro in the plugin or in Maven2 ?

I tried the same with a "mvn site" command and got the same thing.

TIA,
Greg

Here is what I got on the console when I ran the site:site command


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Webapp Archetype
[INFO]    task-segment: [site:site]
[INFO] ---------------------------------------------------------------------------- [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velo
er'.
[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.propert [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resou [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderR
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.Resou
[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 resou [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apac
undException: 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 repla [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [site:site]
[INFO] Generate "Continuous Integration" report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate "Dependencies" report.
[INFO] Generate "Issue Tracking" report.
[INFO] Generate "Project License" report.
[INFO] Generate "Mailing Lists" report.
[INFO] Generate "Source Repository" report.
[INFO] Generate "Project Team" report.
[INFO] Generate an index file for the English version.
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sun Oct 23 15:17:37 EDT 2005
[INFO] Final Memory: 6M/11M
[INFO] ----------------------------------------------------------------------------

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

Reply via email to