Results 1 to 3 of 3

Thread: Problem with Maven

  1. #1
    Join Date
    May 2008
    Posts
    2

    Default Problem with Maven

    Hello,
    I have some problems to create a webservice project with maven, as described in tutorial.

    When I try to execute this command :
    Code:
    mvn archetype:create -DarchetypeGroupId=org.springframework.ws \
      -DarchetypeArtifactId=spring-ws-archetype \
      -DarchetypeVersion=1.5.2 \
      -DgroupId=com.mycompany \
      -DartifactId=holidayService
    Firstly, I got some dl errors due to my proxy, changed conf and it's ok.
    Next, I got a warning message which say that "create" is deprecated, but it doesn't seem to be the problem.

    Next, he can't download spring :
    Code:
    [INFO] Failed to resolve artifact.
    
    GroupId: org.springframework.ws
    ArtifactId: maven-archetype-quickstart
    Version: 1.5.2
    
    Reason: Unable to download the artifact from any repository
    So, I install manually as he advices :
    Code:
    mvn install:install-file -DgroupId=org.springframework.ws 
    -DartifactId=maven-archetype-quickstart -Dversion=1.5.2 -Dpackaging=jar 
    -Dfile=./spring-ws-1.5.2.jar
    Some checksum errors, but build is successful.

    When I retry the first command :
    Code:
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Error creating from archetype
    
    Embedded error: The META-INF/maven/archetype.xml descriptor cannot be found.
    I don't understand the problem. I've done exactly what is said.

    I tried to remove .m2 and retry, but same results.

    Thanks for your help.

  2. #2

    Default

    I think there is nothing wrong with the maven command you posted:
    Code:
    mvn archetype:create -DarchetypeGroupId=org.springframework.ws \
      -DarchetypeArtifactId=spring-ws-archetype \
      -DarchetypeVersion=1.5.2 \
      -DgroupId=com.mycompany \
      -DartifactId=holidayService
    I tried it myself and it worked perfectly. However, the error regarding the unresolvable artifact seems dodgy. Indeed, there is no such artifact: org.springframework.ws:maven-archetype-quickstart.
    Are you sure you ran your build with that same command? Are you still having the problem?
    Tareq Abedrabbo

    My Twitter
    My Blog

  3. #3
    Join Date
    May 2008
    Posts
    2

    Default

    Hi,

    don't understand.
    It doesn't work on friday evening. Nothing was done since. I try again this morning, with the exact same command and.. it works!

    Strange, but it works, probably my computer was already in week end! ;-)

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •