Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to run the clean plugin automatically during the build?



How to run the clean plugin automatically during the build?..

Answer / Naval Kishore

To run the clean plugin automatically during the build in Apache Maven, you can add the clean plugin execution as a part of your project's lifecycle. For example:

```xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>clean-all</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Maven Interview Questions

What is maven error “failure to transfer…”?

1 Answers  


What is the use of optional dependency?

1 Answers  


When you say maven uses convention over configuration?

1 Answers  


What is force maven update?

1 Answers  


What are different types of build profiles?

1 Answers  


What is the difference between a release version and snapshot version in maven?

1 Answers  


What is an uber jar?

1 Answers  


Difference between maven project and module?

1 Answers  


What is the command to package maven project?

1 Answers  


What is maven jxr?

1 Answers  


Explain what is maven repository? What are their types?

1 Answers  


What is archetype?

1 Answers  


Categories