Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6814477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:41:37+00:00 2026-05-26T20:41:37+00:00

I have a working Tycho build that produces a working p2 repository. My current

  • 0

I have a working Tycho build that produces a working p2 repository. My current work flow is to manually drag and drop the results of this build from the project’s target dir to the web server that hosts the p2 repository. The results of my tycho build look normal:

${projectBaseDir}/target/repository
     - features
          - com.my.product.feature.201111071414.jar
     - plugins
          - com.my.product.plugins
     - artifacts.jar
     - content.jar

So, what is the “industry standard” for taking the results of this build in the repository directory and placing them on a web server.

In this case, I am running the p2 repository’s web server on the same machine that is running the build sever, so a simple copy to a directory command would work.

I’ve tried the maven-resources-plugin using the resources:copy-resources with no luck. I kept getting an error about the invalid output directory. I don’t really feel like copy-resources is the way to go here, since the general purpose of that goal is to copy files to the target directory of your maven build, and not to copy files from the target directory of a maven build.

My task seems simple, and I realize there are a lot of options to copy files, but I’m looking for the “maven way” or better yet, “the tycho way” of doing this. If such a standard exists.

thanks,
TW

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:41:37+00:00Added an answer on May 26, 2026 at 8:41 pm

    You can achieve what you want with the antrun plugin. It lets you use ant tasks/targets (like copying files) to do things during a Maven build.

    I expect something like the following would work for you:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.6</version>
        <executions>
            <execution>
            <id>configFix</id>
            <phase>package</phase>
            <configuration>
                <target name="configFix">
                    <copy file="${project.build.directory}/p2/some.file" todir="C:\My\Directory" overwrite="true">
                    </copy>
                </target>
            </configuration>
            <goals>
                <goal>run</goal>
            </goals>
            </execution>
        </executions>
    </plugin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am adding this simple plugin that I have working in a static html
So I have working code that animates a BG image via a plugin. This
I have working registration script the only problem is that i do not know
Have been working on this question for a couple hours and have come close
I have working code: [self performSelector:@selector(doSomething) ]; but when I change this line to:
Let's say I have working copies of several different folders from my SVN repository
I have a bare repository at /home/dan/repo/ and a working copy at /home/dan/www/project/ .
I have working code but it seems a bit strange that I have to
We have a simple project that uses JsonValueProviderFactory which we have working on a
I have working code that includes: $(document).ready(function() { $(#num1).click(function() { $(li.elementsA).addClass(alerty); return false });

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.