Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get maven to look for the war file instead of the jar file?

Tags:

maven

Maven tries to look for the jar file instead of the war file when I add this dependency in my pom.xml:

<dependency>
    <groupId>org.apache.wicket</groupId>
    <artifactId>wicket-examples</artifactId>
    <version>6.6.0</version>
</dependency>

The jar file doesn't seem to be in http://repo1.maven.org/maven2 but the war file exists. How do I get maven to look for the war file instead?

like image 829
Glide Avatar asked Feb 23 '13 01:02

Glide


1 Answers

<dependency>
   <groupId>org.apache.wicket</groupId>
   <artifactId>wicket-examples</artifactId>
   <version>6.6.0</version>
   <type>war</type>
</dependency>
like image 170
Adisesha Avatar answered Nov 15 '22 08:11

Adisesha