Maven & Gradle
Maven & Gradle¶
Apache Maven¶
- Wikipedia.org: Apache Maven
- maven.apache.org
- twitter.com/ASFMavenProject: The official twitter feed of the Apache Maven Project
- twitter.com/ASFMavenRelease: Maven Plugin Release Tweets of plugin releases
- Dzone.com: Starting with Apache Maven
- Dzone.com: Maven Demystified
- Dzone.com: Creating a Maven Archetype
- Dzone refcard: Apache Maven 2
- Dzone refcard: Getting Started with Maven Repository Management
- Dzone: Installing Maven With Your JDK
- Dzone: 10 Effective Tips on Using Maven
- Dzone: Building Java Applications With Maven
- howtodoinjava.com/maven
Scaffolding a project with Maven (maven archetype)¶
- vogella.com: Maven for Building Java application - Tutorial
- maven.apache.org: Introduction to the Standard Directory Layout
- Handwritten Maven archetype project scaffolding
- programmer.ink: Maven scaffolding best practices
- Create the scaffolding for your microservice We will use an existing maven archetype that assembles a CDI-based Camel java project that we will then alter to implement the service.
Maven Tests¶
- Dzone: Maven Skipping Tests
- Dzone: Integration Tests with Maven
- Dzone.com: Running Cucumber with Maven
Dependency Resolution in Maven¶
- Apache Maven Dependency Analyzer
- Dzone.com: Solving Dependency conflicts in maven
- Dzone.com: Taming Maven: Transitive Dependency Pitfalls
- Dzone.com: Maven Dependency Management Without Going Full Maven If you like using Maven to manage your projects, check out the MyEclipse IDE with its dependencies only mode, allowing you to take advantage of just this feature
mvn dependency:analyze (shows you the usage of listed and unlisted dependencies)
mvn dependency:resolve (give me a list of everything I have declared, a nice way to avoid reading the POM file)
mvn dependency:tree (how you got something on your classpath)
Maven and Docker¶
IDEs¶
- Dzone: Maven, Eclipse, and Java 9 Eclipse users who use Maven are used to the M2E plugin issue of having your JRE reset on you. But there’s an additional gotcha between Java 8 and Java 9.
- code.visualstudio.com: Java Project Management in VS Code
- medium.com: InstalaciĆ³n de Java y Visual Studio Code en plataformas Windows
Intellij IDEA¶
- jetbrains.com/help/idea/maven-support.html
- Dzone: Maven IntelliJ Idea Project
- vaadin.com/learn/tutorials/import-maven-project-intellij-idea
- javaspringvaadin.wordpress.com: Crea un Proyecto Maven desde el IDE IntelliJ IDEA
- howtodoinjava.com: Maven IntelliJ Idea Project
Maven Plugins¶
- Apache Maven Changelog Plugin
- Apache Maven Checkstyle Plugin
- Apache Maven Javadoc Plugin
- Maven Surefire Report Plugin
Maven Cheat Sheets¶
Other Commands¶
- Display contents of a jar file:
jar tf target/example-1.0.0-SNAPSHOT.jar
Fabric8 Maven Plugin¶
Gradle¶
- gradle.org
- docs.gradle.org: Getting Started
- Dzone: “Refined” Gradle
- Dzone: simplify your script build with gradle
- Dzone: build a java app with gradle
- Playing with gradle