[xwiki-devs] xwiki-core missing from maven?
Hi, I'm trying to build a plugin and am unable to resolve XwikiDefaultPlugin. In looking at the source I was expecting it to be in artifactId xwiki-core but I don't see this in the maven repository. I put the following in my pom.xml but maven still is unable to find xwiki-core but is quite happy to find and download xwiki-component. <dependency> <groupId>org.xwiki.platform</groupId> <artifactId>xwiki-core-component</artifactId> <version>${platform.core.version}</version> </dependency> <dependency> <groupId>org.xwiki.platform</groupId> <artifactId>xwiki-core</artifactId> <version>${platform.core.version}</version> </dependency> Anyone know how to resolve this? Thanks, Glenn
[email protected] wrote:
Hi,
I'm trying to build a plugin and am unable to resolve XwikiDefaultPlugin. In looking at the source I was expecting it to be in artifactId xwiki-core but I don't see this in the maven repository.
I put the following in my pom.xml but maven still is unable to find xwiki-core but is quite happy to find and download xwiki-component.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-core-component</artifactId>
<version>${platform.core.version}</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
Replace with: <groupId>com.xpn.xwiki.platform</groupId>
<artifactId>xwiki-core</artifactId>
<version>${platform.core.version}</version>
</dependency>
Anyone know how to resolve this?
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks, replacing org.xwiki.platform with com.xpn.xwiki.platform did the trick for me. I simply cloned the example from the component archetype and it didn't occur to me it would change from org to com.xpn. When adding code that references other classes in eclipse, is there an easy way to figure out what dependency to add other than looking for the source to see what the pom.xml for it has? -- Glenn
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergiu Dumitriu Sent: Monday, May 11, 2009 6:20 PM To: XWiki Developers Subject: Re: [xwiki-devs] xwiki-core missing from maven?
[email protected] wrote:
Hi,
I'm trying to build a plugin and am unable to resolve XwikiDefaultPlugin. In looking at the source I was expecting it to be in artifactId xwiki-core but I don't see this in the maven repository.
I put the following in my pom.xml but maven still is unable to find xwiki-core but is quite happy to find and download xwiki-component.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-core-component</artifactId>
<version>${platform.core.version}</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
Replace with: <groupId>com.xpn.xwiki.platform</groupId>
<artifactId>xwiki-core</artifactId>
<version>${platform.core.version}</version>
</dependency>
Anyone know how to resolve this?
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
[email protected] wrote:
Thanks, replacing org.xwiki.platform with com.xpn.xwiki.platform did the trick for me. I simply cloned the example from the component archetype and it didn't occur to me it would change from org to com.xpn.
When adding code that references other classes in eclipse, is there an easy way to figure out what dependency to add other than looking for the source to see what the pom.xml for it has?
Not really. The package name should be enough for components inside org.xwiki. The older ones, inside com.xpn.xwiki, will be phased out in time. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
glenn_engel@agilent.com -
Sergiu Dumitriu