maven-2

Changes in dependent modules cannot be seen in other module in Maven Eclipse

南笙酒味 提交于 2019-12-24 02:08:09
问题 I am working on a multi module project with m2eclipse. I set the maven to take care of resolving workspace dependencies. But when I make change on, say, service module, change is not visible on other modules immediately. If I make new method in Service layer, it is not visible in WebApp layer. Sometimes even Run/maven install and refresh and Project/clean and Maven/Update Dependencies doesn't work. Can someone give me an idea on this problem? My project structure looks like as follows: parent

How can I merge multiple OSGi bundles with BND / Maven-BND-plugin?

别说谁变了你拦得住时间么 提交于 2019-12-24 01:56:05
问题 I'm using some off-the-shelf OSGi bundles in my application and would like to repackage them together with additional packages that are not yet OSGi compatible into a new bundle. Case in point is EclipseLink, which is available as several OSGi bundles, most of which are optional, depending on what you want to do. I want to pick those bundles that are relevant for me, add database drivers (for example the MySQl JDBC connector) and repackage them into a new bundle that is easier to deploy. I'm

has anyone got the animal sniffer plugin to work?

北慕城南 提交于 2019-12-24 01:40:29
问题 The maven-animal-sniffer plugin promises to tell me if my code has any references to Java 1.6 (or newer) APIs. This is important to those of us who develop on MacOSX Snow Leopard (which has only an official 1.6) but need to deliver to 1.5 environments. Sadly, when trying to use it, I get all Java API calls reported as violations. I'm not the only person to experience this problem, but apparently plenty of other people succeed. If someone has a working POM snippet for this purpose, it would

has anyone got the animal sniffer plugin to work?

∥☆過路亽.° 提交于 2019-12-24 01:40:05
问题 The maven-animal-sniffer plugin promises to tell me if my code has any references to Java 1.6 (or newer) APIs. This is important to those of us who develop on MacOSX Snow Leopard (which has only an official 1.6) but need to deliver to 1.5 environments. Sadly, when trying to use it, I get all Java API calls reported as violations. I'm not the only person to experience this problem, but apparently plenty of other people succeed. If someone has a working POM snippet for this purpose, it would

Creating one big War file out of 2 war projects

痞子三分冷 提交于 2019-12-24 00:19:03
问题 Anyone knows a decent way to merge 2 war modules in to one big war file ? Maybe through some custom maven plugin , or maven-war-plugin configuration ? Thanks 回答1: The maven Cargo plugin can merge WAR files but I've never used this outside a testing context (where I had full control on what I wanted to merge). For simpler scenarios, you can maybe use overlays. But none of these solutions will magically solve collisions. You'll have to do some choices. 回答2: It's not that simple. The basic

maven assembly dependencySet empty

心不动则不痛 提交于 2019-12-23 23:33:31
问题 Im trying to setup what I think is a simple assembly, taking the jars from several modules and putting them in a specific folder inside a zip. The resulting assembly should look like so: ir4job\ ir4job\app_lib\ ir4job\app_lib\ jar files go here But maven is giving me an empty zip file when the assembly is generated Assembly descriptor: <assembly> <!-- ir4job folder contents --> <id>ir4job-app</id> <formats> <format>zip</format> </formats> <includeBaseDirectory>false</includeBaseDirectory>

Upgrading to maven 3 from maven 2

自闭症网瘾萝莉.ら 提交于 2019-12-23 22:25:04
问题 I have upgraded from Maven 2 to Maven 3 and it seems to be working fine to clean install . However, in the Maven 3.x Compatibility Notes, it is mentioned that the <reporting> tag is no longer supported and should be moved up to the <build> tag. <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.1</version> <reportSets> <reportSet> <reports> <report>dependencies</report> <report>dependency-convergence

Generating a jar with the source code of the Maven project with the Maven directory structure?

旧街凉风 提交于 2019-12-23 19:42:06
问题 I have a web application that I build with Maven into a war. But I want to generate a JAR with the maven project with the correct maven directory structure. I tried this but it throws away the Maven directory structure (src/main/java, etc.). My goal is to distribute this jar to other people so they can unpack and run mvn eclipse:eclipse and start working on their new web project. 回答1: Why not using the existing descriptor of maven-assembly-plugin.. <groupId>org.apache.maven.plugins</groupId>

How do you use the maven-simian-plugin in Maven2?

喜你入骨 提交于 2019-12-23 19:20:46
问题 I'm looking for a Maven2 reporting plugin for Simian and the closest thing to such a reporting I found is this. The problem is, the documentation for it appears to be for Maven 1 instead. Why is a Maven 1 plugin stored in a Maven 2 repository? I suppose that means I can use it... but how to use? The site mentions reporting but if I don't have a src/main/site , does that mean I can't use it? I was kinda hoping for something like mvn simian:simian similar to mvn checkstyle:checkstyle and mvn

ClassNotFound exception while using the Maven Shade Plugin

为君一笑 提交于 2019-12-23 18:21:56
问题 I am trying to follow this link: http://maven.apache.org/plugins/maven-shade-plugin/examples.html I am new to Maven. I feel a bit out of depth trying to follow the example. I am able to get Quartz Scheduler to get working with Spring. I want to be able to run it from commandline using jar file. Here are the list of classes and pom file I used. EDIT: I am able to get a shade jar file. I used mvn clean install but when I try to run it from the command line, I get the following errors. C:\Users