Plugin Development - Maven install problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin Development - Maven install problem

Damian Skiedrzyński
Hello everyone,

I am starting to learn how to develop a plugin in Jenkins but I
encountered a few problems. I implemented all the needed class from
the plugin tutorial (JavaNCSS). My console output looks like this when
runnung the "mvn install":

http://pastebin.com/zAscdtrj

Also when I look at the class eclipse shows me the error
" The import hudson.maven.AggregatableAction cannot be resolved"
next to the following import statements:

import hudson.maven.AggregatableAction;
import hudson.maven.MavenAggregatedReport;
import hudson.maven.MavenBuild;
import hudson.maven.MavenModule;
import hudson.maven.MavenModuleSetBuild;

I am also curious about the following warnings:
#
[WARNING] Some problems were encountered while building the effective
model for org.jvnet.hudson.plugins:newplugin-plugin-v5:hpi:0.0.1-
SNAPSHOT
#
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-compiler-plugin is missing. @
org.jvnet.hudson:hudson:1.8, line 115, column 15
#
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-surefire-plugin is missing. @
org.jvnet.hudson.plugins:plugin:1.395, line 188, column 15
#
[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.

I am using Maven version 3.0 and Hudson 1.395. The pom.xml is
http://pastebin.com/JFzwx9A9.

Thank you in advance for all of your help.

Cheers,
Damian
Reply | Threaded
Open this post in threaded view
|

Re: Plugin Development - Maven install problem

Olivier Lamy-2
Hello,
It's just warnings from maven
You can upgrade your parent :

  <parent>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.400</version>
  </parent>


HTH,
--
Olivier Lamy
http://twitter.com/olamy
http://www.linkedin.com/in/olamy

2011/3/10 neutrino <[hidden email]>:

> Hello everyone,
>
> I am starting to learn how to develop a plugin in Jenkins but I
> encountered a few problems. I implemented all the needed class from
> the plugin tutorial (JavaNCSS). My console output looks like this when
> runnung the "mvn install":
>
> http://pastebin.com/zAscdtrj
>
> Also when I look at the class eclipse shows me the error
> " The import hudson.maven.AggregatableAction cannot be resolved"
> next to the following import statements:
>
> import hudson.maven.AggregatableAction;
> import hudson.maven.MavenAggregatedReport;
> import hudson.maven.MavenBuild;
> import hudson.maven.MavenModule;
> import hudson.maven.MavenModuleSetBuild;
>
> I am also curious about the following warnings:
> #
> [WARNING] Some problems were encountered while building the effective
> model for org.jvnet.hudson.plugins:newplugin-plugin-v5:hpi:0.0.1-
> SNAPSHOT
> #
> [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-compiler-plugin is missing. @
> org.jvnet.hudson:hudson:1.8, line 115, column 15
> #
> [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-surefire-plugin is missing. @
> org.jvnet.hudson.plugins:plugin:1.395, line 188, column 15
> #
> [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.
>
> I am using Maven version 3.0 and Hudson 1.395. The pom.xml is
> http://pastebin.com/JFzwx9A9.
>
> Thank you in advance for all of your help.
>
> Cheers,
> Damian