You need to do two things:

1) Add the Apache snapshot repository to your list of repositories in your
pom.xml file.
2) Add a property in the pom.xml file for the Struts version.
3) Add the Struts2 2.1.0-SNAPSHOT dependencies to your project.

It may take some fiddling to get it all working.

To do 1) add the following to the <repositories> section in the top level
pom.xml in your project:

<repository>
     <id>apache-snapshots</id>
     <url>http://people.apache.org/repo/m2-snapshot-repository</url>
</repository>

To do 2) add the following in the <properties> section of the top level
pom.xml in your project:

<struts.version>2.1.0-SNAPSHOT</struts.version>

To do 3) add the following dependencies to the pom.xml in the web module in
your project (if you started from a basic archetype, this is the top level
pom.xml file):

      <dependency>
           <groupId>org.apache.struts</groupId>
           <artifactId>struts2-core</artifactId>
           <version>${struts.version}</version>
       </dependency>
       <dependency>
           <groupId>org.apache.struts</groupId>
           <artifactId>struts2-codebehind-plugin</artifactId>
           <version>${struts.version}</version>
       </dependency>
       <dependency>
           <groupId>org.apache.struts</groupId>
           <artifactId>struts2-spring-plugin</artifactId>
           <version>${struts.version}</version>
           <exclusions>
               <exclusion>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-beans</artifactId>
               </exclusion>
               <exclusion>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-context</artifactId>
               </exclusion>
               <exclusion>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-core</artifactId>
               </exclusion>
               <exclusion>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-web</artifactId>
               </exclusion>
           </exclusions>
       </dependency>


Mike

On 5/11/07, Struts2 Fan <[EMAIL PROTECTED]> wrote:


Hi all,

I just couldn't find how to change the struts-2.0.6 version to
2.1.0-SNAPSHOT. I know it is not stable but I want to test its ajax
support.

Thanks in advance.

--
View this message in context:
http://www.nabble.com/How-to-change-struts-version-to-2.1.0-SNAPSHOT-tf3725933s2369.html#a10427252
Sent from the AppFuse - User mailing list archive at Nabble.com.

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


Reply via email to