maven-2

Raml validator throws an error in javax.xml.validation.SchemaFactory.newSchema

扶醉桌前 提交于 2019-12-10 21:11:37
问题 When trying to validate espn.raml I got the below error. Same code is working fine for gmail.raml. Why is this happening? For your reference I have included the results I found what are the jars that SchemaFactory includes. $ find *.jar | xargs grep SchemaFactory.class Binary file axiom_1.2.11.wso2v6.jar matches Binary file org.apache.openjpa_2.2.0.wso2v1.jar matches Binary file solr_5.2.1.wso2v1.jar matches This is the exception I'm getting: Caused by: java.lang.LinkageError: loader

Build specific module in multi-module project

非 Y 不嫁゛ 提交于 2019-12-10 20:23:13
问题 I have a multi-module project. I thought I can compile only a single module from that multi module project with this line: mvn -amd -pl "module-name" This does not seem to work, but only builds the specific module. Its dependencies are not compiled yet so it fails. Any ideas how to solve that? 回答1: Try mvn -am -pl "module-name" instead (replace -amd with -am ). The -amd flag tries to build projects that depend upon "module-name" whereas -am builds projects that "module-name" depends upon. I

How to add a classpath entry when executing the app with exec plugin

夙愿已清 提交于 2019-12-10 19:46:12
问题 One of the components is looking for the persistence.xml using the java.class.path system property. It is desired to keep this file separately from jars in the /conf folder. When running the app with exec:exec, classpath is formed from the path to the main jar plus path to every dependency. I can't seem to figure out how to add the /conf entry to the classpath. My command line looks like this: mvn exec:exec -Dexec.executable="java" -Dexec.args="-classpath %classpath com.testjar.App" I tried

Maven release:perform seems to break build-helper:add-source

自闭症网瘾萝莉.ら 提交于 2019-12-10 19:43:34
问题 I have a fairly simple Flex SWC module that is compiled via the Maven Flexmojos plugin. This module also uses the flexmojos:generate goal during the generate-sources phase to create Actionscript3 equivalents of my Java services & domain classes. The regular sources are housed in src/main/flex and the generated sources are in src/main/flex-generated . The generated sources are NOT checked into Subversion. Like many other flexmojos users I use the build-helper:add-source goal to add this second

Maven 2 plugin, build + surefire

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 19:37:19
问题 If i define a plugin in the <build> tag and want to use this in my site command how do i do that? Do i have to define the plugin within <reporting> tag again? And how about the configuration which i probably have done within the build tag and want to take place at the reporting tag as well? (i dont want to specifie for example a location of a configuration file twice just to use a plugin in 2 lifecycles) As example: I define my checkstyle plugin in the build tag and configrue a custom

Maven build error

自古美人都是妖i 提交于 2019-12-10 19:04:43
问题 I want to build a spring mvc project by maven,I got the following error: The following artifacts could not be resolved: org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0, org.hibernate:hibernate-validator:jar:4.2.0.Beta1: Could not find artifact org.aopalliance:com.springsource.org.aopalliance:jar:1.0.0 in central (http://repo1.maven.org/maven2) I use eclipse and m2eclipse plugin. I don't know how to add local repository. And I found for different versions of eclipse,the result is

Creating multi module Maven Projects in Eclipse

百般思念 提交于 2019-12-10 18:21:35
问题 Trying to create a multi module maven project in eclipse. Parent 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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>parent</groupId> <artifactId>proj1</artifactId> <version>${myversion}</version> <packaging>pom</packaging> <properties> <myversion>1.0.0</myversion> </properties> <modules>

Is there a maven plugin that can diff files and output the result to file?

天涯浪子 提交于 2019-12-10 18:15:08
问题 I've been working on integration-tests for a Java web service. The integration test now sends SOAP-requests to the server which are asserted via the SoapUI-plugin and for each of the SOAP-requests an xml file is produced and saved (a part of the integration-test phase). Is there a plugin that allows me to diff the xml files that has been output and saved against a similar set of xml files that were produced in an earlier run? The idea is to diff xml files output from the previous release

Maven: How to add files to the root inside an EAR with maven-ear-plugin?

 ̄綄美尐妖づ 提交于 2019-12-10 18:02:54
问题 I need to add 2 XML files inside an EAR generated with maven-ear-plugin. Unfortunately, I haven't seen a way to add an arbitrary file to an EAR; the documentation of the plugin which reads "The EAR plugin supports the following artifacts: ejb, war, jar, ejb-client, rar, ejb3, par, sar, wsr and har". There's nothing for adding a regular file. org.apache.maven.plugins maven-ear-plugin 2.3.1 foo foo 1.4 lib ${parent.groupId} foo-web /foo org.richfaces.framework richfaces-api commons-lang commons

Build multiple project configurations with eclipse

空扰寡人 提交于 2019-12-10 17:53:20
问题 Is there a way to make Eclipse able to export multiple configurations of a single project? My problem is the following: I have several java web applications which I develop in Eclipse. Before I put new versions onto my production server I publish the new versions to a test server, where the apps run with a slightly different configuration (database server name, etc.). Is there a way to something like 'export war for TEST env' and 'export war for PROD env'? Eclipse only would have to take