maven-2

Has anyone successfully run integration tests with Jboss embedded, Seam and Maven?

亡梦爱人 提交于 2019-12-03 15:30:34
Have been trying to get integration testing working with my seam project and the Jboss embedded container but am not having much success. Have been doing a lot of reading and have been trying what is mentioned in this JIRA but am not having any luck. Amy currently just trying to get the 'testproject-master-JBSEAM-2371.zip' project working but am getting the following exception ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy org.jboss.deployers.spi.DeploymentException: No deployer recognised the structure of vfsfile:/Users/aaron/Development/eclipse_workspaces/workspace_pink

What happened to the “Enable Nested Modules” option in m2-eclipse?

梦想与她 提交于 2019-12-03 15:30:30
I contribute to and implement some open source projects that use a Maven2 build system organized into several sub-modules. I've also been an Eclipse user for several years. With these projects, I have historically leveraged the maven-eclipse plugin so that Eclipse can correctly recognise library dependencies in my project. It used to be the case that -- when I set up a new workspace or project -- I would have to right-click select "Enable Dependency Management" followed by right-click "Enable Nested Modules." Once I did these things, maven & eclipse would find dependent libraries properly in

How can I execute several maven plugins within a single phase and set their respective execution order?

一世执手 提交于 2019-12-03 15:26:25
问题 I would like to breakup certain phases in the maven life cycle into sub phases. I would like to control the execution flow from one sub-phase to another, sort of like with ant dependencies. For example, I would like to use the NSIS plugin in order to package up my project into an installer at the package stage, AFTER my project had been packaged into a war file. I would like to do all that at the package phase. Is that possible? Thanks 回答1: Plugins bound to the same phase should be executed

Spring Batch, JdbcExecutionContextDao java.util.Map$Entry deserializer issue, xstream 1.4.1

旧城冷巷雨未停 提交于 2019-12-03 15:21:28
I have a problem using Spring Batch 2.1.9: when i use jobExplorer.getJobExecution(jobExecutionId) , i find a problem when DAO has to deserialize a string like: {"map":[{"entry":{"string":"parsedComparingDate","date":"2014-03-08 23:00:00.0 UTC"}}]} from the BATCH_JOB_EXECUTION_CONTEXT table, using method JdbcJobExecutionDao.getJobExecution() . I know that spring batch uses xstream 1.3, but in my Pom, i have: spring-batch 2.1.9 ; xstream 1.4.1 (inherited from smooks); jettison 1.3.3 (inherited from cxf); Also, i read that xstream 1.3 does not work fine with jettison 1.3.3, but using xstream 1.3

Error abotut dynamic web module version reported by STS

﹥>﹥吖頭↗ 提交于 2019-12-03 15:06:49
I've created a web project in STS 2.9.2 using Spring 3.0.6 and Maven 3.0.3. I've created some pages and code with no errors. I've upgraded Spring libraries version from 3.0.6 to 3.1.2 in project's pom.xml and now I get following error message: Dynamic Web Module 3.0 requires Java 1.6 or newer. Dynamic web module version and Java compiler version in project's faces are set to 2.5 and 1.6 respectively. Also set JRE system library for my project to 1.6. I've tried to remove Maven nature and then add it again and JRE system library is set to JSE 1.5 automatically (but I have no Java 1.5 installed)

How do I suppress maven assembly plugin skipping files that are already added? Or allow overwrite?

旧街凉风 提交于 2019-12-03 15:06:35
问题 For weeks, I've been wrestling with maven, getting it to deploy our project "properly." I'm almost done but I have one stubborn little problem: When I use the maven assembly plugin with the "directory" goal as in mvn assembly:directory I get LOTS of console output like the following: [INFO] tomcat/conf already added, skipping [INFO] tomcat/conf/Catalina already added, skipping [INFO] tomcat/conf/Catalina/localhost already added, skipping [INFO] tomcat/webapps already added, skipping I've

Set plugin's property on the command line in maven 2

岁酱吖の 提交于 2019-12-03 14:37:27
问题 In maven 2.x, how would one set a plugin's property on the command line instead of in the <configuration> of that plugin in the pom or in settings.xml? For example, if I was using mvn dependency:copy-dependencies (seen here) how can I set the useRepositoryLayout property without touching either the pom or my settings.xml? Thanks! 回答1: Answer was right in front of me in the copy-dependencies mojo docs (I even linked to it). The documentation for the property includes the Expression you can

Including a non-Mavenized dependency so it works with maven-shade-plugin

♀尐吖头ヾ 提交于 2019-12-03 14:26:57
I want to include GData Client , which doesn't use Maven, as a dependency into my Maven project. It ships as a bunch of JAR files. Additionaly, I use Maven Shade Plugin to build an executable JAR without any external dependencies (with the default configuration, no renaming/including/excluding/transforming of dependencies). How can I do that? (Just adding the JARs as resources wouldn't work, since the Shade plugin must extract them). you want to check the maven docs on installing 3rd party jars Once installed into your local maven repository, shade should be able to use them like any other

SCM URL relative to parent SCM URL in POMs

你离开我真会死。 提交于 2019-12-03 14:15:14
I have a Maven project made of several modules and sub-modules. I use SVN to version the source files. The short story How do I specify URL in scm properties of a POM file, that are relative to the ones of its parent. The long story Some modules and their sub modules share a common version number / release process, and some use independant ones. For the module with independant version number, I have set up a branches/trunk/tags layout, for the release-plugin to be happy. For that, I haveb two SVN layouts in my repository. One holds all the trunk/branches/tags mess, the other one holds a clean

Run a Ant task in Maven only if a property is set

半腔热情 提交于 2019-12-03 14:10:43
My pom.xml is running an Ant task to deploy a file using FTP. However, this deployment must be only done if the -Dftp=true argument is given in the Maven command (i.e. mvn clean install -Dftp=true ). Thus, I wrote the following code: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.2</version> <executions> <execution> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks if="ftp"> <echo message="Deploying files through FTP..."/> ... </tasks> </configuration> </execution> </executions> Using