-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when I compile this file,there are some errors?why? #26
Comments
As the error says, the required dependency is not being satisfied...this bundle is part of the maven-osgi-repository. |
@shroffk Thank you for your answer.I can find the com.sun.jersey.bundle_1.19.0.jar in the maven-osgi-bundles/repository/target/repository/plugins.And my-css-settings uses the local repository.So I don't know why there is an error like this. my compositeContent.xml:
|
child location="/root/cs-studio/maven-osgi-bundles/repository/target/repository" |
Yes, puzzling. Your original build output includes
so you are using your composite repo. The only difference I see to my build setup:
I list the local file, something like Just to make sure, maybe start over after deleting your $HOME/.m2/repository directory, in case maven is fetching some garbage from there. |
@kasemir,thank you for your help!I'll try again. |
@kasemir I have tried again,but it still have the same error.Actually I download the source code including cs-studio,maven-osgi-bundles, diirt,cs-studio-thirdparty and org.csstudio.product,but I can only compile the diirt and maven-osgi-bundles successfully,I don't know why there are errors.It's so depressing! |
This makes some sense: diirt and maven-osgi-bundles are "standalone", while cs-studio-thirdparty then depends on the output of maven-osgi-bundles, and cs-studio/core depends on the output of all the previous ones and so on. We are sure that your build setup is using your composite repo:
.. but when you had p2.atomic.composite.loading set to false, it would silently ignore any errors in the child references. So maybe there is some typo or file access problem, and even though we think that your composite repo lists your locally created maven-osgi-bundles repo, maybe there's a problem, and it really can't find com.sun.jersey.bundle? So try this: First build diirt, then maven-osgi-bundles, and when you then build cs-studio-thirdparty try that with the following in your "compositeContent.xml" (and compositeArtifacts.xml):
The p2.atomic.composite.loading = true instructs maven/tycho to really check those child repositories. If there's a problem with them, you'll get an error early on. That also means we can only list those 2 child repos that really exist at that time, we can't already list cs-studio-thirdparty, cs-studio/core and cs-studio/applications which we'll build later. |
there are still some errors like the following: [INFO] --- tycho-packaging-plugin:0.23.1:build-qualifier (default-build-qualifier) @ edu.msu.nscl.olog.api --- |
@ksspwuwei Hi, I got the exact error as your last attempt when I get the source code of this repo by downloading ZIP file of this repo.
Then I notice the error message noting that No git repository. So I try again by git clone the source code and then rebuild, and it works!!
I hope this can help you to solve this issue. @kasemir From a user's point of view, it seems a bit weird that the build rely on whether the source code is a full git repo or not. Is it because the latest code is dependent on specific version of edu.msu.nscl.olog.api? If not, I suggest remove this dependency in the code. |
After I "cd cs-studio-thirdparty;mvn -B -P my-css-settings",there are some errors:
[root@wuwei cs-studio-thirdparty-master]# mvn -B -P my-css-settings clean verify
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.csstudio:edu.msu.nscl.olog.api:2.2.8-SNAPSHOT @ /root/cs-studio/cs-studio-thirdparty-master/plugins/edu.msu.nscl.olog.api/pom.xml
[INFO] Adding repository file:/root/cs-studio/my_comp_repo
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/releases/mars
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/mars/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201506241002/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201510021000/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/releases/mars/201602261000/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.5/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/eclipse/updates/4.5
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.5/R-4.5-201506032000/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.5/R-4.5.1-201509040015/ (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/4.5/R-4.5.2-201602121500/ (0B at 0B/s)
[INFO] Resolving dependencies of MavenProject: org.csstudio:edu.msu.nscl.olog.api:2.2.8-SNAPSHOT @ /root/cs-studio/cs-studio-thirdparty-master/plugins/edu.msu.nscl.olog.api/pom.xml
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: edu.msu.nscl.olog.api 2.2.8.qualifier
[ERROR] Missing requirement: edu.msu.nscl.olog.api 2.2.8.qualifier requires 'bundle com.sun.jersey.bundle 1.19.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: org.csstudio:edu.msu.nscl.olog.api:2.2.8-SNAPSHOT @ /root/cs-studio/cs-studio-thirdparty-master/plugins/edu.msu.nscl.olog.api/pom.xml: See log for details -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException
I don't know how to solve it,can anyone help me?Thank you very much!And I compile the cs-studio/core
and cs-studio/applications,there are also some errors.
The text was updated successfully, but these errors were encountered: