When maven says “resolution will not be reattempted until the update interval of MyRepo has elapsed”, where is that interval specified?

I used to solve this issue by deleting the corresponding failed to download artifact directory in my local repo. Next time I run the maven command the artifact download is triggered again. Therefore I’d say it’s a client side setting. Nexus side (server repo side), this issue is solved configuring a scheduled task. Client side, … Read more

How are maven scopes mapped to ivy configurations by ivy

The following two articles helped me to better understand how Maven and Ivy inter-operate http://www.symphonious.net/2010/01/25/using-ivy-for-dependency-management/ http://lightguard-jp.blogspot.com/2009/04/ivy-configurations-when-pulling-from.html Oddly, I never really understood ivy configurations, until it was explained how they can be used to simulate Maven scopes. The following listis from the www.symphonious.net link and illustrates the available configurations from pom-files/maven repositories: default runtime dependencies and … Read more

How to force maven update?

mvn clean install -U -U means force update of snapshot dependencies. Release dependencies will be updated this way if they have never been previously successfully downloaded. ref: https://stackoverflow.com/a/29020990/32453

Differences between dependencyManagement and dependencies in Maven

I’m fashionably late to this question, but I think it’s worth a clearer response than the accepted one (which is correct, but doesn’t emphasize the actual important part, which you need to deduce yourself). In the parent POM, the main difference between the <dependencies> and <dependencyManagement> is this: Artifacts specified in the <dependencies> section will … Read more

Building a fat jar using maven

Note: If you are a spring-boot application, read the end of answer Add following plugin to your pom.xml The latest version can be found at … <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>CHOOSE LATEST VERSION HERE</version> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> <executions> <execution> <id>assemble-all</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> … After configuring … Read more

How to properly install and configure JSF libraries via Maven?

When you’re facing a “weird” exception suggesting that classes/methods/files/components/tags are absent or different while they are seemingly explicitly included in the web application such as the ones below, java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet java.util.MissingResourceException: Can’t find javax.faces.LogStrings bundle com.sun.faces.vendor.WebContainerInjectionProvider cannot be cast to com.sun.faces.spi.InjectionProvider … Read more