You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brendan Donovan <br...@al.com.au> on 2007/05/01 04:28:02 UTC

Re: Archetype:create problem with 2.0.6


Wayne Fay wrote:
> Two possible reasons for this:
> 1. You've found a bug. Congrats! Go check JIRA and see if its been
> filed already. If not, file a new bug.
If there is supposed to be a test directory then this is a bug and I'll 
submit it in JIRA. I downlaoded a clean 2.0.6 install and ran the following

mvn archetype:create -DgroupId=de.focusdv.bcs -DartifactId=new-webapp 
-DarchetypeArtifactId=maven-archetype-webapp

No test directory
> 2. Maven best practices suggest that you create all Java code etc in
> JARs which are tested in their own project and then bundled along with
> the WAR. The only files that belong in WAR are JSPs and configuration
> files. So there should be no "test" folders in the Webapp archetype.
OK if there is not test directory then why not - this would seen like a 
pretty major oversight?

Cheers
B
>
> I'm not entirely positive which is the correct reason for this.
>
> Wayne
>
> On 4/30/07, Brendan Donovan <br...@al.com.au> wrote:
>> Hi all
>> I think there is a problem with the following command
>>
>> mvn archetype:create -DgroupId=com.al.su -DartifactId=DOMtr
>> -DarchetypeArtifactId=maven-archetype-webapp
>>
>> When run under windows or unix all I get is the follwoing directory
>> layout (note missing test directories)
>>
>> ..DOMtr
>>    src
>>       main
>>          resources
>>          webapp
>>             WEB-INF
>>
>> Here is the output
>> ------- Snip
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'archetype'.
>> [INFO]
>> ---------------------------------------------------------------------------- 
>>
>> [INFO] Building Maven Default Project
>> [INFO]    task-segment: [archetype:create] (aggregator-style)
>> [INFO]
>> ---------------------------------------------------------------------------- 
>>
>> [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] [archetype:create]
>> [INFO] Defaulting package to group ID: com.al.su
>> [INFO]
>> ---------------------------------------------------------------------------- 
>>
>> [INFO] Using following parameters for creating Archetype:
>> maven-archetype-webapp:RELEASE
>> [INFO]
>> ---------------------------------------------------------------------------- 
>>
>> [INFO] Parameter: groupId, Value: com.al.su
>> [INFO] Parameter: packageName, Value: com.al.su
>> [INFO] Parameter: basedir, Value: E:\Temp\mav\de
>> [INFO] Parameter: package, Value: com.al.su
>> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
>> [INFO] Parameter: artifactId, Value: DOMtr
>> [INFO] ********************* End of debug info from resources from
>> generated POM ***********************
>> [INFO] Archetype created in dir: E:\Temp\mav\de\DOMtr
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 1 second
>> [INFO] Finished at: Mon Apr 30 16:13:39 EST 2007
>> [INFO] Final Memory: 4M/8M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> ------- Snip
>>
>> Can someone verify this problem?
>>
>> Cheers
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>