Use -DarchetypeRepository=http://repo1.maven.org/maven2/ option or add above repository in your setting.xml of maven.
On Mon, Apr 19, 2010 at 6:02 PM, Lian (Firstlighting) < firstlight...@hotmail.com> wrote: > I have installed all requisite software items, including JDK, Maven, > MySQL, and Eclipse. All environmental variables have been set, and all > software are running correctly by themselves. I ran following command > > > > mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes > -DarchetypeArtifactId=appfuse-basic-spring-archetype > -DarchetypeVersion=2.1.0-M1 -DgroupId=com.connstar.Testing > -DartifactId=SimpleWeb3 > > > > and got following WARNING messages: > > > > [WARNING] No archetype repository found. Falling back to central repository > (http://repo1.maven.org/maven2). > > [WARNING] Use -DarchetypeRepository=<your repository> if archetype's > repository is elsewhere. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 38,column 26] : > ${appfuse.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 40,column 34] : > ${amp.genericCore} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 41,column 33] : > ${amp.fullSource} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 47,column 34] : > ${jdbc.groupId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 48,column 37] : > ${jdbc.artifactId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 49,column 34] : > ${jdbc.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 80,column 34] : > ${aspectj.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 85,column 34] : > ${aspectj.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 139,column 31] : > ${skipTests} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 152,column 34] : > ${jdbc.groupId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 153,column 37] : > ${jdbc.artifactId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 154,column 34] : > ${jdbc.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 163,column 42] : > ${dbunit.dataTypeFactoryName} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 164,column 29] : > ${jdbc.driverClassName} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 165,column 31] : > ${jdbc.username} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 166,column 31] : > ${jdbc.password} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 167,column 26] : > ${jdbc.url} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 169,column 27] : > ${dbunit.operation.type} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 170,column 29] : > ${dbunit.schema} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 171,column 27] : > ${skipTests} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 193,column 34] : > ${jdbc.groupId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 194,column 37] : > ${jdbc.artifactId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 195,column 34] : > ${jdbc.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 326,column 22] : > ${appfuse.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 340,column 33] : > ${dao.framework} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 341,column 22] : > ${appfuse.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 344,column 22] : > ${jdbc.groupId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 345,column 25] : > ${jdbc.artifactId} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 346,column 22] : > ${jdbc.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 351,column 22] : > ${commons.fileupload.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 356,column 22] : > ${commons.io.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 361,column 22] : > ${displaytag.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 366,column 22] : > ${jsp.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 372,column 22] : > ${servlet.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 378,column 22] : > ${springmodules.validation.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 397,column 22] : > ${jmock.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 403,column 22] : > ${jmock.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 409,column 22] : > ${junit.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 415,column 22] : > ${spring.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 421,column 22] : > ${wiser.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 471,column 34] : > ${cargo.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 473,column 35] : > ${cargo.wait} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 475,column 46] : > ${cargo.container} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 476,column 39] : > ${cargo.container.home} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 478,column 42] : > ${cargo.container.url} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 479,column 49] : > ${installDir} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 483,column 39] : > ${project.build.directory} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 483,column 66] : > ${cargo.container} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 485,column 53] : > ${cargo.host} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 486,column 57] : > ${cargo.port} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 520,column 72] : > ${basedir} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 521,column 61] : > ${project.build.finalName} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 521,column 102] : > ${user.language} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 522,column 89] : > ${test} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 523,column 75] : > ${user.language} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 524,column 73] : > ${project.build.finalName} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 525,column 66] : > ${cargo.host} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 526,column 66] : > ${cargo.port} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 542,column 42] : > ${webtest.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 578,column 50] : ${ > db.name} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 592,column 40] : ${ > db.name} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 605,column 44] : ${ > db.name} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 632,column 55] : ${ > db.name} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 649,column 64] : ${ > db.name} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 660,column 39] : > ${env.JBOSS_HOME} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 697,column 31] : > ${env.CATALINA_HOME} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 716,column 42] : ${ > db.name} is not a valid reference. > > > > Any reason for this? > > > > Thanks, > > Lian > > > > > > > > > > > > >