Sorry, I’m still building the same project, I’ve just modified pom file in the module as I’ve written. Build log is attached. Thanks, Tomas
From: Michael Vorburger [mailto:vorbur...@redhat.com] Sent: Thursday, December 01, 2016 12:12 PM To: Tomas Janciga -X (tjanciga - PANTHEON TECHNOLOGIES at Cisco) Cc: Robert Varga; controller-dev@lists.opendaylight.org; Jis Abraham (jiabraha); Lionel Florit (lflorit); Vimal Srivastava (vimsriva); odlparent-...@lists.opendaylight.org Subject: Re: [controller-dev] Unable to build new project created by startup project achetype On Thu, Dec 1, 2016 at 12:03 PM, Tomas Janciga -X (tjanciga - PANTHEON TECHNOLOGIES at Cisco) <tjanc...@cisco.com<mailto:tjanc...@cisco.com>> wrote: Hi, OK, I’ve added this into the pom file of my onem2mtest2bundle-api module: <build> <plugins> <plugin> <groupId>pl.project13.maven</groupId> <artifactId>git-commit-id-plugin</artifactId> <configuration> <failOnNoGitDirectory>false</failOnNoGitDirectory> </configuration> </plugin> </plugins> </build> Although it has skipped the previous error, I see this new one: [ERROR] Bundle org.opendaylight.iotdm:onem2mtest2bundle-api:bundle:0.1.0-SNAPSHOT : Input file does not exist: target/classes/META-INF/git.properties erm... where, can you give a little bit of context - the lines from your log before this? ;-) Oh, maybe from the maven-bundle-plugin - see the change to the maven-bundle-plugin in odlparent pom.xml in https://git.opendaylight.org/gerrit/#/c/48443/ in addition to the introduction of the git-commit-id-plugin to odlparent-lite ... ... hm, how the hell do we tell maven-bundle-plugin to <Include-Resource> the META-INF/git.properties IFF ITS THERE (but ignore it if it's not) ?? Thanks, Tomas From: Michael Vorburger [mailto:vorbur...@redhat.com<mailto:vorbur...@redhat.com>] Sent: Thursday, December 01, 2016 11:48 AM To: Robert Varga; Tomas Janciga -X (tjanciga - PANTHEON TECHNOLOGIES at Cisco) Cc: controller-dev@lists.opendaylight.org<mailto:controller-dev@lists.opendaylight.org>; Jis Abraham (jiabraha); Lionel Florit (lflorit); Vimal Srivastava (vimsriva); odlparent-...@lists.opendaylight.org<mailto:odlparent-...@lists.opendaylight.org> Subject: Re: [controller-dev] Unable to build new project created by startup project achetype Hi, [+odlparent-dev] On Thu, Dec 1, 2016 at 10:25 AM, Robert Varga <n...@hq.sk<mailto:n...@hq.sk>> wrote: On 12/01/2016 08:06 AM, Tomas Janciga -X (tjanciga - PANTHEON TECHNOLOGIES at Cisco) wrote: > [ERROR] Failed to execute goal > pl.project13.maven:git-commit-id-plugin:2.2.1:revision (get-git-infos) > on project onem2mtest2bundle-api: .git directory is not found! Please > specify a valid [dotGitDirectory] in your pom.xml -> [Help 1] This is a side-effect of https://git.opendaylight.org/gerrit/48443. Oups... :-( sorry! Michael, can you take a look at how to make this an INFO? I believe https://git.opendaylight.org/gerrit/#/c/48865/ will fix this - could you try and confirm? (I've not actually tested it myself locally, in the interest of getting it out ASAP.) There was no intention to restrict anything with this; please see this announcement https://lists.opendaylight.org/pipermail/dev/2016-November/002958.html re. what that is about. Tx, M. -- Michael Vorburger <vorbur...@redhat.com<mailto:vorbur...@redhat.com>> | IRC: vorburger @freenode | ~ = http://vorburger.ch<http://vorburger.ch/>
[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.opendaylight.iotdm:onem2mtest2bundle-karaf:jar:0.1.0-SNAPSHOT [WARNING] 'parent.relativePath' of POM org.opendaylight.iotdm:onem2mtest2bundle-karaf:0.1.0-SNAPSHOT (/ws/plugins/plugin_bundle2/onem2mtest2bundle/karaf/pom.xml) points at org.opendaylight.iotdm:onem2mtest2bundle-aggregator instead of org.opendaylight.odlparent:karaf-parent, please verify your project structure @ line 11, column 11 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.opendaylight.iotdm:onem2mtest2bundle-archive:kar:0.1.0-SNAPSHOT [WARNING] 'parent.relativePath' of POM org.opendaylight.iotdm:onem2mtest2bundle-archive:0.1.0-SNAPSHOT (/ws/plugins/plugin_bundle2/onem2mtest2bundle/archive/pom.xml) points at org.opendaylight.iotdm:onem2mtest2bundle-aggregator instead of org.opendaylight.odlparent:karaf-parent, please verify your project structure @ line 11, column 11 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] onem2mtest2bundle-api [INFO] onem2mtest2bundle-impl [INFO] onem2mtest2bundle-cli [INFO] onem2mtest2bundle-features [INFO] onem2mtest2bundle-karaf [INFO] onem2mtest2bundle-artifacts [INFO] onem2mtest2bundle-it [INFO] onem2mtest2bundle-archive [INFO] onem2mtest2bundle [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building onem2mtest2bundle-api 0.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ onem2mtest2bundle-api --- [INFO] Deleting /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ onem2mtest2bundle-api --- [INFO] [INFO] --- git-commit-id-plugin:2.2.1:revision (get-git-infos) @ onem2mtest2bundle-api --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (pre-unit-test) @ onem2mtest2bundle-api --- [INFO] argLine set to -javaagent:/home/tjanciga/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/code-coverage/jacoco.exec,excludes=**/gen/**:**/generated-sources/**:**/yang-gen/**:**/pax/** [INFO] [INFO] --- yang-maven-plugin:1.1.0-SNAPSHOT:generate-sources (binding) @ onem2mtest2bundle-api --- [INFO] yang-to-sources: Inspecting /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/src/main/yang [INFO] yang-to-sources: Searching for yang files in following dependencies: [/home/tjanciga/.m2/repository/org/opendaylight/mdsal/yang-binding/0.10.0-SNAPSHOT/yang-binding-0.10.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/concepts/1.1.0-SNAPSHOT/concepts-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/util/1.1.0-SNAPSHOT/util-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/com/github/romix/java-concurrent-hash-trie-map/0.2.23-ODL/java-concurrent-hash-trie-map-0.2.23-ODL.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/yang-common/1.1.0-SNAPSHOT/yang-common-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/object-cache-api/1.1.0-SNAPSHOT/object-cache-api-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar, /home/tjanciga/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar, /home/tjanciga/.m2/repository/com/google/code/findbugs/annotations/3.0.0/annotations-3.0.0.jar, /home/tjanciga/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar, /home/tjanciga/.m2/repository/org/eclipse/jdt/org.eclipse.jdt.annotation/2.0.0/org.eclipse.jdt.annotation-2.0.0.jar] [INFO] yang-to-sources: Searching for yang files in following dependencies: [/home/tjanciga/.m2/repository/org/opendaylight/mdsal/yang-binding/0.10.0-SNAPSHOT/yang-binding-0.10.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/concepts/1.1.0-SNAPSHOT/concepts-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/util/1.1.0-SNAPSHOT/util-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/com/github/romix/java-concurrent-hash-trie-map/0.2.23-ODL/java-concurrent-hash-trie-map-0.2.23-ODL.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/yang-common/1.1.0-SNAPSHOT/yang-common-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/org/opendaylight/yangtools/object-cache-api/1.1.0-SNAPSHOT/object-cache-api-1.1.0-SNAPSHOT.jar, /home/tjanciga/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar, /home/tjanciga/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar, /home/tjanciga/.m2/repository/com/google/code/findbugs/annotations/3.0.0/annotations-3.0.0.jar, /home/tjanciga/.m2/repository/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar, /home/tjanciga/.m2/repository/org/eclipse/jdt/org.eclipse.jdt.annotation/2.0.0/org.eclipse.jdt.annotation-2.0.0.jar] [INFO] yang-to-sources: YANG files parsed from [META-INF/yang/onem2mtest2bundle.yang] [INFO] yang-to-sources: Code generator instantiated from org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl [INFO] yang-to-sources: Sources will be generated to /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/generated-sources/mdsal-binding [INFO] Adding ModuleInfo providers [org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.onem2mtest2bundle.rev150105.$YangModelBindingProvider] [INFO] yang-to-sources: Sources generated by org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl: [/ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/onem2mtest2bundle/rev150105/$YangModuleInfoImpl.java, /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/onem2mtest2bundle/rev150105/$YangModelBindingProvider.java, /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/generated-sources/spi/META-INF/services/org.opendaylight.yangtools.yang.binding.YangModelBindingProvider] [INFO] [INFO] --- build-helper-maven-plugin:1.12:add-source (add-yang-sources) @ onem2mtest2bundle-api --- [INFO] Source directory: /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/generated-sources/mdsal-binding added. [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (check-license) @ onem2mtest2bundle-api --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (default) @ onem2mtest2bundle-api --- [INFO] Starting audit... Audit done. [INFO] [INFO] >>> maven-pmd-plugin:3.6:cpd-check (cpd) > :cpd @ onem2mtest2bundle-api >>> [INFO] [INFO] --- maven-pmd-plugin:3.6:cpd (cpd) @ onem2mtest2bundle-api --- [INFO] [INFO] <<< maven-pmd-plugin:3.6:cpd-check (cpd) < :cpd @ onem2mtest2bundle-api <<< [INFO] [INFO] --- maven-pmd-plugin:3.6:cpd-check (cpd) @ onem2mtest2bundle-api --- [INFO] [INFO] [INFO] --- maven-dependency-plugin:2.10:unpack (unpack-license) @ onem2mtest2bundle-api --- [INFO] Configured Artifact: org.opendaylight.odlparent:odl-license:0.2.0-SNAPSHOT:jar [INFO] Unpacking /home/tjanciga/.m2/repository/org/opendaylight/odlparent/odl-license/0.2.0-SNAPSHOT/odl-license-0.2.0-SNAPSHOT.jar to /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/classes with includes "" and excludes "META-INF/**" [INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ onem2mtest2bundle-api --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/src/main/resources [INFO] Copying 1 resource [INFO] Copying 1 resource [INFO] Copying 1 resource [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ onem2mtest2bundle-api --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/target/classes [INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ onem2mtest2bundle-api --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /ws/plugins/plugin_bundle2/onem2mtest2bundle/api/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ onem2mtest2bundle-api --- [INFO] No sources to compile [INFO] [INFO] --- maven-antrun-plugin:1.8:run (move-autowire-test) @ onem2mtest2bundle-api --- [INFO] Executing tasks main: [echo] Moving autowire.xml to org/opendaylight/blueprint [INFO] Executed tasks [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ onem2mtest2bundle-api --- [INFO] Tests are skipped. [INFO] [INFO] --- script-maven-plugin:1.0.0:execute (default) @ onem2mtest2bundle-api --- [INFO] executing beanshell script [INFO] [INFO] --- maven-antrun-plugin:1.8:run (move-autowire-package) @ onem2mtest2bundle-api --- [INFO] Executing tasks main: [echo] Moving autowire.xml to org/opendaylight/blueprint [INFO] Executed tasks [INFO] [INFO] --- maven-bundle-plugin:3.0.1:bundle (default-bundle) @ onem2mtest2bundle-api --- [ERROR] Bundle org.opendaylight.iotdm:onem2mtest2bundle-api:bundle:0.1.0-SNAPSHOT : Input file does not exist: target/classes/META-INF/git.properties [ERROR] Error(s) found in bundle configuration [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] onem2mtest2bundle-api .............................. FAILURE [ 4.439 s] [INFO] onem2mtest2bundle-impl ............................. SKIPPED [INFO] onem2mtest2bundle-cli .............................. SKIPPED [INFO] onem2mtest2bundle-features ......................... SKIPPED [INFO] onem2mtest2bundle-karaf ............................ SKIPPED [INFO] onem2mtest2bundle-artifacts ........................ SKIPPED [INFO] onem2mtest2bundle-it ............................... SKIPPED [INFO] onem2mtest2bundle-archive .......................... SKIPPED [INFO] onem2mtest2bundle .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.136 s [INFO] Finished at: 2016-12-01T03:31:31-08:00 [INFO] Final Memory: 84M/652M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:3.0.1:bundle (default-bundle) on project onem2mtest2bundle-api: Error(s) found in bundle configuration -> [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/MojoExecutionException
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev