DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Solid Testing Strategies for Salesforce Releases
  • Integrate Cucumber in Playwright With Java
  • Legacy Code Refactoring: Tips, Steps, and Best Practices
  • Did We Build The Right Thing? That's What UAT Is About.

Trending

  • How To Develop a Truly Performant Mobile Application in 2025: A Case for Android
  • Performance Optimization Techniques for Snowflake on AWS
  • Memory Leak Due to Time-Taking finalize() Method
  • Streamlining Event Data in Event-Driven Ansible
  1. DZone
  2. Coding
  3. Java
  4. Configuring the Maven Release Plugin to Skip Tests

Configuring the Maven Release Plugin to Skip Tests

Skipping the execution of tests during the Release plugin execution might improve your release time because the Maven Release Plugin already executes the same tests twice.

By 
Alex Soto user avatar
Alex Soto
·
Sep. 19, 16 · Opinion
Likes (2)
Comment
Save
Tweet
Share
15.2K Views

Join the DZone community and get the full member experience.

Join For Free

If you are using Maven in addition to the Maven Release Plugin, it is in your best interest to skip the execution of tests during the Release plugin execution. There are many very different reasons why you may need to do this, but it may depend on the nature of the project or how the CI pipeline is implemented.

Note that this might be able to bring a great improvement in your release time since performing the release with the Maven Release Plugin implies executing the same tests twice: once in the Prepare step and then once more in the Perform step.

If you would like to avoid executing tests in the Prepare phase, then you need to run it like so:

mvn -DpreparationGoals=clean release:prepare

If you would like to avoid executing tests during the Perform phase, then you need to run it like so:

mvn -Darguments="-Dmaven.test.skip=true" release:perform

It is important to note that I am not saying that you don't need to execute tests during the Release process. Instead, what I am saying is that this might be a good idea if your Release process doesn't fit the standard Release process of the plugin and, for example, you are already running tests before you have executed the plugin.

Release (computing) Testing Apache Maven

Published at DZone with permission of Alex Soto, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Solid Testing Strategies for Salesforce Releases
  • Integrate Cucumber in Playwright With Java
  • Legacy Code Refactoring: Tips, Steps, and Best Practices
  • Did We Build The Right Thing? That's What UAT Is About.

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: