maven-3

cobertura-maven-plugin excludes configuration

天大地大妈咪最大 提交于 2019-12-12 08:26:48
问题 I have a Maven project with a test case DefaultViewTypeToFragmentMapperTest.java in the directory /src/test/java/test/com/mycompany/myproduct/android/viewtype2fragmentmapper/ . I want this test case to be excluded from unit test coverage calculation. In order to achieve this result, I configured the plugin like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.5.2</version> <configuration> <formats> <format>html</format> <format>xml

Maven: Overview for the values of Maven properties

最后都变了- 提交于 2019-12-12 07:09:20
问题 I would like to find out the values of all Maven properties as they apply to some Maven project. mvn help:system lists OS environment variables and JVM system properties, but no Maven properties. mvn help:evaluate only works in an interactive mode, that means I have to type a single Maven property, (e.g. ${project.build.outputDirectory} ) to get the value of that property. I'm looking for a way get a full list of all Maven properties and their values. 回答1: As a workaround, add this to the

How to execute mvn command using IntelliJ IDEA?

不打扰是莪最后的温柔 提交于 2019-12-12 07:07:15
问题 I am trying to add Oracle JDBC driver in my local Maven repo. I have found this link to do so. I want to do the same from Inside IntelliJ IDEA. Is there any way to execute mvn commands from IntelliJ IDEA? 回答1: There is a button in maven menu of Intellij IDEA: Also you can always use "Terminal" 回答2: You can check the Image : If you don't fine the Maven Projects there then you can open it from Bottom Left part of Intellij IDEA, there's one Square Button there. click on it. If You don't have

Maven project build into jar and war

痴心易碎 提交于 2019-12-12 05:47:18
问题 I have a project with the following pom.xml and I have removed some of the unwanted stuff from it. What I intended to happen was to generate a jar file and ultimately generate a war package that includes the jar file as a library. Unfortunately, this doesn't seem to be happening with the following pom.xml . <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd

Maven Release Plugin Issue - Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare

百般思念 提交于 2019-12-12 05:06:01
问题 Struggling to maven:release this project. Looks like a version incompatibility issue, but I'm not sure how to rectify this issue. I'm using Maven version 3.1.1. Here's my pom.xml (sample) <build> <defaultGoal>install</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> <reporting> <plugins>

How Can I have an empty version tag in Maven3

a 夏天 提交于 2019-12-12 04:58:37
问题 I want a dependency to be resolved with no version. Maven 3 is forcing me to use a version, I can't provide a version for the system scope jar I'm resolving. Thanks. 回答1: You can use a system property define as below to resolve dependency. <properties> <org.springframework.version>3.0.5.RELEASE</org.springframework.version> </properties> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${org.springframework.version}</version> </dependency>

Installation failed. One or more certificates rejected. Cannot proceed with installation

我怕爱的太早我们不能终老 提交于 2019-12-12 04:37:55
问题 My System is Linux Mint SERENA; On attemt to build the repository https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T12:57:37+01:00) Maven home: /home/caleb/apache-maven Java version: 1.8.0_131, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-openjdk-i386/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-53-generic", arch: "i386", family: "unix" Comand issued :

missing jars when publishing a web app to glassfish with eclipse juno and maven integration

我的未来我决定 提交于 2019-12-12 04:09:04
问题 I use eclipse juno with GlassFish Server Open Source Edition 3(java EE6), m2e and maven 3.0.4. When I create a war file by 'mvn package' command and deploy it to a glassfish, the war file works just fine. However, when I publish a web app to a glassfish from the server view of eclipse, the web app fails. I guess the reason of this failure is that publishing from eclipse is not configured correctly to get jars from my maven repository and then jar files in eclipseApps//WEB-INF/lib directory

Java code throws exception after adding Selenium-java-2.31.0 library in Maven

南楼画角 提交于 2019-12-12 03:57:34
问题 I am working on Netbeans. I added a library selenium-java-2.31.0. But it shows exception. I added all the libraries on which this library is dependent. I follow this link to add library in netbeans. My code :- import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.util.Iterator; import org.openqa.selenium.By; import org.openqa

Include spring xml in jar by maven-assembly-plugin packaging

天大地大妈咪最大 提交于 2019-12-12 03:56:47
问题 I am trying to create an executable jar with all of its dependency along with the spring's configuration xml file. Here is the definition of the maven-assembly-plugin in the pom.xml: <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>service.coucou.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <descriptors> <descriptor>assembly.xml</descriptor> </descriptors>