[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[m2e-users] Failure to resolve plugins
|
Just to get a sample to run, I need to know where my very first maven
project fails.
I've added the lines (attached to the end of this mail) to pom.xml and
get the errors:
Error 1:
Project build error: Unresolveable build extension: Plugin
org.apache.felix:maven-bundle-plugin:1.4.3 or one of its dependencies
could not be resolved: Failed to collect
dependencies for org.apache.felix:maven-bundle-plugin:jar:1.4.3 ()
Eclipse indicates this error in the very first line of the pom.xml. The
jar-file "maven-bundle-plugin-1.4.3.jar" has been added to
$HOME\.m2\repository\org\apache\felix\maven-bundle-plugin\1.4.3 so I
think the plugin could be resolved. But I can't guess which dependencies
may have failed.
Error 2:
Project build error: Unknown packaging: bundle
Eclipse indicates this error in the 8tht line ("
<packaging>bundle</packaging>") of the pom.xml. I've no clue what this
might mean.
Ulrich
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.day.cq5.myapp</groupId>
<artifactId>core</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>CQ5 MyApp Core</name>
<description>This is the Core module</description>
<packaging>bundle</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>
com.day.cq5.myapp.*;version=${project.version} </Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.day.cq.wcm</groupId>
<artifactId>cq-wcm-api</artifactId>
<version>5.5.0</version>
</dependency>
<dependency>
<groupId>com.day.cq</groupId>
<artifactId>cq-commons</artifactId>
<version>5.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.api</artifactId>
<version>2.2.4</version>
</dependency>
</dependencies>
</project>