Hi,

To answer your question, I think that the correct groupId for the R plugin 
is org.biuno.r, so the dependency would be:

<dependency>
    <groupId>org.biouno.r</groupId>
    <artifactId>r</artifactId>
    <version>0.2</version>
</dependency>


But I don't know, isn't an easier way to achieve what you need? without 
writing a new plugin? Just a thought.

Regards,
Alex

On Friday, July 1, 2016 at 1:23:36 PM UTC+3, [email protected] wrote:
>
> Hello,
>
> I am creating my first own plugin to have a common build step across my 
> different jobs. Many of my jobs are running the same script (build, deploy 
> artifacts, test...) and I want to unify that.
> This script is written in R and therefore I would like to run this R 
> script in my own plugin. There is already a R Plugin 
> <https://wiki.jenkins-ci.org/display/JENKINS/R+Plugin> that is usefull to 
> write our own script in the job, therefore I would like to use this R 
> plugin to run my R scripts inside my plugin. I saw that the first step is 
> to have it as a dependency. How can I add it as a dependency in pom.xml?
>
> I tried to write that in *pom.xml*:
>
>>   <repositories>
>>     <repository>
>>       <id>repo.jenkins-ci.org</id>
>>       <url>http://repo.jenkins-ci.org/public/</url>
>>     </repository>
>>   </repositories>
>>   <pluginRepositories>
>>     <pluginRepository>
>>       <id>repo.jenkins-ci.org</id>
>>       <url>http://repo.jenkins-ci.org/public/</url>
>>     </pluginRepository>
>>   </pluginRepositories>
>>
>>
>>   <dependencies>
>>   <dependency>
>>     <groupId>org.jenkins-ci.plugins</groupId>
>>     <artifactId>r</artifactId>
>>     <version>0.2</version>
>>   </dependency>
>> </dependencies>
>>
>>
> But it is not working, I have this error when I run *mvn hpi:run* in my 
> plugin directory:
>
>>  [ERROR] Failed to execute goal on project michaelPlugin: Could not 
>> resolve dependencies for project 
>> michaelPlugin:michaelPlugin:hpi:1.0-SNAPSHOT: Failed to collect 
>> dependencies at org.jenkins-ci.plugins:r:jar:0.2: Failed to read artifact 
>> descriptor for org.jenkins-ci.plugins:r:jar:0.2: Could not transfer 
>> artifact org.jenkins-ci.plugins:r:pom:0.2 from/to central (
>> https://repo.maven.apache.org/maven2): 
>> sun.security.validator.ValidatorException: PKIX path building failed: 
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
>> valid certification path to requested target 
>
>  
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/b80a553a-9a97-45f7-9427-ca06e690b444%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to