-
Bug
-
Resolution: Unresolved
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
8050
Background: addInstallRepositoryPath is a parameter (which I originally contributed); documented e.g. here https://wiki.opendaylight.org/view/CrossProject:Integration_Group:karaf#Getting_your_code_into_Karaf_.28for_developers.3B_-DaddInstallRepositoryPath_.2F_addInstallRepositoryPath.29)
I'd like to use the -DaddInstallRepositoryPath to install a feature of a project under development into a Karaf; for example:
vorburger@work:~/dev/ODL/git/daexim$ mvn -Pq -DaddInstallRepositoryPath=../../netvirt/vpnservice/distribution/karaf/target/assembly/system clean install
But this only correctly installs bundles (JARs), but does not work for attached artifacts such as feature.xml ...
This is because the additional-install uses:
<configuration>
<file>${project.build.directory}/${project.build.finalName}.jar
of course that's technically wrong, it's not sufficient, because it misses attached artifacts, as we see here:
[INFO] — maven-install-plugin:2.5.2:install (default-install) @ daexim-features —
[INFO] Installing /home/vorburger/dev/ODL/git/daexim/features/target/daexim-features-1.0.0-SNAPSHOT.jar to /home/vorburger/.m2/repository/org/opendaylight/daexim/daexim-features/1.0.0-SNAPSHOT/daexim-features-1.0.0-SNAPSHOT.jar
[INFO] Installing /home/vorburger/dev/ODL/git/daexim/features/pom.xml to /home/vorburger/.m2/repository/org/opendaylight/daexim/daexim-features/1.0.0-SNAPSHOT/daexim-features-1.0.0-SNAPSHOT.pom
[INFO] Installing /home/vorburger/dev/ODL/git/daexim/features/target/daexim-features-1.0.0-SNAPSHOT.kar to /home/vorburger/.m2/repository/org/opendaylight/daexim/daexim-features/1.0.0-SNAPSHOT/daexim-features-1.0.0-SNAPSHOT.kar
[INFO] Installing /home/vorburger/dev/ODL/git/daexim/features/target/classes/features.xml to /home/vorburger/.m2/repository/org/opendaylight/daexim/daexim-features/1.0.0-SNAPSHOT/daexim-features-1.0.0-SNAPSHOT-features.xml
[INFO]
[INFO] — maven-install-plugin:2.5.2:install-file (additional-install) @ daexim-features —
[INFO] Installing /home/vorburger/dev/ODL/git/daexim/features/target/daexim-features-1.0.0-SNAPSHOT.jar to /home/vorburger/dev/ODL/git/netvirt/vpnservice/distribution/karaf/target/assembly/system/org/opendaylight/daexim/daexim-features/1.0.0-SNAPSHOT/daexim-features-1.0.0-SNAPSHOT.jar
[INFO] Installing /tmp/mvninstall8580636725527113759.pom to /home/vorburger/dev/ODL/git/netvirt/vpnservice/distribution/karaf/target/assembly/system/org/opendaylight/daexim/daexim-features/1.0.0-SNAPSHOT/daexim-features-1.0.0-SNAPSHOT.pom
NB that the features.xml is only installed by the default-install but not by the additional-install.