PacketProcessingListener implementation error - opendaylight

I am trying to implement "PacketProcessingListener". When I run mvn clean install I am getting the following error in Project features.
I did not change any thing in the feature folder.
Results :
Tests in error:
Can't install feature odl-qos/0.1.0-SNAPSHOT:
Could not start bundle mvn:org.opendaylight.qos/qos-impl/0.1.0-SNAPSHOT in feature(s) odl-qos-0.1.0-SNAPSHOT: The bundle "org.opendaylight.qos.impl_0.1.0.SNAPSHOT [291]" could not be resolved. Reason: Missing Constraint: Import-Package: org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709; version="[0.4.0,1.0.0)"
Tests run: 5, Failures: 0, Errors: 4, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ODL :: org.opendaylight.qos :: qos-api ............. SUCCESS [ 10.049 s]
[INFO] ODL :: org.opendaylight.qos :: qos-impl ............ SUCCESS [ 5.353 s]
[INFO] ODL :: org.opendaylight.qos :: qos-cli ............. SUCCESS [ 3.468 s]
[INFO] ODL :: org.opendaylight.qos :: qos-features ........ FAILURE [01:31 min]
[INFO] ODL :: org.opendaylight.qos :: qos-karaf ........... SKIPPED
[INFO] ODL :: org.opendaylight.qos :: qos-artifacts ....... SKIPPED
[INFO] ODL :: org.opendaylight.qos :: qos-it .............. SKIPPED
[INFO] qos 0.1.0-SNAPSHOT ................................. SKIPPED
**************************
can an error in the implementation folder affect the feature folder?
I added the following dependency to my implementation folder pom.xml
**<dependency>
<groupId>org.opendaylight.openflowplugin.model</groupId>
<artifactId>model-flow-service</artifactId>
<version>0.4.3-Carbon</version>
</dependency>**
My imp-blueprint looks contains:
reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="default" />
reference id="rpcRegistry" interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
reference id="notificationService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationPublishService"/>
reference id="notificationProviderService" interface="org.opendaylight.controller.sal.binding.api.NotificationProviderService" />
bean id="provider"
class="org.opendaylight.qos.impl.QosProvider"
init-method="init" destroy-method="close">
<argument ref="dataBroker" />
<argument ref="rpcRegistry" />
<argument ref="notificationService" />
<argument ref="notificationProviderService" />
<argument ref="packetHandlerService" />
</bean>
odl:rpc-service id="packetHandlerService"
interface="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService" />
odl:notification-listener ref="provider"/>**
I am using -DarchetypeVersion=1.3.3-carbon for building my project

The broken features build seems to be due to using old released archetypeVersion=1.3.0-Carbon.
just changing the -DarchetypeVersion=1.5.0-SNAPSHOT or -DarchetypeVersion=1.4.0 fixed the problem

Related

JanusGraph build failed (TinkerPop 3.2.4)

I cloned JanusGraph repo (d6b3d42) and build it without any problem. I need to use it with ThinkerPop 3.2.4 so I changed its version in pom.xml file. Then I run mvn clean install -DskipTests=true.
[WARNING] The POM for com.github.jeremyh:jBCrypt:jar:jbcrypt-0.4 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JanusGraph: Distributed Graph Database ............. SUCCESS [ 0.563 s]
[INFO] JanusGraph-Core: Core Library for JanusGraph ....... FAILURE [ 0.275 s]
[INFO] JanusGraph-Test: Test Suite for JanusGraph ......... SKIPPED
[INFO] JanusGraph CodePipelines CI: Distributed release testing. SKIPPED
[INFO] JanusGraph-BerkeleyJE: Distributed Graph Database .. SKIPPED
[INFO] JanusGraph-Cassandra: Distributed Graph Database ... SKIPPED
[INFO] JanusGraph-CQL: Distributed Graph Database ......... SKIPPED
[INFO] JanusGraph-ElasticSearch: Distributed Indexing Support SKIPPED
[INFO] JanusGraph-HBase: Parent Module .................... SKIPPED
[INFO] JanusGraph-HBase: Version-independent Core ......... SKIPPED
[INFO] JanusGraph-HBase: 0.98 Compatibility Shim .......... SKIPPED
[INFO] JanusGraph-HBase: 1.x Compatibility Shim ........... SKIPPED
[INFO] JanusGraph-HBase: Universal binary ................. SKIPPED
[INFO] JanusGraph-Hadoop: Parent Module ................... SKIPPED
[INFO] JanusGraph-Hadoop: Version-independent Core ........ SKIPPED
[INFO] JanusGraph-Hadoop: 2.x Compatibility Shim .......... SKIPPED
[INFO] JanusGraph-Hadoop: Universal binary ................ SKIPPED
[INFO] JanusGraph-Lucene: Indexing Support ................ SKIPPED
[INFO] JanusGraph-All: Complete JanusGraph Distribution ... SKIPPED
[INFO] JanusGraph-Solr: Distributed Indexing Support ...... SKIPPED
[INFO] JanusGraph-Dist: Tar and Zip Archives .............. SKIPPED
[INFO] JanusGraph-Dist: Archive with Hadoop 2 ............. SKIPPED
[INFO] JanusGraph-Doc: AsciiDoc Manual for JanusGraph ..... SKIPPED
[INFO] JanusGraph-Examples: Examples for JanusGraph ....... SKIPPED
[INFO] Example-Common: Common Graph Code for Examples ..... SKIPPED
[INFO] Example-BerkeleyJE: BerkeleyJE Storage, Lucene Index SKIPPED
[INFO] Example-Cassandra: C* Thrift Storage, ES Index ..... SKIPPED
[INFO] Example-Cql: C* CQL Storage, ES Index .............. SKIPPED
[INFO] Example-HBase: HBase Storage, Solr Index ........... SKIPPED
[INFO] Example-RemoteGraph: Example with RemoteGraph ...... SKIPPED
[INFO] Example-TinkerGraph: Example with TinkerGraph ...... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.557 s
[INFO] Finished at: 2017-09-27T16:44:59+02:00
[INFO] Final Memory: 24M/303M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project janusgraph-core: Could not resolve dependencies for project org.janusgraph:janusgraph-core:jar:0.2.0-SNAPSHOT: Failure to find com.github.jeremyh:jBCrypt:jar:jbcrypt-0.4 in http://download.oracle.com/maven was cached in the local repository, resolution will not be reattempted until the update interval of oracleReleases has elapsed or updates are forced -> [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 :janusgraph-core
How can I build JanusGraph with TinkerPop 3.2.4 version?
Update the root pom.xml to add the Jitpack repository:
<repository>
<!-- for com.github.jeremyh:jBCrypt:jar -->
<id>jitpack.io</id>
<name>JitPack Package Repository</name>
<url>https://jitpack.io</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
This repository was removed the pom.xml because newer versions of Apache TinkerPop do not have this dependency.
Reference from janusgraph-users Google group:
That dependency isn't found in Maven central, jbcrypt-0.4 is found in the jitpack.io repository. You'll need to add a remote repository for it. You could use the dependency:get command:
mvn dependency:get -DremoteRepositories="https://jitpack.io" -Dartifact="com.github.jeremyh:jBCrypt:jbcrypt-0.4"
When you run the command above, you will download the required jBCrypt dependency into your local Maven repository so that you can continue to build JanusGraph. If you're interested in building a distribution zip, similar to the ones you can find on the JanusGraph downloads page, use this command:
mvn clean install -DskipTests=true -Dgpg.skip=true -Pjanusgraph-release
Then you can find the distribution zip under janusgraph-dist/janusgraph-dist-hadoop-2/target/janusgraph-0.2.0-SNAPSHOT-hadoop2.zip.

How to get sonar to analyze nested files?

Every time I run mvn sonar:sonar it only checks the parent file and none of the nested folders.
[INFO] Reactor Summary:
[INFO]
[INFO] NAV :: XXXAppParent ........................... SUCCESS [ 51.557 s]
[INFO] NAV :: XXXNavAppWeb .............................. SKIPPED
[INFO] NAV :: XXX-navapp-web-config ..................... SKIPPED
[INFO] NAV :: XXX-navapp-assets-tar ..................... SKIPPED
How do I get sonar to get analyze all children files and folders?

Compilation error Spark 1.3.1

I tried to compile Spark 1.3.1 using the following flags
mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 \
-Dscala-2.11 \
-Phive -Phive-0.13.1 -Phive-thriftserver \
-DskipTests clean package
The compilation failed with the following the error.
Any suggestions?
Thanks
[INFO] Reactor Summary:
[INFO]
[INFO] Spark Project Parent POM ........................... SUCCESS [01:08 min]
[INFO] Spark Project Core ................................. SUCCESS [02:38 min]
[INFO] Spark Project Bagel ................................ SUCCES [ 17.700 s]
[INFO] Spark Project GraphX ............................... SUCCESS [ 35.732 s]
[INFO] Spark Project ML Library ........................... SUCCESS [01:11 min]
[INFO] Spark Project Tools ................................ SUCCESS [ 6.718 s]
[INFO] Spark Project Networking ........................... SUCCESS [ 6.837 s]
[INFO] Spark Project Shuffle Streaming Service ............ SUCCESS [ 3.534 s]
[INFO] Spark Project Streaming ............................ SUCCESS [ 43.771 s]
[INFO] Spark Project Catalyst ............................. SUCCESS [ 48.411 s]
[INFO] Spark Project SQL .................................. SUCCESS [ 56.046 s]
[INFO] Spark Project Hive ................................. SUCCESS `enter code here`[01:01 min]
[INFO] Spark Project Assembly ............................. FAILURE [ 6.365 s]
[INFO] Spark Project External Twitter ..................... SKIPPED
[INFO] Spark Project External Flume ....................... SKIPPED
[INFO] Spark Project External Flume Sink .................. SKIPPED
[INFO] Spark Project External MQTT ........................ SKIPPED
[INFO] Spark Project External ZeroMQ ...................... SKIPPED
[INFO] Spark Project Examples ............................. SKIPPED
[INFO] Spark Project REPL ................................. SKIPPED
[INFO] Spark Project YARN ................................. SKIPPED
[INFO] Spark Project YARN Shuffle Service ................. SKIPPED
[INFO] Spark Project Hive Thrift Server ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:45 min
[INFO] Finished at: 2015-05-15T11:25:53-06:00
[INFO] Final Memory: 77M/1176M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project spark-assembly_2.10: Could not resolve dependencies for project org.apache.spark:spark-assembly_2.10:pom:1.3.1: Could not find artifact org.apache.spark:spark-hive-thriftserver_2.11:jar:1.3.1 in central (https://repo1.maven.org/maven2) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project spark-assembly_2.10: Could not resolve dependencies for project org.apache.spark:spark-assembly_2.10:pom:1.3.1: Could not find artifact org.apache.spark:spark-hive-thriftserver_2.11:jar:1.3.1 in central (https://repo1.maven.org/maven2)
Seems no dependency of spark-hive-thriftserver_2.11 exists In maven repository, I also search it manually in maven repo and find nothing. I think thrift server is not ready for scala2.11 for now.

Maven build failing when deploying, build succeeds when compiling

I am using Gitlab_ci to trigger a maven script when code is pushed.
The script executes:
mvn compile
[...]
[INFO] project ............................................ SUCCESS [1.312s]
[INFO] project-api ........................................ SUCCESS [1.416s]
[INFO] project-api-impl ................................... SUCCESS [0.329s]
[INFO] project-webapp ..................................... SUCCESS [0.192s]
[INFO] project-webapp-exec ................................ SUCCESS [0.026s]
[INFO] project-webapp-it .................................. SUCCESS [2.052s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
mvn tomcat7:deploy
[INFO] project............................................ SUCCESS [1.840s]
[INFO] project-api ........................................ SUCCESS [2.524s]
[INFO] project-api-impl ................................... FAILURE [0.257s]
[INFO] project-webapp ..................................... SKIPPED
[INFO] project-webapp-exec ................................ SKIPPED
[INFO] project-webapp-it .................................. SKIPPED
And I get the following error:
[ERROR] Failed to execute goal on project project-api-impl: Could not resolve dependencies for project eu.project:project-api-impl:jar:0.6-DEVELOPMENT: Failure to find eu.project:project-api:jar:0.6-DEVELOPMENT in http://repo.maven.apache.org/maven2
Since the project builds successfuly (the WAR is created), I can't understand why when executing deploy, build fails.
[Also, I am not sure whether to mark this as homework. The assignment's goal is to create a tomcat web application and manually deploy to a server to test. Since maven / continuous integration wasn't a requisit, I believe this should not be marked as a homework question]

Shindig maven install: Gadget Renderer faild

I'm kinda lost in here trying to get shindig (java) up and running...
I've downloaded the code from the svn repository (from trunk and other beta from tags) and I've been trying to install the code in the .m2 folder as a repository.
I did't succeed -.-
When I execute $ mvn in order to clean and install, it goes through the process until it reaches the 'Apache Shindig Gadget Renderer'. Trying to compile the project fails.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Shindig Project ............................ SUCCESS [3.004s]
[INFO] Apache Shindig Features ........................... SUCCESS [56.893s]
[INFO] Apache Shindig Common Code ........................ SUCCESS [20.824s]
[INFO] Apache Shindig Gadget Renderer .................... FAILURE [0.270s]
[INFO] Apache Shindig Social API ......................... SKIPPED
[INFO] Apache Shindig Sample Container ................... SKIPPED
[INFO] Apache Shindig Web App Resources .................. SKIPPED
[INFO] Apache Shindig Extra Modules ...................... SKIPPED
[INFO] Apache Shindig Web App Dependencies ............... SKIPPED
[INFO] Apache Shindig Web App ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
The same happens if I use the eclipse plugin. I have the newest version of maven.
What's the problem here? Isn't it weird that the trunk (or any other beta) can compile? o.O
Thank's a lot in advance!

Resources