Return-Path: Delivered-To: apmail-portals-jetspeed-user-archive@www.apache.org Received: (qmail 79340 invoked from network); 15 Apr 2008 14:58:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Apr 2008 14:58:31 -0000 Received: (qmail 38155 invoked by uid 500); 15 Apr 2008 14:58:31 -0000 Delivered-To: apmail-portals-jetspeed-user-archive@portals.apache.org Received: (qmail 37778 invoked by uid 500); 15 Apr 2008 14:58:30 -0000 Mailing-List: contact jetspeed-user-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Users List" Delivered-To: mailing list jetspeed-user@portals.apache.org Received: (qmail 37767 invoked by uid 99); 15 Apr 2008 14:58:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2008 07:58:30 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of strickla@gmail.com designates 66.249.82.230 as permitted sender) Received: from [66.249.82.230] (HELO wx-out-0506.google.com) (66.249.82.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2008 14:57:47 +0000 Received: by wx-out-0506.google.com with SMTP id i28so1643429wxd.20 for ; Tue, 15 Apr 2008 07:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=jlGOXnltZ9yl5HA1EyQ9TS+LGWs+NCTLLmB2aicHqQA=; b=dbxR74TkgREpdCrX5lronWbVNYmZlPw9jcMXom64rBA5LnEXqBxrwJY0fbzC51Wvo1GcR66Jusyc5aozLcMuDjD5CVAcNcCRg+yavIxBamzqpTarIgCv4tcEts9RmbCaCviYkSwzLzBArtAEDCZzaPa00vx4rMtcSfccw3dW8/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=HO5BBk+rB3sTnAKog7xo54KsoKwv7WRuvJzkRdJH2PzZXgtvAZozf9hJj/B3bHJUrBz8aFH7WtwM4kei3RFR8zODDY1k6k/iongRpipc4y025z5Mi8AO4cUl8Okg9dcIHK2bE5xBbjuQ6+mtIODev0009l/suuEClMD6c1nfql4= Received: by 10.140.208.14 with SMTP id f14mr4332664rvg.283.1208271478254; Tue, 15 Apr 2008 07:57:58 -0700 (PDT) Received: by 10.141.34.5 with HTTP; Tue, 15 Apr 2008 07:57:58 -0700 (PDT) Message-ID: <94cd6be60804150757g6b11bb92o9e7ac5358ec5e246@mail.gmail.com> Date: Tue, 15 Apr 2008 10:57:58 -0400 From: "Andrew Strickland" To: "Jetspeed Users List" Subject: Re: Maven error in tutorial In-Reply-To: <4804B1B4.6060409@artifact-software.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1856_22208592.1208271478245" References: <20080415072648.R2S1Z.269793.root@fepweb01> <4804B1B4.6060409@artifact-software.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1856_22208592.1208271478245 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 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 > > > > > > 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, 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 . > > > > > 04/14/2008 06:11 PM .. > > > > > 04/14/2008 06:11 PM 7,816 pom.xml > > > > > 04/14/2008 06:11 PM 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 > > ------=_Part_1856_22208592.1208271478245--