You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Anonimac Anonimac <ni...@gmail.com> on 2005/11/01 19:16:01 UTC

Problem with plugin compilation

Hi,
I'm following example from "Guide to developing Java plugins" and I can't
compile plugin. It fails with

[INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
exist
or no valid version could be found

If I change packaging parameter to jar, everything compiles.

This is my pom.xml:

<project>
<modelVersion>4.0.0</modelVersion>
<groupId>sedamit.maven.javacvs</groupId>
<artifactId>javacvs-plugin</artifactId>

<packaging>maven-plugin</packaging>
<version>1.0</version>
<name>JavaCVS Maven Plugin</name>

<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
</project>


Any help appreciated.

Filip

Re: Problem with plugin compilation

Posted by Brett Porter <br...@gmail.com>.
This could actually be filed as a bug. It seems that the failed
download recorded locally that the plugin was not available. -U forces
an update (which also would have happened a day later).

- Brett

On 11/2/05, Nitko2 <ni...@gmail.com> wrote:
> Yes, it works now.
>
> Brett, thank you. Can you tell me what was I doing wrong?
>
> Brett Porter wrote:
> > What about if you run with -U ?
> >
> > - Brett
> >
> > On 11/2/05, Nitko2 <ni...@gmail.com> wrote:
> >
> >>No, repository is available all the time and i get this error all the time. I also have
> >>maven-plugin-plugin in local repository.
> >>
> >>Everything is the same as in tutorial, except local repository location which I changed in
> >>M2_HOME/conf/settings.xml
> >>
> >>
> >>
> >>
> >>
> >>Brett Porter wrote:
> >>
> >>>It seems like there was an error contacting the repository while
> >>>downloading the plugin plugin. Are there any other errors? Does it
> >>>happen on repeated attempts?
> >>>
> >>>- Brett
> >>>
> >>>On 11/2/05, Anonimac Anonimac <ni...@gmail.com> wrote:
> >>>
> >>>
> >>>>Hi,
> >>>>I'm following example from "Guide to developing Java plugins" and I can't
> >>>>compile plugin. It fails with
> >>>>
> >>>>[INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
> >>>>exist
> >>>>or no valid version could be found
> >>>>
> >>>>If I change packaging parameter to jar, everything compiles.
> >>>>
> >>>>This is my pom.xml:
> >>>>
> >>>><project>
> >>>><modelVersion>4.0.0</modelVersion>
> >>>><groupId>sedamit.maven.javacvs</groupId>
> >>>><artifactId>javacvs-plugin</artifactId>
> >>>>
> >>>><packaging>maven-plugin</packaging>
> >>>><version>1.0</version>
> >>>><name>JavaCVS Maven Plugin</name>
> >>>>
> >>>><dependencies>
> >>>><dependency>
> >>>><groupId>org.apache.maven</groupId>
> >>>><artifactId>maven-plugin-api</artifactId>
> >>>><version>2.0</version>
> >>>></dependency>
> >>>></dependencies>
> >>>></project>
> >>>>
> >>>>
> >>>>Any help appreciated.
> >>>>
> >>>>Filip
> >>>>
> >>>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>>For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with plugin compilation

Posted by Nitko2 <ni...@gmail.com>.
Yes, it works now.

Brett, thank you. Can you tell me what was I doing wrong?

Brett Porter wrote:
> What about if you run with -U ?
> 
> - Brett
> 
> On 11/2/05, Nitko2 <ni...@gmail.com> wrote:
> 
>>No, repository is available all the time and i get this error all the time. I also have
>>maven-plugin-plugin in local repository.
>>
>>Everything is the same as in tutorial, except local repository location which I changed in
>>M2_HOME/conf/settings.xml
>>
>>
>>
>>
>>
>>Brett Porter wrote:
>>
>>>It seems like there was an error contacting the repository while
>>>downloading the plugin plugin. Are there any other errors? Does it
>>>happen on repeated attempts?
>>>
>>>- Brett
>>>
>>>On 11/2/05, Anonimac Anonimac <ni...@gmail.com> wrote:
>>>
>>>
>>>>Hi,
>>>>I'm following example from "Guide to developing Java plugins" and I can't
>>>>compile plugin. It fails with
>>>>
>>>>[INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
>>>>exist
>>>>or no valid version could be found
>>>>
>>>>If I change packaging parameter to jar, everything compiles.
>>>>
>>>>This is my pom.xml:
>>>>
>>>><project>
>>>><modelVersion>4.0.0</modelVersion>
>>>><groupId>sedamit.maven.javacvs</groupId>
>>>><artifactId>javacvs-plugin</artifactId>
>>>>
>>>><packaging>maven-plugin</packaging>
>>>><version>1.0</version>
>>>><name>JavaCVS Maven Plugin</name>
>>>>
>>>><dependencies>
>>>><dependency>
>>>><groupId>org.apache.maven</groupId>
>>>><artifactId>maven-plugin-api</artifactId>
>>>><version>2.0</version>
>>>></dependency>
>>>></dependencies>
>>>></project>
>>>>
>>>>
>>>>Any help appreciated.
>>>>
>>>>Filip
>>>>
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with plugin compilation

Posted by Brett Porter <br...@gmail.com>.
What about if you run with -U ?

- Brett

On 11/2/05, Nitko2 <ni...@gmail.com> wrote:
> No, repository is available all the time and i get this error all the time. I also have
> maven-plugin-plugin in local repository.
>
> Everything is the same as in tutorial, except local repository location which I changed in
> M2_HOME/conf/settings.xml
>
>
>
>
>
> Brett Porter wrote:
> > It seems like there was an error contacting the repository while
> > downloading the plugin plugin. Are there any other errors? Does it
> > happen on repeated attempts?
> >
> > - Brett
> >
> > On 11/2/05, Anonimac Anonimac <ni...@gmail.com> wrote:
> >
> >>Hi,
> >>I'm following example from "Guide to developing Java plugins" and I can't
> >>compile plugin. It fails with
> >>
> >>[INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
> >>exist
> >>or no valid version could be found
> >>
> >>If I change packaging parameter to jar, everything compiles.
> >>
> >>This is my pom.xml:
> >>
> >><project>
> >><modelVersion>4.0.0</modelVersion>
> >><groupId>sedamit.maven.javacvs</groupId>
> >><artifactId>javacvs-plugin</artifactId>
> >>
> >><packaging>maven-plugin</packaging>
> >><version>1.0</version>
> >><name>JavaCVS Maven Plugin</name>
> >>
> >><dependencies>
> >><dependency>
> >><groupId>org.apache.maven</groupId>
> >><artifactId>maven-plugin-api</artifactId>
> >><version>2.0</version>
> >></dependency>
> >></dependencies>
> >></project>
> >>
> >>
> >>Any help appreciated.
> >>
> >>Filip
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with plugin compilation

Posted by Nitko2 <ni...@gmail.com>.
No, repository is available all the time and i get this error all the time. I also have 
maven-plugin-plugin in local repository.

Everything is the same as in tutorial, except local repository location which I changed in 
M2_HOME/conf/settings.xml





Brett Porter wrote:
> It seems like there was an error contacting the repository while
> downloading the plugin plugin. Are there any other errors? Does it
> happen on repeated attempts?
> 
> - Brett
> 
> On 11/2/05, Anonimac Anonimac <ni...@gmail.com> wrote:
> 
>>Hi,
>>I'm following example from "Guide to developing Java plugins" and I can't
>>compile plugin. It fails with
>>
>>[INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
>>exist
>>or no valid version could be found
>>
>>If I change packaging parameter to jar, everything compiles.
>>
>>This is my pom.xml:
>>
>><project>
>><modelVersion>4.0.0</modelVersion>
>><groupId>sedamit.maven.javacvs</groupId>
>><artifactId>javacvs-plugin</artifactId>
>>
>><packaging>maven-plugin</packaging>
>><version>1.0</version>
>><name>JavaCVS Maven Plugin</name>
>>
>><dependencies>
>><dependency>
>><groupId>org.apache.maven</groupId>
>><artifactId>maven-plugin-api</artifactId>
>><version>2.0</version>
>></dependency>
>></dependencies>
>></project>
>>
>>
>>Any help appreciated.
>>
>>Filip
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problem with plugin compilation

Posted by Brett Porter <br...@gmail.com>.
It seems like there was an error contacting the repository while
downloading the plugin plugin. Are there any other errors? Does it
happen on repeated attempts?

- Brett

On 11/2/05, Anonimac Anonimac <ni...@gmail.com> wrote:
> Hi,
> I'm following example from "Guide to developing Java plugins" and I can't
> compile plugin. It fails with
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-plugin-plugin' does not
> exist
> or no valid version could be found
>
> If I change packaging parameter to jar, everything compiles.
>
> This is my pom.xml:
>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>sedamit.maven.javacvs</groupId>
> <artifactId>javacvs-plugin</artifactId>
>
> <packaging>maven-plugin</packaging>
> <version>1.0</version>
> <name>JavaCVS Maven Plugin</name>
>
> <dependencies>
> <dependency>
> <groupId>org.apache.maven</groupId>
> <artifactId>maven-plugin-api</artifactId>
> <version>2.0</version>
> </dependency>
> </dependencies>
> </project>
>
>
> Any help appreciated.
>
> Filip
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org