3

I discovered in a project that Maven artifacts have a new type:

<dependency>
<groupId>com.idontexist</groupId>
<artifactId>idontexist</artifactId>
<version>2.5.1</version>
<type>pom.lastUpdated</pom>
</dependency>

It's amazing, because with this special type you can set a dependency that doesn't exist in any repository AND THE COMPILATION WORKS ANYWAY!!! It's very useful!!!!

Comments
  • 0
    How will your code work if the dependency jar is not in the project library?
Add Comment