A Technology Blog About Code Development, Architecture, Operating System, Hardware, Tips and Tutorials for Developers.

Monday, November 12, 2012

Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor

7:27:00 PM Posted by Satish , No comments
I started using JDK 7 now  and recently i found one problem while executing "mvn install" for a web project using maven2. So I am sharing the fix here.

The only thing you need to do is to specify previous version of maven-war-plugin in your pom.xml.


<build>
 <plugins>
  <plugin>
   <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <version>2.1.1</version>
  </plugin>
 </plugins>
 <finalName>webservice-JAX-WS</finalName>
</build>


0 comments:

Post a Comment