On 03/08/07, Arash Amiri <[EMAIL PROTECTED]> wrote: > ok, below is my pom.xml > here is what I did: > - added commons-httpclient.jar to the classpath (as an environment-variable) > - called "mvn clean package" > - started the equinox-platform (java -jar equinox.jar -console) > - installed the bundle > - start the bundle --> ERROR: Missing Constraint: commons-httpclient > > <?xml version="1.0" encoding="UTF-8"?> > <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/maven-v4_0_0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>TestOsgi</groupId> > <artifactId>TestOsgi</artifactId> > <packaging>bundle</packaging> > <name>TestOsgi</name> > <version>1.0</version> > <url>http://maven.apache.org</url> > <build> > <pluginManagement> > <plugins> > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <inherited>true</inherited> > <configuration> > <source>1.5</source> > <target>1.5</target> > </configuration> > </plugin> > </plugins> > </pluginManagement> > <plugins> > <plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-bundle-plugin</artifactId> > <extensions>true</extensions> > <configuration> > <instructions> > <Export-Package>org.apache.commons.httpclient.methods.*</Export-Package> > <Export-Package>at.osgi</Export-Package>
^I think this is the problem - by setting two <Export-Package> stanzas the second definition is overwriting the first, so the bundle-plugin will only get the second one (ie. "at.osgi") Export-Package (as described at http://www.aqute.biz/Code/Bnd) expects a comma separated list of packages, so try something like: <Export-Package>org.apache.commons.httpclient.methods.*,at.osgi</Export-Package> > <Bundle-Activator>at.osgi.Activator</Bundle-Activator> > </instructions> > </configuration> > </plugin> > </plugins> > </build> > <repositories> > <repository> > <id>apache.m2.incubator</id> > <name>Apache M2 Incubator Repository</name> > <url>http://people.apache.org/repo/m2-incubating-repository/</url> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>apache.m2.incubator</id> > <name>Apache M2 Incubator Repository</name> > <url>http://people.apache.org/repo/m2-incubating-repository/</url> > </pluginRepository> > </pluginRepositories> > <dependencies> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>3.8.1</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.osgi</groupId> > <artifactId>osgi_R4_core</artifactId> > <version>1.0</version> > </dependency> > <dependency> > <groupId>org.apache.felix</groupId> > <artifactId>org.osgi.core</artifactId> > <version>0.8.0-incubator</version> > </dependency> > <dependency> > <groupId>commons-httpclient</groupId> > <artifactId>commons-httpclient</artifactId> > <version>3.1-beta1</version> > </dependency> > </dependencies> > </project> > > > -- > DI Arash Amiri > Junior Researcher > > Research Studios Austria - Digital Memory Engineering > Austrian Research Centers GmbH > > Thurngasse 8/20, A-1090 Wien > T +43-1-585 0537-19 > F +43-1-585 3741 > M +43-664-825 1276 > HG Wien – FN 115980i – ATU14703506 > > http://dme.researchstudio.at > http://www.researchstudio.at > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Stuart --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
