Results 1 to 3 of 3

Thread: How to create WAR file for sample projects

  1. #1
    Join Date
    Jul 2011
    Posts
    1

    Default How to create WAR file for sample projects

    I am new to Spring web services. I have downloaded the Spring 2.0.2 release and trying to build the sample projects. I have downloaded the maven and as per the instruction, Trying to compile and build projects using the following command mvn package from samples directory. It is throwing the following error.

    pom.xml under Samples directory contains the following entry.
    <parent>
    <artifactId>spring-ws-parent</artifactId>
    <groupId>org.springframework.ws</groupId>
    <version>2.0.2.RELEASE</version>
    <relativePath>../parent/pom.xml</relativePath>
    </parent>

    I do not see the parent folder. how it is going to resolve the pom.xml

    C:\software\spring-ws\spring-ws-2.0.2.RELEASE\samples>mvn package
    [INFO] Scanning for projects...
    Downloading: http://repository.springsource.com/m...pringframework.
    build.aws.maven/3.1.0.RELEASE/org.springframework.build.aws.maven-3.1.0.RELEASE.pom
    [WARNING] The POM for org.springframework.build.aws:org.springframework. build.aws.maven:jar:3.1.0.RELEASE is missing, no
    dependency information available
    Downloading: http://repository.springsource.com/m...pringframework.
    build.aws.maven/3.1.0.RELEASE/org.springframework.build.aws.maven-3.1.0.RELEASE.jar
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR] The project org.springframework.ws:spring-ws-samples:2.0.2.RELEASE (C:\software\spring-ws\spring-ws-2.0.2.RELE
    ASE\samples\pom.xml) has 1 error
    [ERROR] Unresolveable build extension: Plugin org.springframework.build.aws:org.springframework. build.aws.maven:3.1.
    0.RELEASE or one of its dependencies could not be resolved: Could not find artifact org.springframework.build.aws:org.sp
    ringframework.build.aws.maven:jar:3.1.0.RELEASE in com.springsource.repository.bundles.release (http://repository.spring
    source.com/maven/bundles/release/) -> [Help 2]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ldingException
    [ERROR] [Help 2] http://cwiki.apache.org/confluence/d...utionException
    C:\software\spring-ws\spring-ws-2.0.2.RELEASE\samples>

    Please help me in building the war files for these sample projects which are bundled with 2.0.2 release.

    Thanks
    Sarah

  2. #2
    Join Date
    Jul 2011
    Location
    usa
    Posts
    1

    Default

    I am new on this site than I want ask about more because I need this type project in my company ..

  3. #3

    Default

    After looking at maven stack trace, It looks like the plugin is not found at the (http://repository) location hence the build is failing. I am not sure why it is but to resolve your problem do this

    Based on maven stack just go to this directory on your machine, open the pom.xml file

    C:\software\spring-ws\spring-ws-2.0.2.RELEASE\samples\echo\pom.xml

    add this repository to pom.xml

    Code:
     <repositories>
        	<repository>
        		<id>release</id>
        		<url>http://maven.springframework.org</url>
        	</repository>
      </repositories>
    Now run the same command

    C:\software\spring-ws\spring-ws-2.0.2.RELEASE\samples\echo>mvn package

    That should solve the problem, We are just directing maven to look also at the second repository if the plugin is not found in first location.
    -- Prasanna Talakani
    Blog

Posting Permissions

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