Plugin maven, specify the goal without the phase
I didn't understand what is the point of specifying a goal in a plugin without associating it with a phase.
Example:
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>7.1.0</version>
<executions>
<execution>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
I read in the documentation of this plugin, that the "aggregate" goal is associated by default to the "verify" phase, but then what is the point of specifying the goal in this way without <phase>
?
<executions>
<execution>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
how does maven understand which phase to associate it with?
Thanks
do you know?
how many words do you know
See also questions close to this topic
-
build spring boot (mvnw) with docker can not use cache
Spring Boot Docker Experimental Features Docker 18.06 comes with some “experimental” features, including a way to cache build dependencies. To switch them on, you need a flag in the daemon (dockerd) and an environment variable when you run the client. With the experimental features, you get different output on the console, but you can see that a Maven build now only takes a few seconds instead of minutes, provided the cache is warm.
my dockerfile can not use cache.
dockerfile
# syntax=docker/dockerfile:experimental FROM openjdk:8-jdk-alpine as build WORKDIR /workspace/app COPY mvnw . COPY .mvn .mvn COPY pom.xml . COPY src src RUN --mount=type=cache,target=/root/.m2 ./mvnw install -DskipTests -s .mvn/wrapper/settings.xml RUN mkdir -p target/extracted && java -Djarmode=layertools -jar target/*.jar extract --destination target/extracted FROM openjdk:8-jre-alpine ENV TZ Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN addgroup -S spring && adduser -S spring -G spring USER spring:spring ARG EXTRACTED=/workspace/app/target/extracted ARG JAVA_OPTS="-Xmx100m -Xms100m" COPY --from=build ${EXTRACTED}/dependencies/ ./ COPY --from=build ${EXTRACTED}/spring-boot-loader/ ./ COPY --from=build ${EXTRACTED}/snapshot-dependencies/ ./ COPY --from=build ${EXTRACTED}/application/ ./ ENTRYPOINT ["sh", "-c","java ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher"]
run shell
DOCKER_BUILDKIT=1 docker build -t org/spring-boot .
every time use many minutes
-
"no main manifest attribute" in .jar Netbeans 13
I recently just started toying around with Maven in java. Time comes to test my project, it works fine in the NetBeans window, running the main class found in App.java (com.MyCompany.App), but when I try to run it from a command line I get an error:
"no main manifest attribute"
I'm using Apache Netbeans 13 with Maven to build the project
Any help will be apreciated Thanks in advance
-
Spring Boot - nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type '' available
I'm trying to add the following statement to a Spring Boot service:
@Autowired private ApELDatabasePublisherService eventPublisher;
The dependency for eventPublisher is contained in maven, in this jar file:
.m2\repository\com\xxxx\bip\bip-event-logging\1.5.3.7-RELEASE.jar
It compiles, builds and updates the local maven repository, but when I launch the application, it terminates with an error message.
Initially, the error message was this:
No qualifying bean of type 'com.xxxx.bip.components.el.services.ApELDatabasePublisherService' available
However, that disappeared when I added
com.xxxx.bip.components.el.services
to the component scan.The next message was this:
No qualifying bean of type 'com.xxxx.bip.components.el.dao.services.IApElTypeNameLookupService' available:
So I added
com.xxxx.bip.components.el.dao.services
to the component scan, and that error went away.But now I have a third message which is not going away, as follows:
No qualifying bean of type 'com.xxxx.bip.components.el.repository.IApELEventTypeRepository' available
This message stays even when I add the following to component scan:
com.xxxx.bip.components.el.repository
So my current scan looks like this:
@EnableRetry @EnableScheduling @SpringBootApplication(exclude = { HibernateJpaAutoConfiguration.class }) @ComponentScan(basePackages = { "com.xxxx.bip.components.el.services", "com.xxxx.bip.components.el.dao.services", "com.xxxx.bip.components.el.repository",
I've verified that the class in question,
IApELEventTypeRepository
is included in the jar file and is annotated as "@Repository"Why would it not find it when it finds the previous two packages?
-
how is it possible to have multiple articles from sub-site shown on main wordpress site
I have 8-9 subsites on the main site. I would like to have at least 2-3 latest articles/posts from each of the subsite blogs on the main site home page. is there any plugin/widget that can do or is there any code that we can put in the main site theme to publish multiple posts from every single subsite
-
How to write a global store plugin?
I'm trying to make a reactive
$store
object globally available via plugin but am failing to make it work.store.ts
:import {reactive} from "vue"; export default { install: (app:any, options:any) => { app.config.globalProperties.$store = reactive({}) } }
main.ts
:import {createApp} from 'vue'; import app from "@/vue/app.vue"; import store from "@/scripts/store"; createApp(app) .use(store) .mount("#app");
Now I would expect for the plugin to be usable in all components, but
$store
stays anundeclared variable
, when I try to use it in the<script setup>
tag inside a component. -
"Edit with elementor" button missing
I've got a site hosted on altervista.org that works with WordPress 5.9.3. I use Elementor for my pages. I've recently installed a plugin called "Redirection", and since then the button "edit with Elementor" disappeared. I've deleted Redirection and reinstalled Elementor but it still doesn't work. I tried to switch my current theme (blocksky) with a default one but the problem persists. I've deactivated all the other plugins except for Elementor and the button is still missing. I've cleared all the caches that I could. Pages' checkbox in elementor's settings is checked. All the plugins are up to date (I've also tried downgrading elementor but nothing). All the elementor's experiments are deactivated. What can I do?
Here are elementor logs:
JS: 2022-03-26 15:40:48 [error X 1261][https://sharingnotes.altervista.org/wp-content/plugins/elementor/assets/lib/pickr/pickr.min.js?ver=1.5.0:2:16820] Cannot read property \'clone\' of null JS: 2022-03-26 15:40:50 [error X 34][https://sharingnotes.altervista.org/wp-content/plugins/elementor/assets/lib/pickr/pickr.min.js?ver=1.5.0:2:21012] Cannot read property \'changestop\' of null JS: 2022-03-30 15:18:51 [error X 22][https://sharingnotes.altervista.org/wp-includes/js/jquery/jquery.min.js?ver=3.6.0:2:31703] this[binder] is not a function JS: 2022-04-02 08:39:04 [error X 2][https://sharingnotes.altervista.org/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.6.1:2:515679] Cannot read property \'getBoundingClientRect\' of null Log: showing 5 of 5 2022-05-01 15:23:03 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.6.1', 'to' => '3.6.5', )] 2022-05-01 15:23:14 [info] elementor::elementor_updater Started 2022-05-01 15:23:14 [info] Elementor/Upgrades - _on_each_version Start 2022-05-01 15:23:14 [info] Elementor/Upgrades - _on_each_version Finished 2022-05-01 15:23:14 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.6.1', 'to' => '3.6.5', )] PHP: showing 1 of 1 PHP: 2022-05-01 16:01:33 [notice X 7][/membri/sharingnotes/wp-content/plugins/elementor/core/experiments/experiments-reporter.php::89] Undefined index: title [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )]
Thanks in advance for your answer.
-
In complexity theory, is there is a word/phrase to describe a system that is is highly resistant to a phase change?
In complexity theory, is there is a word/phrase to describe a system that is is highly resistant to a phase change? i.e such that it takes a lot of energy input to 'tip' a system over the edge into a different basin of attraction.
-
Making 2 clocks with phase shift
I'm trying to create 2 clocks with phase shift for 1/4 cycle time:
Start V ____ ____ C1 __| |____| |____ ____ ____ __ C2 | |____| |____|
So after Reset or connecting to power supply 2 quartz oscillator starts with this configuration. I have ideas that i could use 1 oscillator and maybe counter that would define this 2 clocks.
Thank you.