You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by be...@charter.net on 2008/04/15 00:58:54 UTC

Maven error in tutorial

Hi. I'm trying to figure out why I'm getting this maven error, at this point in the tutorial:

http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html

Below are details of the error:

----------------------------------------------------------------
 Directory of C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
ions\express-demo

04/14/2008  06:11 PM    <DIR>          .
04/14/2008  06:11 PM    <DIR>          ..
04/14/2008  06:11 PM             7,816 pom.xml
04/14/2008  06:11 PM    <DIR>          src
               1 File(s)          7,816 bytes
               3 Dir(s)  169,487,032,320 bytes free

C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
emo>mvn
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
pplications/1.0/portal-applications-1.0.pom
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.portals.tutorials
ArtifactId: portal-applications
Version: 1.0

Reason: Unable to download the artifact from any repository

  org.apache.portals.tutorials:portal-applications:pom:1.0

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


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache
.portals.tutorials:portal-applications for project: null:express-demo:war:null f
or project null:express-demo:war:null
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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.apache.portals.tutorials:portal-applications for project: null:express-dem
o:war:null for project null:express-demo:war:null
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1370)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
aultMavenProjectBuilder.java:821)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
leInternal(DefaultMavenProjectBuilder.java:506)
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
nProjectBuilder.java:198)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
        ... 11 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.po
rtals.tutorials:portal-applications' not found in repository: Unable to download
 the artifact from any repository

  org.apache.portals.tutorials:portal-applications:pom:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
 for project org.apache.portals.tutorials:portal-applications
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:603)
        at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
efaultMavenProjectBuilder.java:1366)
        ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable
to download the artifact from any repository

  org.apache.portals.tutorials:portal-applications:pom:1.0

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

        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:212)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:74)
        at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
sitory(DefaultMavenProjectBuilder.java:556)
        ... 18 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to downl
oad the artifact from any repository
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
aultWagonManager.java:331)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:200)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
[INFO] Final Memory: 1M/2M
[INFO] ------------------------------------------------------------------------

C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
emo>
---------------------------------------------------------------------------

As a side-issue, I've managed to work around many of the obvious errors in the tutorial and gotten pretty far with the changes and "delta" deploys, but it contains so many bugs and incorrect file locations and such, that it's almost useless as a "tutorial" for newcomers...hard to see the forest for all the trees.  Of course, those who already have good experience with jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant, will probably be able to figure it out....but that's more background knowledge than most newcomers will probably have...or are willing to learn for no other reason than to learn portlets. 

The tutorial looks like it was quite good at one time, so it gives me the feeling that this jetspeed (and maybe portlets in general) isn't being actively advanced anymore. Is that so?

Ben


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


RE: Maven error in tutorial

Posted by Mohan Kannapareddy <km...@gmail.com>.
Wanted to chime in on the eclipse plugins for Maven:
  - m2eclipse (tried it a while ago, didn't do very well, maybe better now)
  - Q4E (eclipse blessed maven integration plugin, a lot of activity,
             much better now, still some rough edges)
  - maven-eclipse-plugin (let maven generate the project files, I prefer
this
     but requires messing poms, but you get the full WTP support).

All in all, the state of Maven integration to Eclipse, is *way* (IMHO)
behind
Netbeans 6. In NB6 it is native and the eclipse plugins have a long way to
go to match nb6 (q4e is getting there). Some of things I like in nb6:
   - dependencies split by scope and viewable as a tree.
   - right click and exclude dependencies (life saver for a new m2 project).

Mohan

-----Original Message-----
From: Andrew Strickland [mailto:strickla@gmail.com] 
Sent: Tuesday, April 15, 2008 9:58 AM
To: Jetspeed Users List
Subject: Re: Maven error in tutorial

I use the m2eclipse plugin for Eclipse from Codehaus
http://m2eclipse.codehaus.org/.  It automatically puts the Maven
dependencies onto the Eclipse project build path (you may have to enable the
option "Enable Dependency Management") from the Maven context menu of your
project but I don't remember for sure.

On Tue, Apr 15, 2008 at 9:46 AM, Ron Wheeler
<rw...@artifact-software.com>
wrote:

> Get the Eclipse plug-in for Maven.
> Read up on Maven.
> It is a very nice way to run a project in Eclipse.
> It can not do anything that Ant can not do but it does a lot of what Ant
> can do without you having to write anything.
>
> It is a different way to approach things but is very nice once you get it
> set up.
> The Maven documentation is abysmal. It is sparse, written from a totally
> useless point of view and you have to read between the lines to make any
> sense of it. If they had decent docs, it would be universally used for any
> project with more than 2 developers.
> On the bright side, once you have a POM file set up or given to you, you
> usually do not have much contact with Maven until you start to add new
> dependencies to your project and they go in pretty well.
>
> The worst thing about Maven and Eclipse is that Eclipse has to be told
> about your dependencies manually in order to do syntax highlighting. You
> need to add each of the dependencies in your Maven POM to your build path.
> If not, your code will be lit up like a Xmas tree and still compile.
> Not a big deal but the Plug-in should deal with this. (Maybe it does and I
> have not found the right place to poke it - Eclipse is a great IDE but
takes
> a long time to get good at it.)
>
> Ron
>
>
> benethridge@charter.net wrote:
>
> > Thanks. So as to not waste any more of your time, sounds like I should
> > drop this tutorial and shift to the maven tutorial, as per David Taylor.
> >
> > Hopefully I can use the maven tutorial code as Eclipse projects with
> > some tweaking?
> >
> > Ben
> > ---- Andrew Strickland <st...@gmail.com> wrote:
> >
> > > or rather, I guess that "null" corresponds to the groupId in the POM
> > > of the
> > > express-demo project.  Check to see if that has a value.
> > >
> > > On Mon, Apr 14, 2008 at 8:26 PM, Andrew Strickland <strickla@gmail.com
> > > >
> > > wrote:
> > >
> > >
> > >
> > > > without looking at the code, the problem to me seems to be the:
> > > > *
> > > > Caused by: org.apache.maven.project*
> > > > *.ProjectBuildingException: Cannot find parent
> > > > : org.apache.portals.tutorials**:portal-applications for project:
> > > > null:express-dem
> > > > o:war:null for project null:express-demo:war:null
> > > >
> > > > *
> > > > Whatever the value of the express-demo pom artifactId is, it's not
> > > > supposed to be "null".  Just a guess though,
> > > >
> > > > Andy
> > > >
> > > >
> > > >
> > > > On Mon, Apr 14, 2008 at 6:58 PM, <be...@charter.net> wrote:
> > > >
> > > >
> > > >
> > > > > Hi. I'm trying to figure out why I'm getting this maven error, at
> > > > > this
> > > > > point in the tutorial:
> > > > >
> > > > >
> > > > >
http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
> > > > >
> > > > > Below are details of the error:
> > > > >
> > > > > ----------------------------------------------------------------
> > > > >  Directory of
> > > > > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
> > > > > ions\express-demo
> > > > >
> > > > > 04/14/2008  06:11 PM    <DIR>          .
> > > > > 04/14/2008  06:11 PM    <DIR>          ..
> > > > > 04/14/2008  06:11 PM             7,816 pom.xml
> > > > > 04/14/2008  06:11 PM    <DIR>          src
> > > > >              1 File(s)          7,816 bytes
> > > > >              3 Dir(s)  169,487,032,320 bytes free
> > > > >
> > > > >
> > > > >
> > > > >
C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\expre
ss-d
> > > > > emo>mvn
> > > > > [INFO] Scanning for projects...
> > > > > Downloading:
> > > > >
> > > > >
http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
> > > > > pplications/1.0/portal-applications-1.0.pom<
> > > > >
http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-applicatio
ns/1.0/portal-applications-1.0.pom
> > > > > >
> > > > > [INFO]
> > > > >
> > > > >
------------------------------------------------------------------------
> > > > > [ERROR] FATAL ERROR
> > > > > [INFO]
> > > > >
> > > > >
------------------------------------------------------------------------
> > > > > [INFO] Failed to resolve artifact.
> > > > >
> > > > > GroupId: org.apache.portals.tutorials
> > > > > ArtifactId: portal-applications
> > > > > Version: 1.0
> > > > >
> > > > > Reason: Unable to download the artifact from any repository
> > > > >
> > > > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)
> > > > >
> > > > >
> > > > > [INFO]
> > > > >
> > > > >
------------------------------------------------------------------------
> > > > > [INFO] Trace
> > > > > org.apache.maven.reactor.MavenExecutionException: Cannot find
> > > > > parent:
> > > > > org.apache
> > > > > .portals.tutorials:portal-applications for project:
> > > > > null:express-demo:war:null f
> > > > > or project null:express-demo:war:null
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> > > > >       at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> > > > >       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > Method)
> > > > >       at
> > > > >
> > > > >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > > > java:39)
> > > > >       at
> > > > >
> > > > >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > > > sorImpl.java:25)
> > > > >       at java.lang.reflect.Method.invoke(Method.java:585)
> > > > >       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.apache.portals.tutorials:portal-applications for project:
> > > > > null:express-dem
> > > > > o:war:null for project null:express-demo:war:null
> > > > >       at
> > > > >
> > > > >
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > > > > efaultMavenProjectBuilder.java:1370)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> > > > > aultMavenProjectBuilder.java:821)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> > > > > leInternal(DefaultMavenProjectBuilder.java:506)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> > > > > nProjectBuilder.java:198)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
> > > > >       ... 11 more
> > > > > Caused by: org.apache.maven.project.ProjectBuildingException: POM
> > > > > 'org.apache.po
> > > > > rtals.tutorials:portal-applications' not found in repository:
> > > > > Unable to
> > > > > download
> > > > >  the artifact from any repository
> > > > >
> > > > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)
> > > > >  for project org.apache.portals.tutorials:portal-applications
> > > > >       at
> > > > >
> > > > >
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > > > > sitory(DefaultMavenProjectBuilder.java:603)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > > > > efaultMavenProjectBuilder.java:1366)
> > > > >       ... 17 more
> > > > > Caused by:
> > > > > org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> > > > > Unable
> > > > > to download the artifact from any repository
> > > > >
> > > > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)
> > > > >
> > > > >       at
> > > > >
> > > > >
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > > > faultArtifactResolver.java:212)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > > > faultArtifactResolver.java:74)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > > > > sitory(DefaultMavenProjectBuilder.java:556)
> > > > >       ... 18 more
> > > > > Caused by: org.apache.maven.wagon.ResourceDoesNotExistException:
> > > > > Unable
> > > > > to downl
> > > > > oad the artifact from any repository
> > > > >       at
> > > > >
> > > > >
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> > > > > aultWagonManager.java:331)
> > > > >       at
> > > > >
> > > > >
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > > > faultArtifactResolver.java:200)
> > > > >       ... 20 more
> > > > > [INFO]
> > > > >
> > > > >
------------------------------------------------------------------------
> > > > > [INFO] Total time: < 1 second
> > > > > [INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
> > > > > [INFO] Final Memory: 1M/2M
> > > > > [INFO]
> > > > >
> > > > >
------------------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > > >
C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\expre
ss-d
> > > > > emo>
> > > > >
> > > > >
> > > > >
---------------------------------------------------------------------------
> > > > >
> > > > > As a side-issue, I've managed to work around many of the obvious
> > > > > errors
> > > > > in the tutorial and gotten pretty far with the changes and "delta"
> > > > > deploys,
> > > > > but it contains so many bugs and incorrect file locations and
> > > > > such, that
> > > > > it's almost useless as a "tutorial" for newcomers...hard to see
> > > > > the forest
> > > > > for all the trees.  Of course, those who already have good
> > > > > experience with
> > > > > jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant,
> > > > > will
> > > > > probably be able to figure it out....but that's more background
> > > > > knowledge
> > > > > than most newcomers will probably have...or are willing to learn
> > > > > for no
> > > > > other reason than to learn portlets.
> > > > >
> > > > > The tutorial looks like it was quite good at one time, so it gives
> > > > > me
> > > > > the feeling that this jetspeed (and maybe portlets in general)
> > > > > isn't being
> > > > > actively advanced anymore. Is that so?
> > > > >
> > > > > Ben
> > > > >
> > > > >
> > > > >
> > > > >
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > > jetspeed-user-unsubscribe@portals.apache.org
> > > > > For additional commands, e-mail:
> > > > > jetspeed-user-help@portals.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Maven error in tutorial

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Apr 21, 2008, at 5:15 PM, <be...@charter.net> <benethridge@charter.net 
 > wrote:

> Well, maybe not so perfect for me yet :-)
>
> I have shifted to the maven tutorial as suggested earlier by David  
> Taylor. I'm following its instructions, doing exactly as it says (I  
> think - i.e. I've said that before and been wrong, but hopefully not  
> this time :-)). I'm using the command shown in the tutorial:
>
> mvn archetype:create - 
> DarchetypeGroupId=org.apache.portals.jetspeed-2 - 
> DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1 - 
> DgroupId=org.apache.portals.tutorials -DartifactId=jetexpress - 
> Dversion=1.0
>
> ...Most of it seems to be working ok, but am getting a build error  
> as shown in this log (skip down to near the bottom):


> [INFO]  
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.portals.jetspeed-2
> ArtifactId: portal-archetype
> Version: 2.1
>
> Reason: Unable to locate resource in repository
>

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


I think we only have version 2.1.3 in the central repo:

http://repo1.maven.org/maven2/org/apache/portals/jetspeed-2/portal-archetype/

Try changing your command above to (2.1.3):

> mvn archetype:create - 
> DarchetypeGroupId=org.apache.portals.jetspeed-2 - 
> DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1.3 - 
> DgroupId=org.apache.portals.tutorials -DartifactId=jetexpress - 
> Dversion=1.0

You are better off using the latest version anyway

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Maven error in tutorial

Posted by be...@charter.net.
Well, maybe not so perfect for me yet :-)

I have shifted to the maven tutorial as suggested earlier by David Taylor. I'm following its instructions, doing exactly as it says (I think - i.e. I've said that before and been wrong, but hopefully not this time :-)). I'm using the command shown in the tutorial:

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype -DarchetypeVersion=2.1 -DgroupId=org.apache.portals.tutorials -DartifactId=jetexpress -Dversion=1.0

...Most of it seems to be working ok, but am getting a build error as shown in this log (skip down to near the bottom):
-----------------------------------------------------------------------------

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up
dates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet
ype-plugin/2.0-alpha-2/maven-archetype-plugin-2.0-alpha-2.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
etype/2.0-alpha-2/maven-archetype-2.0-alpha-2.pom
16K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven
-parent-7.pom
20K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
4K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet
ype-plugin/2.0-alpha-2/maven-archetype-plugin-2.0-alpha-2.jar
64K downloaded
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/archetype-
common/2.0-alpha-2/archetype-common-2.0-alpha-2.pom
16K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-core/2.0.8/mav
en-core-2.0.8.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.8/maven-2.
0.8.pom
11K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/6/maven
-parent-6.pom
19K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.8
/maven-settings-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.8/ma
ven-model-2.0.8.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.
6/plexus-utils-1.4.6.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/ple
xus-1.0.11.pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-containers
/1.0.3/plexus-containers-1.0.3.pom
492b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.4/plex
us-1.0.4.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
998b downloaded
Downloading: http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/c
lassworlds-1.1-alpha-2.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0
-alpha-6/wagon-file-1.0-alpha-6.pom
441b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
s/1.0-alpha-6/wagon-providers-1.0-alpha-6.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/1.0-alph
a-6/wagon-1.0-alpha-6.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.pom
588b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-paramet
er-documenter/2.0.8/maven-plugin-parameter-documenter-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lig
htweight/1.0-beta-2/wagon-http-lightweight-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
s/1.0-beta-2/wagon-providers-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/1.0-beta
-2/wagon-1.0-beta-2.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/4/maven
-parent-4.pom
9K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-sha
red/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
845b downloaded
Downloading: http://repo1.maven.org/maven2/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug
2000r7-dev.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom
680b downloaded
Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0
.b2.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo
rting-api/2.0.8/maven-reporting-api-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo
rting/2.0.8/maven-reporting-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-sink-api
/1.0-alpha-9/doxia-sink-api-1.0-alpha-9.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/1.0-alph
a-9/doxia-1.0-alpha-9.pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.8/
maven-profile-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.8
/maven-artifact-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-repository-met
adata/2.0.8/maven-repository-metadata-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-error-diagnost
ics/2.0.8/maven-error-diagnostics-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.8/
maven-project-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manag
er/2.0.8/maven-artifact-manager-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-registr
y/2.0.8/maven-plugin-registry-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-c
li-1.0.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0
.8/maven-plugin-api-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh-exte
rnal/1.0-beta-2/wagon-ssh-external-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh-comm
on/1.0-beta-2/wagon-ssh-common-1.0-beta-2.pom
851b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv
ity-api/1.0-alpha-5/plexus-interactivity-api-1.0-alpha-5.pom
430b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv
ity/1.0-alpha-5/plexus-interactivity-1.0-alpha-5.pom
482b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components
/1.1.4/plexus-components-1.1.4.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-descrip
tor/2.0.8/maven-plugin-descriptor-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-monitor/2.0.8/
maven-monitor-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-
beta-2/wagon-ssh-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.27/jsch-0.1.27.po
m
965b downloaded
Downloading: http://repo1.maven.org/maven2/classworlds/classworlds/1.1/classworl
ds-1.1.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/net/sourceforge/jchardet/jchardet/1.0
/jchardet-1.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/commons-io/commons-io/1.3.1/commons-i
o-1.3.1.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
.1.3/plexus-velocity-1.1.3.pom
976b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components
/1.1.5/plexus-components-1.1.5.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.5/plex
us-1.0.5.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collectio
ns/3.2/commons-collections-3.2.pom
10K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.4/velocity-1.4.po
m
2K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-de
p-1.4.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-invoker
/2.0.6/maven-invoker-2.0.6.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-
components/6/maven-shared-components-6.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-monitor/2.0/ma
ven-monitor-2.0.pom
400b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.
pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0/m
aven-artifact-2.0.pom
723b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.pom
767b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/archetype-
common/2.0-alpha-2/archetype-common-2.0-alpha-2.jar
227K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.jar
164K downloaded
Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0
.b2.jar
106K downloaded
Downloading: http://repo1.maven.org/maven2/net/sourceforge/jchardet/jchardet/1.0
/jchardet-1.0.jar
25K downloaded
Downloading: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
306K downloaded
Downloading: http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.jar
149K downloaded
Downloading: http://repo1.maven.org/maven2/commons-io/commons-io/1.3.1/commons-i
o-1.3.1.jar
81K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
.1.3/plexus-velocity-1.1.3.jar
7K downloaded
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collectio
ns/3.2/commons-collections-3.2.jar
557K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.4/velocity-1.4.ja
r
352K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-de
p-1.4.jar
505K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-invoker
/2.0.6/maven-invoker-2.0.6.jar
24K downloaded
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: org.apache.portals.tutorials
Downloading: http://repo1.maven.org/maven2/org/apache/portals/jetspeed-2/portal-
archetype/2.1/portal-archetype-2.1.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.portals.jetspeed-2
ArtifactId: portal-archetype
Version: 2.1

Reason: Unable to locate resource in repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.portals.jetspeed-2 -DartifactI
d=portal-archetype -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
    mvn deploy:deploy-file -DgroupId=org.apache.portals.jetspeed-2 -DartifactId=
portal-archetype -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]


  org.apache.portals.jetspeed-2:portal-archetype:jar:2.1

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


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31 seconds
[INFO] Finished at: Mon Apr 21 19:56:42 EDT 2008
[INFO] Final Memory: 7M/13M
[INFO] ------------------------------------------------------------------------

C:\JetspeedTraining\workspace>

------------------------------------------------------------------------------------------

Does anyone else get this error if they try the maven command?

Ben

---- Ron Wheeler <rw...@artifact-software.com> wrote: 
> I guess that Maven is now perfect. :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Maven error in tutorial

Posted by Ron Wheeler <rw...@artifact-software.com>.
I guess that Maven is now perfect. :-)

Thanks for the great tip.
I hate to admit that I have been using Eclipse for 4-5 years and Maven 
for about a year and did not know how to do that.

There is just a lot to learn. It is great when everyone shares what they 
know.

Thanks

Ron

Andrew Strickland wrote:
> I use the m2eclipse plugin for Eclipse from Codehaus
> http://m2eclipse.codehaus.org/.  It automatically puts the Maven
> dependencies onto the Eclipse project build path (you may have to enable the
> option "Enable Dependency Management") from the Maven context menu of your
> project but I don't remember for sure.
>
> On Tue, Apr 15, 2008 at 9:46 AM, Ron Wheeler <rw...@artifact-software.com>
> wrote:
>
>   
>> Get the Eclipse plug-in for Maven.
>> Read up on Maven.
>> It is a very nice way to run a project in Eclipse.
>> It can not do anything that Ant can not do but it does a lot of what Ant
>> can do without you having to write anything.
>>
>> It is a different way to approach things but is very nice once you get it
>> set up.
>> The Maven documentation is abysmal. It is sparse, written from a totally
>> useless point of view and you have to read between the lines to make any
>> sense of it. If they had decent docs, it would be universally used for any
>> project with more than 2 developers.
>> On the bright side, once you have a POM file set up or given to you, you
>> usually do not have much contact with Maven until you start to add new
>> dependencies to your project and they go in pretty well.
>>
>> The worst thing about Maven and Eclipse is that Eclipse has to be told
>> about your dependencies manually in order to do syntax highlighting. You
>> need to add each of the dependencies in your Maven POM to your build path.
>> If not, your code will be lit up like a Xmas tree and still compile.
>> Not a big deal but the Plug-in should deal with this. (Maybe it does and I
>> have not found the right place to poke it - Eclipse is a great IDE but takes
>> a long time to get good at it.)
>>
>> Ron
>>
>>
>> benethridge@charter.net wrote:
>>
>>     
>>> Thanks. So as to not waste any more of your time, sounds like I should
>>> drop this tutorial and shift to the maven tutorial, as per David Taylor.
>>>
>>> Hopefully I can use the maven tutorial code as Eclipse projects with
>>> some tweaking?
>>>
>>> Ben
>>> ---- Andrew Strickland <st...@gmail.com> wrote:
>>>
>>>       
>>>> or rather, I guess that "null" corresponds to the groupId in the POM
>>>> of the
>>>> express-demo project.  Check to see if that has a value.
>>>>
>>>> On Mon, Apr 14, 2008 at 8:26 PM, Andrew Strickland <strickla@gmail.com
>>>>         
>>>> wrote:
>>>>
>>>>
>>>>
>>>>         
>>>>> without looking at the code, the problem to me seems to be the:
>>>>> *
>>>>> Caused by: org.apache.maven.project*
>>>>> *.ProjectBuildingException: Cannot find parent
>>>>> : org.apache.portals.tutorials**:portal-applications for project:
>>>>> null:express-dem
>>>>> o:war:null for project null:express-demo:war:null
>>>>>
>>>>> *
>>>>> Whatever the value of the express-demo pom artifactId is, it's not
>>>>> supposed to be "null".  Just a guess though,
>>>>>
>>>>> Andy
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Apr 14, 2008 at 6:58 PM, <be...@charter.net> wrote:
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> Hi. I'm trying to figure out why I'm getting this maven error, at
>>>>>> this
>>>>>> point in the tutorial:
>>>>>>
>>>>>>
>>>>>> http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
>>>>>>
>>>>>> Below are details of the error:
>>>>>>
>>>>>> ----------------------------------------------------------------
>>>>>>  Directory of
>>>>>> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
>>>>>> ions\express-demo
>>>>>>
>>>>>> 04/14/2008  06:11 PM    <DIR>          .
>>>>>> 04/14/2008  06:11 PM    <DIR>          ..
>>>>>> 04/14/2008  06:11 PM             7,816 pom.xml
>>>>>> 04/14/2008  06:11 PM    <DIR>          src
>>>>>>              1 File(s)          7,816 bytes
>>>>>>              3 Dir(s)  169,487,032,320 bytes free
>>>>>>
>>>>>>
>>>>>>
>>>>>> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
>>>>>> emo>mvn
>>>>>> [INFO] Scanning for projects...
>>>>>> Downloading:
>>>>>>
>>>>>> http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
>>>>>> pplications/1.0/portal-applications-1.0.pom<
>>>>>> http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-applications/1.0/portal-applications-1.0.pom
>>>>>>             
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [ERROR] FATAL ERROR
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Failed to resolve artifact.
>>>>>>
>>>>>> GroupId: org.apache.portals.tutorials
>>>>>> ArtifactId: portal-applications
>>>>>> Version: 1.0
>>>>>>
>>>>>> Reason: Unable to download the artifact from any repository
>>>>>>
>>>>>>  org.apache.portals.tutorials:portal-applications:pom:1.0
>>>>>>
>>>>>> from the specified remote repositories:
>>>>>>  central (http://repo1.maven.org/maven2)
>>>>>>
>>>>>>
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Trace
>>>>>> org.apache.maven.reactor.MavenExecutionException: Cannot find
>>>>>> parent:
>>>>>> org.apache
>>>>>> .portals.tutorials:portal-applications for project:
>>>>>> null:express-demo:war:null f
>>>>>> or project null:express-demo:war:null
>>>>>>       at
>>>>>> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>>>>>>       at
>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>>>>>>       at
>>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>> Method)
>>>>>>       at
>>>>>>
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>>> java:39)
>>>>>>       at
>>>>>>
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>>>> sorImpl.java:25)
>>>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>       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.apache.portals.tutorials:portal-applications for project:
>>>>>> null:express-dem
>>>>>> o:war:null for project null:express-demo:war:null
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
>>>>>> efaultMavenProjectBuilder.java:1370)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
>>>>>> aultMavenProjectBuilder.java:821)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
>>>>>> leInternal(DefaultMavenProjectBuilder.java:506)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
>>>>>> nProjectBuilder.java:198)
>>>>>>       at
>>>>>> org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>>>>>>       at
>>>>>> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>>>>>>       ... 11 more
>>>>>> Caused by: org.apache.maven.project.ProjectBuildingException: POM
>>>>>> 'org.apache.po
>>>>>> rtals.tutorials:portal-applications' not found in repository:
>>>>>> Unable to
>>>>>> download
>>>>>>  the artifact from any repository
>>>>>>
>>>>>>  org.apache.portals.tutorials:portal-applications:pom:1.0
>>>>>>
>>>>>> from the specified remote repositories:
>>>>>>  central (http://repo1.maven.org/maven2)
>>>>>>  for project org.apache.portals.tutorials:portal-applications
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
>>>>>> sitory(DefaultMavenProjectBuilder.java:603)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
>>>>>> efaultMavenProjectBuilder.java:1366)
>>>>>>       ... 17 more
>>>>>> Caused by:
>>>>>> org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>>>>>> Unable
>>>>>> to download the artifact from any repository
>>>>>>
>>>>>>  org.apache.portals.tutorials:portal-applications:pom:1.0
>>>>>>
>>>>>> from the specified remote repositories:
>>>>>>  central (http://repo1.maven.org/maven2)
>>>>>>
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
>>>>>> faultArtifactResolver.java:212)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
>>>>>> faultArtifactResolver.java:74)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
>>>>>> sitory(DefaultMavenProjectBuilder.java:556)
>>>>>>       ... 18 more
>>>>>> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException:
>>>>>> Unable
>>>>>> to downl
>>>>>> oad the artifact from any repository
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
>>>>>> aultWagonManager.java:331)
>>>>>>       at
>>>>>>
>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
>>>>>> faultArtifactResolver.java:200)
>>>>>>       ... 20 more
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Total time: < 1 second
>>>>>> [INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
>>>>>> [INFO] Final Memory: 1M/2M
>>>>>> [INFO]
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
>>>>>> emo>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------------
>>>>>>
>>>>>> As a side-issue, I've managed to work around many of the obvious
>>>>>> errors
>>>>>> in the tutorial and gotten pretty far with the changes and "delta"
>>>>>> deploys,
>>>>>> but it contains so many bugs and incorrect file locations and
>>>>>> such, that
>>>>>> it's almost useless as a "tutorial" for newcomers...hard to see
>>>>>> the forest
>>>>>> for all the trees.  Of course, those who already have good
>>>>>> experience with
>>>>>> jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant,
>>>>>> will
>>>>>> probably be able to figure it out....but that's more background
>>>>>> knowledge
>>>>>> than most newcomers will probably have...or are willing to learn
>>>>>> for no
>>>>>> other reason than to learn portlets.
>>>>>>
>>>>>> The tutorial looks like it was quite good at one time, so it gives
>>>>>> me
>>>>>> the feeling that this jetspeed (and maybe portlets in general)
>>>>>> isn't being
>>>>>> actively advanced anymore. Is that so?
>>>>>>
>>>>>> Ben
>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail:
>>>>>> jetspeed-user-unsubscribe@portals.apache.org
>>>>>> For additional commands, e-mail:
>>>>>> jetspeed-user-help@portals.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>     
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Maven error in tutorial

Posted by Andrew Strickland <st...@gmail.com>.
I use the m2eclipse plugin for Eclipse from Codehaus
http://m2eclipse.codehaus.org/.  It automatically puts the Maven
dependencies onto the Eclipse project build path (you may have to enable the
option "Enable Dependency Management") from the Maven context menu of your
project but I don't remember for sure.

On Tue, Apr 15, 2008 at 9:46 AM, Ron Wheeler <rw...@artifact-software.com>
wrote:

> Get the Eclipse plug-in for Maven.
> Read up on Maven.
> It is a very nice way to run a project in Eclipse.
> It can not do anything that Ant can not do but it does a lot of what Ant
> can do without you having to write anything.
>
> It is a different way to approach things but is very nice once you get it
> set up.
> The Maven documentation is abysmal. It is sparse, written from a totally
> useless point of view and you have to read between the lines to make any
> sense of it. If they had decent docs, it would be universally used for any
> project with more than 2 developers.
> On the bright side, once you have a POM file set up or given to you, you
> usually do not have much contact with Maven until you start to add new
> dependencies to your project and they go in pretty well.
>
> The worst thing about Maven and Eclipse is that Eclipse has to be told
> about your dependencies manually in order to do syntax highlighting. You
> need to add each of the dependencies in your Maven POM to your build path.
> If not, your code will be lit up like a Xmas tree and still compile.
> Not a big deal but the Plug-in should deal with this. (Maybe it does and I
> have not found the right place to poke it - Eclipse is a great IDE but takes
> a long time to get good at it.)
>
> Ron
>
>
> benethridge@charter.net wrote:
>
> > Thanks. So as to not waste any more of your time, sounds like I should
> > drop this tutorial and shift to the maven tutorial, as per David Taylor.
> >
> > Hopefully I can use the maven tutorial code as Eclipse projects with
> > some tweaking?
> >
> > Ben
> > ---- Andrew Strickland <st...@gmail.com> wrote:
> >
> > > or rather, I guess that "null" corresponds to the groupId in the POM
> > > of the
> > > express-demo project.  Check to see if that has a value.
> > >
> > > On Mon, Apr 14, 2008 at 8:26 PM, Andrew Strickland <strickla@gmail.com
> > > >
> > > wrote:
> > >
> > >
> > >
> > > > without looking at the code, the problem to me seems to be the:
> > > > *
> > > > Caused by: org.apache.maven.project*
> > > > *.ProjectBuildingException: Cannot find parent
> > > > : org.apache.portals.tutorials**:portal-applications for project:
> > > > null:express-dem
> > > > o:war:null for project null:express-demo:war:null
> > > >
> > > > *
> > > > Whatever the value of the express-demo pom artifactId is, it's not
> > > > supposed to be "null".  Just a guess though,
> > > >
> > > > Andy
> > > >
> > > >
> > > >
> > > > On Mon, Apr 14, 2008 at 6:58 PM, <be...@charter.net> wrote:
> > > >
> > > >
> > > >
> > > > > Hi. I'm trying to figure out why I'm getting this maven error, at
> > > > > this
> > > > > point in the tutorial:
> > > > >
> > > > >
> > > > > http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
> > > > >
> > > > > Below are details of the error:
> > > > >
> > > > > ----------------------------------------------------------------
> > > > >  Directory of
> > > > > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
> > > > > ions\express-demo
> > > > >
> > > > > 04/14/2008  06:11 PM    <DIR>          .
> > > > > 04/14/2008  06:11 PM    <DIR>          ..
> > > > > 04/14/2008  06:11 PM             7,816 pom.xml
> > > > > 04/14/2008  06:11 PM    <DIR>          src
> > > > >              1 File(s)          7,816 bytes
> > > > >              3 Dir(s)  169,487,032,320 bytes free
> > > > >
> > > > >
> > > > >
> > > > > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> > > > > emo>mvn
> > > > > [INFO] Scanning for projects...
> > > > > Downloading:
> > > > >
> > > > > http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
> > > > > pplications/1.0/portal-applications-1.0.pom<
> > > > > http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-applications/1.0/portal-applications-1.0.pom
> > > > > >
> > > > > [INFO]
> > > > >
> > > > > ------------------------------------------------------------------------
> > > > > [ERROR] FATAL ERROR
> > > > > [INFO]
> > > > >
> > > > > ------------------------------------------------------------------------
> > > > > [INFO] Failed to resolve artifact.
> > > > >
> > > > > GroupId: org.apache.portals.tutorials
> > > > > ArtifactId: portal-applications
> > > > > Version: 1.0
> > > > >
> > > > > Reason: Unable to download the artifact from any repository
> > > > >
> > > > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)
> > > > >
> > > > >
> > > > > [INFO]
> > > > >
> > > > > ------------------------------------------------------------------------
> > > > > [INFO] Trace
> > > > > org.apache.maven.reactor.MavenExecutionException: Cannot find
> > > > > parent:
> > > > > org.apache
> > > > > .portals.tutorials:portal-applications for project:
> > > > > null:express-demo:war:null f
> > > > > or project null:express-demo:war:null
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> > > > >       at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> > > > >       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > Method)
> > > > >       at
> > > > >
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > > > java:39)
> > > > >       at
> > > > >
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > > > sorImpl.java:25)
> > > > >       at java.lang.reflect.Method.invoke(Method.java:585)
> > > > >       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.apache.portals.tutorials:portal-applications for project:
> > > > > null:express-dem
> > > > > o:war:null for project null:express-demo:war:null
> > > > >       at
> > > > >
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > > > > efaultMavenProjectBuilder.java:1370)
> > > > >       at
> > > > >
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> > > > > aultMavenProjectBuilder.java:821)
> > > > >       at
> > > > >
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> > > > > leInternal(DefaultMavenProjectBuilder.java:506)
> > > > >       at
> > > > >
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> > > > > nProjectBuilder.java:198)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
> > > > >       at
> > > > >
> > > > > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
> > > > >       at
> > > > > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
> > > > >       ... 11 more
> > > > > Caused by: org.apache.maven.project.ProjectBuildingException: POM
> > > > > 'org.apache.po
> > > > > rtals.tutorials:portal-applications' not found in repository:
> > > > > Unable to
> > > > > download
> > > > >  the artifact from any repository
> > > > >
> > > > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)
> > > > >  for project org.apache.portals.tutorials:portal-applications
> > > > >       at
> > > > >
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > > > > sitory(DefaultMavenProjectBuilder.java:603)
> > > > >       at
> > > > >
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > > > > efaultMavenProjectBuilder.java:1366)
> > > > >       ... 17 more
> > > > > Caused by:
> > > > > org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> > > > > Unable
> > > > > to download the artifact from any repository
> > > > >
> > > > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > > > >
> > > > > from the specified remote repositories:
> > > > >  central (http://repo1.maven.org/maven2)
> > > > >
> > > > >       at
> > > > >
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > > > faultArtifactResolver.java:212)
> > > > >       at
> > > > >
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > > > faultArtifactResolver.java:74)
> > > > >       at
> > > > >
> > > > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > > > > sitory(DefaultMavenProjectBuilder.java:556)
> > > > >       ... 18 more
> > > > > Caused by: org.apache.maven.wagon.ResourceDoesNotExistException:
> > > > > Unable
> > > > > to downl
> > > > > oad the artifact from any repository
> > > > >       at
> > > > >
> > > > > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> > > > > aultWagonManager.java:331)
> > > > >       at
> > > > >
> > > > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > > > faultArtifactResolver.java:200)
> > > > >       ... 20 more
> > > > > [INFO]
> > > > >
> > > > > ------------------------------------------------------------------------
> > > > > [INFO] Total time: < 1 second
> > > > > [INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
> > > > > [INFO] Final Memory: 1M/2M
> > > > > [INFO]
> > > > >
> > > > > ------------------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > > > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> > > > > emo>
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------------
> > > > >
> > > > > As a side-issue, I've managed to work around many of the obvious
> > > > > errors
> > > > > in the tutorial and gotten pretty far with the changes and "delta"
> > > > > deploys,
> > > > > but it contains so many bugs and incorrect file locations and
> > > > > such, that
> > > > > it's almost useless as a "tutorial" for newcomers...hard to see
> > > > > the forest
> > > > > for all the trees.  Of course, those who already have good
> > > > > experience with
> > > > > jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant,
> > > > > will
> > > > > probably be able to figure it out....but that's more background
> > > > > knowledge
> > > > > than most newcomers will probably have...or are willing to learn
> > > > > for no
> > > > > other reason than to learn portlets.
> > > > >
> > > > > The tutorial looks like it was quite good at one time, so it gives
> > > > > me
> > > > > the feeling that this jetspeed (and maybe portlets in general)
> > > > > isn't being
> > > > > actively advanced anymore. Is that so?
> > > > >
> > > > > Ben
> > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > > jetspeed-user-unsubscribe@portals.apache.org
> > > > > For additional commands, e-mail:
> > > > > jetspeed-user-help@portals.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: Maven error in tutorial

Posted by Ron Wheeler <rw...@artifact-software.com>.
Get the Eclipse plug-in for Maven.
Read up on Maven.
It is a very nice way to run a project in Eclipse.
It can not do anything that Ant can not do but it does a lot of what Ant 
can do without you having to write anything.

It is a different way to approach things but is very nice once you get 
it set up.
The Maven documentation is abysmal. It is sparse, written from a totally 
useless point of view and you have to read between the lines to make any 
sense of it. If they had decent docs, it would be universally used for 
any project with more than 2 developers.
On the bright side, once you have a POM file set up or given to you, you 
usually do not have much contact with Maven until you start to add new 
dependencies to your project and they go in pretty well.

The worst thing about Maven and Eclipse is that Eclipse has to be told 
about your dependencies manually in order to do syntax highlighting. You 
need to add each of the dependencies in your Maven POM to your build 
path. If not, your code will be lit up like a Xmas tree and still compile.
Not a big deal but the Plug-in should deal with this. (Maybe it does and 
I have not found the right place to poke it - Eclipse is a great IDE but 
takes a long time to get good at it.)

Ron

benethridge@charter.net wrote:
> Thanks. So as to not waste any more of your time, sounds like I should drop this tutorial and shift to the maven tutorial, as per David Taylor.
>
> Hopefully I can use the maven tutorial code as Eclipse projects with some tweaking?
>
> Ben
> ---- Andrew Strickland <st...@gmail.com> wrote: 
>   
>> or rather, I guess that "null" corresponds to the groupId in the POM of the
>> express-demo project.  Check to see if that has a value.
>>
>> On Mon, Apr 14, 2008 at 8:26 PM, Andrew Strickland <st...@gmail.com>
>> wrote:
>>
>>     
>>> without looking at the code, the problem to me seems to be the:
>>> *
>>> Caused by: org.apache.maven.project*
>>> *.ProjectBuildingException: Cannot find parent
>>> : org.apache.portals.tutorials**:portal-applications for project:
>>> null:express-dem
>>> o:war:null for project null:express-demo:war:null
>>>
>>> *
>>> Whatever the value of the express-demo pom artifactId is, it's not
>>> supposed to be "null".  Just a guess though,
>>>
>>> Andy
>>>
>>>
>>>
>>> On Mon, Apr 14, 2008 at 6:58 PM, <be...@charter.net> wrote:
>>>
>>>       
>>>> Hi. I'm trying to figure out why I'm getting this maven error, at this
>>>> point in the tutorial:
>>>>
>>>> http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
>>>>
>>>> Below are details of the error:
>>>>
>>>> ----------------------------------------------------------------
>>>>  Directory of
>>>> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
>>>> ions\express-demo
>>>>
>>>> 04/14/2008  06:11 PM    <DIR>          .
>>>> 04/14/2008  06:11 PM    <DIR>          ..
>>>> 04/14/2008  06:11 PM             7,816 pom.xml
>>>> 04/14/2008  06:11 PM    <DIR>          src
>>>>               1 File(s)          7,816 bytes
>>>>               3 Dir(s)  169,487,032,320 bytes free
>>>>
>>>>
>>>> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
>>>> emo>mvn
>>>> [INFO] Scanning for projects...
>>>> Downloading:
>>>> http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
>>>> pplications/1.0/portal-applications-1.0.pom<http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-applications/1.0/portal-applications-1.0.pom>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] FATAL ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Failed to resolve artifact.
>>>>
>>>> GroupId: org.apache.portals.tutorials
>>>> ArtifactId: portal-applications
>>>> Version: 1.0
>>>>
>>>> Reason: Unable to download the artifact from any repository
>>>>
>>>>  org.apache.portals.tutorials:portal-applications:pom:1.0
>>>>
>>>> from the specified remote repositories:
>>>>  central (http://repo1.maven.org/maven2)
>>>>
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Trace
>>>> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
>>>> org.apache
>>>> .portals.tutorials:portal-applications for project:
>>>> null:express-demo:war:null f
>>>> or project null:express-demo:war:null
>>>>        at
>>>> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>>>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>>>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>> java:39)
>>>>        at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>> sorImpl.java:25)
>>>>        at java.lang.reflect.Method.invoke(Method.java:585)
>>>>        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.apache.portals.tutorials:portal-applications for project:
>>>> null:express-dem
>>>> o:war:null for project null:express-demo:war:null
>>>>        at
>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
>>>> efaultMavenProjectBuilder.java:1370)
>>>>        at
>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
>>>> aultMavenProjectBuilder.java:821)
>>>>        at
>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
>>>> leInternal(DefaultMavenProjectBuilder.java:506)
>>>>        at
>>>> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
>>>> nProjectBuilder.java:198)
>>>>        at
>>>> org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>>>>        at
>>>> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>>>>        at
>>>> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>>>>        ... 11 more
>>>> Caused by: org.apache.maven.project.ProjectBuildingException: POM
>>>> 'org.apache.po
>>>> rtals.tutorials:portal-applications' not found in repository: Unable to
>>>> download
>>>>  the artifact from any repository
>>>>
>>>>  org.apache.portals.tutorials:portal-applications:pom:1.0
>>>>
>>>> from the specified remote repositories:
>>>>  central (http://repo1.maven.org/maven2)
>>>>  for project org.apache.portals.tutorials:portal-applications
>>>>        at
>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
>>>> sitory(DefaultMavenProjectBuilder.java:603)
>>>>        at
>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
>>>> efaultMavenProjectBuilder.java:1366)
>>>>        ... 17 more
>>>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>>>> Unable
>>>> to download the artifact from any repository
>>>>
>>>>  org.apache.portals.tutorials:portal-applications:pom:1.0
>>>>
>>>> from the specified remote repositories:
>>>>  central (http://repo1.maven.org/maven2)
>>>>
>>>>        at
>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
>>>> faultArtifactResolver.java:212)
>>>>        at
>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
>>>> faultArtifactResolver.java:74)
>>>>        at
>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
>>>> sitory(DefaultMavenProjectBuilder.java:556)
>>>>        ... 18 more
>>>> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
>>>> to downl
>>>> oad the artifact from any repository
>>>>        at
>>>> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
>>>> aultWagonManager.java:331)
>>>>        at
>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
>>>> faultArtifactResolver.java:200)
>>>>        ... 20 more
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: < 1 second
>>>> [INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
>>>> [INFO] Final Memory: 1M/2M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
>>>> emo>
>>>>
>>>> ---------------------------------------------------------------------------
>>>>
>>>> As a side-issue, I've managed to work around many of the obvious errors
>>>> in the tutorial and gotten pretty far with the changes and "delta" deploys,
>>>> but it contains so many bugs and incorrect file locations and such, that
>>>> it's almost useless as a "tutorial" for newcomers...hard to see the forest
>>>> for all the trees.  Of course, those who already have good experience with
>>>> jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant, will
>>>> probably be able to figure it out....but that's more background knowledge
>>>> than most newcomers will probably have...or are willing to learn for no
>>>> other reason than to learn portlets.
>>>>
>>>> The tutorial looks like it was quite good at one time, so it gives me
>>>> the feeling that this jetspeed (and maybe portlets in general) isn't being
>>>> actively advanced anymore. Is that so?
>>>>
>>>> Ben
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>>> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>>>
>>>>
>>>>         
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Maven error in tutorial

Posted by be...@charter.net.
Thanks. So as to not waste any more of your time, sounds like I should drop this tutorial and shift to the maven tutorial, as per David Taylor.

Hopefully I can use the maven tutorial code as Eclipse projects with some tweaking?

Ben
---- Andrew Strickland <st...@gmail.com> wrote: 
> or rather, I guess that "null" corresponds to the groupId in the POM of the
> express-demo project.  Check to see if that has a value.
> 
> On Mon, Apr 14, 2008 at 8:26 PM, Andrew Strickland <st...@gmail.com>
> wrote:
> 
> > without looking at the code, the problem to me seems to be the:
> > *
> > Caused by: org.apache.maven.project*
> > *.ProjectBuildingException: Cannot find parent
> > : org.apache.portals.tutorials**:portal-applications for project:
> > null:express-dem
> > o:war:null for project null:express-demo:war:null
> >
> > *
> > Whatever the value of the express-demo pom artifactId is, it's not
> > supposed to be "null".  Just a guess though,
> >
> > Andy
> >
> >
> >
> > On Mon, Apr 14, 2008 at 6:58 PM, <be...@charter.net> wrote:
> >
> > >
> > > Hi. I'm trying to figure out why I'm getting this maven error, at this
> > > point in the tutorial:
> > >
> > > http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
> > >
> > > Below are details of the error:
> > >
> > > ----------------------------------------------------------------
> > >  Directory of
> > > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
> > > ions\express-demo
> > >
> > > 04/14/2008  06:11 PM    <DIR>          .
> > > 04/14/2008  06:11 PM    <DIR>          ..
> > > 04/14/2008  06:11 PM             7,816 pom.xml
> > > 04/14/2008  06:11 PM    <DIR>          src
> > >               1 File(s)          7,816 bytes
> > >               3 Dir(s)  169,487,032,320 bytes free
> > >
> > >
> > > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> > > emo>mvn
> > > [INFO] Scanning for projects...
> > > Downloading:
> > > http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
> > > pplications/1.0/portal-applications-1.0.pom<http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-applications/1.0/portal-applications-1.0.pom>
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] FATAL ERROR
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Failed to resolve artifact.
> > >
> > > GroupId: org.apache.portals.tutorials
> > > ArtifactId: portal-applications
> > > Version: 1.0
> > >
> > > Reason: Unable to download the artifact from any repository
> > >
> > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > >
> > > from the specified remote repositories:
> > >  central (http://repo1.maven.org/maven2)
> > >
> > >
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Trace
> > > org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> > > org.apache
> > > .portals.tutorials:portal-applications for project:
> > > null:express-demo:war:null f
> > > or project null:express-demo:war:null
> > >        at
> > > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> > >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
> > >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >        at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > > java:39)
> > >        at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > > sorImpl.java:25)
> > >        at java.lang.reflect.Method.invoke(Method.java:585)
> > >        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.apache.portals.tutorials:portal-applications for project:
> > > null:express-dem
> > > o:war:null for project null:express-demo:war:null
> > >        at
> > > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > > efaultMavenProjectBuilder.java:1370)
> > >        at
> > > org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> > > aultMavenProjectBuilder.java:821)
> > >        at
> > > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> > > leInternal(DefaultMavenProjectBuilder.java:506)
> > >        at
> > > org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> > > nProjectBuilder.java:198)
> > >        at
> > > org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
> > >        at
> > > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
> > >        at
> > > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
> > >        ... 11 more
> > > Caused by: org.apache.maven.project.ProjectBuildingException: POM
> > > 'org.apache.po
> > > rtals.tutorials:portal-applications' not found in repository: Unable to
> > > download
> > >  the artifact from any repository
> > >
> > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > >
> > > from the specified remote repositories:
> > >  central (http://repo1.maven.org/maven2)
> > >  for project org.apache.portals.tutorials:portal-applications
> > >        at
> > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > > sitory(DefaultMavenProjectBuilder.java:603)
> > >        at
> > > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > > efaultMavenProjectBuilder.java:1366)
> > >        ... 17 more
> > > Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> > > Unable
> > > to download the artifact from any repository
> > >
> > >  org.apache.portals.tutorials:portal-applications:pom:1.0
> > >
> > > from the specified remote repositories:
> > >  central (http://repo1.maven.org/maven2)
> > >
> > >        at
> > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > faultArtifactResolver.java:212)
> > >        at
> > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > faultArtifactResolver.java:74)
> > >        at
> > > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > > sitory(DefaultMavenProjectBuilder.java:556)
> > >        ... 18 more
> > > Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
> > > to downl
> > > oad the artifact from any repository
> > >        at
> > > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> > > aultWagonManager.java:331)
> > >        at
> > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > > faultArtifactResolver.java:200)
> > >        ... 20 more
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] Total time: < 1 second
> > > [INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
> > > [INFO] Final Memory: 1M/2M
> > > [INFO]
> > > ------------------------------------------------------------------------
> > >
> > >
> > > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> > > emo>
> > >
> > > ---------------------------------------------------------------------------
> > >
> > > As a side-issue, I've managed to work around many of the obvious errors
> > > in the tutorial and gotten pretty far with the changes and "delta" deploys,
> > > but it contains so many bugs and incorrect file locations and such, that
> > > it's almost useless as a "tutorial" for newcomers...hard to see the forest
> > > for all the trees.  Of course, those who already have good experience with
> > > jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant, will
> > > probably be able to figure it out....but that's more background knowledge
> > > than most newcomers will probably have...or are willing to learn for no
> > > other reason than to learn portlets.
> > >
> > > The tutorial looks like it was quite good at one time, so it gives me
> > > the feeling that this jetspeed (and maybe portlets in general) isn't being
> > > actively advanced anymore. Is that so?
> > >
> > > Ben
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> > >
> > >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Maven error in tutorial

Posted by Andrew Strickland <st...@gmail.com>.
or rather, I guess that "null" corresponds to the groupId in the POM of the
express-demo project.  Check to see if that has a value.

On Mon, Apr 14, 2008 at 8:26 PM, Andrew Strickland <st...@gmail.com>
wrote:

> without looking at the code, the problem to me seems to be the:
> *
> Caused by: org.apache.maven.project*
> *.ProjectBuildingException: Cannot find parent
> : org.apache.portals.tutorials**:portal-applications for project:
> null:express-dem
> o:war:null for project null:express-demo:war:null
>
> *
> Whatever the value of the express-demo pom artifactId is, it's not
> supposed to be "null".  Just a guess though,
>
> Andy
>
>
>
> On Mon, Apr 14, 2008 at 6:58 PM, <be...@charter.net> wrote:
>
> >
> > Hi. I'm trying to figure out why I'm getting this maven error, at this
> > point in the tutorial:
> >
> > http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
> >
> > Below are details of the error:
> >
> > ----------------------------------------------------------------
> >  Directory of
> > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
> > ions\express-demo
> >
> > 04/14/2008  06:11 PM    <DIR>          .
> > 04/14/2008  06:11 PM    <DIR>          ..
> > 04/14/2008  06:11 PM             7,816 pom.xml
> > 04/14/2008  06:11 PM    <DIR>          src
> >               1 File(s)          7,816 bytes
> >               3 Dir(s)  169,487,032,320 bytes free
> >
> >
> > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> > emo>mvn
> > [INFO] Scanning for projects...
> > Downloading:
> > http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
> > pplications/1.0/portal-applications-1.0.pom<http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-applications/1.0/portal-applications-1.0.pom>
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] FATAL ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: org.apache.portals.tutorials
> > ArtifactId: portal-applications
> > Version: 1.0
> >
> > Reason: Unable to download the artifact from any repository
> >
> >  org.apache.portals.tutorials:portal-applications:pom:1.0
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2)
> >
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Trace
> > org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> > org.apache
> > .portals.tutorials:portal-applications for project:
> > null:express-demo:war:null f
> > or project null:express-demo:war:null
> >        at
> > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
> >        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
> >        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> > java:39)
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> > sorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:585)
> >        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.apache.portals.tutorials:portal-applications for project:
> > null:express-dem
> > o:war:null for project null:express-demo:war:null
> >        at
> > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > efaultMavenProjectBuilder.java:1370)
> >        at
> > org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> > aultMavenProjectBuilder.java:821)
> >        at
> > org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> > leInternal(DefaultMavenProjectBuilder.java:506)
> >        at
> > org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> > nProjectBuilder.java:198)
> >        at
> > org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
> >        at
> > org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
> >        at
> > org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
> >        ... 11 more
> > Caused by: org.apache.maven.project.ProjectBuildingException: POM
> > 'org.apache.po
> > rtals.tutorials:portal-applications' not found in repository: Unable to
> > download
> >  the artifact from any repository
> >
> >  org.apache.portals.tutorials:portal-applications:pom:1.0
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2)
> >  for project org.apache.portals.tutorials:portal-applications
> >        at
> > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > sitory(DefaultMavenProjectBuilder.java:603)
> >        at
> > org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> > efaultMavenProjectBuilder.java:1366)
> >        ... 17 more
> > Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> > Unable
> > to download the artifact from any repository
> >
> >  org.apache.portals.tutorials:portal-applications:pom:1.0
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2)
> >
> >        at
> > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > faultArtifactResolver.java:212)
> >        at
> > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > faultArtifactResolver.java:74)
> >        at
> > org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> > sitory(DefaultMavenProjectBuilder.java:556)
> >        ... 18 more
> > Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
> > to downl
> > oad the artifact from any repository
> >        at
> > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> > aultWagonManager.java:331)
> >        at
> > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> > faultArtifactResolver.java:200)
> >        ... 20 more
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: < 1 second
> > [INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
> > [INFO] Final Memory: 1M/2M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> >
> > C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> > emo>
> >
> > ---------------------------------------------------------------------------
> >
> > As a side-issue, I've managed to work around many of the obvious errors
> > in the tutorial and gotten pretty far with the changes and "delta" deploys,
> > but it contains so many bugs and incorrect file locations and such, that
> > it's almost useless as a "tutorial" for newcomers...hard to see the forest
> > for all the trees.  Of course, those who already have good experience with
> > jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant, will
> > probably be able to figure it out....but that's more background knowledge
> > than most newcomers will probably have...or are willing to learn for no
> > other reason than to learn portlets.
> >
> > The tutorial looks like it was quite good at one time, so it gives me
> > the feeling that this jetspeed (and maybe portlets in general) isn't being
> > actively advanced anymore. Is that so?
> >
> > Ben
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> >
> >
>

Re: Maven error in tutorial

Posted by Andrew Strickland <st...@gmail.com>.
without looking at the code, the problem to me seems to be the:
*
Caused by: org.apache.maven.project**.ProjectBuildingException: Cannot find
parent
: org.apache.portals.tutorials**:portal-applications for project:
null:express-dem
o:war:null for project null:express-demo:war:null

*Whatever the value of the express-demo pom artifactId is, it's not supposed
to be "null".  Just a guess though,

Andy



On Mon, Apr 14, 2008 at 6:58 PM, <be...@charter.net> wrote:

>
> Hi. I'm trying to figure out why I'm getting this maven error, at this
> point in the tutorial:
>
> http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
>
> Below are details of the error:
>
> ----------------------------------------------------------------
>  Directory of
> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applicat
> ions\express-demo
>
> 04/14/2008  06:11 PM    <DIR>          .
> 04/14/2008  06:11 PM    <DIR>          ..
> 04/14/2008  06:11 PM             7,816 pom.xml
> 04/14/2008  06:11 PM    <DIR>          src
>               1 File(s)          7,816 bytes
>               3 Dir(s)  169,487,032,320 bytes free
>
>
> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> emo>mvn
> [INFO] Scanning for projects...
> Downloading:
> http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-a
> pplications/1.0/portal-applications-1.0.pom<http://repo1.maven.org/maven2/org/apache/portals/tutorials/portal-applications/1.0/portal-applications-1.0.pom>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.portals.tutorials
> ArtifactId: portal-applications
> Version: 1.0
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.portals.tutorials:portal-applications:pom:1.0
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
> org.apache
> .portals.tutorials:portal-applications for project:
> null:express-demo:war:null f
> or project null:express-demo:war:null
>        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        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.apache.portals.tutorials:portal-applications for project:
> null:express-dem
> o:war:null for project null:express-demo:war:null
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:1370)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
> aultMavenProjectBuilder.java:821)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> leInternal(DefaultMavenProjectBuilder.java:506)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:198)
>        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>        at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>        ... 11 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM
> 'org.apache.po
> rtals.tutorials:portal-applications' not found in repository: Unable to
> download
>  the artifact from any repository
>
>  org.apache.portals.tutorials:portal-applications:pom:1.0
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>  for project org.apache.portals.tutorials:portal-applications
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:603)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:1366)
>        ... 17 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Unable
> to download the artifact from any repository
>
>  org.apache.portals.tutorials:portal-applications:pom:1.0
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>        at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:212)
>        at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:74)
>        at
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
> sitory(DefaultMavenProjectBuilder.java:556)
>        ... 18 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
> downl
> oad the artifact from any repository
>        at
> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
> aultWagonManager.java:331)
>        at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
> faultArtifactResolver.java:200)
>        ... 20 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Apr 14 18:17:33 EDT 2008
> [INFO] Final Memory: 1M/2M
> [INFO]
> ------------------------------------------------------------------------
>
>
> C:\downloads\Apache\JetspeedTraining\workspace\jetexpress\applications\express-d
> emo>
>
> ---------------------------------------------------------------------------
>
> As a side-issue, I've managed to work around many of the obvious errors in
> the tutorial and gotten pretty far with the changes and "delta" deploys, but
> it contains so many bugs and incorrect file locations and such, that it's
> almost useless as a "tutorial" for newcomers...hard to see the forest for
> all the trees.  Of course, those who already have good experience with
> jetspeed and/or portlets AND tomcat AND maven AND eclipse AND ant, will
> probably be able to figure it out....but that's more background knowledge
> than most newcomers will probably have...or are willing to learn for no
> other reason than to learn portlets.
>
> The tutorial looks like it was quite good at one time, so it gives me the
> feeling that this jetspeed (and maybe portlets in general) isn't being
> actively advanced anymore. Is that so?
>
> Ben
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: Maven error in tutorial

Posted by be...@charter.net.
Thanks for the explanation and offer.

I would, of course, prefer not spend a long time learning the details of yet another supporting tool (maven), just so I can take a tutorial, but on the other hand, I don't want to take up your valuable time on an ant enhancement that no one else apparently desires, so I'll shift to the maven tutorial now.

Not knowing anything about maven, can you tell me this, please? What does maven do for us, essentially, that ant cannot? 

Ben

---- David Sean Taylor <da...@bluesunrise.com> wrote: 
> 
> On Apr 14, 2008, at 3:58 PM, <be...@charter.net> <benethridge@charter.net 
>  > wrote:
> 
> >
> > Hi. I'm trying to figure out why I'm getting this maven error, at  
> > this point in the tutorial:
> >
> > http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
> >
> 
> I think I've mentioned this on the list before ... the Ant tutorials  
> are incomplete after section 2
> You have to kind of find your way through from there
> Recommend the Maven-2 tutorial, as its the exact same tutorial, just  
> with a little more challenging maven build approach
> Warning though the Maven-2 tutorial's build approach will be deprecated
> Doesn't matter too much, its just a build, important thing is to learn  
> the coding concepts
> 
> If you really can't work with Maven-2, contact me and I will try to  
> come up with an Ant solution for you...
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: Maven error in tutorial

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Apr 14, 2008, at 3:58 PM, <be...@charter.net> <benethridge@charter.net 
 > wrote:

>
> Hi. I'm trying to figure out why I'm getting this maven error, at  
> this point in the tutorial:
>
> http://portals.apache.org/tutorials/jetspeed-2-ant/03/build-it.html
>

I think I've mentioned this on the list before ... the Ant tutorials  
are incomplete after section 2
You have to kind of find your way through from there
Recommend the Maven-2 tutorial, as its the exact same tutorial, just  
with a little more challenging maven build approach
Warning though the Maven-2 tutorial's build approach will be deprecated
Doesn't matter too much, its just a build, important thing is to learn  
the coding concepts

If you really can't work with Maven-2, contact me and I will try to  
come up with an Ant solution for you...



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org