[Building Sakai] trouble building on widows vista x86 with latest jdk and maven 2.0

ganesh th3iedkid at gmail.com
Thu Mar 18 16:39:49 PDT 2010


Hi Matthew
I am using Apache Maven 2.2.1 and i did an svn update just a while ago and
it says its revision 74810 for everything under trunk, which seems up to
date ....i am using a tortoiseSVN client to be specific.

As for the changes to dependencies.. deleted the entries for
''dependencies.dependency.
version' is missing for
> org.sakaiproject.content:content-bundles:jar "
as was reported by the previous error and thought of the manual download
method as the link mentioned , but i was heading into more problem with the
build , i have copied the maven output below

***************************************************************************************************************
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.sakaiproject.user:sakai-user-tool:war:null

Reason: Cannot find parent: org.sakaiproject.user:user for project:
org.sakaiproject.user:sakai-user-tool:war:null for project
org.sakaiproject.user:sakai-user-tool:war:null


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.sakaiproject.user:user for project:
org.sakaiproject.user:sakai-user-tool:war:null for project
org.sakaiproject.user:sakai-user-tool:war:null
    at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent: org.sakaiproject.user:user for project:
org.sakaiproject.user:sakai-user-tool:war:null for project
org.sakaiproject.user:sakai-user-tool:war:null
    at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
    at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
    at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
    at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
    at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
    at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
    ... 12 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.sakaiproject.user:user' not found in repository: Unable to download the
artifact from any repository

  org.sakaiproject.user:user:pom:2.8-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.sakaiproject.user:user
    at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
    at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
    ... 20 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository

  org.sakaiproject.user:user:pom:2.8-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


    at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
    at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
    at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
    ... 21 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
    at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
    at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
    ... 23 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Mar 19 04:36:58 IST 2010
[INFO] Final Memory: 14M/254M
[INFO]
------------------------------------------------------------------------

***********************************************************************************************************************

Well i tried to change the pom.xml under the trunk/user to specify the
group-id to
  <groupId>org.sakaiproject.user</groupId>
 from   <groupId>org.sakaiproject</groupId>
and the artifact id from    <artifactId>user-base</artifactId>
to     <artifactId>user</artifactId>

Then it seems to build , as its just been some time since i built it, i
haven't seen any problems
The changes were made on the most recent check-out. Also can you please
specify if at all i changed it to something bad,

thanks and regards
ganesh

On Fri, Mar 19, 2010 at 3:58 AM, Matthew Buckett <
matthew.buckett at oucs.ox.ac.uk> wrote:

> On 18 March 2010 21:47, ganesh <th3iedkid at gmail.com> wrote:
> > Hi,
> > As and when i run the mvn -Pcafe clean install in the <sakai_src>
> directory
> > i receive the following error
> >
> ***********************************************************************************************************************************************************************
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Error building POM (may not be this project's POM).
> >
> >
> > Project ID: org.sakaiproject.content:sakai-content-tool
> > POM Location:
> > E:\sakai\sakai-builds\opt\trunk\content\content-tool\tool\pom.xml
> > Validation Messages:
> >
> >     [0]  'dependencies.dependency.version' is missing for
> > org.sakaiproject.content:content-bundles:jar
>
> The content-bundles version should be pulled from the content pom.xml
> file in it's dependencyManagement section (content/pom.xml) I know
> some old versions of maven had issues with dependencyManagement
> sections, do you know what version of maven you are using (mvn
> --version)? Is your version of the checkout up to date (svn info)?
>
> I have just fixed the issue of content-bundles not being in the cafe
> profile.
>
> http://jira.sakaiproject.org/browse/SAK-18223
>
> but they error you are getting doesn't indicate this was the problem,
> although it might be worth just doing a svn update and attempting to
> build again to see if this fixes it.
>
> --
>  Matthew Buckett
>  VLE Developer, LTG, Oxford University Computing Services
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100319/9cc2595d/attachment.html 


More information about the sakai-dev mailing list