본문 바로가기

opendaylight

opendaylight blueprint 적용(annotation) opendaylight 프로젝트에서 blueprint 사용시 xml 을 통해 설정하기 매번 귀찮을때가 있습니다. 그럴땐 어노테이션을 사용하면 Spring에서 개발하던 방법으로 손쉽게 개발이 가능 합니다. pom.xml 수정 dependency 수정 org.opendaylight.infrautils inject 1.1.2-Carbon javax.inject javax.inject true org.ops4j.pax.cdi pax-cdi-api true plugin 추가 org.apache.aries.blueprint blueprint-maven-plugin 1.6.0 blueprint-generate 패키지경로 어노테이션 적용 코드 @Singleton @OsgiServiceProvider public cla.. 더보기
Maven 빌드시 에러 [WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:Please always use mockito-core instead of mockito-all (https://bugs.opendaylight.org/show_bug.cgi?id=7662)Found Banned Dependency: org.mockito:mockito-all:jar:1.10.19Use 'mvn dependency:tree' to locate the source of the banned dependencies.[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enfor.. 더보기
opendaylight hello 프로젝트 시작 하기 1 Eclipse IDE을 이용하여 opendaylight hello Maven Project을 생성하는 방법new -> Maven Project 선택Configure -> Add Remote Catalog Catalog 경로 입력Catalog File https://nexus.opendaylight.org/content/repositories/opendaylight.release/archetype-catalog.xml or https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/archetype-catalog.xmlDescription : opendaylight release필자는 Boron 버전으로 프로젝트를 생성 하였지만, 원.. 더보기