On 08/06/2011 10:24 AM, Ashleigh Ings-Lamb wrote:
> I've edited the global settings.xml to include the xwiki profile and run a
> build following your instructions but receive this error:
>
> Failed to execute goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:process
> (xwiki-license-resources) on project xwiki-enterprise: Error finding
> remote resources manifests
>
>
> I've again posted the -X output on pastebin at http://pastebin.com/v5M4Vc1C
Looking at the log, I see that it tries to look for the needed project
in two places only:
- local repository
- xwiki externals repository
It doesn't try to look into the xwiki snapshots repository.
1. Are you sure you have put all the right configurations in
settings.xml, including the snapshots repository?
<repository>
<id>xwiki-snapshots</id>
<name>XWiki Maven2 Remote Repository for Snapshots</name>
<url>http://maven.xwiki.org/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
2. If that doesn't solve your problem, you can try to manually build the
xwiki-commons repository once on the machine (or add it to Jenkins)
> Thanks
>
> On 6 August 2011 14:59, Ashleigh Ings-Lamb<[email protected]> wrote:
>
>> The link to pastebin is
>> http://pastebin.com/25BPU9ys<http://pastebin.com/25BPU9ys>
>>
>> Also, which settings.xml has to be edited? I've created a settings.xml in
>> my ~/.m2 directory as per instructions but this doesn't work, so I think I'm
>> editing the wrong file. Is it the global settings.xml
>> at /usr/share/maven/conf that has to be edited?
>>
>> Thanks
>>
>>
>> On 6 August 2011 14:20, Vincent Massol<[email protected]> wrote:
>>
>>>
>>> On Aug 6, 2011, at 3:04 PM, Ashleigh Ings-Lamb wrote:
>>>
>>>> Hi Vincent
>>>>
>>>> Thank you so much for the reply. I have run a build with -X and posted
>>> the
>>>> result to pastebin under the title xwiki_debug_output.
>>>
>>> Can you paste the link?
>>>
>>>> I'm using Maven 3.0.3 and run the following via an Execute shell build
>>> step:
>>>>
>>>> mvn -X -f /Users/ash/xwiki/xwiki-commons/pom.xml package
>>>>
>>>> I use -f because otherwise I receive a "failed to parse POM" error when
>>>> running a build using just the URL to the local cloned repository, which
>>>> is file:///Users/ash/xwiki/xwiki-enterprise
>>>
>>> You don't need -f. Just cd to what you want to build and run mvn clean
>>> install
>>>
>>> For example to build xwiki enterprise:
>>>
>>> cd /Users/ash/xwiki/xwiki-enterprise
>>> mvn clean install
>>>
>>>> Also, I'm not sure that my local cloned repository set-up is correct.
>>> I've
>>>> cloned both Enterprise and Commons and have them in a shared directory
>>>> /Users/ash/xwiki. I did this because I initially cloned just Enterprise
>>> but
>>>> received the "failed to parse POM" error, and found that this was fixed
>>> by
>>>> cloning Commons and pointing Maven at the POM contained there. Hope this
>>>> makes sense although I get the feeling I've probably made a schoolboy
>>> error
>>>> somewhere along the line.
>>>
>>> Nope. If all you want to build is XWiki Enterprise, just clone that
>>> repository.
>>> What you're missing I think is to edit your settings.xml as described
>>> here:
>>> http://dev.xwiki.org/xwiki/bin/view/Community/Building
>>>
>>> Hope it helps,
>>> -Vincent
>>>
>>>>
>>>> Thanks again for your help.
>>>>
>>>> ash
>>>>
>>>> On 6 August 2011 12:12, Vincent Massol<[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> On Aug 5, 2011, at 4:54 PM, Ashleigh Ings-Lamb wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> I have forked and cloned XWiki Enterprise and XWiki commons from
>>> Github
>>>>> and
>>>>>> am trying to build Enterprise using Jenkins as part of an MSc project
>>>>>> looking at cloud software testing and development but am receiving the
>>>>>> following error:
>>>>>>
>>>>>> message : Failed to execute goal
>>>>>> org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:bundle
>>>>>> (default) on project xwiki-commons-tool-license-resources: Error
>>>>>> creating remote resources manifest.
>>>>>> cause : Error creating remote resources manifest.
>>>>>> Stack trace :
>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>>> execute goal
>>>>> org.apache.maven.plugins:maven-remote-resources-plugin:1.2.1:bundle
>>>>>> (default) on project xwiki-commons-tool-license-resources: Error
>>>>>> creating remote resources manifest.
>>>>>> at
>>>>>
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>>>>>> at
>>>>>
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>>> at
>>>>>
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>>
>>>>> hmm… I don't recall seeing this error. Could you run with -X and paste
>>> the
>>>>> result on pastebin.com?
>>>>>
>>>>> Also what version of Maven are you using?
>>>>>
>>>>> In which directory are you using the command and which command?
>>>>>
>>>>> Thanks
>>>>> -Vincent
>>>>>
>>>>>> Any pointers/help on how to solve this would be greatly appreciated.
>>>>>>
>>>>>> Thank you very much
>>>>>>
>>>>>> Ash Lamb (MSc candidate University of St Andrews)
>>>>>>
>>>>>> p.s. apologies if this is not the correct place to ask this question
>>> but
>>>>> an
>>>>>> extensive web search and troubleshooting session have not been able to
>>>>> find
>>>>>> a fix for this.
>>> _______________________________________________
>>> devs mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/devs
>>>
>>
>>
>>
>> --
>> Ash
>>
>
>
>
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs