Closed Siteware closed 11 years ago
please
1) review these docs to see if you are missing anything https://github.com/barchart/barchart-udt/wiki https://github.com/barchart/barchart-udt/wiki/Build-System
2) post your maven build log here or as a gist
3) post here your environment
mvn -version
java -version
uname -a
edwin@edwin-VirtualBox:~/Projects/barchart-udt$ mvn -e compile [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [WARNING] The POM for org.apache.felix:maven-bundle-plugin:jar:2.4.0-build002 is missing, no dependency information available [ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.4.0-build002 or one of its dependencies could not be resolved: Failure to find org.apache.felix:maven-bundle-plugin:jar:2.4.0-build002 in https://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-archon has elapsed or updates are forced @
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR]
[ERROR] The project com.barchart.udt:barchart-udt:0.0.0 (/home/edwin/Projects/barchart-udt/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.4.0-build002 or one of its dependencies could not be resolved: Failure to find org.apache.felix:maven-bundle-plugin:jar:2.4.0-build002 in https://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-archon has elapsed or updates are forced -> [Help 2]
org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.felix:maven-bundle-plugin:2.4.0-build002 or one of its dependencies could not be resolved: Failure to find org.apache.felix:maven-bundle-plugin:jar:2.4.0-build002 in https://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-archon has elapsed or updates are forced
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:215)
at org.apache.maven.project.DefaultProjectBuildingHelper.resolveExtensionArtifacts(DefaultProjectBuildingHelper.java:377)
at org.apache.maven.project.DefaultProjectBuildingHelper.createProjectRealm(DefaultProjectBuildingHelper.java:237)
at org.apache.maven.project.DefaultModelBuildingListener.buildExtensionsAssembled(DefaultModelBuildingListener.java:106)
at org.apache.maven.model.building.ModelBuildingEventCatapult$1.fire(ModelBuildingEventCatapult.java:43)
at org.apache.maven.model.building.DefaultModelBuilder.fireEvent(DefaultModelBuilder.java:1053)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:388)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:371)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:560)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:352)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find org.apache.felix:maven-bundle-plugin:jar:2.4.0-build002 in https://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-archon has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:207)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.apache.felix:maven-bundle-plugin:jar:2.4.0-build002 in https://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-archon has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
... 27 more
[ERROR]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
edwin@edwin-VirtualBox:~/Projects/barchart-udt$
edwin@edwin-VirtualBox:~/eclipse$ mvn --version Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100) Maven home: /home/edwin/apache-maven-3.0.5 Java version: 1.7.0_21, vendor: Oracle Corporation Java home: /usr/lib/jvm/jdk1.7.0_21/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.5.0-31-generic", arch: "amd64", family: "unix"
edwin@edwin-VirtualBox:~/eclipse$ java -version java version "1.7.0_21" Java(TM) SE Runtime Environment (build 1.7.0_21-b11) Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
edwin@edwin-VirtualBox:~/eclipse$ uname -a Linux edwin-VirtualBox 3.5.0-31-generic #52~precise1-Ubuntu SMP Fri May 17 15:27:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux edwin@edwin-VirtualBox:~/eclipse$
Thanks!
1) yes, I can see now, my fault. I was using private experimental maven-bundle-plugin v 2.4.0-build002 corrected now: https://github.com/barchart/barchart-udt/commit/dbfbda7e1175d3dd0138958e19877a968e352851
2) please do not build form the repo root, build instead from the barchart-udt-archon (or barchart-udt-core or barchart-udt-bundle) module:
# for example:
cd barchart-udt-archon
mvn clean install --activate-profiles modules,nar,artifact-version,package-bundle --update-snapshots
each project has bunch of build scripts which reflects various build use cases (with or w/o tests, etc),
please study them: https://github.com/barchart/barchart-udt/tree/master/barchart-udt-archon/build https://github.com/barchart/barchart-udt/tree/master/barchart-udt-core/build https://github.com/barchart/barchart-udt/tree/master/barchart-udt-bundle/build
you can invoke them from IDE or make identical maven command line manually
3) please use java 6.
#!/bin/bash
JAVA_6_HOME="/usr/lib/jvm/java-6-oracle"
JAVA_7_HOME="/usr/lib/jvm/java-7-oracle"
case $JAVA_TYPE in
"JAVA_6")
export JAVA_HOME="$JAVA_6_HOME"
;;
"JAVA_7")
export JAVA_HOME="$JAVA_7_HOME"
;;
*)
export JAVA_HOME="$JAVA_7_HOME"
;;
esac
@Andrei-Pozolotin Thank you!
All OK now, I have successfully created a build.
you are welcome
Hi,
I was trying to play around the barchart-udt.. When I tried to import this source code as it is in my eclipse maven environment it giving me some error in barchart-udt/pom.xml
The error is :
Project build error: Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.4.0- build002 or one of its dependencies could not be resolved: Failure to find org.apache.felix:maven-bundle- plugin:jar:2.4.0-build002 in https://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-archon has elapsed or updates are forced
I'm I missing anything??
Hello,
I would like to experiment with the barchart-udt implementation and would like to make some changes. However I'm having trouble setting up the build environment. I cloned the repository and did a mvn install, but I immediately run into an maven "Unresolveable build extension".
Is there some documentation on how to setup the build environment?
Thanks!