On Aug 13, 2008, at 4:37 PM, Jason van Zyl wrote:

Vincent,

Should we just build the whole XWiki tree, or do you want to give me some settings for your project that I can use?

http://ci.sonatype.org/view/Community%20Test%20Projects/job/XWiki%20Enterprise/2/console

Ah right I had forgotten you didn't have the xwiki remote repo defined in your settings.xml ;)

You can either:
* Add it. See 
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
* Build the whole stuff. That's the 2 SVN URLs below (platform and enterprise)

Thanks
-Vincent

On 13-Aug-08, at 12:16 AM, Vincent Massol wrote:

Hi John/Jason,

On Aug 13, 2008, at 2:12 AM, Jason van Zyl wrote:

Can you give me the SVN URL for the build you want us to run and the goals/options you use?

XWiki platform build:
http://svn.xwiki.org/svnroot/xwiki/platform/trunks/
mvn clean install

XWiki Enterprise build:
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/
mvn clean install

To reproduce this exact problem you only need to check out
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/ and run mvn install.

Thanks
-Vincent

I will set it up in Hudson and add it to our community builds for testing.

On 12-Aug-08, at 3:28 PM, Vincent Massol wrote:

Hi John,

Just tried it on XWiki and I get an error in a custom plugin that looks for dependencies in the project. The error I get is:

Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact [com.xpn.xwiki.products:xwiki-enterprise-wiki] is not a dependency of the project. at com.xpn.xwiki.tool.xar.UnXarMojo.findArtifact(UnXarMojo.java:120)

And the code causing it in our plugin is:

private Artifact findArtifact() throws MojoExecutionException
{
    Artifact resolvedArtifact = null;

    getLog().debug(
"Searching for an artifact that matches " + HOOK_OPEN + this.groupId + TWO_POINTS
            + this.artifactId + HOOK_CLOSE + DOTDOTDOT);

    Iterator it = this.project.getArtifacts().iterator();
    while (it.hasNext()) {
        Artifact artifact = (Artifact) it.next();

        getLog().debug(
"Checking artifact " + HOOK_OPEN + artifact.getGroupId() + TWO_POINTS + artifact.getArtifactId() + TWO_POINTS + artifact.getType() + HOOK_CLOSE
                + DOTDOTDOT);

        if (artifact.getGroupId().equals(this.groupId)
            && artifact.getArtifactId().equals(this.artifactId)) {
            resolvedArtifact = artifact;
            break;
        }
    }

    if (resolvedArtifact == null) {
throw new MojoExecutionException("Artifact " + HOOK_OPEN + this.groupId + TWO_POINTS + this.artifactId + HOOK_CLOSE + " is not a dependency of the project.");
    }

    return resolvedArtifact;
}

Source here:
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-tools/trunk/xwiki-xar-plugin/src/main/java/com/xpn/xwiki/tool/xar/UnXarMojo.java

Any idea?

This is working fine with 2.0.9.

Thanks
-Vincent

On Aug 9, 2008, at 12:52 AM, John Casey wrote:

Hi everyone,

Well, I think I've finally managed to reduce the memory consumption and boost the speed of the RC5 build. In addition, I've fixed a couple of exceptions that came up - a NPE related to POM configuration interpolation, and a ClassCastException related to settings profiles without id's.

The release notes for 2.0.10 (so far) are here:


http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10500&styleName=Html&version=14112


You can do a search for recently resolved in that Fix-For version to see what I resolved for this RC, though the summary above is a pretty accurate reflection.

The distro is here:


http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC6/org/apache/maven/apache-maven/2.0.10-RC6


Please give it a spin and see what you think!

And, have a good weekend.

-john

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

Reply via email to