maven-plugin

Why does jasperreports-maven-plugin needs itext:itext:jar:4.2.0?

元气小坏坏 提交于 2019-12-08 11:11:00
问题 Since today we can't build our jasper file any more. We use the jasperreports-maven-plugin for this. In maven 2.2.1, this was configured like this: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jasperreports-maven-plugin</artifactId> <version>1.0-beta-2</version> <executions> <execution> <goals> <goal>compile-reports</goal> </goals> <configuration> <sourceDirectory>${basedir}/src/main/resources/reports</sourceDirectory> <outputDirectory>>${project.build.directory}/classes/reports<

Selenium 2 WebDriver UnhandledAlertException Java

久未见 提交于 2019-12-08 06:56:21
问题 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

Accessing classes in custom maven reporting plugin

£可爱£侵袭症+ 提交于 2019-12-08 06:02:06
问题 I've written a custom maven reporting plugin to output some basic information about spring-mvc classes. In my internal tests I can see that code like this : public Set<Class<?>> findControllerClasses(File buildOutputDir) throws IOException, ClassNotFoundException { Collection<URL> urls = ClasspathHelper.forJavaClassPath(); if (buildOutputDir != null) { urls.add(buildOutputDir.toURI().toURL()); } Reflections reflections = new Reflections(new ConfigurationBuilder().setUrls(urls)); Set<Class<?>>

unable to fix liqibase maven plugin update sql during the process of building war file for mifos source code?

女生的网名这么多〃 提交于 2019-12-08 04:55:04
问题 error during building war file.we r building war file for mifos source code through maven tool. mifos is java open source code. we use mvn clean package -Dmaven.test.skip=ture cmd and give path name til head folder of source code as shown below C:\mifos_src_code\mifos-head-2.1.6-0-gb6f7b86\mifos-head-e9d4674>mvn clean package -Dmaven.test. skip=true; [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.mifos:mifos- db

How to get “relocated” or resolved artifact ID from top-level dependencies in maven plugin

大憨熊 提交于 2019-12-08 04:50:23
问题 I may be going about this wrong, but I'm trying to get the top-level dependencies of a project within a maven plugin. I can get all (top-level and transitive) dependencies using this call MavenProject.getArtifacts() I can get just the top-level dependencies using this call MavenProject.getDependencyArtifacts() The problem is that the artifactIds returned in the latter call is sometimes different than the artifactIds in the former call. This happens when the dependency is "relocated" such as

Analyzing Javascript with PMD Maven

别说谁变了你拦得住时间么 提交于 2019-12-08 04:11:21
问题 I'm currently trying out PMD as a possible static analysis tool that our company can use. I've analyzed Java files with no problems whatsoever, but I couldn't seem to do it with Javascript, everytime I execute pmd:pmd it just analyses java files again. Anyways, here is a snippet of my POM.xml: *Using Maven 3.3.1 <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.0.0</version> <configuration> <sources> ${basedir}/src

wildfly-maven-plugin doesn't deploy anything

依然范特西╮ 提交于 2019-12-07 20:28:41
问题 I would like Maven to start up a wildfly server which is available in my target-folder at /path/to/project/target/wildfly-8.1.2-Final. The plugin is supposed to deploy a war-artifact during pre-integration-test phase. That very artifact was created by maven-war-plugin during package-phase right before wildfly-maven-plugin starts. When running the maven build, wildfly starts up, however does not deploy anything. It just hangs after starting up and lets the Maven build fail after a timeout of

Maven Grails Plugin Environment

点点圈 提交于 2019-12-07 20:18:02
问题 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 回答1: 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> 回答2: Set grails.env when

分布式轻量级框架 设计&实现 2

对着背影说爱祢 提交于 2019-12-07 19:59:38
概述 使用maven管理项目的生命周期。用一个parent项目,聚合其他子模块。这样做的好处是在项目开发中物理的分离功能模块,保证每个子项目的独立性和内聚性。以后可以发布一个all-in-one的jar包,也可以发布成几个独立的jar包。比如发布成Repository.jar, Remote.jar等。 站点生成 cobertura, 统计代码覆盖率。 问题: cobertura如何跳过私有构造器和无用的getter,setter方法的测试覆盖率统计 ,望高人赐教。 findbugs,静态分析代码bug。 checkstyle, 统一 代码风格。 maven-jxr-plugin,生成源代码,便于查看。 taglist,查看还有多少todo的代码。 dashboard-maven-plugin,生成聚合报告。 希望大家多提建议指正。想近期有时间把项目搭建起来。 来源: oschina 链接: https://my.oschina.net/u/719192/blog/168755

Renaming static files when building WAR file using Maven

回眸只為那壹抹淺笑 提交于 2019-12-07 16:26:49
问题 I want to rename static files when building my WAR file using maven-war-plugin, with version number. For intance, in my project I have a file: src/main/webapp/css/my.css I want it to appear in the WAR file as: css/my-versionNumber.css The same question was already asked (see Rename static files on maven war build), but the accepted answer is to rename a directory. I do not want to rename a directory, I want to rename the actual file. Is this possible? 回答1: OK, I found a way, the principles