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

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript