I would like to work with the newer version of l2switch plugin, but when I try to compile the project i get the following errors:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project loopremover-impl: Compilation failure: Compilation failure:
[ERROR] /C:/Users/kevin/git/l2switch/loopremover/implementation/src/main/java/org/opendaylight/l2switch/loopremover/topology/TopologyLinkDataChangeHandler.java:[283,41] cannot find symbol
[ERROR] symbol: method getAugmentation(java.lang.Class<org.opendaylight.yang.gen.v1.urn.opendaylight.l2switch.loopremover.rev140714.StpStatusAwareNodeConnector>)
[ERROR] location: variable nc of type org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector
[ERROR] /C:/Users/kevin/git/l2switch/loopremover/implementation/src/main/java/org/opendaylight/l2switch/loopremover/flow/InitialFlowWriter.java:[248,21] cannot find symbol
[ERROR] symbol: method setKey(org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionKey)
[ERROR] location: class org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.ActionBuilder
[ERROR] -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :loopremover-impl
I think the problem isn't in my .m2 folder, since i was able to properly compile the Openflowplugin project. Also i'm using the java 8.0 and my OS is windows 10 (i'm using a plugin of maven to compile via prompt)
The command that i'm using to compile is mvn clean install -U -DskipTests
ps: i've not edited any code of the l2switch project, i just imported the master branch from the github repository and tried to compile
l2switch is currently not being maintained by anyone and thus did not participate in the Fluorine release cycle. It needs version bumps and code changes to conform with upstream changes in yangtools, mdsal etc. For the compile errors above, getAugmentation is now augmentation and setKey is now key. These upstream changes were made in Fluorine along with others. This was all documented on the ODL mailing lists and TSC JIRA items during the Fluorine release cycle. Any contributions to reboot the project and get it building again and maintain it going forward would be welcomed by the ODL community.
Related
When I try to run a job in talend studio 7.3.1, I get the following error.
There are many jobs in the repository but some jobs are displaying this issue when run. I cannot add the long error message which I got while running the job as stack overflow is not allowing me to copy the entire stack trace. I added the first part of the error message below the screen shot.
org.talend.designer.runprocess.ProcessorException: java.lang.Exception: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Child module C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\jobs\joblets_spark\DSRC_GCW\Development\Block2\pr_ams_cross_border_blk2_0.1\pom.xml of C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\build-aggregator.pom does not exist #
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.talend:build.aggregator:7.0.0 (C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\build-aggregator.pom) has 1 error
[ERROR] Child module C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\jobs\joblets_spark\DSRC_GCW\Development\Block2\pr_ams_cross_border_blk2_0.1\pom.xml of C:\Users\tomgeorg\Documents\TalendRemoteWorkspace\.repositories\743898097\branches\ICE_DATASOURCING_DEV\HP_ICE_DATASRC_DEV\poms\build-aggregator.pom does not exist
[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/ProjectBuildingException
I have force fully re-synchronized poms and applied the change as per the below screen shot and the issue got resolved.
I get this error when running mvn clean install:
[ERROR] Failed to execute goal on project Hian-Persistence-Direct: Could not resolve dependencies for project ue.hian:Hian-Persistence-Direct:jar:3.0: Failed to collect dependencies at com.ibatis:ibatis2:jar:2.3.0.677: Failed to read artifact descriptor for com.ibatis:ibatis2:jar:2.3.0.677: Could not transfer artifact com.ibatis:ibatis2:pom:2.3.0.677 from/to maven-public (https://binaries.me.com/artifactory/public-maven): Not authorized , ReasonPhrase:Unauthorized. -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :Hian-Persistence-Direct
I'm running this in the command line. Is it possible that I don't have maven configured correctly? Failing that, how do I get the full path to the problem dependency? I'd like to check if I can reach it through the browser.
I had an incorrect password to the artifact in my settings.xml
The actual situation
I want to use Apache Flink with Kinesis Analytics. Like I don't have experience with Java and Maven and going to try to summary the steps I followed and the results.
Use IntelliJ IDEA as IDE
Test this example without any problems
Change to AWS, following their instruction. The problems start in the step: Create and Compile the Apache Flink Streaming Java Code
The problems
If you want to use the Kinesis connector, you can not do it like other connector due to the ASL license and they do not deploy the artifact to the Maven central repository on Flink releases, so you will need to build the Kinesis connector by yourself download the source code for the connector from here Apache Flink, and install it to your local Maven repository.
After download it, you have build the module following this steps:
mvn clean install -Pinclude-kinesis -DskipTests
So I move to the unziped folder, and run the mvn command, with this error:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 50.670 s
[INFO] Finished at: 2018-12-27T14:35:13+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project flink-parent: Too many files with unapproved license: 2 See RAT report in: C:\Users\...\flink-master\target\rat.txt -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :flink-parent
Trying to find a solution, I tried what this user said here
mvn clean install -Pinclude-kinesis -DskipTests -Drat.ignoreErrors=true package
But again, I had an error:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:15 min
[INFO] Finished at: 2018-12-27T14:40:47+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project flink-shaded-hadoop2: Could not resolve dependencies for project org.apache.flink:flink-shaded-hadoop2:jar:1.8-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path C:\Program Files\Java\jdk-11/../lib/tools.jar -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :flink-shaded-hadoop2
The questions
How should I build the connector module?
How should I install it to my local Maven repository?
After receiving similar errors, even after using the other answer's solution for checking out a release branch, I found a solution that works for me. According to the build guide in the Flink docs, you can also add the -Dfast option to speed up build time. In my case, this resolved the licensing errors:
mvn clean install -Pinclude-kinesis -DskipTests -Dfast
I think that the problem is that you're trying to build the "snapshot" build of the Flink connector, not the release build.
Since you're not familiar with Java and Maven, here's what that means: Maven differentiates between "snapshot" builds, which are currently under active development, and "release" builds. Normally a project only pushes its release builds to Maven Central. However, for long-running development, the "master" branch is often a snapshot.
The POM in your linked instructions references version 1.6.2, so that's what you should be building. Check out the tag release-1.6.2, and also make sure that you're reading the Flink documentation for that version (your link above is for the latest development version).
I have an open source project (https://github.com/mikera/vectorz) that uses a parent pom that is deployed on Maven Central (http://search.maven.org/#artifactdetails%7Cnet.mikera%7Cmikera-pom%7C0.2.0%7Cpom)
However I have started to get a strange error:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project net.mikera:vectorz:0.39.1-SNAPSHOT (C:\Users\Mike\git\vect
orz\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact net.mikera:mikera
-pom:pom:0.2.0 in clojars.org (http://clojars.org/repo) and 'parent.relativePath
' points at wrong local POM # line 9, column 10 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
delException
What could be causing this? Note that:
I'm 99% certain the parent pom has been successfully released on Central
clojars repo shouldn't even be required for the build
I'm running on Windows (though the issue seems to be affecting others on Linux too)
I have had projects like this working previously, however I recently upgraded to Maven 3.2.2 - could that be causing this error?
P.S. I tried checking my local .m2 repository and all it contains is a .lastUpdated file with the folloing content:
#NOTE: This is an Aether internal implementation file, its format can be changed without prior notice.
#Mon Aug 11 13:23:30 SGT 2014
http\://repo.maven.apache.org/maven2/.lastUpdated=1407734610196
http\://clojars.org/repo/.lastUpdated=1407734609627
http\://clojars.org/repo/.error=
http\://repo.maven.apache.org/maven2/.error=
Any ideas how to resolve this?
I am using maven 3.0.2 version.
mvn --version works fine on command line but when I try
mvn install it does not work & shows following error.
Z:\dev\hector rantav>mvn install
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project me.prettyprint:hector:0.7.0-24-SNAPSHOT (Z:\dev\hector ran
tav\pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.maven.scm:maven-scm
-manager-plexus:1.3 or one of its dependencies could not be resolved: Could not
transfer artifact junit:junit:jar:3.8.2 from/to central (http://repo1.maven.org/
maven2): Error transferring file: repo1.maven.org: Unknown host repo1.maven.org
-> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
gException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
Please let me how I can fix this.
Proxy usage is a factor, hope this will help: Maven Guide to Using Proxies
If your proxy requires NTLM authentication, you'll also probably need cntlm
The http://repo1.maven.org/maven2/ repository is down quite often, so maybe you were just out of luck that time.