maven

Publish a bom from a multi-module-project

时光毁灭记忆、已成空白 提交于 2021-02-06 17:01:10
问题 We are a large company with about 2000 separate Java projects. For historic reasons, we do not have multi-module projects, but we would like to introduce them. Logically, we already have "groups" of projects, i.e. someone responsible for (say) 50 projects which are closely related. This someone regularly publishes a BOM which contains recent, coherent versions of these 50 projects. Now it would make a lot of sense to grab these 50 projects and put them into one large multi-module project.

What are m2e connectors?

坚强是说给别人听的谎言 提交于 2021-02-06 15:55:28
问题 I want to know what an m2e connector is. I didn't find much on the internet describing them except this page: http://objectledge.org/confluence/display/TOOLS/M2E+Connectors So my questions are: Is it a plugin like any Eclipse plugin? What it can be used for? Are there any pages explaining how I can use it? 回答1: Yes it is an eclipse plugin. It act as a bridge between one maven plugin and eclipse. Basically it is used for three things: configure eclipse project according to the pom

What are m2e connectors?

做~自己de王妃 提交于 2021-02-06 15:52:59
问题 I want to know what an m2e connector is. I didn't find much on the internet describing them except this page: http://objectledge.org/confluence/display/TOOLS/M2E+Connectors So my questions are: Is it a plugin like any Eclipse plugin? What it can be used for? Are there any pages explaining how I can use it? 回答1: Yes it is an eclipse plugin. It act as a bridge between one maven plugin and eclipse. Basically it is used for three things: configure eclipse project according to the pom

Is it possible to use proxy only when a specific profile is active in Maven?

∥☆過路亽.° 提交于 2021-02-06 15:15:49
问题 I would like to use proxy only when a specific profile is active. To accomplish this, my guess is to parameterize the <active> property of <proxy> element. However, I am not exactly sure how to accomplish this. Question : How can I use proxy only when a specific profile is active? 回答1: You could try the following approach: <settings> <proxies> <proxy> <id>httpproxy</id> <active>${activate.proxy}</active> <protocol>http</protocol> <host>some.host</host> <port>8080</port> <nonProxyHosts

Running different test suites using testng and maven

北城余情 提交于 2021-02-06 13:49:01
问题 I am using TestNg and Maven with the surefire plugin to run my tests. I have several different components that I want to be able to run at different times using the same pom. Currently to do this I have several different XML files defining a test suite and I have the pom set up so i can do mvn test -Dtestfile=/path and use that suite instead. I was wondering if there is a way to combine the XML files into one file and chose base off testnames or some other system? EDIT: I have all my tests

How to set Jenkinsfile for upload maven artifact to Artifactory

匆匆过客 提交于 2021-02-06 11:24:49
问题 I've my .Jenkinsfile like this: properties([[$class: 'GitLabConnectionProperty', gitLabConnection: 'gitlab@srv']]) node { env.JAVA_HOME = tool 'JDK 7' def mvnHome = tool 'Maven 3.2.2' def nodeJS = tool 'IA_NodeJS' env.PATH = "${mvnHome}/bin:${nodeJS}/bin:${env.JAVA_HOME}/bin:${env.PATH}" stage ('checkout') { checkout scm } stage ('build') { gitlabCommitStatus("build") { // your build steps sh 'mvn clean install -Denv=dev -P !faster' } } stage ('upload') { gitlabCommitStatus("upload") { def

How to set Jenkinsfile for upload maven artifact to Artifactory

╄→尐↘猪︶ㄣ 提交于 2021-02-06 11:24:04
问题 I've my .Jenkinsfile like this: properties([[$class: 'GitLabConnectionProperty', gitLabConnection: 'gitlab@srv']]) node { env.JAVA_HOME = tool 'JDK 7' def mvnHome = tool 'Maven 3.2.2' def nodeJS = tool 'IA_NodeJS' env.PATH = "${mvnHome}/bin:${nodeJS}/bin:${env.JAVA_HOME}/bin:${env.PATH}" stage ('checkout') { checkout scm } stage ('build') { gitlabCommitStatus("build") { // your build steps sh 'mvn clean install -Denv=dev -P !faster' } } stage ('upload') { gitlabCommitStatus("upload") { def

What are the Maven repositories for Jasper Reports? [closed]

北慕城南 提交于 2021-02-06 09:40:08
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question Where can I find the Maven repositories for the latest versions of Jasper Reports? I've tried in the main site but it seems that the repo isn't up to date. 回答1: This is the latest version: <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId

Custom package names cxf-codegen-plugin

我是研究僧i 提交于 2021-02-05 20:09:40
问题 Imagine this scenario. I have a wsdl file with namespace a/b/c and it imports another wsdl whose namespace is m/n/o. Unfortunately, both of them have same ComplexTypes XYZ defined in them. Now, when I use cxf-codegen-plugin to generate Java code and use custom package name "com.qsrs.uvw", only one class is retained in the final code that is generated. Can someone help me out here? 回答1: If you want to generate package depending on the namespace here is the solution: <plugin> <groupId>org

Custom package names cxf-codegen-plugin

我的未来我决定 提交于 2021-02-05 20:07:25
问题 Imagine this scenario. I have a wsdl file with namespace a/b/c and it imports another wsdl whose namespace is m/n/o. Unfortunately, both of them have same ComplexTypes XYZ defined in them. Now, when I use cxf-codegen-plugin to generate Java code and use custom package name "com.qsrs.uvw", only one class is retained in the final code that is generated. Can someone help me out here? 回答1: If you want to generate package depending on the namespace here is the solution: <plugin> <groupId>org