Maven osgi.bundle dependency missing - maven

I am trying to build maven package and get a error:
Missing requirement: org.talend.designer.codegen 8.8.8.qualifier requires 'osgi.bundle; org.talend.repository 0.0.0' but it could not be found
But OK, org.talend.repository is another package in the parent directory.
But all my maven compilations was failed on "osgi.bundle" dependency.
Where can I get this dependency and how can I install it.

Related

add a Maven dependency

I'm trying to develop a maven workflow guide for myself and I have gone so far to Install Maven, setup a Maven project, compile, package and run the jar file. Now I wish to add a dependency to the project.
After adding the dependency to the pom.xml I compile , package and run the jar, I get an error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/joda/time/DateTime
I still don' t understand this part of the process. I also tried mvn install and also don' t get where the the dependency files go? Can someone please point me in the right direction?
Source: my test project (so far)

Could not resolve dependencies for project spmf ca.pfv pom.xml

I am working on open source maven project that use several mining dependencies.
after write this command into component mvn clean install I got ERROR in pom.xml file,enter code here that version of spmf is wrong.
<groupId>ca.pfv</groupId>
<artifactId>spmf</artifactId>
<version>2.33</version> // !!!
full error:
omponents-spmanalysis: Could not resolve dependencies for project
info.collide:components-spmanalysis:jar:2.0.0-SNAPSHOT: Failure to
find ca.pfv:spmf:jar:2.33
I tried to use different versions but same error at maven install.

jbpm maven build failing

I have cloned one jbpm git repository in eclipse and imported the project.
When i convert the same to a maven project, build is failing
Error
Description Resource Path Location Type
Project build error: Unresolveable build extension: Plugin org.kie:kie-maven-plugin:6.1.0.Final or one of its dependencies could not be resolved: Failed to collect dependencies for org.kie:kie-maven-plugin:jar:6.1.0.Final () pom.xml /jBpmLearn line 1 Maven pom Loading Problem
How to resolve this issue
Not sure which project you are cloning or why it's failing exactly, but have you added the JBoss Nexus maven repo so it knows where to find all the jBPM artefacts, like:
https://github.com/droolsjbpm/jbpm/blob/master/pom.xml#L50

Intellij-idea module dependencies does not contain internal maven dependencies

Problem: make module fails because intellij fails to bring the dependencies of a snaphot dependency. Building the module through maven works fine while it fails when trying to build it through make module.
When looking on the iml file, only the snapshot dependency exists but not the internal dependencies.
The local repository contains the jar and the pom file of the dependency.
In the main pom:
<dependency>
<groupId>com.aa.bb</groupId>
<artifactId>myArtifact-dev</artifactId>
<version>6.3.00-SNAPSHOT</version>
<\dependency>
This dependency exists in the local repository. The iml file does not contanis the dependencies listed in the pom file of this dependency.
I make reimport from the pom file but it doesn't help.
Any idea?
I was able to resolve the problem by:
mvn -X -U idea:idea
This way I was able to see why it failed to parse the pom file and fix the problem in the pom file.

Tycho fails to resolve packages from my own wrapper of plain Maven dependencies

I am trying to create an Eclipse plug-in which has dependencies to plain Maven artifacts. I created the following project structure:
Parent POM
|- Dependencies (Third Party)
\- My Code
|- Bundle
\- Bundle Tests
I have followed the Tycho example itp02 but only using the third-party dependencies. As I understood the idea is to wrap all the dependencies in a bundle and use it as input for my bundle. I manage to build and install the Dependencies bundle correctly: A jar is created and it contains all the JAR files obtained from the Maven repository. But when I try to compile my bundle I get an error saying that the packages in my bundle manifest cannot be imported.
[ERROR] Missing requirement: MyPlugin 0.0.1.qualifier requires 'package org.apache.commons.lang.StringEscapeUtils 0.0.0' but it could not be found
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from MyPlugin 0.0.1.qualifier to package org.apache.commons.lang.StringEscapeUtils 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from MyPlugin 0.0.1.qualifier to package org.apache.commons.lang.StringEscapeUtils 0.0.0.", "No solution found because the problem is unsatisfiable."]
What am I missing?
It is not very clear from your description how your project is set up or the commands you used to build it.
However your "POM parent" seems to suggest you are attempting to build it all in one go. If that is the case, you cannot mix pom-first (maven-bundle-plugin) projects and manifest-first (eclispe-plugin) projects in the same build see [1]. You need to build and install the pom-first projects into your local maven repository first then you can build the manifest-first projects.
The second thing to check is that your have the correct dependency configured and that you have set pomDependencies=consider as in [2].
Finally, if that does not help, check that the jar file in your local maven repository has a META-INF/MANIFEST.MF with the correct "Export-Package" statements - specifically there should be a line for org.apache.commons.lang.StringEscapeUtils.
[1] http://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts#It_is_not_possible_to_mix_pom-first_and_manifest-first_projects_in_the_same_reactor_build.
[2] http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp02/build02/pom.xml

Resources