You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by infiniteuniverse <in...@gmail.com> on 2015/02/06 23:09:15 UTC

karaf-maven-plugin config file installation bug

I was attempting to use the karaf-maven-plugin to add the cave-server feature
to the installed features and received the following error:

[WARNING] == Installing configuration file
            mvn:org.apache.karaf.cave/apache-karaf-cave/3.0.0/cfg/filesystem

[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6.681 s
[INFO] Finished at: 2015-02-06T16:02:14-06:00
[INFO] Final Memory: 21M/315M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.0.M1:install-kars
(process-resources) on project leo-karaf-dist: Can not install cave-server
feature: Illegal character in scheme name at index 0:
[ERROR] mvn:org.apache.karaf.cave/apache-karaf-cave/3.0.0/cfg/filesystem

After investigation, it appears the source of the problem is that the
configuration file location in apache-karaf-cave has a new line at the
beginning of it that isn't handled correctly on line 537 of
org.apache.karaf.tooling.features.InstallKarsMojo.java in the
installConfigFile method:

String configFileLocation = configFile.getLocation();

updating that line to:

String configFileLocation = configFile.getLocation().trim();

resolves the issue. Is this a known bug? Has it already been fixed in a
future release, I'm using 4.0.0.M1? If not how do I go about submitting a
ticket to get this fixed?




--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-maven-plugin-config-file-installation-bug-tp4038361.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: karaf-maven-plugin config file installation bug

Posted by infiniteuniverse <in...@gmail.com>.
Ok, I created ticket https://issues.apache.org/jira/browse/KARAF-3506 thanks.

-hs



--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-maven-plugin-config-file-installation-bug-tp4038361p4038367.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: karaf-maven-plugin config file installation bug

Posted by Achim Nierbeck <bc...@googlemail.com>.
ok,

please open a new issue for it then.

regards, Achim


2015-02-06 23:26 GMT+01:00 infiniteuniverse <in...@gmail.com>:

> I didn't see an issue filed for it, it seems a bit similar to
> https://issues.apache.org/jira/browse/KARAF-3349 but that's not dealing
> with
> config files and is for release 3.0.2 not 4.0.x
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/karaf-maven-plugin-config-file-installation-bug-tp4038361p4038363.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: karaf-maven-plugin config file installation bug

Posted by infiniteuniverse <in...@gmail.com>.
I didn't see an issue filed for it, it seems a bit similar to
https://issues.apache.org/jira/browse/KARAF-3349 but that's not dealing with
config files and is for release 3.0.2 not 4.0.x



--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-maven-plugin-config-file-installation-bug-tp4038361p4038363.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: karaf-maven-plugin config file installation bug

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

might be an issue, check here [1], if it's already filed.

regards, Achikm
[1] - https://issues.apache.org/jira/browse/KARAF

2015-02-06 23:09 GMT+01:00 infiniteuniverse <in...@gmail.com>:

> I was attempting to use the karaf-maven-plugin to add the cave-server
> feature
> to the installed features and received the following error:
>
> [WARNING] == Installing configuration file
>
> mvn:org.apache.karaf.cave/apache-karaf-cave/3.0.0/cfg/filesystem
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6.681 s
> [INFO] Finished at: 2015-02-06T16:02:14-06:00
> [INFO] Final Memory: 21M/315M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.karaf.tooling:karaf-maven-plugin:4.0.0.M1:install-kars
> (process-resources) on project leo-karaf-dist: Can not install cave-server
> feature: Illegal character in scheme name at index 0:
> [ERROR] mvn:org.apache.karaf.cave/apache-karaf-cave/3.0.0/cfg/filesystem
>
> After investigation, it appears the source of the problem is that the
> configuration file location in apache-karaf-cave has a new line at the
> beginning of it that isn't handled correctly on line 537 of
> org.apache.karaf.tooling.features.InstallKarsMojo.java in the
> installConfigFile method:
>
> String configFileLocation = configFile.getLocation();
>
> updating that line to:
>
> String configFileLocation = configFile.getLocation().trim();
>
> resolves the issue. Is this a known bug? Has it already been fixed in a
> future release, I'm using 4.0.0.M1? If not how do I go about submitting a
> ticket to get this fixed?
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/karaf-maven-plugin-config-file-installation-bug-tp4038361.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master