When using “bundle” packaging with maven-bundle-plugin goals are executed twice
问题 I have a (simple) maven project with packaging type "bundle" using org.apache.felix:maven-bundle-plugin:2.5.4 . It produces a correct OSGI bundle jar. However i observe that all goals are executed at least twice . How do i prevent this? Problem is that some goals (checkstyle in this example) are slow so duplicate execution is a problem here. NOTE : I use maven 3.2.5 from the command line. Output or mvn clean install (removed all irrelevant info). Notice that many plugins are executed 4 times.