You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Steven E. Harris" <se...@panix.com> on 2007/02/06 03:42:41 UTC

Is maven-bundle-plugin getting deployed to the wrong directory?

When I try to rely upon downloading the maven-bundle-plugin from the
Apache Snapshot Repository at

  http://people.apache.org/repo/m2-snapshot-repository

by using a pluginRepository POM element like this:

  <pluginRepositories>
    <pluginRepository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Plugin Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>


Maven is unable to locate the maven-bundle-plugin:

,----
| [INFO] ------------------------------------------------------------------------
| [ERROR] BUILD ERROR
| [INFO] ------------------------------------------------------------------------
| [INFO] The plugin 'org.apache.felix:maven-bundle-plugin' does not exist or no valid version could be found
`----

I see that the bundle plugin snapshots are sitting in the

  org/apache/felix/maven-bundle-plugin/

directory in the repository, but I'm wondering if the plugin should
really be located at

  org/apache/felix/plugins/maven-bundle-plugin/
                   ^^^^^^^

like the other two Felix-produced Maven plugins.

-- 
Steven E. Harris

Re: Is maven-bundle-plugin getting deployed to the wrong directory?

Posted by "Steven E. Harris" <se...@panix.com>.
"Richard S. Hall" <he...@ungoverned.org> writes:

> The groupId is "org.apache.felix" and the artifactId is
> "maven-bundle-plugin", so it is in the correct directory.

It turns out I needed to add this clause to my top-level POM:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>${felix.version}</version>
      </plugin>
      <!-- ... -->
    </plugins>
  </build>


That is, if I didn't tell Maven which version of the plugin to use, it
looked for it first in the central plugin repository (looking for a
released version), and for some reason it wouldn't continue its search
to the snapshot repository.

-- 
Steven E. Harris

Re: Is maven-bundle-plugin getting deployed to the wrong directory?

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Steven E. Harris wrote:
> I see that the bundle plugin snapshots are sitting in the
>
>   org/apache/felix/maven-bundle-plugin/
>
> directory in the repository, but I'm wondering if the plugin should
> really be located at
>
>   org/apache/felix/plugins/maven-bundle-plugin/
>                    ^^^^^^^
>
> like the other two Felix-produced Maven plugins.
>   

The groupId is "org.apache.felix" and the artifactId is 
"maven-bundle-plugin", so it is in the correct directory. Admittedly, 
the maven repo directory structure doesn't match the svn repo structure, 
but I don't see the need for that. I don't see the need for 
"org.apache.felix.plugins" as a groupId, so I would like to kill it off.

The main issue we have is that we have never really settled on how we 
want to structure our svn repo, but I think that decision should be 
independent of how we organize artifacts in the maven repo. Others?

-> richard

Re: Is maven-bundle-plugin getting deployed to the wrong directory?

Posted by Carlos Sanchez <ca...@apache.org>.
that doesn't matter as long as the groupId and the location in the repo match

try moving your $HOME/.m2/repository out of the way and executing maven again


On 2/5/07, Steven E. Harris <se...@panix.com> wrote:
> When I try to rely upon downloading the maven-bundle-plugin from the
> Apache Snapshot Repository at
>
>   http://people.apache.org/repo/m2-snapshot-repository
>
> by using a pluginRepository POM element like this:
>
>   <pluginRepositories>
>     <pluginRepository>
>       <id>apache.snapshots</id>
>       <name>Apache Snapshot Plugin Repository</name>
>       <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>       <snapshots>
>         <enabled>true</enabled>
>       </snapshots>
>     </pluginRepository>
>   </pluginRepositories>
>
>
> Maven is unable to locate the maven-bundle-plugin:
>
> ,----
> | [INFO] ------------------------------------------------------------------------
> | [ERROR] BUILD ERROR
> | [INFO] ------------------------------------------------------------------------
> | [INFO] The plugin 'org.apache.felix:maven-bundle-plugin' does not exist or no valid version could be found
> `----
>
> I see that the bundle plugin snapshots are sitting in the
>
>   org/apache/felix/maven-bundle-plugin/
>
> directory in the repository, but I'm wondering if the plugin should
> really be located at
>
>   org/apache/felix/plugins/maven-bundle-plugin/
>                    ^^^^^^^
>
> like the other two Felix-produced Maven plugins.
>
> --
> Steven E. Harris
>


-- 
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
                             -- The Princess Bride