2008/12/5 Heiko Seeberger <[EMAIL PROTECTED]>

> Stuart,
>
> Sounds good.
>
> As I am just starting with Maven please give me a little hint what version
> I have to use in the plugin-element:
>  <build>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.felix</groupId>
>        <artifactId>maven-bundle-plugin</artifactId>
>        <version>1.5.0-SNAPSHOT</version>
>        ...
>

Hi Heiko,

that's the correct version - but because this is a snapshot and not a
release you also
need to add the apache snapshot repository to the <pluginRepositories>section
of  your pom (or one of your parent poms) like so:

<project>

  <!-- etc... -->

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

</project>

otherwise Maven won't find the snapshot - the other alternative is to
checkout the source:

   https://svn.apache.org/repos/asf/felix/trunk/bundleplugin

and do an "mvn clean install", which will build and install the snapshot in
your local repo

HTH

will fail with:
> Project build error:Cannot resolve pre-scanned plugin artifact (for use as
> an extension): org.apache.felix:maven-bundle-plugin: Failed to resolve
> extension plugin:
> org.apache.felix:maven-bundle-plugin:maven-plugin:1.5.0-SNAPSHOT   pom.xml
> osgi.bundle2    line 1  Maven Problem
>
> If I do not specify a version Maven will use 1.4.3.
>
> Thanx
> Heiko
>
>
> On 05.12.2008, at 15:05, Stuart McCulloch wrote:
>
>  Hi folks,
>>
>> I've just deployed the first 1.5.0-SNAPSHOT of the maven-bundle-plugin
>> that includes the latest Bnd tool (0.0.295) plus a few minor patches - the
>> new plugin now requires Java 5 or above to run, so if this is a problem
>> for
>> anyone please let me know :)
>>
>> to test it, either compile from source or use the apache snapshot repo:
>>
>>  <pluginRepositories>
>>   <pluginRepository>
>>     <id>apache.snapshots</id>
>>     <name>snapshot plugins</name>
>>     <url>
>>       http://people.apache.org/repo/m2-snapshot-repository
>>     </url>
>>     <releases>
>>       <enabled>false</enabled>
>>     </releases>
>>     <snapshots>
>>       <enabled>true</enabled>
>>     </snapshots>
>>   </pluginRepository>
>>  </pluginRepositories>
>>
>> Please report any regressions to
>> http://issues.apache.org/jira/browse/FELIX
>>
>> --
>> Cheers, Stuart
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Cheers, Stuart

Reply via email to