You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vasyl Stashuk <va...@gmail.com> on 2005/07/17 10:59:00 UTC

[m2a3] Ignoring groupId for custom plugins

Hi!

I'm writing a custom plugin for M2. Here's the fragment of the plugin pom:

<project>
    <parent>
        <artifactId>maven-plugin-parent</artifactId>
        <groupId>org.apache.maven.plugins</groupId>
        <version>2.0-alpha-3</version>
    </parent>
    
    <modelVersion>4.0.0</modelVersion>
    
    <groupId>com.priocom.ftest</groupId>
    <artifactId>maven-ftest-plugin</artifactId>
    <packaging>maven-plugin</packaging>
    <version>1.0-SNAPSHOT</version>
...
</project>

And POM from the project using that plugin:

<project>
...
    <build>
        <plugins>
            <plugin>
                <groupId>com.priocom.ftest</groupId>
                <artifactId>maven-ftest-plugin</artifactId>
                <version>1.0-SNAPSHOT</version>
            </plugin>
        </plugins>
    </build>
</project>

When running m2 install on plugin project, plugin successfully gets
installed in local
repository on path
/home/vasyas/.m2/repository/com/priocom/ftest/maven-ftest-plugin/1.0-SNAPSHOT/maven-ftest-plugin-1.0-SNAPSHOT.jar

When running m2 on project that uses plugin, following error is produced:
java.io.FileNotFoundException:
http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-ftest-plugin/maven-ftest-plugin-RELEASE.version.txt.

Everything works fine, if plugin group in both POMs is declared as
"org.apache.maven.plugins".

Thanks in advance,
Vasyl Stashuk.

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


Re: [m2a3] Ignoring groupId for custom plugins

Posted by Brett Porter <br...@gmail.com>.
I think this bug was recently fixed - check JIRA's roadmap for beta-1.

Cheers,
Brett

On 7/17/05, Vasyl Stashuk <va...@gmail.com> wrote:
> Hi!
> 
> I'm writing a custom plugin for M2. Here's the fragment of the plugin pom:
> 
> <project>
>     <parent>
>         <artifactId>maven-plugin-parent</artifactId>
>         <groupId>org.apache.maven.plugins</groupId>
>         <version>2.0-alpha-3</version>
>     </parent>
> 
>     <modelVersion>4.0.0</modelVersion>
> 
>     <groupId>com.priocom.ftest</groupId>
>     <artifactId>maven-ftest-plugin</artifactId>
>     <packaging>maven-plugin</packaging>
>     <version>1.0-SNAPSHOT</version>
> ...
> </project>
> 
> And POM from the project using that plugin:
> 
> <project>
> ...
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>com.priocom.ftest</groupId>
>                 <artifactId>maven-ftest-plugin</artifactId>
>                 <version>1.0-SNAPSHOT</version>
>             </plugin>
>         </plugins>
>     </build>
> </project>
> 
> When running m2 install on plugin project, plugin successfully gets
> installed in local
> repository on path
> /home/vasyas/.m2/repository/com/priocom/ftest/maven-ftest-plugin/1.0-SNAPSHOT/maven-ftest-plugin-1.0-SNAPSHOT.jar
> 
> When running m2 on project that uses plugin, following error is produced:
> java.io.FileNotFoundException:
> http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-ftest-plugin/maven-ftest-plugin-RELEASE.version.txt.
> 
> Everything works fine, if plugin group in both POMs is declared as
> "org.apache.maven.plugins".
> 
> Thanks in advance,
> Vasyl Stashuk.
> 
> ---------------------------------------------------------------------
> 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: [m2a3] Ignoring groupId for custom plugins

Posted by Brett Porter <br...@gmail.com>.
I think you're original was correct, and the bug has been fixed in beta-1.

On 7/18/05, Vasyl Stashuk <va...@gmail.com> wrote:
> Hi, Allan!
> 
> Thanks for your reply.
> 
> When I change parent POM group id it says:
> 
> [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2
> Downloading: http://devel.priocom.com:9999/repository/com.priocom.test/poms/maven-plugin-parent-2.0-alpha-3.pom
> [WARNING] Unable to get resource from repository
> http://devel.priocom.com:9999/repository
> 
> Vasyl.
> 
> On 7/18/05, Allan Ramirez <ar...@exist.com> wrote:
> > Vasyl Stashuk wrote:
> >
> > >Hi!
> > >
> > >I'm writing a custom plugin for M2. Here's the fragment of the plugin pom:
> > >
> > ><project>
> > >    <parent>
> > >        <artifactId>maven-plugin-parent</artifactId>
> > >        <groupId>org.apache.maven.plugins</groupId>
> > >        <version>2.0-alpha-3</version>
> > >    </parent>
> > >
> > >    <modelVersion>4.0.0</modelVersion>
> > >
> > >    <groupId>com.priocom.ftest</groupId>
> > >    <artifactId>maven-ftest-plugin</artifactId>
> > >    <packaging>maven-plugin</packaging>
> > >    <version>1.0-SNAPSHOT</version>
> > >...
> > ></project>
> > >
> > >And POM from the project using that plugin:
> > >
> > ><project>
> > >...
> > >    <build>
> > >        <plugins>
> > >            <plugin>
> > >                <groupId>com.priocom.ftest</groupId>
> > >                <artifactId>maven-ftest-plugin</artifactId>
> > >                <version>1.0-SNAPSHOT</version>
> > >            </plugin>
> > >        </plugins>
> > >    </build>
> > ></project>
> > >
> > >When running m2 install on plugin project, plugin successfully gets
> > >installed in local
> > >repository on path
> > >/home/vasyas/.m2/repository/com/priocom/ftest/maven-ftest-plugin/1.0-SNAPSHOT/maven-ftest-plugin-1.0-SNAPSHOT.jar
> > >
> > >When running m2 on project that uses plugin, following error is produced:
> > >java.io.FileNotFoundException:
> > >http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-ftest-plugin/maven-ftest-plugin-RELEASE.version.txt.
> > >
> > >Everything works fine, if plugin group in both POMs is declared as
> > >"org.apache.maven.plugins".
> > >
> > >Thanks in advance,
> > >Vasyl Stashuk.
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> > >
> > >
> > Hi Vasyl,
> >
> > try this,
> > In your <parent> section, change the groupId to com.priocom.ftest
> >
> > <project>
> >     <parent>
> >         <artifactId>maven-plugin-parent</artifactId>
> >         <groupId>org.apache.maven.plugins</groupId> <!-- change this element to com.priocom.ftest -->
> >         <version>2.0-alpha-3</version>
> >     </parent>
> >
> >     <modelVersion>4.0.0</modelVersion>
> >
> >     <groupId>com.priocom.ftest</groupId>
> >     <artifactId>maven-ftest-plugin</artifactId>
> >     <packaging>maven-plugin</packaging>
> >     <version>1.0-SNAPSHOT</version>
> > ...
> > </project>
> >
> > -allan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 
> 
> --
> All the best,
> Vasyl Stashuk
> 
> ---------------------------------------------------------------------
> 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: [m2a3] Ignoring groupId for custom plugins

Posted by Vasyl Stashuk <va...@gmail.com>.
Hi, Allan!

Thanks for your reply.

When I change parent POM group id it says:

[WARNING] Unable to get resource from repository http://repo1.maven.org/maven2
Downloading: http://devel.priocom.com:9999/repository/com.priocom.test/poms/maven-plugin-parent-2.0-alpha-3.pom
[WARNING] Unable to get resource from repository
http://devel.priocom.com:9999/repository

Vasyl.

On 7/18/05, Allan Ramirez <ar...@exist.com> wrote:
> Vasyl Stashuk wrote:
> 
> >Hi!
> >
> >I'm writing a custom plugin for M2. Here's the fragment of the plugin pom:
> >
> ><project>
> >    <parent>
> >        <artifactId>maven-plugin-parent</artifactId>
> >        <groupId>org.apache.maven.plugins</groupId>
> >        <version>2.0-alpha-3</version>
> >    </parent>
> >
> >    <modelVersion>4.0.0</modelVersion>
> >
> >    <groupId>com.priocom.ftest</groupId>
> >    <artifactId>maven-ftest-plugin</artifactId>
> >    <packaging>maven-plugin</packaging>
> >    <version>1.0-SNAPSHOT</version>
> >...
> ></project>
> >
> >And POM from the project using that plugin:
> >
> ><project>
> >...
> >    <build>
> >        <plugins>
> >            <plugin>
> >                <groupId>com.priocom.ftest</groupId>
> >                <artifactId>maven-ftest-plugin</artifactId>
> >                <version>1.0-SNAPSHOT</version>
> >            </plugin>
> >        </plugins>
> >    </build>
> ></project>
> >
> >When running m2 install on plugin project, plugin successfully gets
> >installed in local
> >repository on path
> >/home/vasyas/.m2/repository/com/priocom/ftest/maven-ftest-plugin/1.0-SNAPSHOT/maven-ftest-plugin-1.0-SNAPSHOT.jar
> >
> >When running m2 on project that uses plugin, following error is produced:
> >java.io.FileNotFoundException:
> >http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-ftest-plugin/maven-ftest-plugin-RELEASE.version.txt.
> >
> >Everything works fine, if plugin group in both POMs is declared as
> >"org.apache.maven.plugins".
> >
> >Thanks in advance,
> >Vasyl Stashuk.
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
> >
> Hi Vasyl,
> 
> try this,
> In your <parent> section, change the groupId to com.priocom.ftest
> 
> <project>
>     <parent>
>         <artifactId>maven-plugin-parent</artifactId>
>         <groupId>org.apache.maven.plugins</groupId> <!-- change this element to com.priocom.ftest -->
>         <version>2.0-alpha-3</version>
>     </parent>
> 
>     <modelVersion>4.0.0</modelVersion>
> 
>     <groupId>com.priocom.ftest</groupId>
>     <artifactId>maven-ftest-plugin</artifactId>
>     <packaging>maven-plugin</packaging>
>     <version>1.0-SNAPSHOT</version>
> ...
> </project>
> 
> -allan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
All the best,
Vasyl Stashuk

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


Re: [m2a3] Ignoring groupId for custom plugins

Posted by Allan Ramirez <ar...@exist.com>.
Vasyl Stashuk wrote:

>Hi!
>
>I'm writing a custom plugin for M2. Here's the fragment of the plugin pom:
>
><project>
>    <parent>
>        <artifactId>maven-plugin-parent</artifactId>
>        <groupId>org.apache.maven.plugins</groupId>
>        <version>2.0-alpha-3</version>
>    </parent>
>    
>    <modelVersion>4.0.0</modelVersion>
>    
>    <groupId>com.priocom.ftest</groupId>
>    <artifactId>maven-ftest-plugin</artifactId>
>    <packaging>maven-plugin</packaging>
>    <version>1.0-SNAPSHOT</version>
>...
></project>
>
>And POM from the project using that plugin:
>
><project>
>...
>    <build>
>        <plugins>
>            <plugin>
>                <groupId>com.priocom.ftest</groupId>
>                <artifactId>maven-ftest-plugin</artifactId>
>                <version>1.0-SNAPSHOT</version>
>            </plugin>
>        </plugins>
>    </build>
></project>
>
>When running m2 install on plugin project, plugin successfully gets
>installed in local
>repository on path
>/home/vasyas/.m2/repository/com/priocom/ftest/maven-ftest-plugin/1.0-SNAPSHOT/maven-ftest-plugin-1.0-SNAPSHOT.jar
>
>When running m2 on project that uses plugin, following error is produced:
>java.io.FileNotFoundException:
>http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-ftest-plugin/maven-ftest-plugin-RELEASE.version.txt.
>
>Everything works fine, if plugin group in both POMs is declared as
>"org.apache.maven.plugins".
>
>Thanks in advance,
>Vasyl Stashuk.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>  
>
Hi Vasyl,

try this,
In your <parent> section, change the groupId to com.priocom.ftest

<project>
    <parent>
        <artifactId>maven-plugin-parent</artifactId>
        <groupId>org.apache.maven.plugins</groupId> <!-- change this element to com.priocom.ftest -->
        <version>2.0-alpha-3</version>
    </parent>
    
    <modelVersion>4.0.0</modelVersion>
    
    <groupId>com.priocom.ftest</groupId>
    <artifactId>maven-ftest-plugin</artifactId>
    <packaging>maven-plugin</packaging>
    <version>1.0-SNAPSHOT</version>
...
</project>

-allan

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