maven-plugin

Junit maven Error occured in starting fork, check output in log [closed]

邮差的信 提交于 2019-12-06 16:34:51
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . BUILD ERROR Error occured in starting fork, check output in log with using maven 2.2.1 and surefire plugin 2.11 while running junit test-cases 回答1: You

Selenium 2 WebDriver UnhandledAlertException Java

北城以北 提交于 2019-12-06 15:32:11
Now before I start getting scolded, I DID read through most of the existing questions about this and applied different solutions (which mostly repeat the same thing), but it still does not work for me. I have a maven project with all necessary dependencies, and the website in testing is done specifically for IE and requires me to have a specific certificate in order to access it. I have the certificate for it, and when I go onto the website, before it loads the page it asks me to confirm that I have the certificate and I need to confirm on the pop-up window, THEN the login page fully loads. I

maven: How to load tools.jar/classes.jar in an OS independent way?

半城伤御伤魂 提交于 2019-12-06 15:12:53
I am using a maven plugin that requires a class that is contained in the jdk's (windows) tools.jar (mac it's in classes.jar). I add this as an explicit dependency of the plugin as follows: <dependencies> <dependency> <groupId>sun.jdk</groupId> <artifactId>classes</artifactId> <version>1.6.0</version> <scope>system</scope> <systemPath>${java.home}/../Classes/classes.jar</systemPath> </dependency> </dependencies> This works if I'm using OS X. However, it does not work if I'm developing on a Windows machine. Moreover, I dislike the use of ../Classes. Is there perhaps a better way to load in the

Error while reading the property file in pom.xml

徘徊边缘 提交于 2019-12-06 12:34:52
问题 I have a sample properties file as following. sample.properties language=English site=www.google.com login=Login I am invoking the property file into my pom.xml using the following plugin and goal as properties-maven-plugin and read-project-properties my pom.xml is <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>properties-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <phase>initialize</phase> <goals> <goal>read-project-properties</goal> </goals>

deploying java war to heroku ,pom.xml error

放肆的年华 提交于 2019-12-06 09:04:11
i want to deploy java war to heroku..and i mentioned the dependencies like below in my pom.xml <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals><goal>copy-dependencies</goal></goals> </execution> </executions> </plugin> </plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>appassembler-maven-plugin</artifactId> <version>1.1.1</version> <configuration> <assembleDirectory>target</assembleDirectory> <programs

What is the syntax to run a maven plugin from the command line.

让人想犯罪 __ 提交于 2019-12-06 08:23:25
I see that this has already been asked over here: How to execute maven plugin from command line? but I don't really understand the answer. It looks like the syntax is of the form: mvn foo:bar But I'm not really sure what foo and bar are supposed to be. Specifically I have configured the maven-resource-plugin like this: <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.5</version> <executions> <execution> <id>copy-resources</id> <phase>prepare-package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <!--configuration here--> </configuration> </execution> <

Maven Grails Plugin Environment

隐身守侯 提交于 2019-12-06 07:59:24
how do I specify build goals like development, test or production environment in the maven grails plugin when packaging a war file for deployment? Thanks You can also set it in the <configuration> section <plugin> <groupId>org.grails</groupId> <artifactId>grails-maven-plugin</artifactId> <version>1.3.7</version> <executions> <execution> <goals> <goal>maven-war</goal> </goals> <configuration> <env>prod</env> </configuration> </execution> </executions> </plugin> Set grails.env when running maven: mvn package -Dgrails.env=development If you omit this option, the environment defaults to production

maven project-reports.html vs index.html

杀马特。学长 韩版系。学妹 提交于 2019-12-06 07:21:50
问题 I have a multi module pom ProjectBaseDir> Module A Module B parentPom.xml I don't have any site.xml ProjectBaseDir> mvn clean site produces the below files under the directory ProjectBaseDir/target/site> cpd.html, pmd.html, findbugs.html project-reports.html (Note: no index.html) folders (css, images, apidocs) Links generated in multi module pom points to "index.html" but that file is not created. staging fixes the relative path of the module files but the original issue of index.html still

Unable to send email after tests run using Maven Postman plugin

大城市里の小女人 提交于 2019-12-06 05:33:48
I've been trying all morning but have not had any success sending emails after running my Selenium test suite from the command line using Maven. Here is how we run the suite from the command line. mvn surefire:test This is using the Surefire plugin to run a suite of TestNG/Selenium tests. This works great and we want to keep using it. What I need is a way to email the results after each running of the suite. I came across the Postman plugin and it looks perfect. Only problem is I can't get it to work at all. Here is my maven .pom file. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns

Using maven 3, how to use project classpath in a plugin?

佐手、 提交于 2019-12-06 05:17:35
问题 I'm writing a maven 3 plugin, for which I would like to use project classpath. I've tried using the approach mentionned in Add maven-build-classpath to plugin execution classpath, but it seems the written component is not found by maven. (I have a ComponentNotFoundException at plugin execution start). So, what is the "reference" way to use project classpath in a maven 3 plugin ? Or if the component way is the right one, is there any configuration step beside adding the component as