build-process

Why does Maven have such a bad rep? [closed]

*爱你&永不变心* 提交于 2019-11-26 08:38:57
问题 There is a lot of talk on the internet about how Maven is bad. I have been using some features of Maven for a few years now and the most important benefit in my view is the dependency management. Maven documentation is less than adequate, but generally when I need to accomplish something I figure it out once and then it works (for example when I implemented signing the jars). I don\'t think that Maven is great, but it does solve some problems that without it would be a genuine pain. So, why

How to get a dependency tree for an artifact?

こ雲淡風輕ζ 提交于 2019-11-26 08:03:12
问题 dependency:tree can be used to see the dependency tree for a given project. But what I need is to see the dependency tree for a 3rd party artifact. I guess I can create an empty project, but I\'m looking for something easier (I need to do this for several artifacts). 回答1: 1) Use maven dependency plugin Create a simple project with pom.xml only. Add your dependency and run: mvn dependency:tree Unfortunately dependency mojo must use pom.xml or you get following error: Cannot execute mojo: tree.

Building a runnable jar with Maven 2

佐手、 提交于 2019-11-26 07:54:45
问题 I\'m relatively new to the Maven mantra, but I\'m trying to build a command-line runnable jar with Maven. I\'ve setup my dependencies, but when I run mvn install and attempt to run the jar, two things happen. First, no main class is found, which is correctable. When I\'ve corrected this, I get errors on run stating that classes cannot be found. Maven is not packaging my dependency libraries inside of the jar, so I am unable to run the jar as a stand-alone application. How do I correct this?

Why maven? What are the benefits? [closed]

南楼画角 提交于 2019-11-26 06:54:24
问题 What are the main benefits of using maven compared to let\'s say ant ? It seems to be more of a annoyance than a helpful tool. I use maven 2, with plain Eclipse Java EE (no m2eclipse), and tomcat. Supporters of maven believe that Maven lets you get your package dependencies easily Maven forces you to have a standard directory structure In my experience Figuring out package dependencies is really not that hard. You rarely do it anyway. Probably once during project setup and few more during

Git workflow - Setting up a build process

半城伤御伤魂 提交于 2019-11-26 06:48:13
问题 Disclaimer: I\'ve been using Git for a while but still find it confusing. I\'m setting a build process for a project and am running into a problem updating the git repository. I created the repository on the server, lets say C:\\MyProject. I connected my computer to the repository with SourceTree. Do a pull and get all my code, everything is great so far. I go to make a commit but get an error saying: \"refusing to update checked out branch... By default, updating the current branch in a non

Displaying build times in Visual Studio?

匆匆过客 提交于 2019-11-26 06:14:47
问题 Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008. Is there any way to get devenv.com to log the time taken to build each project in the solution, so that I know where to focus my efforts? Improved hardware is not an option in this case. I\'ve tried setting the output verbosity (under Tools / Options / Projects and Solutions / Build and Run / MSBuild project build output verbosity). This doesn\'t seem to have any effect in the IDE. When running

What is your experience with non-recursive make? [closed]

纵然是瞬间 提交于 2019-11-26 05:57:12
问题 A few years ago, I read the Recursive Make Considered Harmful paper and implemented the idea in my own build process. Recently, I read another article with ideas about how to implement non-recursive make. So I have a few data points that non-recursive make works for at least a few projects. But I\'m curious about the experiences of others. Have you tried non-recursive make ? Did it make things better or worse? Was it worth the time? 回答1: We use a non-recursive GNU Make system in the company I

ld linker question: the --whole-archive option

房东的猫 提交于 2019-11-26 05:56:18
问题 The only real use of the --whole-archive linker option that I have seen is in creating shared libraries from static ones. Recently I came across Makefile(s) which always use this option when linking with in house static libraries. This of course causes the executables to unnecessarily pull in unreferenced object code. My reaction to this was that this is plain wrong, am I missing something here ? The second question I have has to do with something I read regarding the whole-archive option but

Maven Modules + Building a Single Specific Module

落爺英雄遲暮 提交于 2019-11-26 05:32:51
I have a multi-module Maven project with a parent project P and three sub-modules A , B , and C . Both B and C are war projects and both depend on A . I can type mvn compile in P and have all of the sub-modules properly compiled. The problem comes when I want to do operations for specific modules. I'd like to be able to package a war for project B , but when I run the package command from B 's directory, it complains that it can't find the dependencies for A . I understand from this question: Maven and dependent modules that perhaps Maven isn't really designed for this type of dependency

How do I generate sourcemaps when using babel and webpack?

妖精的绣舞 提交于 2019-11-26 04:59:55
问题 I\'m new to webpack, and I need a hand in setting up to generate sourcemaps. I\'m running webpack serve from the command line, which compiles successfully. But I really need sourcemaps. This is my webpack.config.js . var webpack = require(\'webpack\'); module.exports = { output: { filename: \'main.js\', publicPath: \'/assets/\' }, cache: true, debug: true, devtool: true, entry: [ \'webpack/hot/only-dev-server\', \'./src/components/main.js\' ], stats: { colors: true, reasons: true }, resolve: