maven-3

Maven build is aborted in Jenkins

百般思念 提交于 2019-12-10 17:13:50
问题 I am new to jenkins! I managed to clone GIT hub repo in Jenkins and now trying to build the fetched maven projects in Jenkins. I have 7 projects fetched from GITHUB and they are dependent on each other, i.e. some of the projects have dependencies defined for other projects in their POM. Below are my maven configuration (Sorry, couldn't post Image here, see in bold) Root POM myFirstProject/pom.xml Goals and options clean package install MAVEN_OPTS Alternate settings file I Incremental build -

How to generate Java from an XSD using MOXy under Maven-3?

早过忘川 提交于 2019-12-10 15:49:06
问题 What's the easiest/best way to generate Java from an XSD using MOXy under Maven-3? The reference JAXB interface has a nice Maven plugin, but it doesn't appear to support MOXy. Does anyone have anything concrete to offer? (I know I can write ant-script, or a plugin, or ...) 回答1: EclipseLink MOXy, does not yet offer a Maven plugin to run the XML schema to Java compiler. I have entered the following enhancement request to track this functionality: https://bugs.eclipse.org/346486 MOXy leverages

How to suppress/control logging of Wagon-FTP Maven extension?

孤人 提交于 2019-12-10 15:29:21
问题 I'm deploying Maven site by FTP, using Wagon-FTP. Works fine, but output is full of FTP connection/authentication details, which effectively expose logins and passwords to everybody (especially if the project is open source and its CI protocols are publicly accessible): [...] [INFO] [INFO] --- maven-site-plugin:3.0-beta-3:deploy (default-deploy) @ rempl --- Reply received: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 50 allowed. 220-Local time is

Enable maven3 extension only on specified profile(s)

こ雲淡風輕ζ 提交于 2019-12-10 15:26:05
问题 I have an extension I use in my Maven 3 build that outputs build information for me. It's a bit verbose so I would like to run it only in some build profiles. But <extensions> are only allowed in the main <build> and not in the profiles. So my question is two fold. First, is there already a way to limit the extension to run only in specific profile(s) with something I can do in the pom.xml ? Second, if not, then how should I implement this? My initial thought was to call mavenSession

ClassNotFoundException in apk build with maven

时光怂恿深爱的人放手 提交于 2019-12-10 15:11:09
问题 I want to switch to maven for my build process in Android development. I followed http://www.sonatype.com/books/mvnref-book/reference/android-dev-sect-archetype.html to create the pom.xml and adjusted the version a bit so that I'm using the latest version of the android-maven-plugin. While my apk gets build fine manually from within my IDE (IntellJ), there are problems with the apk built with maven. Obviously something's missing that doesn't put the classes into the apk. When I check both

Updating the versions in a Maven multi-module project

a 夏天 提交于 2019-12-10 14:44:58
问题 I have Maven multi-module project and I would like to update the development versions to a given value using a script. The aggregator POM is only an aggregator and the children do not inherit from it. This is important because the artifacts all inherit from other POM files. Here is my structure aggregator/ --projectA --projectB Also, projectB has a Maven dependency on projectA . First I tried: mvn -DnewVersion=0.28-SNAPSHOT -DupdateMatchingVersions=true versions:set It only updated the

Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/data/jpa]

岁酱吖の 提交于 2019-12-10 12:57:07
问题 Any ideas, what could cause this error? org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/data/jpa] Offending resource: ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml] Here is my 'servle-context.xml' (there are some problems with the indents, but the file is too huge...): <?xml version="1.0" encoding="UTF-8"?> <beans

Maven plugin development - how to ensure building for Maven 3.0.x instead of 3.1.x?

强颜欢笑 提交于 2019-12-10 12:54:18
问题 I'm trying to develop a custom Maven plugin. I'm currently running into this problem when I execute my unit tests: java.lang.NoClassDefFoundError: org.eclipse.aether.RepositorySystemSession Stack trace is below: initializationError(com.mycompany.MyPluginTest) Time elapsed: 0 sec (TestSuite.java:132) at org.junit.internal.runners.JUnit38ClassRunner.(JUnit38ClassRunner.java:72) at org.junit.internal.builders.JUnit3Builder.runnerForClass(JUnit3Builder.java:11) at org.junit.runners.model

How can I tell jenkins I do want the full error trace from a maven job?

牧云@^-^@ 提交于 2019-12-10 12:45:10
问题 Running a maven job in jenkins fails with that console output: Finished: FAILURE [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:52.431s [INFO] Finished at: Tue Mar 27 17:17:54 CEST 2012 [INFO] Final Memory: 69M/145M [INFO] ------------------------------------------------------------------------ mavenExecutionResult exceptions not empty

How to avoid “Updates were rejected because the remote contains work” during release with maven release-plugin and git?

て烟熏妆下的殇ゞ 提交于 2019-12-10 11:44:26
问题 We recently migrated from SVN to git. Beside other (unexpected) issues doing releases on git, I am wondering how to deal with the following issue: When I start a release-run on Jenkins and some developer (accidentally) pushes during the first phase of the release, the release build fails with the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project xyz: Unable to commit files [ERROR] Provider message: [ERROR] The