maven-3

Transitive dependency not included in war package

北战南征 提交于 2019-12-11 07:19:55
问题 A war project is dependent on com.mycompany:somejarname:1.0. It is dependent on slf4j-log4j12 (this is needed only at runtime by that jar). The packaged war doesn't include slf4j-log4j12- my understanding is that it should be included since because of transitive dependency: war --> somejarname --> slf4j-log4j12. The dependency tree does show the dependency but it is not included in the final war package. [INFO] +- com.mycompany:somejarname:jar:1.0:compile [INFO] | +- common-crypt:common-crypt

SLF4J: java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be successfully initialized

非 Y 不嫁゛ 提交于 2019-12-11 07:11:43
问题 I have the following maven dependency in my pom file: <!-- depends on slf4j-api, log4j --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.6.4</version> </dependency> When I deploy the project into tomcat, I am getting the error message: SEVERE: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.ExceptionInInitializerError at org.springframework.web.context

is there a maven plugin for doing common file system operations? [closed]

我的未来我决定 提交于 2019-12-11 06:27:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 12 months ago . I have an ant script which produces a custom version of tomcat for use on my servers. This ant script does the following: unzip a pristine copy of a tomcat .zip file delete a bunch of files that are not used Add a bunch of jars to the tomcat\lib folder like database drivers and others zip it all back up into a

Deploying Appfuse Spring MVC project to Tomcat direcly from STS - ERROR

不羁的心 提交于 2019-12-11 06:27:01
问题 I am trying to deploy my project to Tomcat using STS. My project is building (installing) ok. But when I try to run tomcat:run it is not working. I am getting this error. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective

How to handle shell prompt in maven

喜你入骨 提交于 2019-12-11 04:23:11
问题 I have a pom.xml file that executes a shell script, and the shell script has the prompt "Enter 'YES' to have this script continue:" How do I tell maven 1)Parse the prompt, 2)Enter YES when it sees the prompt? Or at the least, an answer to the second question above? Thanks. 回答1: I had a similar problem. One of my plugins was designed to display some information to user and proceed only after confirmation. When I had to use it on our CI build server, I ended up with this: echo 'y' | mvn release

How to auto-update versions only for dependencies within multi-module/reactor build?

回眸只為那壹抹淺笑 提交于 2019-12-11 04:15:19
问题 When I run the following command for the root project, it checks for updates of ALL dependencies: mvn versions:use-latest-versions I want to limit versions update for only those dependencies which are reachable from the root : root/pom.xml ├── A/pom.xml │ └── D/pom.xml │ └── E/pom.xml ├── B/pom.xml └── C/pom.xml ├── F/pom.xml └── G/pom.xml The group and artifact ids of these dependencies are in the current reactor build (multi-module build). For example, I don not want to update external

how to start a single goal / execution in maven

我与影子孤独终老i 提交于 2019-12-11 03:50:08
问题 Currently I am debugging the signing of an Android app. And this would be a lot easier if I could just execute this one and only plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jarsigner-plugin</artifactId> <executions> <execution> <id>signing</id> <goals> <goal>sign</goal> </goals> <phase>package</phase> But no matter what I try all I get is: [ERROR] Could not find goal 'signing' in plugin org.apache.maven.plugins:maven-jarsigner-plugin:1.2 among available

Using the maven-remote-resources-plugin and specifying the resourcesDirectory

寵の児 提交于 2019-12-11 03:37:27
问题 I'm trying to override the default resources directory (src/main/resources) when using the maven-remote-resources-plugin . However the specified value in the sample below doesn't seem to be taken into account. Would appreciate if someone could give me some pointers. <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<

Maven Copy Files and Folders Plugin not copeying linux [dot] “.*” hidden files

血红的双手。 提交于 2019-12-11 03:16:49
问题 I have a maven code <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resources-from-parent</id> <phase>initialize</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>./target/aut-ws</outputDirectory> <resources> <resource> <directory>/prj//workspace-Fm-aut-Testing/</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> This is working fine, but it is not copying .* linux files which

Maven build fails on Jenkins, but works on local machine

一个人想着一个人 提交于 2019-12-11 03:04:18
问题 I have a fresh installed Debian Wheezy server running Jenkins 1.596 (The latest Version) installed from the official deb package. For playing around with Jenkins, I crated a new Maven-Project which gets checked out with Git. When I run Maven to build this project, on my local machine which has Maven version 3.0.5 installed, by executing mvn3 package the build is successfully, but when I try to build the project on the Jenkins server the build fails. The plugins maven-resources-plugin (maven