You have all probably solved this by now, but here is a link to the solution
for the next poor soul that is trying to get people started with maven and
the simplest thing dies. That this is not fixed in the common repos, I just
do not understand why it is taking so long. Here is what I followed:  
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00985.html

and this is what I did, based on the above suggestion, to get mvn -up
archetype:create to work...

1. download
http://repo1.maven.org/maven2/org/apache/velocity/velocity/1.5/velocity-1.5.pom
to file 
2. edit section: 
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.1</version>
    </dependency>

to be
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.3</version>
    </dependency>

and save

3. move edited velocity-1.5.pom to
<user_home>/.m2/repository/velocity/velocity/1.5
4. run your mvn -up archetype:create   

And now Celebrate... now to push it to shared repository (Artifactory) so
the rest of "my world" works again.
-- dke
p.s. note that the POM says it should be
org.apache.velocity:velocity:pom:1.5 but that I had to put it into my local
repository as if it was velocity:velocity:pom:1.5 ... perhaps I should use a
.pom with a <distributionManagement> <relocation> and put the .pom where it
belongs?


jwcarman wrote:
> 
> I'm having the same troubles.  An archetype that we have used before
> doesn't work anymore!  What's going on?
> 
> 
> nodje wrote:
>> 
>> What's with the archetype:create?
>> 
>> I suddenly get this error when trying to create a new project:
>> 
>> mvn archetype:create -DgroupId=com.company.commons -DartifactId=xml
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'archetype'.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building commons
>> [INFO]    task-segment: [archetype:create] (aggregator-style)
>> [INFO]
>> ------------------------------------------------------------------------
>> Downloading:
>> http://allence.dyndns.org:8081/artifactory/plugins-releases/velocity/velocity/1.5/velocity-1.5.pom
>> Downloading:
>> http://allence.dyndns.org:8081/artifactory/repo/velocity/velocity/1.5/velocity-1.5.pom
>> [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]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] org/apache/commons/lang/StringUtils
>> org.apache.commons.lang.StringUtils
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
>>      at      ... 51 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 10 seconds
>> [INFO] Finished at: Wed May 28 10:21:46 JST 2008
>> [INFO] Final Memory: 10M/30M
>> [INFO]
>> ------------------------------------------------------------------------
>> 
>> Looks like a broken dependency on commons-lang
>> 
>> -nodje
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Archetype%3Acreate-broken--tp17503659p18133939.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to