maven

maven fail in spring project build trying to establish connection with database

喜你入骨 提交于 2021-02-10 19:17:29
问题 i make a docker-compose and dockerfile for my spring project, but it fail on maven build stage becouse is trying to establish a connection with the postgres service, I have no idea how I could solve it. this is my docker-compose file: version: '3' services: postgres: build: context: . dockerfile: docker/postgres/Dockerfile restart: always environment: POSTGRES_DB: ${postgres_database} POSTGRES_USER: ${postgres_username} POSTGRES_PASSWORD: ${postgres_password} ports: - '5432:5432' volumes: - .

Error when execute MavenCli in the loop (maven-embedder)?

匆匆过客 提交于 2021-02-10 18:25:15
问题 What is the problem when I execute the maven command in the loop ? The goal is to update the version of pom.xml of the list of bundles. The first iteration, maven execute correctly (update pom.xml), but it makes error for all item after. for (String bundlePath: bundlesToUpdate) { MavenCli cli = new MavenCli(); String[] arguments = { "-Dtycho.mode=maven", "org.eclipse.tycho:tycho-versions-plugin:set-version", "-DgenerateBackupPoms=false", "-DnewVersion=" + version}; int result = cli.doMain

冰河公开了这份4万字的SpringCloud与SpringCloudAlibaba学习笔记!!

扶醉桌前 提交于 2021-02-10 18:24:57
点击上方蓝色“ 冰河技术 ”,关注并 选择“设为星标” 持之以恒,贵在坚持,每天进步一点点! 作者个人研发的在高并发场景下,提供的简单、稳定、可扩展的延迟消息队列框架,具有精准的定时任务和延迟队列处理功能。 自开源半年多以来,已成功为十几家中小型企业提供了精准定时调度方案,经受住了生产环境的考验。 为使更多童鞋受益,现给出开源框架地址: https://github.com/sunshinelyz/mykit-delay PS: 欢迎各位Star源码,也可以pr你牛逼哄哄的代码 。 写在前面 不少小伙伴让我整理下有关SpringCloud和SpringCloudAlibaba的知识点,经过3天的收集和整理,冰河整理出这份4万字的SpringCloud与SpringCloudAlibaba学习笔记!! 文章已收录到: https://github.com/sunshinelyz/technology-binghe https://gitee.com/binghe001/technology-binghe SpringCloud 服务注册中心 eureka ap 高可用 分布式容错 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix

Using Samaxes Minify nosuffix to overwrite original files

房东的猫 提交于 2021-02-10 18:24:47
问题 I'm using Samaxes minify maven plugin to minify js and css files. The plugin works fine in creating new files with a minifies js and css, but I'd like that the minified files will have the same name of the original files (overwriting them). So I've tried to add the nosuffix true in the pom.xml, as below: <plugin> <groupId>com.samaxes.maven</groupId> <artifactId>minify-maven-plugin</artifactId> <version>1.7.2</version> <executions> <execution> <id>default-minify</id> <configuration> <charset

Multiple references with the same name at maven-bundle-plugin

懵懂的女人 提交于 2021-02-10 18:11:46
问题 I'm using the maven-bundle-plugin 3.3.0 and OSGI R6. I have the following classes: //Class A @Component (immediate = true, service = {}) public class A{ private static B myB; @Reference (unbind = "unbindB") public static void bindB(B pB) { myB = pB; } public static void unbindB() { myB= null; } } //B class. It does not implement any interface. Hence, the service must be itself @Component (immediate = true, service = B.class) public class B{ @Activate public void activate(){ //B activated } }

Why does sonar-maven-plugin hang at loading global settings or active rules?

▼魔方 西西 提交于 2021-02-10 16:50:19
问题 We are running SQ analysis in Jenkins builds via sonar-maven-plugin. Everything fine for years. But since some weeks from time to time we have builds which hang infinitely. No progress when (or after) loading global setting or active rules. [20:23:11] [INFO] --- sonar-maven-plugin:3.5.0.1254:sonar (default-cli) @ commons-vaadin --- [20:23:11] [INFO] User cache: /var/jenkins/.sonar/cache [20:23:17] [INFO] SonarQube version: 7.0.0 [20:23:17] [INFO] Default locale: "en_US", source code encoding:

Why does sonar-maven-plugin hang at loading global settings or active rules?

喜你入骨 提交于 2021-02-10 16:49:30
问题 We are running SQ analysis in Jenkins builds via sonar-maven-plugin. Everything fine for years. But since some weeks from time to time we have builds which hang infinitely. No progress when (or after) loading global setting or active rules. [20:23:11] [INFO] --- sonar-maven-plugin:3.5.0.1254:sonar (default-cli) @ commons-vaadin --- [20:23:11] [INFO] User cache: /var/jenkins/.sonar/cache [20:23:17] [INFO] SonarQube version: 7.0.0 [20:23:17] [INFO] Default locale: "en_US", source code encoding:

What is this Maven error ? “Plugin execution not covered by lifecycle configuration…)”

蓝咒 提交于 2021-02-10 15:41:00
问题 "Plugin execution not covered by lifecycle configuration: com.soebes.maven.plugins:iterator-maven-plugin: 0.4:iterator (execution: javascript-dependencies_unpack-dependencies, phase: initialize)" Trying to build Pentaho projects at https://github.com/pentaho. None of them will build except maven-parent-poms at https://github.com/pentaho/maven-parent-poms. Almost every other project throws this error in the corresponding .pom file. Refer to the screen snip, below, for the location of the error

What is this Maven error ? “Plugin execution not covered by lifecycle configuration…)”

萝らか妹 提交于 2021-02-10 15:39:46
问题 "Plugin execution not covered by lifecycle configuration: com.soebes.maven.plugins:iterator-maven-plugin: 0.4:iterator (execution: javascript-dependencies_unpack-dependencies, phase: initialize)" Trying to build Pentaho projects at https://github.com/pentaho. None of them will build except maven-parent-poms at https://github.com/pentaho/maven-parent-poms. Almost every other project throws this error in the corresponding .pom file. Refer to the screen snip, below, for the location of the error

What is this Maven error ? “Plugin execution not covered by lifecycle configuration…)”

巧了我就是萌 提交于 2021-02-10 15:39:38
问题 "Plugin execution not covered by lifecycle configuration: com.soebes.maven.plugins:iterator-maven-plugin: 0.4:iterator (execution: javascript-dependencies_unpack-dependencies, phase: initialize)" Trying to build Pentaho projects at https://github.com/pentaho. None of them will build except maven-parent-poms at https://github.com/pentaho/maven-parent-poms. Almost every other project throws this error in the corresponding .pom file. Refer to the screen snip, below, for the location of the error