java - How maven war dependency actually works? -


assume have following dependency

 <dependency>      <groupid>group</groupid>      <artifactid>aid</artifactid>      <version>${project.version}</version>      <scope>runtime</scope>      <type>war</type> <exclusions>     <exclusion>  <!-- declare exclusion here -->       <groupid>sample.projectb</groupid>       <artifactid>project-b</artifactid>     </exclusion>   </exclusions>    </dependency> 

seems code dosn't work since have excluded library in crated war file. there specification how war dependency works?

when depend on war you're using "overlay" feature:

http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

are trying achieve "overlay" functionality or trying depend on jars within war?


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -