maven-2

Where should I put application configuration files for a Maven project?

空扰寡人 提交于 2019-12-03 19:15:34
问题 I'm using the Maven Application Assembler plugin to generate stand-alone executables from my Java project. The application reads in configuration files, including Spring files. The Application Assembler plugin has an option (activated by default) to add a etc/ directory to the application's classpath, but what should I do to have the plugin copy my configuration files to this directory? Or more generally, where is in Maven the kosher location for application configuration files that should

Looking for a good dev environment for OSGi bundles [closed]

别说谁变了你拦得住时间么 提交于 2019-12-03 18:46:20
问题 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 4 years ago . I'm currently investigating in the field of dev environment for OSGi bundles. My goal is to find a way to develop, test and debug with ease the bundles I'll be coding. Besides, I have some "cultural" requirements. I want to be able to use java continuous integration servers (typically, Hudson) As a consequence

What's with all the Java Build tools?

别来无恙 提交于 2019-12-03 18:26:01
问题 what's the point of using ant, maven, and buildr? won't the using build in eclipse or netbeans work fine? i'm just curious what the purpose and benefit of extended build tools are. 回答1: Dependency Management : The build tools follow a component model that provides hints on where to look for dependencies. In Eclipse / Netbeans, you have to depend on a JAR and you don't really know if this JAR has been updated or not. With these build tools, they 'know' updates in dependencies (generally

ivy dependency on external JAR

我的未来我决定 提交于 2019-12-03 18:12:20
问题 I am battling with Ivy (I tried maven but had an event more difficult time setting up the JBoss repository for Hibernate). Quick question - I am using this wonderful package: http://ooweb.sourceforge.net/index.html Unfortunately, the JAR is only available through Sourceforge: http://sourceforge.net/projects/ooweb/files/ooweb/0.8.0/ooweb-0.8.0-bin.tar.gz/download Is there a way to get Ivy to download a specific JAR? For that matter, is it possible to do with Maven? Or for that matter, how

Should we use Nexus or Artifactory for a Maven Repo?

半城伤御伤魂 提交于 2019-12-03 17:54:00
问题 We are using Maven for a large build process (> 100 modules). We have been storing our external dependencies in source control, and using that to update a local repo. However, we are ready to graduate to a local repo that can cache central so that we don't have to proactively download all 3rd parties (but we can still have a local repo to pull from). In addition we want to publish our internal build artifacts from a nightly build so that developers don't have to build the world. We are

How to programmatically build the effective model of a pom file?

旧时模样 提交于 2019-12-03 17:17:05
I would create programmatically the effective model from a pom file to get all inherited attributes in the pom model instance. I would analyze some attributes of a pom - but I need for it all attributes - incl. inhertied. What have I to do? I have tried Sonatype Aether but I did not find a example. Check out this Gist https://gist.github.com/reiz/6203767 . It shows a method which builds a MavenProject inside of a maven plugin. On the MavenProject you can call methods like project.getDependencies() and so on. You could just run mvn help:effective-pom to get the pom that maven is actually using,

Generating sources by running a project's java class in Maven

試著忘記壹切 提交于 2019-12-03 16:58:55
问题 I'm converting a largish Ant build to Maven. As part of the Ant build, we have several steps which created Java classes by invoking one of the project's classes, simplified as: javac SomeGenerator.java java SomeGenerator generated # generate classes in generated/ javac generated/*.java I've split each generator in its own Maven module, but I have the problem of not being able to run the generator since it's not yet compiled in the generate-sources phase. I've tried something similar to

Why does the WTP plugin deploy one Maven dependency as a folder, instead of a jar?

不想你离开。 提交于 2019-12-03 16:58:21
问题 I have a very strange problem with Maven and the Eclipse WTP. I have a multi-module project, let's call it project . It consists of two modules project-base and project-web . I have the workspace resolution enabled (and it works fine with several other very similar Maven projects). project-base is a dependency of project-web and it's normally deployed as a jar file. But for several days, it keeps being deployed as a class folder in my local Tomcat, as you can see here: Therefore, my Tomcat

Maven Assembly Plugin - install the created assembly

依然范特西╮ 提交于 2019-12-03 16:53:54
问题 I have a project that simply consists of files. I want to package those files into a zip and store them in a maven repository. I have the assembly plugin configured to build the zip file and that part works just fine, but I cannot seem to figure out how to install the zip file? Also, if I want to use this assembly in another artifact, how would I do that? I am intending on calling dependency:unpack, but I don't have an artifact in the repository to unpack. How can I get a zip file to be in my

Can Eclipse ignore .cvsignore files when synchronizing with a CVS repository?

丶灬走出姿态 提交于 2019-12-03 16:20:08
I am working with a team environment with a heterogeneous blend of IDE's among different developers. Some use Eclipse, others NetBeans, others IntelliJ, etc. The code projects are all structured around Maven... so nobody cares which IDE you use as long as it can play with Maven. To that end, we're not supposed to commit any IDE-specific files (e.g. ".project", ".classpath") to the CVS repository. I believe that this second part may be overkill... but we're also not supposed to commit our ".cvsignore" files, which contain filters for our individual individual IDE-specific files. It's a bit of a