maven-plugin

Print plain text tree from tree data structure (java)

耗尽温柔 提交于 2019-12-10 11:19:55
问题 I'm a huge fan of mvn dependency:tree and want to print a similar-looking tree as plain ascii text as output from my java program. com.totsp.gwt:maven-gwt-sample:war:1.0-SNAPSHOT +- com.google.gwt:gwt-servlet:jar:2.4.0:compile +- com.google.gwt:gwt-user:jar:2.4.0:provided | +- javax.validation:validation-api:jar:1.0.0.GA:provided | \- javax.validation:validation-api:jar:sources:1.0.0.GA:provided +- log4j:log4j:jar:1.2.14:compile \- junit:junit:jar:4.1:test I was hoping that the library that

how to configure <manifest> only once in pom.xml in a desktop application

▼魔方 西西 提交于 2019-12-10 10:36:42
问题 I'm making a swing application with maven and I try to keep the pom.xml under tight reins (this file tends to become a pile of junk after pasting there whatever we find in google). My pom is with jar and I use the maven-assembly-plugin with "jar-with-dependencies" descriptor. So I need to define twice the part of my project (main class and versions), once for the normal jar and the other once for the jar-with-dependencies. I think the problem comes from the jar-with-dependencies assembly

Maven2 Multiproject Cobertura Reporting Problems During mvn site Build

橙三吉。 提交于 2019-12-10 09:42:07
问题 We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the unit tests. We are using mvn 2.0.8. I have tried running mvn clean site , mvn clean site:stage and mvn clean package site . I know the tests are running, they show up in the surefire reports (both the txt/xml and site

Running JDK8 for aspectj

梦想与她 提交于 2019-12-10 03:54:03
问题 I am trying to run aspectj-maven plugin with JDK8. But it is giving errors like "The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files" Any help on how to resolve, or if the aspectj-maven-plugin supports JDK8. I am using 1.6 version of aspectj--maven-plugin. 回答1: I had to achieve the same and I drove crazy trying to figure out this, fortunately I could solve it and here I give you what I did: To use aspectj-maven-plugin with Java 8 you need

How to understand Maven dependency tree

不问归期 提交于 2019-12-10 00:40:24
问题 Please excuse if this a dump question but I have searched a lot and couldn't understand how to actually read Maven Dependency tee. I know this command is used to figure out the dependencies but how? This is the result of mvn dependency:tree -Dverbose in my project. [INFO] +- org.springframework:spring-core:jar:4.0.2.RELEASE:compile [INFO] | \- commons-logging:commons-logging:jar:1.1.3:compile [INFO] +- org.springframework:spring-web:jar:4.0.2.RELEASE:compile [INFO] | +- (org.springframework

Best Repository Management for Maven

北城余情 提交于 2019-12-09 17:48:48
问题 I am working on Automated Build using maven and Jenkins. I am looking for best open source Repository Management for Maven. So that I can have an integaration between Maven and jenkins via respository manager. 回答1: You have at least three choices that I know of Nexus Artifactory Apache Archiva I have used all the three and each has pros and cons. I would go with Nexus since it is backed by Sonatype who are also involved in maven development. I liked the Artifactory User Interface though Both

MojoExecutionException: Maven with Android

余生颓废 提交于 2019-12-09 17:25:37
问题 I'm using Android Studio with Maven 3.1.1 and in the package goal it crashes with a MojoExecutionException. I have readed lot of posts but I can't get the solution. [ERROR] Error when generating sources. org.apache.maven.plugin.MojoExecutionException: at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:593) at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:216) at org

Which App Engine Maven Plugin to use?

拥有回忆 提交于 2019-12-09 17:04:53
问题 been working with Google App Engine lately and stumbled upon something that is a mystery to me, maybe you can clarify. According to some of Google's own websites (https://cloud.google.com/appengine/docs/java/tools/maven) you should use <plugin> <groupId>com.google.appengine</groupId> <artifactId>appengine-maven-plugin</artifactId> <version>${appengine.maven.plugin.version}</version> </plugin> and according to some other pages (https://cloud.google.com/appengine/docs/java/tools/maven-reference

Process spawned by exec-maven-plugin blocks the maven process

社会主义新天地 提交于 2019-12-09 14:20:01
问题 I am trying to execute the following scenario using maven : pre-integration-phase : Start a java based application using a main class (using exec-maven-plugin) integration-phase : Run the integration test cases (using maven-failsafe-plugin) post-integration-phase: Stop the application gracefully (using exec-maven-plugin) Here is pom.xml snip: <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <id

How do I track plugin dependencies in maven2?

試著忘記壹切 提交于 2019-12-09 14:04:18
问题 I am trying to locate an evil plugin that includes a stoneage version of a certain jar file. How do I do that ? 回答1: also, mvn -X will spit out all kinds of info, i believe it includes dependency versions. 回答2: mvn dependency:resolve-plugins gives a list of dependencies for each plugin 回答3: mvn dependency:tree - shows you a tree of all dependencies including transitive dependencies 来源: https://stackoverflow.com/questions/312767/how-do-i-track-plugin-dependencies-in-maven2