maven

Deploying embedded tomcat enabled spring-boot app using IntelliJ

北城余情 提交于 2021-01-27 14:34:51
问题 I have a spring-boot based application, using embedded tomcat. I have no problem when deploying via mvn spring-boot:run goal, but I have a problems when I try to deploy using intelliJ spring-boot plugins. Important note, we have modified the default pom, turning our app into a war that could be deployed into a full tomcatTraditional Deployment, but this in development mode will be better to just deploy the app using the embedded tomcat. The problem is that basically we ended with this message

How to make Maven Javadoc Plugin work with any Java version

跟風遠走 提交于 2021-01-27 13:50:58
问题 I'm using Maven Javadoc Plugin like this <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.1.1</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> I have multiple JDK versions installed and want to be able to build a project with any of them. The above configuration works fine with Java 8, but it fails with Java 11 with the following error Failed to

How to fail a maven build, when quality gate fails?

こ雲淡風輕ζ 提交于 2021-01-27 13:21:38
问题 Earlier I use sonar-maven-plugin version 3.2 then when a Sonar quality gate fails the build also used to fail. Now I am using sonar-maven-plugin version 3.7.0.1746 , it does not happen so. Even if quality gate fails maven build succeeded. Now when I use version 3.2 in pom.xml it gives the error [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project maven-webapp: Unable to execute SonarQube: Fail to download libraries from server ->

Include aar into aar

僤鯓⒐⒋嵵緔 提交于 2021-01-27 10:47:37
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Include aar into aar

安稳与你 提交于 2021-01-27 10:46:31
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Dependency hierarchy view for maven in Eclipse Indigo

雨燕双飞 提交于 2021-01-27 10:45:58
问题 Can't seem to get the dependency hierarchy view with the latest version of eclipse (Indigo SR2). This post from almost a year ago indicates that the dependency graph is no longer supported but that the dependency hierarchy should be working Thanks sfk 回答1: Make sure to open the pom.xml file using the Maven POM Editor . Right-click the file, then select Open With > Maven POM Editor . This should give you the expected editor with the option to view the dependencies and the dependency hierarchy.

Include aar into aar

牧云@^-^@ 提交于 2021-01-27 10:45:30
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Include aar into aar

流过昼夜 提交于 2021-01-27 10:45:07
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com

Dependency hierarchy view for maven in Eclipse Indigo

a 夏天 提交于 2021-01-27 10:44:28
问题 Can't seem to get the dependency hierarchy view with the latest version of eclipse (Indigo SR2). This post from almost a year ago indicates that the dependency graph is no longer supported but that the dependency hierarchy should be working Thanks sfk 回答1: Make sure to open the pom.xml file using the Maven POM Editor . Right-click the file, then select Open With > Maven POM Editor . This should give you the expected editor with the option to view the dependencies and the dependency hierarchy.

Include aar into aar

。_饼干妹妹 提交于 2021-01-27 10:44:16
问题 I have an android library distributed in aar format. It weight 300kb. I want to create another library and also in aar format, where first library in dependencies. But result library weight is 30kb, so obviously it does not not include first library. I tried to add first library using flatDir : repositories { flatDir { dirs 'libs' } } dependencies { compile(name:'mylib-1.0', ext:'aar') } And publish to mavenLocal using maven-publish : repositories { mavenLocal() } dependencies { compile 'com