You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by jacksonraniel <ja...@ig.com.br> on 2013/09/19 09:50:03 UTC

Stack Overflow Questions Tags Users Badges Unanswered Ask Question maven-obr-plugin generating an empty repository.xml file

	I`m trying to generate a repository.xml file using maven-obr-plugin to use
the xml in the Felix OSGi. In my pom.xml I'm declaring the
pluginrepo-relfile:///C:/[...]/workspacetrueand indicating the
distributionManagement    repo-rel    file:///C:/[...]/workspacebut the
repository.xml file are generated with just these lines<?xml version="1.0"
encoding="ISO-8859-1" standalone="no"?>I don't know why the rest of the file
are not generated. Can someone help me?Thank's



--
View this message in context: http://apache-felix.18485.x6.nabble.com/Stack-Overflow-Questions-Tags-Users-Badges-Unanswered-Ask-Question-maven-obr-plugin-generating-an-eme-tp5005069.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

Re: maven-obr-plugin generating an empty repository.xml file

Posted by jacksonraniel <ja...@ig.com.br>.
Roland, thank you so much for you help.

The problem was with the maven3 and it aparently fixed, like you can see it 
here <https://issues.apache.org/jira/browse/FELIX-3031>  .

In my case I just needed to take out the "SNAPSHOT" word from the jar name.



--
View this message in context: http://apache-felix.18485.x6.nabble.com/maven-obr-plugin-generating-an-empty-repository-xml-file-tp5005069p5005186.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: maven-obr-plugin generating an empty repository.xml file

Posted by Roland <wg...@ids.de>.
hm...hard to say. If the repository.xml file is generated than you know that
something is going wrong with the deployment. Does a
WsdlDescriptorProvider-1.0.0-SNAPSHOT.jar file exist in the target directory
and in your maven-repository? Try "mvn clean install deploy" if not.




--
View this message in context: http://apache-felix.18485.x6.nabble.com/maven-obr-plugin-generating-an-empty-repository-xml-file-tp5005069p5005078.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: maven-obr-plugin generating an empty repository.xml file

Posted by jacksonraniel <ja...@ig.com.br>.
Thank you for your help Roland. Here comes my pom.xml

<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>
	<packaging>bundle</packaging>
	<groupId>com.WsdlDescriptorProvider</groupId>
	<artifactId>WsdlDescriptorProvider</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<name>Wsdl Descriptor Provider</name>
	<description>Implementation of WSDL Descriptor</description>

	<dependencies>
		<dependency>
			<groupId>com.WsdlDescriptor</groupId>
			<artifactId>WsdlDescriptor</artifactId>
			<version>1.0.0-SNAPSHOT</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>2.0.1</version>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
						<Private-Package>com.wsdlDescriptor.impl</Private-Package>
					</instructions>
					<remoteOBR>repo-rel</remoteOBR>
					<prefixUrl>file:///home/[...]/workspace</prefixUrl>
					<ignoreLock>true</ignoreLock>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-ipojo-plugin</artifactId>
				<version>1.6.0</version>
				<executions>
					<execution>
						<goals>
							<goal>ipojo-bundle</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
 			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
		</plugins>
	</build>
		<distributionManagement>
    
    <repository>
        <id>repo-rel</id>
        <url>file:///home/[...]/workspace</url>
    </repository>
    </distributionManagement>
</project>



--
View this message in context: http://apache-felix.18485.x6.nabble.com/maven-obr-plugin-generating-an-empty-repository-xml-file-tp5005069p5005076.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: maven-obr-plugin generating an empty repository.xml file

Posted by Roland <wg...@ids.de>.
hi,
first: you should use the maven-bundle-plugin instead of the
maven-obr-plugin!
second: please post your pom.

Regards
Roland



--
View this message in context: http://apache-felix.18485.x6.nabble.com/maven-obr-plugin-generating-an-empty-repository-xml-file-tp5005069p5005075.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org