Announcement Announcement Module
Collapse
No announcement yet.
Spring-WS Maven2 Problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring-WS Maven2 Problem

    Hi,

    I tried to set up the example app with Maven2 as explained in the Reference.
    I got the error that Maven is not able to resolve the artifact from the remoteRepository.
    I also declared the snapshot-Repo in my settings.xml. I put it to a profile-Section because the settings.xml File is not valid. Is that right?
    I also set the profile to activeByDefault. Thought the repo would be find everytime. But it seems that Maven canīt find this configuration.

    What did I wrong?
    Can anybody help me?

  • #2
    Solved!!

    Check out source an build and install local.

    Comment


    • #3
      Yes, the .m2/settings.xml actually did not work. The trick is to use -DremoteRepositories, like so:

      Code:
      mvn archetype:create -DarchetypeGroupId=org.springframework.ws \
        -DarchetypeArtifactId=spring-ws-archetype \
        -DarchetypeVersion=1.0-rc1-SNAPSHOT \
        -DgroupId=com.mycompany.hr \
        -DartifactId=holidayService \
        -DremoteRepositories=http://s3.amazonaws.com/maven.springframework.org
      I've updated the tutorial accordingly. Thanks for spotting this!

      Comment

      Working...
      X