Is there a way to checkout git repository, to certain folder with maven?How can I add an empty directory to a Git repository?Detach (move) subdirectory into separate Git repositoryHow do you clone a Git repository into a specific folder?Find and restore a deleted file in a Git repositoryIgnore files that have already been committed to a Git repositoryRemove a file from a Git repository without deleting it from the local filesystemHow to change the URI (URL) for a remote Git repository?How do I push a new local branch to a remote Git repository and track it too?How can I determine the URL that a local Git repository was originally cloned from?How to revert a Git repository to a previous commit

What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?

Feasibility of lava beings?

What do "Sech" and "Vich" mean in this sentence?

Are the Night's Watch still required?

Out of scope work duties and resignation

Why is my arithmetic with a long long int behaving this way?

Would you use "llamarse" for an animal's name?

Why is "breaking the mould" positively connoted?

How do I calculate how many of an item I'll have in this inventory system?

When does tabularx decide to break the cell entry instead of reducing the columns separation?

To kill a cuckoo

Does "Captain Marvel" contain spoilers for "Avengers: Infinity War"?

Is there a word for food that's gone 'bad', but is still edible?

Is it normal for gliders not to have attitude indicators?

How can Internet speed be 10 times slower without a router than when using the same connection with a router?

Kanji etymology of 毎?

Where to draw the line between quantum mechanics theory and its interpretation(s)?

Are there terms in German for different skull shapes?

What is the closest airport to the center of the city it serves?

When an imagined world resembles or has similarities with a famous world

Why didn't this character get a funeral at the end of Avengers: Endgame?

Is “snitty” a popular American English term? What is its origin?

Any examples of liquids volatile at room temp but non-flammable?

Is disk brake effectiveness mitigated by tyres losing traction under strong braking?



Is there a way to checkout git repository, to certain folder with maven?


How can I add an empty directory to a Git repository?Detach (move) subdirectory into separate Git repositoryHow do you clone a Git repository into a specific folder?Find and restore a deleted file in a Git repositoryIgnore files that have already been committed to a Git repositoryRemove a file from a Git repository without deleting it from the local filesystemHow to change the URI (URL) for a remote Git repository?How do I push a new local branch to a remote Git repository and track it too?How can I determine the URL that a local Git repository was originally cloned from?How to revert a Git repository to a previous commit






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am attempting to automatize download of repository containing only protocol-buffers (with structure), to "resource" folder for later processing.



I need this kind of functionality, to keep my *.proto files separated from c++ and java code, as they are technically not connected with each other (java application is used for debugging).



My desired effect is to at least checkout repo into project —
My dreamed effect is to get this repo updated every time I run maven.



BR










share|improve this question

















  • 1





    Sounds like a job for a CI solution like Jenkins?

    – khmarbaise
    Mar 23 at 8:22











  • Not really. I am using separate repo for .proto definitions, to allow people working on c++ project edit it and commit. Due to this, I do not have to keep copying files there and forth. At this moment I have to do this manually, while In c++ code I can use CMake to handle it for me (fetch every build, and rebuild if changed).

    – Black
    Mar 23 at 14:52











  • Sounds like you might want to look at git submodule allowing you to embed one versioned repository within another. If you only care about the "latest" then enable submodule.recurse. Maven wouldn't need any special handling at all...

    – drekbour
    Mar 23 at 23:41











  • I've never knew about this functionality. This is a great suggestion! You should write answer so I could accept it! :D

    – Black
    Mar 23 at 23:43

















0















I am attempting to automatize download of repository containing only protocol-buffers (with structure), to "resource" folder for later processing.



I need this kind of functionality, to keep my *.proto files separated from c++ and java code, as they are technically not connected with each other (java application is used for debugging).



My desired effect is to at least checkout repo into project —
My dreamed effect is to get this repo updated every time I run maven.



BR










share|improve this question

















  • 1





    Sounds like a job for a CI solution like Jenkins?

    – khmarbaise
    Mar 23 at 8:22











  • Not really. I am using separate repo for .proto definitions, to allow people working on c++ project edit it and commit. Due to this, I do not have to keep copying files there and forth. At this moment I have to do this manually, while In c++ code I can use CMake to handle it for me (fetch every build, and rebuild if changed).

    – Black
    Mar 23 at 14:52











  • Sounds like you might want to look at git submodule allowing you to embed one versioned repository within another. If you only care about the "latest" then enable submodule.recurse. Maven wouldn't need any special handling at all...

    – drekbour
    Mar 23 at 23:41











  • I've never knew about this functionality. This is a great suggestion! You should write answer so I could accept it! :D

    – Black
    Mar 23 at 23:43













0












0








0








I am attempting to automatize download of repository containing only protocol-buffers (with structure), to "resource" folder for later processing.



I need this kind of functionality, to keep my *.proto files separated from c++ and java code, as they are technically not connected with each other (java application is used for debugging).



My desired effect is to at least checkout repo into project —
My dreamed effect is to get this repo updated every time I run maven.



BR










share|improve this question














I am attempting to automatize download of repository containing only protocol-buffers (with structure), to "resource" folder for later processing.



I need this kind of functionality, to keep my *.proto files separated from c++ and java code, as they are technically not connected with each other (java application is used for debugging).



My desired effect is to at least checkout repo into project —
My dreamed effect is to get this repo updated every time I run maven.



BR







java git maven protocol-buffers mvn-repo






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 0:42









BlackBlack

65




65







  • 1





    Sounds like a job for a CI solution like Jenkins?

    – khmarbaise
    Mar 23 at 8:22











  • Not really. I am using separate repo for .proto definitions, to allow people working on c++ project edit it and commit. Due to this, I do not have to keep copying files there and forth. At this moment I have to do this manually, while In c++ code I can use CMake to handle it for me (fetch every build, and rebuild if changed).

    – Black
    Mar 23 at 14:52











  • Sounds like you might want to look at git submodule allowing you to embed one versioned repository within another. If you only care about the "latest" then enable submodule.recurse. Maven wouldn't need any special handling at all...

    – drekbour
    Mar 23 at 23:41











  • I've never knew about this functionality. This is a great suggestion! You should write answer so I could accept it! :D

    – Black
    Mar 23 at 23:43












  • 1





    Sounds like a job for a CI solution like Jenkins?

    – khmarbaise
    Mar 23 at 8:22











  • Not really. I am using separate repo for .proto definitions, to allow people working on c++ project edit it and commit. Due to this, I do not have to keep copying files there and forth. At this moment I have to do this manually, while In c++ code I can use CMake to handle it for me (fetch every build, and rebuild if changed).

    – Black
    Mar 23 at 14:52











  • Sounds like you might want to look at git submodule allowing you to embed one versioned repository within another. If you only care about the "latest" then enable submodule.recurse. Maven wouldn't need any special handling at all...

    – drekbour
    Mar 23 at 23:41











  • I've never knew about this functionality. This is a great suggestion! You should write answer so I could accept it! :D

    – Black
    Mar 23 at 23:43







1




1





Sounds like a job for a CI solution like Jenkins?

– khmarbaise
Mar 23 at 8:22





Sounds like a job for a CI solution like Jenkins?

– khmarbaise
Mar 23 at 8:22













Not really. I am using separate repo for .proto definitions, to allow people working on c++ project edit it and commit. Due to this, I do not have to keep copying files there and forth. At this moment I have to do this manually, while In c++ code I can use CMake to handle it for me (fetch every build, and rebuild if changed).

– Black
Mar 23 at 14:52





Not really. I am using separate repo for .proto definitions, to allow people working on c++ project edit it and commit. Due to this, I do not have to keep copying files there and forth. At this moment I have to do this manually, while In c++ code I can use CMake to handle it for me (fetch every build, and rebuild if changed).

– Black
Mar 23 at 14:52













Sounds like you might want to look at git submodule allowing you to embed one versioned repository within another. If you only care about the "latest" then enable submodule.recurse. Maven wouldn't need any special handling at all...

– drekbour
Mar 23 at 23:41





Sounds like you might want to look at git submodule allowing you to embed one versioned repository within another. If you only care about the "latest" then enable submodule.recurse. Maven wouldn't need any special handling at all...

– drekbour
Mar 23 at 23:41













I've never knew about this functionality. This is a great suggestion! You should write answer so I could accept it! :D

– Black
Mar 23 at 23:43





I've never knew about this functionality. This is a great suggestion! You should write answer so I could accept it! :D

– Black
Mar 23 at 23:43












1 Answer
1






active

oldest

votes


















0














Okay, so after googling, I have came across this: maven-scm-plugin, which even from description solves my request.



To save time for most people I will paste example of usage, to make it work.



You need to add this to your pom structure:



<project>
<scm>
<connection>scm:git:[YOUR_PROJECT_URL]</connection>
</scm>

<--! second part -->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-gitexe</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<version>1.0</version>
<configuration>
<connectionType>connection</connectionType>
<!-- YOUR PATH HERE -->
<checkoutDirectory>src/main/resources/meta</checkoutDirectory>
</configuration>
<executions>
<execution>
<id>tag</id>
<phase>deploy</phase>
<goals>
<goal>tag</goal>
</goals>
</execution>
</executions>
</plugin>
</project>





share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309509%2fis-there-a-way-to-checkout-git-repository-to-certain-folder-with-maven%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Okay, so after googling, I have came across this: maven-scm-plugin, which even from description solves my request.



    To save time for most people I will paste example of usage, to make it work.



    You need to add this to your pom structure:



    <project>
    <scm>
    <connection>scm:git:[YOUR_PROJECT_URL]</connection>
    </scm>

    <--! second part -->

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-scm-plugin</artifactId>
    <dependencies>
    <dependency>
    <groupId>org.codehaus.plexus</groupId>
    <artifactId>plexus-utils</artifactId>
    <version>2.1</version>
    </dependency>
    <dependency>
    <groupId>org.apache.maven.scm</groupId>
    <artifactId>maven-scm-provider-gitexe</artifactId>
    <version>1.2</version>
    </dependency>
    </dependencies>
    <version>1.0</version>
    <configuration>
    <connectionType>connection</connectionType>
    <!-- YOUR PATH HERE -->
    <checkoutDirectory>src/main/resources/meta</checkoutDirectory>
    </configuration>
    <executions>
    <execution>
    <id>tag</id>
    <phase>deploy</phase>
    <goals>
    <goal>tag</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    </project>





    share|improve this answer



























      0














      Okay, so after googling, I have came across this: maven-scm-plugin, which even from description solves my request.



      To save time for most people I will paste example of usage, to make it work.



      You need to add this to your pom structure:



      <project>
      <scm>
      <connection>scm:git:[YOUR_PROJECT_URL]</connection>
      </scm>

      <--! second part -->

      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-scm-plugin</artifactId>
      <dependencies>
      <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <version>2.1</version>
      </dependency>
      <dependency>
      <groupId>org.apache.maven.scm</groupId>
      <artifactId>maven-scm-provider-gitexe</artifactId>
      <version>1.2</version>
      </dependency>
      </dependencies>
      <version>1.0</version>
      <configuration>
      <connectionType>connection</connectionType>
      <!-- YOUR PATH HERE -->
      <checkoutDirectory>src/main/resources/meta</checkoutDirectory>
      </configuration>
      <executions>
      <execution>
      <id>tag</id>
      <phase>deploy</phase>
      <goals>
      <goal>tag</goal>
      </goals>
      </execution>
      </executions>
      </plugin>
      </project>





      share|improve this answer

























        0












        0








        0







        Okay, so after googling, I have came across this: maven-scm-plugin, which even from description solves my request.



        To save time for most people I will paste example of usage, to make it work.



        You need to add this to your pom structure:



        <project>
        <scm>
        <connection>scm:git:[YOUR_PROJECT_URL]</connection>
        </scm>

        <--! second part -->

        <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <dependencies>
        <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-utils</artifactId>
        <version>2.1</version>
        </dependency>
        <dependency>
        <groupId>org.apache.maven.scm</groupId>
        <artifactId>maven-scm-provider-gitexe</artifactId>
        <version>1.2</version>
        </dependency>
        </dependencies>
        <version>1.0</version>
        <configuration>
        <connectionType>connection</connectionType>
        <!-- YOUR PATH HERE -->
        <checkoutDirectory>src/main/resources/meta</checkoutDirectory>
        </configuration>
        <executions>
        <execution>
        <id>tag</id>
        <phase>deploy</phase>
        <goals>
        <goal>tag</goal>
        </goals>
        </execution>
        </executions>
        </plugin>
        </project>





        share|improve this answer













        Okay, so after googling, I have came across this: maven-scm-plugin, which even from description solves my request.



        To save time for most people I will paste example of usage, to make it work.



        You need to add this to your pom structure:



        <project>
        <scm>
        <connection>scm:git:[YOUR_PROJECT_URL]</connection>
        </scm>

        <--! second part -->

        <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <dependencies>
        <dependency>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-utils</artifactId>
        <version>2.1</version>
        </dependency>
        <dependency>
        <groupId>org.apache.maven.scm</groupId>
        <artifactId>maven-scm-provider-gitexe</artifactId>
        <version>1.2</version>
        </dependency>
        </dependencies>
        <version>1.0</version>
        <configuration>
        <connectionType>connection</connectionType>
        <!-- YOUR PATH HERE -->
        <checkoutDirectory>src/main/resources/meta</checkoutDirectory>
        </configuration>
        <executions>
        <execution>
        <id>tag</id>
        <phase>deploy</phase>
        <goals>
        <goal>tag</goal>
        </goals>
        </execution>
        </executions>
        </plugin>
        </project>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 23 at 23:32









        BlackBlack

        65




        65





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309509%2fis-there-a-way-to-checkout-git-repository-to-certain-folder-with-maven%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현