The maven-jar-plugin version 2.1-SNAPSHOT does not exist on ibiblio,
as you can see here:
http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-jar-plugin/

It only exists in the Codehaus Maven repo:
http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.1-SNAPSHOT/

Add this to your pom.xml and try again:
  <repositories>
    <repository>
      <id>Maven Snapshots</id>
      <url>http://snapshots.maven.codehaus.org/maven2/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>Maven Snapshots</id>
      <url>http://snapshots.maven.codehaus.org/maven2/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>

Wayne


On 3/6/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote:
> I am using maven 2.0.2 and I wish to filter pom.xml and pom.properties
> and the META-INF/maven directory from built jar archives. I have tried this:
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <addMavenDescriptor>false</addMavenDescriptor>
> </archive>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> But I receive the following message:
>
> [ERROR] BUILD ERROR
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: org.apache.maven.plugins:maven-jar-plugin
>
> Reason: Error getting POM for
> 'org.apache.maven.plugins:maven-jar-plugin' from t
> he repository: Failed to resolve artifact, possibly due to a repository
> list tha
> t is not appropriately equipped for this artifact's metadata.
>  org.apache.maven.plugins:maven-jar-plugin:pom:2.1-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
> What am I missing? How can I make this work?
>
> Thanks,
>
> Brad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to