Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dependency type in pom.xml

Tags:

java

maven

web

In my project I want to create a ear for dynamic web application and define dependency type as war for web part and jar for java part like

<dependencies>
<dependency>
    <groupId>test.vias</groupId>
    <artifactId>test-web</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <type>war</type>
</dependency>
<dependency>
    <groupId>test.vias</groupId>
    <artifactId>test-service</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <type>jar</type>
</dependency>

Now the question is , how many type of dependecy we can define in pom.xml for dependent projects module.

like image 787
Sai prateek Avatar asked Nov 01 '13 06:11

Sai prateek


1 Answers

Other two dependencies that I found is:

 <dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-embedder</artifactId>
      <version>2.0</version>
      <exclusions>
        <exclusion>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-core</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    ...
  </dependencies>

Refer this: http://maven.apache.org/pom.html

like image 92
Manish Doshi Avatar answered Oct 13 '22 12:10

Manish Doshi