repository

Maven without (remote) repository?

让人想犯罪 __ 提交于 2019-12-01 06:57:12
问题 I have a Maven 2 multi-module project and want to be sure everything is taken from my local checked-out source. Is it possible to tell Maven to never download anything for the modules it has the source of? Do I have to disable the remote repositories? Does Maven always have to go the expensive way of installing a module into the local repository, and then extracting it again for each of its dependents? Does Maven automatically first recompile dependencies for a module if their local source

repo init a particular commit

我的梦境 提交于 2019-12-01 06:52:17
Im building the Cyanogenmod 9 (Android ICS) system for a Nexus S phone (samsung crespo). The problem is that if I do: repo init -u git://github.com/CyanogenMod/android.git -b ics The repo inits to the latest commit of ICS, in which the manifest does not include some device/samsung/ projects I need (specifically https://github.com/CyanogenMod/android_device_samsung_crespo ). How do I repo init to a particular commit? In my case I want the last commit using the google android-4.0.3_r1 branch. Is this one: https://github.com/CyanogenMod/android/commit/5f5da775f570f2995c8ff2db98e6c8b40852911c If I

Unable to `git submodule foreach git pull`

对着背影说爱祢 提交于 2019-12-01 06:51:00
This question is based on this thread . My .gitmodules is at my Home [submodule "bin"] path = bin url = git://github.com/masi/bin.git My folder -structure at my Home: ~ |-- [drwxr-xr-x] bin // this is the folder which I make a submodule // it is also a folder where I have a Git to push my submodule's files | -- fileA ` -- folderA ... I run git submodule init # I get no output from these commands git submodule update I run git submodule foreach git pull I get Entering 'bin' fatal: Where do you want to fetch from today? Stopping at 'bin'; script returned non-zero status. My first assumption to

How to copy SVN repository as a folder to another repository with history

◇◆丶佛笑我妖孽 提交于 2019-12-01 06:19:17
问题 I have 2 repositories http://mysnv/svn/proj1/trunk proj1_folder1 proj1_folder2 and http://mysnv/svn/proj2/trunk proj2_folder1 proj2_folder2 How can I copy the proj2 with history to be a folder in the trunk of proj1 to get the following result http://mysnv/svn/proj1/trunk proj1_folder1 proj1_folder2 proj2 proj2_folder1 proj2_folder2 Actually what I want to do is to have only one SVN repository with all the content of proj2 and the history in the folder proj2 in http://mysnv/svn/proj1/trunk

Symfony 2 : how to override repository of another bundle

馋奶兔 提交于 2019-12-01 05:49:12
I have 2 bundles and i want to override the repository of one of them in the other : I have a source bundle : SourceBundle. I have my override bundle : OverrideBundle First, in OurVendorOverrideBundle.php, I added : public function getParent() { return 'SomeVendorSourceBundle'; } Then I wanted to add a custom method for the repository of an entity of SourceBundle. The source entity is Response.php, and its repository is ResponseRepository.php So i did : <?php namespace OurVendor\OverrideBundle\Repository; use Doctrine\ORM\EntityRepository; use SomeVendor\SourceBundle\Repository

How to Set Some of Entity Properties in Repository in C#?

十年热恋 提交于 2019-12-01 05:40:22
问题 I have a DB that all of its entities have some log fields for Create/Modify/Delete and I have to take Current User Id in all of my CRUD Actions and set these fields for security purpose .... this is an example of my Entities : //log properties public byte RecordStatus { get; set; } public string RecordStatusDescription { get; set; } public string CreatedBy { get; set; } public DateTime CreatedDateTime { get; set; } public string CreatorIPAddress { get; set; } public string ModifiedBy { get;

Symfony 2 : how to override repository of another bundle

余生长醉 提交于 2019-12-01 03:58:34
问题 I have 2 bundles and i want to override the repository of one of them in the other : I have a source bundle : SourceBundle. I have my override bundle : OverrideBundle First, in OurVendorOverrideBundle.php, I added : public function getParent() { return 'SomeVendorSourceBundle'; } Then I wanted to add a custom method for the repository of an entity of SourceBundle. The source entity is Response.php, and its repository is ResponseRepository.php So i did : <?php namespace OurVendor

How do you manage the licenses of the dependencies (libraries) of your project? [closed]

我们两清 提交于 2019-12-01 03:48:51
I would like to know if the Nexus repository manager includes a License manager like Artifactory (with this plugin : http://wiki.jfrog.org/confluence/display/RTF/License+Control ). If there is no way to do that in Nexus via a plugin, how do you manage the licenses of the dependencies of your project (with maven) ? e.g. for a commercial project, I can't include a GPL library into the final artifact (.jar, .war, etc.). The Artifactory functionality can be emulated using the Maven license validator plugin http://code.google.com/p/maven-license-validator-plugin/ The practical problem with both

How to create a logo for mvnrepository artifact

对着背影说爱祢 提交于 2019-12-01 03:44:33
There are a logo on artifcats in mvnrepository . Can't find the way to do that. Example: http://mvnrepository.com/artifact/org.apache.nifi/nifi-api This is my artifact and the icon is {h}: https://mvnrepository.com/artifact/ru.sadv1r.vk/vk-parser How to change it? You should be able to put a logo tag directly under the project and organization tag with the URL of your logo in your pom.xml file. For more info you can check the Maven doc here: http://maven.apache.org/archives/maven-1.x/reference/maven-model/3.0.2/maven.html EDIT This was true for Maven 1.x. As far as I know, Maven 2.x takes the

repo init a particular commit

丶灬走出姿态 提交于 2019-12-01 03:21:49
问题 Im building the Cyanogenmod 9 (Android ICS) system for a Nexus S phone (samsung crespo). The problem is that if I do: repo init -u git://github.com/CyanogenMod/android.git -b ics The repo inits to the latest commit of ICS, in which the manifest does not include some device/samsung/ projects I need (specifically https://github.com/CyanogenMod/android_device_samsung_crespo). How do I repo init to a particular commit? In my case I want the last commit using the google android-4.0.3_r1 branch. Is