struts2-archetype-blank application pom.xml modifucations
---------------------------------------------------------

                 Key: WW-3413
                 URL: https://issues.apache.org/jira/browse/WW-3413
             Project: Struts 2
          Issue Type: Bug
          Components: Example Applications
    Affects Versions: 2.1.8.1
         Environment: Maven2
            Reporter: Oleg Mikheev


The pom.xml that is produced by running 
mvn archetype:generate -B                        -DgroupId=tutorial             
           -DartifactId=tutorial                        
-DarchetypeGroupId=org.apache.struts                        
-DarchetypeArtifactId=struts2-archetype-blank 
-DarchetypeCatalog=http://people.apache.org/builds/struts/2.1.8.1/m2-staging-repository/

probably has two things than need to be modified.

First of all two dependencies can be safely removed from it:

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-mock</artifactId>
<version>2.0.8</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>2.5</version>
<scope>test</scope>
</dependency> 

Second, test scope should be added to the struts2-junit-plugin so that is won't 
get deployed:

        <dependency>
            <groupId>org.apache.struts</groupId>
            <artifactId>struts2-junit-plugin</artifactId>
            <version>${struts2.version}</version>
*<scope>test</scope>*
        </dependency>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to