glad to see that you made some progress...anyway, ${maven.build.dir} defaults to ${basedir}/targetHmm I think we're getting close to the problem. My maven.xml does have that fragment, but here's what maven outputs when that bit runs:
jar:
[echo] Deleting uneeded resources from ... [delete] Deleting 2 files from /home/user/dev/jetspeed-1.5 [delete] Deleting 819 files from /home/user/dev/jetspeed-1.5 [echo] Copying jetspeed-1.5.jar to ... [copy] Copying 1 file to /WEB-INF/lib [echo] Building WAR jetspeed [jar] Building jar: /home/user/dev/jetspeed-1.5/target/jetspeed.war BUILD SUCCESSFUL
So looks like my ${maven.war.webapp.dir} isn't properly set. It's trying to
write WEB-INF to the root.
You may ask, how on earth can a user write to / anyway?
Well now I remembered that, in one of my many previous attempts at making the build work, I manually created a WEB-INF in / and changed permissions so that users could write to it, just so that maven would find "/WEB-INF/lib". This is obviously wrong, and was just hidding the fact that a variable isn't properly set.
After googling a bit I found that ${maven.war.webapp.dir} is optional and defaults to ${maven.war.build.dir}/${pom.artifactId}, and that ${maven.war.build.dir} defaults to ${maven.build.dir}. I can't find where ${maven.build.dir} or any of ther other ones are set...
Regards
Daniel
-----Original Message-----
From: Henry S. Isidro [mailto:[EMAIL PROTECTED] Sent: 08 May 2004 06:31
To: Jetspeed Users List
Subject: Re: jetspeed-1.5 build problems
check maven.xml, under the element <preGoal name="war:war">, it should have this fragment
<echo>Copying ${maven.final.name}.jar to ${maven.war.webapp.dir}...</echo> <copy todir="${maven.war.webapp.dir}/WEB-INF/lib">
<fileset dir="${maven.build.dir}">
<include name="${maven.final.name}.jar"/>
</fileset>
</copy>
-- Henry S. Isidro Software Engineer Exist Software Labs
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hope that helps
-- Henry S. Isidro Software Engineer Exist Software Labs
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
