Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem with maven-dependency-plugin and Tycho 0.16.0

For the list: the problem is tracked at https://bugs.eclipse.org/bugs/show_bug.cgi?id=393978

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Timo Rohrberg
Sent: Freitag, 11. Januar 2013 09:21
To: Tycho user list
Subject: [tycho-user] Problem with maven-dependency-plugin and Tycho 0.16.0

 

Hello everybody,

I have a similar problem with the maven-dependency-plugin when switching to the recent version 0.16.0 of Tycho as discussed in bug 393978. As I cannot find any reliably working solution, I am addressing the mailing list now.

In my software project, I am using the maven-dependency-plugin to copy some dependencies to legacy libraries (available as pure JAR-files in a company-local Maven Artifactory) into a legacy OSGi bundle which then reexports those dependencies while adding some additional legacy code.

The attached demo project org.example.tycho.legacy is just an example similar to the original bundle causing the problem. It just uses one dependency to the jtds library instead of the real dependencies which are only resolvable via our company-local Maven Artifactory. Furthermore, the demo project contains all the configuration in its own pom.xml instead of using a two-level hierarchy of parent poms as it is done in the original bundle. OSGi dependencies are also resolved against our own company-local p2 repositories in the original bundle, while the demo project uses the Eclipse Indigo p2 site directly. All those adaptions are just made to make the demo project generally working without our company-local Maven Artifactory and do not make any difference concerning the actual problem.

The observed invalid behavior is the following: Every second run of "mvn clean install", the build fails with the following error message:

Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.6:copy-dependencies (copy-dependencies) on project org.example.tycho.legacy: Error copying artifact from C:\development\workspaces_mpng\tycho-copy-dependencies2\org.example.tycho.legacy\lib\jtds-1.2.4.jar to C:\development\workspaces_mpng\tycho-copy-dependencies2\org.example.tycho.legacy\lib\org.example.tycho.legacy.source-1.0.0.qualifier-lib\jtds-1.2.4.jar.jar: File C:\development\workspaces_mpng\tycho-copy-dependencies2\org.example.tycho.legacy\lib\jtds-1.2.4.jar does not exist -> [Help 1]

Notice the target location where it tries to copy the JAR-file to. This is completely invalid and should just be the lib folder.

Once I deactivate the tycho-source-plugin in the pom.xml, the error message at every second run of "mvn clean install" changes to:

Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.6:copy-dependencies (copy-dependencies) on project org.example.tycho.legacy: Error copying artifact from C:\development\workspaces_mpng\tycho-copy-dependencies2\org.example.tycho.legacy\lib\jtds-1.2.4.jar to C:\development\workspaces_mpng\tycho-copy-dependencies2\org.example.tycho.legacy\lib\org.example.tycho.legacy-1.0.0.qualifier-lib\jtds-1.2.4.jar.jar: File C:\development\workspaces_mpng\tycho-copy-dependencies2\org.example.tycho.legacy\lib\jtds-1.2.4.jar does not exist -> [Help 1]

The target location changed, but is still invalid.

When changing to Tycho version 0.15.0, everything works fine in every subsequent run of "mvn clean install".

Do you guys have any hint what could be wrong?

Thank you very much for any help.

Regards

Timo


Back to the top