Patrik Nordwall wrote:
> 
> It is easy to specify the old maven-archetype-plugin version. Use this:
> 
> mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
> -DarchetypeGroupId=org.fornax.cartridges
> -DarchetypeArtifactId=fornax-cartridges-sculptor-archetype-standalone
> -DarchetypeVersion=1.3.0-SNAPSHOT
> -DremoteRepositories=http://www.fornax-platform.org/m2/repository
> -DgroupId=org.helloworld -DartifactId=helloworld
> 
> 

But when I do this, and it comes up with the following:

D:\Projects\net.littleswamp>set MAVEN_OPTS=-Xms128m -Xmx1024m
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment:
[org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7: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: org.helloworld
[INFO] We are using command line specified remote repositories:
http://www.fornax-platform.org/m2/repository
[INFO] snapshot
org.fornax.cartridges:fornax-cartridges-sculptor-archetype-standalone:1.3.0-SNAPSHOT:
checking for updates from id0
[INFO]
----------------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype:
fornax-cartridges-sculptor-archetype-standalone:1.3.0-SNAPSHOT
[INFO]
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.helloworld
[INFO] Parameter: packageName, Value: org.helloworld
[INFO] Parameter: package, Value: org.helloworld
[INFO] Parameter: artifactId, Value: helloworld
[INFO] Parameter: basedir, Value: D:\Projects\net.littleswamp
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 40,column 42] :
${fornax-oaw-m2.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 101,column 34] :
${hibernate.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 112,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 117,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 122,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 127,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 132,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 143,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 148,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 153,column 34] :
${spring.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 195,column 34] :
${commons-logging.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 201,column 34] :
${log4j.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 259,column 34] :
${sculptor.version} is not a valid reference.
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-resources/pom.xml [line 271,column 34] :
${sculptor.version} is not a valid reference.
[INFO] ********************* End of debug info from resources from generated
POM ***********************
[INFO] Archetype created in dir: D:\Projects\net.littleswamp\helloworld
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Feb 14 17:30:33 EST 2008
[INFO] Final Memory: 5M/127M
[INFO]
------------------------------------------------------------------------

which seems very odd. Then when i try and do the mvn eclipse:eclipse it
comes up with the following:

D:\Projects\net.littleswamp\helloworld>mvn eclipse:eclipse

D:\Projects\net.littleswamp\helloworld>set JAVA_HOME=C:\Program
Files\Java\jdk1.6

D:\Projects\net.littleswamp\helloworld>set MAVEN_OPTS=-Xms128m -Xmx1024m
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Business tier project for helloworld
[INFO]    task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
Downloading:
http://repo1.maven.org/maven2/org/fornax/toolsupport/fornax-oaw-m2-plugin/2.0.0/fornax-oaw-m2-plugin-2.0.0.pom
Downloading:
http://repo1.maven.org/maven2/org/fornax/toolsupport/fornax-oaw-m2-plugin/2.0.0/fornax-oaw-m2-plugin-2.0.0.pom
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.fornax.toolsupport:fornax-oaw-m2-plugin

Reason: POM 'org.fornax.toolsupport:fornax-oaw-m2-plugin' not found in
repository: Unable to download the artifact from any repository

  org.fornax.toolsupport:fornax-oaw-m2-plugin:pom:2.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 for project org.fornax.toolsupport:fornax-oaw-m2-plugin


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Feb 14 17:30:47 EST 2008
[INFO] Final Memory: 2M/127M
[INFO]
------------------------------------------------------------------------

Any ideas?
-- 
View this message in context: 
http://www.nabble.com/-Sculptor--Hello-World-Tutorial---Maven-problem-tp15452980s17564p15474797.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to