I need to use a non-Maven project (simply a folder with script files) from a remote hg repo as a resource for my Maven project in git. I need to use those files in my Java code.  What is the way to add them to my project it without:  - Having to fork a non-maven repo  - Having to make that project into Maven project  - Having to move either project to a different repo  There must be some Maven plugin that lets adding archives to a project but I just cannot google it.
21016
Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development. I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: &quot;In addition to my defined dependencies, include any jars that are in /lib too.&quot; It seems like this ought to be simple, but if it is, I am missing something. Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.
42177
I have a Maven pom that uses &lt;packaging&gt;war&lt;/packaging&gt;.  But actually, I don't want build the war-file, I just want all the dependent jars collected and a full deployment directory created.  So I'm running the war:exploded goal to generate the deploy directory:  &lt;plugin&gt;     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;     &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;     &lt;executions&gt;         &lt;execution&gt;             &lt;phase&gt;package&lt;/phase&gt;             &lt;configuration&gt;                 &lt;webappDirectory&gt;target/${env}/deploy&lt;/webappDirectory&gt;                 &lt;archiveClasses&gt;true&lt;/archiveClasses&gt;             &lt;/configuration&gt;             &lt;goals&gt;                 &lt;goal&gt;exploded&lt;/goal&gt;             &lt;/goals&gt;         &lt;/execution&gt;     &lt;/executions&gt; &lt;/plugin&gt;   The trouble is, the war file still gets built.  Is there a simple way of having &lt;packaging&gt;war&lt;/packaging&gt; execute the war:exploded goal instead of the war:war goal?  Or is there another simple way to do this?
45688
I've been using git to track changes in the plugins and themes I've developed for different sites. Each plugin or theme has their own repository in whichever local install of WordPress I happen to be using for that project. This works fine when I'm just working on one solitary plugin or theme.  But when I have a local version of an entire site which is a collection of different plugins, themes, WordPress core, etc. Should I be keeping that entire directory under version control?  Is there a best practice to always have a collection of repositories for each theme/plugin, or for each client site to have one monolithic repository that includes all the code used in the project (including the latest copy of WordPress via svn.)
62461
I'm trying to run a simple script- clone a git repository into a certain directory, then cd to this directory in order to execute an installation script.  This script is in a Makefile.  But the cd seems not to be working. It doesn't find my installation script.  I added a pwd after the cd in the script, and it shows me the directory from where I'm executing the script, not the directory where I cd into.  What's the problem?  git clone http://somerepo ~/some_dir cd ~/some_dir/ pwd python myscript.py install   =>   pwd: /hereIsPathToDirectoryFromWhichIRunTheScript     python: can't open file 'setup.py': [Errno 2] No such file or directory   It also doesn't work with ./setup.py.  If I enter the absolute path ~/some_dir/setup.py the script fails later because it's trying to access resources in the same folder.
48772
I'd like to put some shared Javascript to Resource file to reuse it between several components. This Javascript is general purpose set of utility functions. However, functions from my resource file are not available from the Components. Static resource (named TestScript):  function helloWorld() {      return 42; }   Component:  &lt;ltng:require scripts="{!$Resource.TestScript}" &lt;ui:button label="Do job" press="{!c.doJob}"/&gt;   Controller:  doJob: function(cmp, event, helper) {      var i = helloWorld();      // failed with Uncaught ReferenceError: helloWorld is not defined }   I don't like to use  &lt;ltng:require scripts="{!$Resource.***resourceName***}" afterScriptsLoaded="{!c.afterScriptsLoaded}" /&gt;   because my static resource is a set of functions and I'd like just use them as functions later in my controllers. How can I achieve that (if possible)? If not, what's the suggested solution?
64804
Currently I'm using the auto-tools to build/install and package a project of mine, but I would really like to move to something that feels more "pythonic".  My project consists of two scripts, one module, two glade GUI descriptions, and two .desktop files.  It's currently a pure python project, though that's likely to change soon-ish.  Looking at setuptools I can easily see how to deal with everything except the .desktop files; they have to end up in a specific directory so that Gnome can find them.  Is using distuils/setuptools a good idea to begin with?
18966
I want to use version control for config files in Ubuntu server.    But I found it's not easy to simply use git for the whole /etc directory, because many files don't need to be tracked and sometimes the system will write to files like logs which should be ignored.    Is there an application that can do this and make it easy? If it is based on git that is better.
53154
How do I get my project's runtime dependencies copied into the target/lib folder?    As it is right now, after mvn clean install the target folder contains only my project's jar, but none of the runtime dependencies.
55686
We'd like to make a few basic hook scripts that we can all share -- for things like pre-formatting commit messages.  Git has hook scripts for that that are normally stored under &lt;project&gt;/.git/hooks/.  However, those scripts are not propagated when people do a clone and they are not version controlled.    Is there a good way to help everyone get the right hook scripts?  Can I just make those hook scripts point to version controlled scripts in my repo?
22394
I'm using a series of commands for deploying my files to production. This is currently done manually.  Is it possible to make these commands into an executable file? So that I don't have to copy paste these commands each and every time.  When the first line is executed i.e., connecting to the root server, it will ask for the password and I have to paste the password: xxxxxxxxxxxxxx  ssh root@server pwd: xxxxxxxxxxxxxx ssh-agent bash ssh-add bi-master cd /home/trans/bimaster git status git pull git@bitbucket.org:xxxxxxxxx/bimaster.git master   Note : I'm the admin of the server, Since the project is been done by different teams as of now, we have decided to do manual deployment (cannot use Jenkins or any other tools for automated deployment), as we have to check the status of some files.
43836
Working with selenium + maven project in eclipse. I am facing below warnings:  log4j:WARN No appenders could be found for logger(org.apache.http.client.protocol.RequestAddCookies). log4j:WARN Please initialize the log4j system properly.  I have tried  Adding log4j.properties Corrected jdk version updated pom.xml file with accurate dependancy Ensure that those files are physically available and link in build with correct + valid path cleaned project in eclipse updated all maven dependancies  Anyone has experience and face, please guide/suggest how those can be fixed?
73389
I am having a CentOS remote machine where I have hg installed. It was working fine for long time and today when I am trying to use hg  commands, I got the following errors,  [dinesh@lab test]$ hg st -bash: hg: command not found [dinesh@lab test]$   Then I realized that it might be missed from PATH. (But, how?, not sure.). I checked the which hg command and it failed to give me the path.  hg is located at /usr/local/bin/hg and using the whole path for hg, made it work. I tried adding the hg path to PATH variable like,   PATH=$PATH:/usr/local/bin/hg   which also didn't work. Then I have created an alias for hg command as,  alias hg="/usr/local/bin/hg"   which at least made it work.   But, eventually, I end up with the same issue for kdiff3 (which is also working fine till yesterday). Tried the above and only alias made it work. (again)  Now, I am in need of using hg kdiff3 command and for which I am keep on getting   /bin/sh: kdiff3: command not found   But, I have the kdiff3 extension enabled in the hgrc file for the repository. (which is again working till yesterday)  :(  [dinesh@lab test]$ cat .hg/hgrc [paths] default = ssh://remoteuser@xxx.xx.xx.xxx//repo/code  [ui] username= dinesh &lt;dinesh.sivaji@domain.com&gt;  [extensions] mq = fetch = purge = hgext.extdiff = hgext.acl =  [extdiff] cmd.kdiff3 =  [dinesh@lab test]$      Note : After making changes in the .profile file for PATH or alias, I am sourcing them each time, for changes to take effect.   Can anyone suggest what can I do to overcome this issue ?
77821
I have been using git to keep two copies of my project in sync, one is my local box, the other the test server. This is an issue which occurs when I log onto our remote development server using ssh;  git clone me@me.mydevbox.com:/home/chris/myproject Initialized empty Git repository in /tmp/myproject/.git/ Password: bash: git-upload-pack: command not found fatal: The remote end hung up unexpectedly fetch-pack from 'me@me.mydevbox.com:/home/chris/myproject' failed.   (the file-names have been changed to protect the guilty... !)   Both boxes run Solaris 10 AMD. I have done some digging,  if I add --upload-pack=$(which git-upload-pack) the command works, (and proves that $PATH contains the path to 'git-upload-pack' as per the RTFM solution)  but this is really annoying, plus 'git push' doesn't work, because I don't think there is a --unpack= option.    Incidentally, all the git commands work fine from my local box, it is the same version of the software (1.5.4.2), installed on the same NFS mount at /usr/local/bin.    Can anybody help?
31449
Sometimes you're developing and you decide to commit, forgetting you created a few files on your project. Then a few days down the line your buddy gets your build out of Subversion and complains that some files appear to be missing. You realize, ah crap, I forgot to add those files!  How can I get a list of the files that are not under version control from Subversion so I'm sure I've added everything to the repository?
75869
I am looking for opinions of how to handle large binary files on which my source code (web application) is dependent. We are currently discussing several alternatives:   Copy the binary files by hand.   Pro: Not sure. Contra: I am strongly against this, as it increases the likelihood of errors when setting up a new site/migrating the old one. Builds up another hurdle to take.  Manage them all with Git.   Pro: Removes the possibility to 'forget' to copy a important file Contra: Bloats the repository and decreases flexibility to manage the code-base and checkouts, clones, etc. will take quite a while.  Separate repositories.   Pro: Checking out/cloning the source code is fast as ever, and the images are properly archived in their own repository. Contra: Removes the simpleness of having the one and only Git repository on the project. It surely introduces some other things I haven't thought about.    What are your experiences/thoughts regarding this?  Also: Does anybody have experience with multiple Git repositories and managing them in one project?  The files are images for a program which generates PDFs with those files in it. The files will not change very often (as in years), but they are very relevant to a program. The program will not work without the files.
43244
In Minecraft Java, I am creating many resource packs by myself (no studio or external resource) so, I want to ADD a new file/entity/element/items/etc. to the game to not replace an old item because EVERY item/effect/entity has SOME use in the game. In conclusion: how I can ADD [not replace] a file in the game and give it custom physical and mental properties?
26460
When I've worked a bit with my source code, I did my usual thing commit and then I pushed to a remote repository. But then I noticed I forgot to organize my imports in the source code. So I do the amend command to replace the previous commit:  &gt; git commit --amend   Unfortunately the commit can't be pushed back to the repository. It is rejected like this:  &gt; git push origin To //my.remote.repo.com/stuff.git/  ! [rejected]        master -&gt; master (non-fast forward) error: failed to push some refs to '//my.remote.repo.com/stuff.git/'   What should I do? (I can access the remote repository.)