Make a patch for plugin and test

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

Make a patch for plugin and test

Mikael Petterson

Hi,

I have imported the cobertura project in Eclipse using maven and svn plugin.
I have modified the file I wanted in cobertura plug-in.

Then I did 'maven build' from within m2 menu in Eclipse and got the folllwoing. I am not an expert on maven so I don't know what is happening.
Can any one tell me lwhat is going on and what I need to do?

The result would be a fix for the cobertura plugin to show source code even if build is not considered stable but succcessful.

The instructions are on

http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial

 is not really for working with a patch but rather a fresh project.

br,

//mike

[INFO] Scanning for projects...

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR] The project org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error

[ERROR] Non-resolvable parent POM org.jvnet.hudson.plugins:plugin:1.319 for org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to resolve POM for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:

----------

1) org.jvnet.hudson.plugins:plugin:pom:1.319

----------

1 required artifact is missing.

for artifact:

org.jvnet.hudson.plugins:plugin:pom:1.319

from the specified remote repositories:

central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

-> [Help 2]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 

=============================
Ericsson AB

Mikael Petterson
Software Designer

Mobile: +46-(0)70-2673044
Email: [hidden email]
=============================

 
Reply | Threaded
Open this post in threaded view
|

Re: Make a patch for plugin and test

Vojtech Juranek
> Hi,
>
> I have imported the cobertura project in Eclipse using maven and svn
>  plugin. I have modified the file I wanted in cobertura plug-in.
>
> Then I did 'maven build' from within m2 menu in Eclipse and got the
>  folllwoing. I am not an expert on maven so I don't know what is happening.
>  Can any one tell me lwhat is going on and what I need to do?
I think (i've looked at it very quicky), that maven is not able to find parent
pom. You have to check out Hudson sources and set-up path to appropriate pom
correctly in section
<parent>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.319</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

or change it to
<parent>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.319</version>
  </parent>
so maven can deal with it itself



> The result would be a fix for the cobertura plugin to show source code even
>  if build is not considered stable but succcessful.
>
> The instructions are on
>
> http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial
>
>  is not really for working with a patch but rather a fresh project.
>
> br,
>
> //mike
>
> [INFO] Scanning for projects...
>
> [ERROR] The build could not read 1 project -> [Help 1]
>
> [ERROR] The project org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT
>  (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error
>
> [ERROR] Non-resolvable parent POM org.jvnet.hudson.plugins:plugin:1.319 for
>  org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to resolve POM
>  for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:
>
> ----------
>
> 1) org.jvnet.hudson.plugins:plugin:pom:1.319
>
> ----------
>
> 1 required artifact is missing.
>
> for artifact:
>
> org.jvnet.hudson.plugins:plugin:pom:1.319
>
> from the specified remote repositories:
>
> central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
>
> -> [Help 2]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
>  switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>
> [ERROR]
>
> [ERROR] For more information about the errors and possible solutions,
>  please read the following articles:
>
> [ERROR] [Help 1]
>  http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>
> [ERROR] [Help 2]
>  http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExceptio
> n
>
>
>
> =============================
> Ericsson AB
>
> Mikael Petterson
> Software Designer
> Mobile: +46-(0)70-2673044
> Email: [hidden email]
> =============================
>
>
>
> =============================
> Ericsson AB
>
> Mikael Petterson
> Software Designer
> Mobile: +46-(0)70-2673044
> Email: [hidden email]
> =============================
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Make a patch for plugin and test

Mikael Petterson
 Hi,

How much of the source do I need to check-out? Just main? Or everyting including plug-in:s?

Br,

//mikael

-----Original Message-----
From: Vojtech Juranek [mailto:[hidden email]]
Sent: den 23 februari 2010 09:10
To: [hidden email]
Subject: Re: Make a patch for plugin and test

> Hi,
>
> I have imported the cobertura project in Eclipse using maven and svn  
> plugin. I have modified the file I wanted in cobertura plug-in.
>
> Then I did 'maven build' from within m2 menu in Eclipse and got the  
> folllwoing. I am not an expert on maven so I don't know what is happening.
>  Can any one tell me lwhat is going on and what I need to do?
I think (i've looked at it very quicky), that maven is not able to find parent pom. You have to check out Hudson sources and set-up path to appropriate pom correctly in section <parent>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.319</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

or change it to
<parent>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.319</version>
  </parent>
so maven can deal with it itself



> The result would be a fix for the cobertura plugin to show source code even
>  if build is not considered stable but succcessful.
>
> The instructions are on
>
> http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial
>
>  is not really for working with a patch but rather a fresh project.
>
> br,
>
> //mike
>
> [INFO] Scanning for projects...
>
> [ERROR] The build could not read 1 project -> [Help 1]
>
> [ERROR] The project org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT
>  (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error
>
> [ERROR] Non-resolvable parent POM org.jvnet.hudson.plugins:plugin:1.319 for
>  org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to resolve POM
>  for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:
>
> ----------
>
> 1) org.jvnet.hudson.plugins:plugin:pom:1.319
>
> ----------
>
> 1 required artifact is missing.
>
> for artifact:
>
> org.jvnet.hudson.plugins:plugin:pom:1.319
>
> from the specified remote repositories:
>
> central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
>
> -> [Help 2]
>
> [ERROR]
>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
>  switch.
>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>
> [ERROR]
>
> [ERROR] For more information about the errors and possible solutions,
>  please read the following articles:
>
> [ERROR] [Help 1]
>  http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>
> [ERROR] [Help 2]
>  http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExceptio
> n
>
>
>
> =============================
> Ericsson AB
>
> Mikael Petterson
> Software Designer
> Mobile: +46-(0)70-2673044
> Email: [hidden email]
> =============================
>
>
>
> =============================
> Ericsson AB
>
> Mikael Petterson
> Software Designer
> Mobile: +46-(0)70-2673044
> Email: [hidden email]
> =============================
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Make a patch for plugin and test

Vojtech Juranek
>  Hi,
>
> How much of the source do I need to check-out? Just main? Or everyting
>  including plug-in:s?
just trunk/hudson/plugins/pom.xml and references therein... but I would advice
you to use
<parent>
     <groupId>org.jvnet.hudson.plugins</groupId>
     <artifactId>plugin</artifactId>
     <version>1.319</version>
</parent>
and let maven to donwload what it needs  (unless you need to do some private
changes in Hudson core etc.)

> Br,
>
> //mikael
>
> -----Original Message-----
> From: Vojtech Juranek [mailto:[hidden email]]
> Sent: den 23 februari 2010 09:10
> To: [hidden email]
> Subject: Re: Make a patch for plugin and test
>
> > Hi,
> >
> > I have imported the cobertura project in Eclipse using maven and svn
> > plugin. I have modified the file I wanted in cobertura plug-in.
> >
> > Then I did 'maven build' from within m2 menu in Eclipse and got the
> > folllwoing. I am not an expert on maven so I don't know what is
> > happening. Can any one tell me lwhat is going on and what I need to do?
>
> I think (i've looked at it very quicky), that maven is not able to find
>  parent pom. You have to check out Hudson sources and set-up path to
>  appropriate pom correctly in section <parent>
>  <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>     <relativePath>../pom.xml</relativePath>
>   </parent>
>
> or change it to
> <parent>
>     <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>   </parent>
> so maven can deal with it itself
>
> > The result would be a fix for the cobertura plugin to show source code
> > even if build is not considered stable but succcessful.
> >
> > The instructions are on
> >
> > http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial
> >
> >  is not really for working with a patch but rather a fresh project.
> >
> > br,
> >
> > //mike
> >
> > [INFO] Scanning for projects...
> >
> > [ERROR] The build could not read 1 project -> [Help 1]
> >
> > [ERROR] The project org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT
> >  (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error
> >
> > [ERROR] Non-resolvable parent POM org.jvnet.hudson.plugins:plugin:1.319
> > for org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to resolve
> > POM for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:
> >
> > ----------
> >
> > 1) org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > ----------
> >
> > 1 required artifact is missing.
> >
> > for artifact:
> >
> > org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > from the specified remote repositories:
> >
> > central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
> >
> > -> [Help 2]
> >
> > [ERROR]
> >
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> > -e switch.
> >
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >
> > [ERROR]
> >
> > [ERROR] For more information about the errors and possible solutions,
> >  please read the following articles:
> >
> > [ERROR] [Help 1]
> >
> > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> >
> > [ERROR] [Help 2]
> >
> > http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExcepti
> >o n
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email]
> > =============================
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email]
> > =============================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Make a patch for plugin and test

Mikael Petterson
Hi,

Since I am not a regular user of maven I have a hard time to accomplish this in Eclipse.
I cannot just checkout the pom.xml since it is a file.
If I use use,in Eclipse:

File --> Import --> Check-out maven projects from SCM.
If I only select the pom.xml I get a message saying it must be directory.

I have alread set parent in the cobertura plugin pom.xml

  <parent>
        <groupId>org.jvnet.hudson.plugins</groupId>
        <artifactId>plugin</artifactId>
        <version>1.319</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

I have no parent pom.xml!

Do I have  to import the whole hudson project????

I am confused.

Br,

//mikael


-----Original Message-----
From: Vojtech Juranek [mailto:[hidden email]]
Sent: den 23 februari 2010 15:49
To: [hidden email]
Subject: Re: Make a patch for plugin and test

>  Hi,
>
> How much of the source do I need to check-out? Just main? Or everyting  
> including plug-in:s?
just trunk/hudson/plugins/pom.xml and references therein... but I would advice you to use <parent>
     <groupId>org.jvnet.hudson.plugins</groupId>
     <artifactId>plugin</artifactId>
     <version>1.319</version>
</parent>
and let maven to donwload what it needs  (unless you need to do some private changes in Hudson core etc.)

> Br,
>
> //mikael
>
> -----Original Message-----
> From: Vojtech Juranek [mailto:[hidden email]]
> Sent: den 23 februari 2010 09:10
> To: [hidden email]
> Subject: Re: Make a patch for plugin and test
>
> > Hi,
> >
> > I have imported the cobertura project in Eclipse using maven and svn
> > plugin. I have modified the file I wanted in cobertura plug-in.
> >
> > Then I did 'maven build' from within m2 menu in Eclipse and got the
> > folllwoing. I am not an expert on maven so I don't know what is
> > happening. Can any one tell me lwhat is going on and what I need to do?
>
> I think (i've looked at it very quicky), that maven is not able to
> find  parent pom. You have to check out Hudson sources and set-up path
> to  appropriate pom correctly in section <parent>  
> <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>     <relativePath>../pom.xml</relativePath>
>   </parent>
>
> or change it to
> <parent>
>     <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>   </parent>
> so maven can deal with it itself
>
> > The result would be a fix for the cobertura plugin to show source
> > code even if build is not considered stable but succcessful.
> >
> > The instructions are on
> >
> > http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial
> >
> >  is not really for working with a patch but rather a fresh project.
> >
> > br,
> >
> > //mike
> >
> > [INFO] Scanning for projects...
> >
> > [ERROR] The build could not read 1 project -> [Help 1]
> >
> > [ERROR] The project
> > org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT
> >  (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error
> >
> > [ERROR] Non-resolvable parent POM
> > org.jvnet.hudson.plugins:plugin:1.319
> > for org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to
> > resolve POM for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:
> >
> > ----------
> >
> > 1) org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > ----------
> >
> > 1 required artifact is missing.
> >
> > for artifact:
> >
> > org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > from the specified remote repositories:
> >
> > central (http://repo1.maven.org/maven2, releases=true,
> > snapshots=false)
> >
> > -> [Help 2]
> >
> > [ERROR]
> >
> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > the -e switch.
> >
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >
> > [ERROR]
> >
> > [ERROR] For more information about the errors and possible
> > solutions,  please read the following articles:
> >
> > [ERROR] [Help 1]
> >
> > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingExce
> > ption
> >
> > [ERROR] [Help 2]
> >
> >
> >http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExc
> >epti
> >o n
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email] =============================
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email]
> > =============================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Make a patch for plug-in and test

stuart.barry

Mikael,

Are you using the Eclipse Subversion plug-in? I use this to connect to the Hudson repository and can checkout just an individual plug-in and then build and run it from within the Eclipse work area (e.g. using the command mvn hpi:run in the directory containing the plug-in's pom.xml). Maven takes care of downloading all the Hudson etc jars that are needed.

Stuart

ACI Worldwide (UK Development) Ltd
E-Mail:  
stuart.barry@...
Phone:   +44 1923 813907
Fax:        +44 1923 813935

This e-mail message and any attachments may contain confidential, proprietary or non-public information.  This information is intended solely for the designated recipient(s).  If an addressing or transmission error has misdirected this e-mail, please notify the sender immediately and destroy this e-mail.  Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited.  Any opinions expressed in this e-mail are those of the author personally.
------------------------------------------------------------------------------------------------------------------------------------------------------
ACI Worldwide (UK Development) Limited. Registered in England and Wales (registered no. 5828928).
Registered Office: 55-57 Clarendon Road, Watford, Hertfordshire, WD17 1FQ, United Kingdom
------------------------------------------------------------------------------------------------------------------------------------------------------



From: Mikael Petterson <[hidden email]>
To: "[hidden email]" <[hidden email]>
Cc: "[hidden email]" <[hidden email]>
Date: 23/02/2010 15:32
Subject: RE: Make a patch for plugin and test





Hi,

Since I am not a regular user of maven I have a hard time to accomplish this in Eclipse.
I cannot just checkout the pom.xml since it is a file.
If I use use,in Eclipse:

File --> Import --> Check-out maven projects from SCM.
If I only select the pom.xml I get a message saying it must be directory.

I have alread set parent in the cobertura plugin pom.xml

 <parent>
       <groupId>org.jvnet.hudson.plugins</groupId>
       <artifactId>plugin</artifactId>
       <version>1.319</version>
       <relativePath>../pom.xml</relativePath>
   </parent>

I have no parent pom.xml!

Do I have  to import the whole hudson project????

I am confused.

Br,

//mikael


-----Original Message-----
From: Vojtech Juranek [
mailto:vjuranek@...]
Sent: den 23 februari 2010 15:49
To: [hidden email]
Subject: Re: Make a patch for plugin and test

>  Hi,
>
> How much of the source do I need to check-out? Just main? Or everyting  
> including plug-in:s?
just trunk/hudson/plugins/pom.xml and references therein... but I would advice you to use <parent>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.319</version>
</parent>
and let maven to donwload what it needs  (unless you need to do some private changes in Hudson core etc.)

> Br,
>
> //mikael
>
> -----Original Message-----
> From: Vojtech Juranek [
mailto:vjuranek@...]
> Sent: den 23 februari 2010 09:10
> To: [hidden email]
> Subject: Re: Make a patch for plugin and test
>
> > Hi,
> >
> > I have imported the cobertura project in Eclipse using maven and svn
> > plugin. I have modified the file I wanted in cobertura plug-in.
> >
> > Then I did 'maven build' from within m2 menu in Eclipse and got the
> > folllwoing. I am not an expert on maven so I don't know what is
> > happening. Can any one tell me lwhat is going on and what I need to do?
>
> I think (i've looked at it very quicky), that maven is not able to
> find  parent pom. You have to check out Hudson sources and set-up path
> to  appropriate pom correctly in section <parent>  
> <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>     <relativePath>../pom.xml</relativePath>
>   </parent>
>
> or change it to
> <parent>
>     <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>   </parent>
> so maven can deal with it itself
>
> > The result would be a fix for the cobertura plugin to show source
> > code even if build is not considered stable but succcessful.
> >
> > The instructions are on
> >
> >
http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial
> >
> >  is not really for working with a patch but rather a fresh project.
> >
> > br,
> >
> > //mike
> >
> > [INFO] Scanning for projects...
> >
> > [ERROR] The build could not read 1 project -> [Help 1]
> >
> > [ERROR] The project
> > org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT
> >  (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error
> >
> > [ERROR] Non-resolvable parent POM
> > org.jvnet.hudson.plugins:plugin:1.319
> > for org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to
> > resolve POM for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:
> >
> > ----------
> >
> > 1) org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > ----------
> >
> > 1 required artifact is missing.
> >
> > for artifact:
> >
> > org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > from the specified remote repositories:
> >
> > central (
http://repo1.maven.org/maven2, releases=true,
> > snapshots=false)
> >
> > -> [Help 2]
> >
> > [ERROR]
> >
> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > the -e switch.
> >
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >
> > [ERROR]
> >
> > [ERROR] For more information about the errors and possible
> > solutions,  please read the following articles:
> >
> > [ERROR] [Help 1]
> >
> >
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingExce
> > ption
> >
> > [ERROR] [Help 2]
> >
> >
> >
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExc
> >epti
> >o n
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email] =============================
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email]
> > =============================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



Reply | Threaded
Open this post in threaded view
|

Re: Make a patch for plugin and test

Mirko Friedenhagen-2
In reply to this post by Mikael Petterson

Am 23.02.2010 um 16:31 schrieb Mikael Petterson:

> Hi,
>
> Since I am not a regular user of maven I have a hard time to accomplish this in Eclipse.
> I cannot just checkout the pom.xml since it is a file.
> If I use use,in Eclipse:
>
> File --> Import --> Check-out maven projects from SCM.
> If I only select the pom.xml I get a message saying it must be directory.
>
> I have alread set parent in the cobertura plugin pom.xml
>
>  <parent>
>        <groupId>org.jvnet.hudson.plugins</groupId>
>        <artifactId>plugin</artifactId>
>        <version>1.319</version>
>        <relativePath>../pom.xml</relativePath>
>    </parent>
>
> I have no parent pom.xml!
>
> Do I have  to import the whole hudson project????

Hello Mikael,
maybe you need the java.net-2 repository as well?

I have these additional settings in my $HOME/.m2/settings.xml, I guess some artifacts are maybe not available from central alone:

<settings>
   ...
   <mirrors>
        <mirror>
            <id>maven.glassfish.org-central</id>
            <url>http://maven.glassfish.org/content/repositories/central/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
        <mirror>
            <id>maven.glassfish.org-java.net-2</id>
            <url>http://maven.glassfish.org/content/groups/public/</url>
            <mirrorOf>java.net-2</mirrorOf>
        </mirror>
    </mirrors>
    <profiles>
        <profile>
            <id>java.net-repo</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://repo2.maven.org/maven2</url>
                </repository>
                <repository>
                    <id>java.net-2</id>
                    <url>http://download.java.net/maven/2</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <pluginGroups>
        <pluginGroup>org.codehaus.mojo</pluginGroup>
        <pluginGroup>org.jvnet.hudson.tools</pluginGroup>
    </pluginGroups>
...
</settings>

Regards
Mirko


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Make a patch for plugin and test

Justin Holzer
In reply to this post by Mikael Petterson


Mikael,

My suggestion is that you simply check the plugin out as a generic Eclipse project. Once you check out the plugin, open up a console, go to the directory where you checked the plugin out, and run the following maven command:

    mvn eclipse:eclipse

This will create all of the necessary Eclipse project files for the plugin, including the ".classpath" file. Once maven is done, go back in to Eclipse and do a refresh on your project folder in your Package/Project Explorer and it should now appear as a Java project. You will probably want to have the Maven plugin for Eclipse installed as well, if you do not already, but that is optional.

You do not need the source for anything other than the plugin. Maven will automagically download all the dependencies for you if you don't already have them. If you ever need to update the Eclipse project files, you can always run the above Maven command again to regenerate the .project and .classpath files.

- Justin

On Tue, Feb 23, 2010 at 10:31 AM, Mikael Petterson <[hidden email]> wrote:
Hi,

Since I am not a regular user of maven I have a hard time to accomplish this in Eclipse.
I cannot just checkout the pom.xml since it is a file.
If I use use,in Eclipse:

File --> Import --> Check-out maven projects from SCM.
If I only select the pom.xml I get a message saying it must be directory.

I have alread set parent in the cobertura plugin pom.xml

 <parent>
       <groupId>org.jvnet.hudson.plugins</groupId>
       <artifactId>plugin</artifactId>
       <version>1.319</version>
       <relativePath>../pom.xml</relativePath>
   </parent>

I have no parent pom.xml!

Do I have  to import the whole hudson project????

I am confused.

Br,

//mikael


-----Original Message-----
From: Vojtech Juranek [mailto:[hidden email]]
Sent: den 23 februari 2010 15:49
To: [hidden email]
Subject: Re: Make a patch for plugin and test

>  Hi,
>
> How much of the source do I need to check-out? Just main? Or everyting
> including plug-in:s?
just trunk/hudson/plugins/pom.xml and references therein... but I would advice you to use <parent>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.319</version>
</parent>
and let maven to donwload what it needs  (unless you need to do some private changes in Hudson core etc.)

> Br,
>
> //mikael
>
> -----Original Message-----
> From: Vojtech Juranek [mailto:[hidden email]]
> Sent: den 23 februari 2010 09:10
> To: [hidden email]
> Subject: Re: Make a patch for plugin and test
>
> > Hi,
> >
> > I have imported the cobertura project in Eclipse using maven and svn
> > plugin. I have modified the file I wanted in cobertura plug-in.
> >
> > Then I did 'maven build' from within m2 menu in Eclipse and got the
> > folllwoing. I am not an expert on maven so I don't know what is
> > happening. Can any one tell me lwhat is going on and what I need to do?
>
> I think (i've looked at it very quicky), that maven is not able to
> find  parent pom. You have to check out Hudson sources and set-up path
> to  appropriate pom correctly in section <parent>
> <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>     <relativePath>../pom.xml</relativePath>
>   </parent>
>
> or change it to
> <parent>
>     <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>   </parent>
> so maven can deal with it itself
>
> > The result would be a fix for the cobertura plugin to show source
> > code even if build is not considered stable but succcessful.
> >
> > The instructions are on
> >
> > http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial
> >
> >  is not really for working with a patch but rather a fresh project.
> >
> > br,
> >
> > //mike
> >
> > [INFO] Scanning for projects...
> >
> > [ERROR] The build could not read 1 project -> [Help 1]
> >
> > [ERROR] The project
> > org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT
> >  (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error
> >
> > [ERROR] Non-resolvable parent POM
> > org.jvnet.hudson.plugins:plugin:1.319
> > for org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to
> > resolve POM for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:
> >
> > ----------
> >
> > 1) org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > ----------
> >
> > 1 required artifact is missing.
> >
> > for artifact:
> >
> > org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > from the specified remote repositories:
> >
> > central (http://repo1.maven.org/maven2, releases=true,
> > snapshots=false)
> >
> > -> [Help 2]
> >
> > [ERROR]
> >
> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > the -e switch.
> >
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >
> > [ERROR]
> >
> > [ERROR] For more information about the errors and possible
> > solutions,  please read the following articles:
> >
> > [ERROR] [Help 1]
> >
> > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingExce
> > ption
> >
> > [ERROR] [Help 2]
> >
> >
> >http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExc
> >epti
> >o n
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email] =============================
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email]
> > =============================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Reply | Threaded
Open this post in threaded view
|

RE: Make a patch for plugin and test

Mikael Petterson
Thanks!
 
I got this working. I was a proxy problem since I am behind a company firewall.
 
br,
 
//mikael


From: Justin Holzer [mailto:[hidden email]]
Sent: den 25 februari 2010 20:37
To: [hidden email]
Cc: Mikael Petterson
Subject: Re: Make a patch for plugin and test



Mikael,

My suggestion is that you simply check the plugin out as a generic Eclipse project. Once you check out the plugin, open up a console, go to the directory where you checked the plugin out, and run the following maven command:

    mvn eclipse:eclipse

This will create all of the necessary Eclipse project files for the plugin, including the ".classpath" file. Once maven is done, go back in to Eclipse and do a refresh on your project folder in your Package/Project Explorer and it should now appear as a Java project. You will probably want to have the Maven plugin for Eclipse installed as well, if you do not already, but that is optional.

You do not need the source for anything other than the plugin. Maven will automagically download all the dependencies for you if you don't already have them. If you ever need to update the Eclipse project files, you can always run the above Maven command again to regenerate the .project and .classpath files.

- Justin

On Tue, Feb 23, 2010 at 10:31 AM, Mikael Petterson <[hidden email]> wrote:
Hi,

Since I am not a regular user of maven I have a hard time to accomplish this in Eclipse.
I cannot just checkout the pom.xml since it is a file.
If I use use,in Eclipse:

File --> Import --> Check-out maven projects from SCM.
If I only select the pom.xml I get a message saying it must be directory.

I have alread set parent in the cobertura plugin pom.xml

 <parent>
       <groupId>org.jvnet.hudson.plugins</groupId>
       <artifactId>plugin</artifactId>
       <version>1.319</version>
       <relativePath>../pom.xml</relativePath>
   </parent>

I have no parent pom.xml!

Do I have  to import the whole hudson project????

I am confused.

Br,

//mikael


-----Original Message-----
From: Vojtech Juranek [mailto:[hidden email]]
Sent: den 23 februari 2010 15:49
To: [hidden email]
Subject: Re: Make a patch for plugin and test

>  Hi,
>
> How much of the source do I need to check-out? Just main? Or everyting
> including plug-in:s?
just trunk/hudson/plugins/pom.xml and references therein... but I would advice you to use <parent>
    <groupId>org.jvnet.hudson.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>1.319</version>
</parent>
and let maven to donwload what it needs  (unless you need to do some private changes in Hudson core etc.)

> Br,
>
> //mikael
>
> -----Original Message-----
> From: Vojtech Juranek [mailto:[hidden email]]
> Sent: den 23 februari 2010 09:10
> To: [hidden email]
> Subject: Re: Make a patch for plugin and test
>
> > Hi,
> >
> > I have imported the cobertura project in Eclipse using maven and svn
> > plugin. I have modified the file I wanted in cobertura plug-in.
> >
> > Then I did 'maven build' from within m2 menu in Eclipse and got the
> > folllwoing. I am not an expert on maven so I don't know what is
> > happening. Can any one tell me lwhat is going on and what I need to do?
>
> I think (i've looked at it very quicky), that maven is not able to
> find  parent pom. You have to check out Hudson sources and set-up path
> to  appropriate pom correctly in section <parent>
> <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>     <relativePath>../pom.xml</relativePath>
>   </parent>
>
> or change it to
> <parent>
>     <groupId>org.jvnet.hudson.plugins</groupId>
>     <artifactId>plugin</artifactId>
>     <version>1.319</version>
>   </parent>
> so maven can deal with it itself
>
> > The result would be a fix for the cobertura plugin to show source
> > code even if build is not considered stable but succcessful.
> >
> > The instructions are on
> >
> > http://wiki.hudson-ci.org/display/HUDSON/Plugin+tutorial
> >
> >  is not really for working with a patch but rather a fresh project.
> >
> > br,
> >
> > //mike
> >
> > [INFO] Scanning for projects...
> >
> > [ERROR] The build could not read 1 project -> [Help 1]
> >
> > [ERROR] The project
> > org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT
> >  (C:\Users\eraonel\opensource\cobertura\pom.xml) has 1 error
> >
> > [ERROR] Non-resolvable parent POM
> > org.jvnet.hudson.plugins:plugin:1.319
> > for org.jvnet.hudson.plugins:cobertura:0.8.11-SNAPSHOT: Failed to
> > resolve POM for org.jvnet.hudson.plugins:plugin:1.319 due to Missing:
> >
> > ----------
> >
> > 1) org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > ----------
> >
> > 1 required artifact is missing.
> >
> > for artifact:
> >
> > org.jvnet.hudson.plugins:plugin:pom:1.319
> >
> > from the specified remote repositories:
> >
> > central (http://repo1.maven.org/maven2, releases=true,
> > snapshots=false)
> >
> > -> [Help 2]
> >
> > [ERROR]
> >
> > [ERROR] To see the full stack trace of the errors, re-run Maven with
> > the -e switch.
> >
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >
> > [ERROR]
> >
> > [ERROR] For more information about the errors and possible
> > solutions,  please read the following articles:
> >
> > [ERROR] [Help 1]
> >
> > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingExce
> > ption
> >
> > [ERROR] [Help 2]
> >
> >
> >http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelExc
> >epti
> >o n
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email] =============================
> >
> >
> >
> > =============================
> > Ericsson AB
> >
> > Mikael Petterson
> > Software Designer
> > Mobile: +46-(0)70-2673044
> > Email: [hidden email]
> > =============================
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]