maven-2

maven eclipse checkstyle plugin

懵懂的女人 提交于 2019-12-19 08:13:18
问题 I have custom checkstyle checks file (called checks.xml), and I'm trying to use that same file in both maven and eclipse. It all works well, except for the SuppressionFilter . In this checks.xml file, I have <module name="SuppressionFilter"> <property name="file" value="src/main/resources/checkstyle/checkstyle-suppressions.xml"/> </module> This works when I run through maven. However, when I run through eclipse, I need to change the config to be <module name="SuppressionFilter"> <property

Maven: How to install a plugin in offline mode

大兔子大兔子 提交于 2019-12-19 07:55:07
问题 I'm sitting behind a firewall and therefore maven can't connect to central repositories (error message is given below). However, I can connect to the internet via HTTP. How can I install a maven plugin (e. g. archetype) in offline mode (i. e. download some file in a browser and then install the plugin by executing some commands) ? Thanks in advance Dmitri P. S.: Here is the error message: E:\>mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-clean

Upload file via Ant FTP task in Maven

筅森魡賤 提交于 2019-12-19 07:28:12
问题 I'm trying to upload a file using an Ant task. If I use Ant directly the file is uploaded, but if I call the ant task via Maven (using the maven-antrun-plugin ) I get the following error: An Ant BuildException has occured: The following error occurred while executing this line: /home/me/proj/build.xml:15: Problem: failed to create task or type ftp Cause: the class org.apache.tools.ant.taskdefs.optional.net.FTP was not found. This looks like one of Ant's optional components. Action: Check that

JUnit3 and Junit4 XML Reports with Maven

无人久伴 提交于 2019-12-19 06:05:24
问题 I am trying to figure out how to use the supposed reporting capabilities of JUnit (3 and 4) in conjunction with Maven, but Google searches aren't turning up much in the way of how to actually run JUnit (via Maven), get a report for each test (or all tests) and what format it will be in. So, my multi-part questions is: 1.) What sort of XML format is JUnit (3/4) capable of outputting? 2.) What sort of calling convention/arguments are required for JUnit to output these reports? 3.) Where are the

JUnit3 and Junit4 XML Reports with Maven

喜你入骨 提交于 2019-12-19 06:05:15
问题 I am trying to figure out how to use the supposed reporting capabilities of JUnit (3 and 4) in conjunction with Maven, but Google searches aren't turning up much in the way of how to actually run JUnit (via Maven), get a report for each test (or all tests) and what format it will be in. So, my multi-part questions is: 1.) What sort of XML format is JUnit (3/4) capable of outputting? 2.) What sort of calling convention/arguments are required for JUnit to output these reports? 3.) Where are the

cxf + wss4j + maven NoSuchMethod error

若如初见. 提交于 2019-12-19 05:49:09
问题 trying to use the cxf+wss4j using maven. Created both the service and client without any compilation issues. The service runs fine in tomcat. Issue: When I run the client code, I get "java.lang.NoSuchMethodError: org.apache.xml.security.utils.I18n.init(Ljava/util/ResourceBundle;)V". This class is in xmlsec jar which comes along with cxf distribution. pom.xml for service project: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

cxf + wss4j + maven NoSuchMethod error

最后都变了- 提交于 2019-12-19 05:48:08
问题 trying to use the cxf+wss4j using maven. Created both the service and client without any compilation issues. The service runs fine in tomcat. Issue: When I run the client code, I get "java.lang.NoSuchMethodError: org.apache.xml.security.utils.I18n.init(Ljava/util/ResourceBundle;)V". This class is in xmlsec jar which comes along with cxf distribution. pom.xml for service project: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Maven creating flat zip assembly

≯℡__Kan透↙ 提交于 2019-12-19 05:06:22
问题 To Maven gurus out there: I'm trying to package non-java project artifacts (.NET) into a single zip file. I'm having 2 problems: If I change packaging in my POM to zip <packaging>zip</packaging> , I get this error message: [INFO] Cannot find lifecycle mapping for packaging: 'zip'. Component descriptor cannot be found in the component repository: org.apache.mav en.lifecycle.mapping.LifecycleMappingzip. OK, no big deal - I changed it to <packaging>pom</packaging> to get rid of useless jar that

Aggregate Dependencies in a Multi-Module Maven Project

自作多情 提交于 2019-12-19 04:14:34
问题 I am trying to figure out how to aggregate my maven dependencies in a multi-module project. For example, if I have: root pom/project1 root pom/project2 and I run mvn dependency:copy-dependencies , I end up with the dependencies in: root pom/project1/target/dependency root pom/project2/target/dependency What I really want is that if I run the mvn command in the root pom folder, all of the dependencies to be copied to root pom/dependency . Is there a maven property that gets me the output

liquibase using maven with two databases

回眸只為那壹抹淺笑 提交于 2019-12-19 04:09:47
问题 i have the following structure to run one database from maven: <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-plugin</artifactId> <version>1.9.5.0</version> <executions> <execution> <phase>process-resources</phase> <configuration> <changeLogFile>src/main/resources/db.changelog.xml</changeLogFile> <driver>com.mysql.jdbc.Driver</driver> <url>jdbc:mysql://localhost:3306/charm</url> <username>***</username> <password>***</password> </configuration> <goals> <goal>update</goal> <