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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With