[jira] [Created] (KARAF-5656) maven:password -eb notwirking

2018-03-05 Thread Felix marezki (JIRA)
Felix marezki created KARAF-5656:


 Summary: maven:password -eb notwirking
 Key: KARAF-5656
 URL: https://issues.apache.org/jira/browse/KARAF-5656
 Project: Karaf
  Issue Type: Improvement
Affects Versions: 4.2.0.M2
 Environment: fresh Karaf-4.2.0.M2 instance
Reporter: Felix marezki


I couldn't find the component, but its located in the maven feature.

Symptom:

The "maven:password -ep" command fails with message: "Master password is not 
available",

(even) when you have configured a master password before.

This happens when there is no maven settings.xml configured/present.

So you have to have a settings.xml in your local maven repo (.m2 folder) 
present before encrypting a password using this command. (well or u have 
somehow configured etc/org.ops4j.pax.url.mvn.cfg properties accordingly 
beforehand/manually)

 

steps to reproduce:
 # install fresh Karaf(-4.2.0.M2) instance
 # run:
 ## feature:install maven
 ## maven:password -emp (–persist)
 ## maven:password -ep



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (KARAF-5643) Use karaf:deploy goal to deploy feature

2018-02-24 Thread Felix marezki (JIRA)
Felix marezki created KARAF-5643:


 Summary: Use karaf:deploy goal to deploy feature
 Key: KARAF-5643
 URL: https://issues.apache.org/jira/browse/KARAF-5643
 Project: Karaf
  Issue Type: Improvement
  Components: karaf-tooling
Reporter: Felix marezki


I think it would be great if you could use the karaf:deploy goal to deploy  a 
whole feature on a Karaf instance.

I've implemented it for my own use already. But I'm not sure about the actual 
implementation.

For now I just added an isFeatureArtifact parameter to the DeployPojo which 
requires the useProjectArtifact to be true as well.   



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-5642) karaf:deploy goal broken

2018-02-24 Thread Felix marezki (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16375699#comment-16375699
 ] 

Felix marezki commented on KARAF-5642:
--

I'm just using it for deploying a bundle on the Karaf instance from my local 
maven repository. So I've my bundle installed locally as well as my Karaf 
instance running and I execute the deploy goal on my project (that produces the 
bundle).

The above is the error message that I got and it seems to be due to the 
PrintWriter as it doesn't provide a toString mehtod on its own so instead the 
Objects toString is called and its return is used for execution in the shell 
session.

So I changed it to use it's lowest stream member which is the StringWriter, 
that provides it's own implementation of the toString mehtod which produces a 
viable return.

Hope that makes sense :)

 

> karaf:deploy goal broken
> 
>
> Key: KARAF-5642
> URL: https://issues.apache.org/jira/browse/KARAF-5642
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-tooling
>Affects Versions: 4.2.0.M2
>Reporter: Felix marezki
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> Error message on deploy:
> Command not found: java.io.PrintWriter@6dc1dc69



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-5642) karaf:deploy goal broken

2018-02-23 Thread Felix marezki (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16374493#comment-16374493
 ] 

Felix marezki commented on KARAF-5642:
--

Pull request on github: [466|https://github.com/apache/karaf/pull/466]

 

> karaf:deploy goal broken
> 
>
> Key: KARAF-5642
> URL: https://issues.apache.org/jira/browse/KARAF-5642
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-tooling
>Affects Versions: 4.2.0.M2
>Reporter: Felix marezki
>Priority: Major
>
> Error message on deploy:
> Command not found: java.io.PrintWriter@6dc1dc69



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (KARAF-5642) karaf:deploy goal broken

2018-02-23 Thread Felix marezki (JIRA)
Felix marezki created KARAF-5642:


 Summary: karaf:deploy goal broken
 Key: KARAF-5642
 URL: https://issues.apache.org/jira/browse/KARAF-5642
 Project: Karaf
  Issue Type: Bug
  Components: karaf-tooling
Affects Versions: 4.2.0.M2
Reporter: Felix marezki


Error message on deploy:

Command not found: java.io.PrintWriter@6dc1dc69



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-5630) karaf:run goal not working

2018-02-23 Thread Felix marezki (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16374430#comment-16374430
 ] 

Felix marezki commented on KARAF-5630:
--

also, the karaf:deploy goal seems to be broken to.

> karaf:run goal not working 
> ---
>
> Key: KARAF-5630
> URL: https://issues.apache.org/jira/browse/KARAF-5630
> Project: Karaf
>  Issue Type: Improvement
>  Components: karaf-tooling
>Affects Versions: 4.0.4, 4.0.5, 4.0.10, 4.1.5, 4.2.0.M2
>Reporter: Felix marezki
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> The karaf:run goal is supposed to run a bundle.
> This doesn't work as the RunMojo tries to run the artifact that is associated 
> with the Project.
> Even though there is an Artifact available its getFile() function return 
> null, as normally the setFile() function of it is being called by the 
> packaging Mojo which is not present nor executed beforehand.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-5630) karaf:run goal not working

2018-02-23 Thread Felix marezki (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16374403#comment-16374403
 ] 

Felix marezki commented on KARAF-5630:
--

But the RunMojo doesn't put anything in the deploy folder, does it?

It uses a Karaf instance from within.

I mean if it would put my bundle/feature/artifact into a deploy folder I guess 
that would be fine but it doesn't. So what is it's purpose here if not to run a 
Karaf instance for a project?

> karaf:run goal not working 
> ---
>
> Key: KARAF-5630
> URL: https://issues.apache.org/jira/browse/KARAF-5630
> Project: Karaf
>  Issue Type: Improvement
>  Components: karaf-tooling
>Affects Versions: 4.0.4, 4.0.5, 4.0.10, 4.1.5, 4.2.0.M2
>Reporter: Felix marezki
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> The karaf:run goal is supposed to run a bundle.
> This doesn't work as the RunMojo tries to run the artifact that is associated 
> with the Project.
> Even though there is an Artifact available its getFile() function return 
> null, as normally the setFile() function of it is being called by the 
> packaging Mojo which is not present nor executed beforehand.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-5630) karaf:run goal not working

2018-02-23 Thread Felix marezki (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16374239#comment-16374239
 ] 

Felix marezki commented on KARAF-5630:
--

Ok, then how would that go in case of a bundle project?

I mean there needs to be a context, no!? Wouldn't that imply that I would have 
to make it an execution goal of a phase? Cause else there would be no artifact 
set on the Project (Well, an artifact would be set but no corresponding File). 
So how am I supposed to run that?

 

Now on the use case where I want to load a Feature on run.

I totally get that you could attach the feature.xml as an artifact to the 
Project, but that would involve using yet another Plugin, doesn't it?

 

So to be honest I thought the Plugin didn't work at all when I first tried it.

> karaf:run goal not working 
> ---
>
> Key: KARAF-5630
> URL: https://issues.apache.org/jira/browse/KARAF-5630
> Project: Karaf
>  Issue Type: Improvement
>  Components: karaf-tooling
>Affects Versions: 4.0.4, 4.0.5, 4.0.10, 4.1.5, 4.2.0.M2
>Reporter: Felix marezki
>Assignee: Jean-Baptiste Onofré
>Priority: Major
>
> The karaf:run goal is supposed to run a bundle.
> This doesn't work as the RunMojo tries to run the artifact that is associated 
> with the Project.
> Even though there is an Artifact available its getFile() function return 
> null, as normally the setFile() function of it is being called by the 
> packaging Mojo which is not present nor executed beforehand.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-5630) karaf:run goal not working

2018-02-20 Thread Felix marezki (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16370152#comment-16370152
 ] 

Felix marezki commented on KARAF-5630:
--

Pull request on github:

https://github.com/apache/karaf/pull/462

> karaf:run goal not working 
> ---
>
> Key: KARAF-5630
> URL: https://issues.apache.org/jira/browse/KARAF-5630
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf-tooling
>Affects Versions: 4.0.4, 4.0.5, 4.0.10, 4.1.5, 4.2.0.M2
>Reporter: Felix marezki
>Priority: Major
>
> The karaf:run goal is supposed to run a bundle.
> This doesn't work as the RunMojo tries to run the artifact that is associated 
> with the Project.
> Even though there is an Artifact available its getFile() function return 
> null, as normally the setFile() function of it is being called by the 
> packaging Mojo which is not present nor executed beforehand.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (KARAF-5630) karaf:run goal not working

2018-02-20 Thread Felix marezki (JIRA)
Felix marezki created KARAF-5630:


 Summary: karaf:run goal not working 
 Key: KARAF-5630
 URL: https://issues.apache.org/jira/browse/KARAF-5630
 Project: Karaf
  Issue Type: Bug
  Components: karaf-tooling
Affects Versions: 4.2.0.M2, 4.1.5, 4.0.10, 4.0.5, 4.0.4
Reporter: Felix marezki


The karaf:run goal is supposed to run a bundle.

This doesn't work as the RunMojo tries to run the artifact that is associated 
with the Project.

Even though there is an Artifact available its getFile() function return null, 
as normally the setFile() function of it is being called by the packaging Mojo 
which is not present nor executed beforehand.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)