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

  • Home
  • SEARCH
  • 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 6123547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:01:46+00:00 2026-05-23T16:01:46+00:00

We are developing an Eclipse RCP application. We decided to use SVN for revision

  • 0

We are developing an Eclipse RCP application. We decided to use SVN for revision control system. We could export an eclipse product in the eclipse environment. Everything worked fine.

But,

Some of our plugins have dependencies to regular java jars using bundle-classpath in their manifest.mf. Up to now we were committing those jars into SVN repository. We “heard” that it is wrong to commit jars into svn and we should use maven-tycho and put those jars into a maven repository for this purpose.

So we moved the jars from SVN repository to Maven repository. Then we wanted to setup a fresh dev environment, we checked out projects from svn and they had compilation errors because we do not have jars!

We used m2eclipse and define all dependencies in my freshly created pom.xml files. maven-dependency-plugin’s copy goal and list all the jars and then we run mvn validate to get the jars into our lib folder. It worked but it seems to me a bit ugly. Because my plugin’s pom.xml looks like defining every dependency twice:

<build>
    <plugins>
        <plugin>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.1</version>
            <executions>
                <execution>
                    <id>copy-bundle-classpath-libs</id>
                    <phase>validate</phase>
                    <goals>
                        <goal>copy</goal>
                    </goals>
                    <configuration>
                        <outputDirectory>lib</outputDirectory>
                        <overWriteReleases>true</overWriteReleases>
                        <overWriteSnapshots>true</overWriteSnapshots>
                        <overWriteIfNewer>true</overWriteIfNewer>
                        <stripVersion>true</stripVersion>
                        <artifactItems>
                            <artifactItem>
                                <groupId>MyGroup</groupId>
                                <artifactId>MyJar</artifactId>
                                <version>SNAPSHOT</version>
                            </artifactItem>
                        </artifactItems>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>
<dependencies>
    <dependency>
        <groupId>MyGroup</groupId>
        <artifactId>MyJar</artifactId>
        <version>SNAPSHOT</version>
        <type>pom</type>
        <scope>compile</scope>
    </dependency>
</dependencies>

Is there a way to get rid of this?

Besides if MyJar.pom has other dependencies I need them too in my local lib. Is there a way to copy those transitive dependencies to my local lib folder?

I tried copy-dependencies goal but it tries to find my other plugins’ jars that my plugin depends on. I just need the regular jars to be copied to my local lib. My other plugins are already there side by side with all their source code as a plugin project. I do not need their jars. Can I filter those out? I tried this without success:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <configuration>
                <excludeGroupIds>MyGroup</excludeGroupIds>
                <outputDirectory>lib</outputDirectory>
                <overWriteReleases>true</overWriteReleases>
                <overWriteSnapshots>true</overWriteSnapshots>
                <overWriteIfNewer>true</overWriteIfNewer>
                <stripVersion>true</stripVersion>
            </configuration>
            <executions>
                <execution>
                    <id>copy-dependencies</id>
                    <phase>validate</phase>
                    <goals>
                        <goal>copy-dependencies</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

Thanks

  • 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-23T16:01:46+00:00Added an answer on May 23, 2026 at 4:01 pm

    you need to decide whether you want transitive dependencies copied or not.

    maven-dependency-plugin [1] allows to copy either transitive dependencies (“copy-dependencies” goal, need to add dependencies to dependencies section only in pom) or just certain artifacts without transitive dependencies (“copy” goal, need to add artifacts to plugin’s configuration section only).
    When using copy-dependencies, you can also include/exclude certain artifactIds from the transitive dependency chain, see [2].

    —

    [1] http://maven.apache.org/plugins/maven-dependency-plugin/

    [2] http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible, when developing an Eclipse RCP Application, to stack a view with
I'm developing an Eclipse RCP based application, that uses the resource model of eclipse
I've been developing a java application with the eclipse RCP which requires the Java
I'm developing a Java application using Eclipse. My project has two source directories that
I'm developing a SWT/JFace application using the libraries from Eclipse 3.4.1. I encounter the
I'm going to start maintaining an Eclipse RCP application for my current employer soon.
I'm developing a eclipse plugin rcp and I'm running into a NoClassDefFoundError Exception in
I will develop a desktop application for asset tracking. I am considering Eclipse RCP
I've developing an application in Eclipse 3.6 and am trying to get some simple
I am starting to use Eclipse for C++ developing after years with Visual Studio.

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.