That's what I am getting now:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

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

Reason: Unable to download the artifact from any 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 -DartifactId=portal-archetype \
       -Dversion=2.1-dev -Dpackaging=jar -Dfile=/path/to/file


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

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



A quick google gave me this: http://www.mail-archive.com/[email protected]/msg05654.html
so I downloaded repository.zip and extracted it.

The problem I faced is when doing:
mvn -P tomcat,min

I get the following:
deploy-shared-components:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
/home/mansour/workspace/Jetspeed/jetexpress/app-servers/build.xml:89: The following error occurred while executing this line: /home/mansour/workspace/Jetspeed/jetexpress/app-servers/build.xml:145: The following error occurred while executing this line: /home/mansour/workspace/Jetspeed/jetexpress/app-servers/tomcat-build.xml:88: The following error occurred while executing this line: /home/mansour/workspace/Jetspeed/jetexpress/app-servers/tomcat-build.xml:278: /opt/tomcat/shared/lib not found. [INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28 seconds
[INFO] Finished at: Mon Aug 06 20:09:08 ADT 2007
[INFO] Final Memory: 25M/46M
[INFO] ------------------------------------------------------------------------

What do I need to edit. I tried editing the path to the derby jar in ~/.m2/settings.xml. Still did not help.




Brice Lambi wrote:
That file is at the maven project root of the source distribution.  it looks
like they have 2.1.2-src packaged a little funny, there is a src dir under
the root and that is the maven project root.


On 8/6/07, Mansour <[EMAIL PROTECTED]> wrote:
Thank you for you reply. I couldn't manage to obtain
settings.xml.sample. Where Do I find it?


Brice Lambi wrote:
I understand the transistion between maven 1 and 2 is confusing.  I
would
suggest only using maven2 and the info you find here:

http://portals.apache.org/tutorials/jetspeed-2/

It is really simple, copy settings.xml.sample to ~/.m2/settings.xml and
edit
the relevant values.  Then simply run 'mvn' to install to your local
repository and 'mvn -P tomcat' to deploy to tomcat.  At first don't
bother
with generating a custom portal, just deploy the default and you can
make
changes from there.

Good luck.



On 8/6/07, Mansour <[EMAIL PROTECTED]> wrote:

I have been already trying to learn jetspeed for more than 2 weeks. I
give up, then I go back because it's the only framework that has what I
need. The documentation sucks. Honestly, I regret the time I have
wasted, it would have been easier for me to write my own security layer
for roles/groups management. The documents sometimes instruct you to
use
maven-1 and then switches to maven-2. And worse, none of the
instruction
works.

I tried the installer for jetspeed-2 and it works fine. But a lot of
things that I don't need and frustrated about. What are all these
directories. I don't want an embeded tomcat. I need to understand how
to
deploy jetspeed and customize it. Then I will dive into how to add my
own portlets.


The last thing I was trying to do is following this page
http://portals.apache.org/jetspeed-2/getting-started-binary.html

I created a directory ~/workspace/jetspeed. And put in that directory
build.properties , which contains:

basedir = ~/workspace/myportal
maven.repo.remote = http://www.bluesunrise.com/maven/,
http://www.ibiblio.org/maven/, http://dist.codehaus.org/,
http://cvs.apache.org/repository



then, when I ran: maven j2:portal.genapp , I get:

BUILD FAILED
File......
/home/mansour/.maven/cache/maven-jetspeed2-plugin-2.1.2/plugin.jelly
Element... fail
Line...... 735
Column.... 42
Required property org.apache.jetspeed.server.home undefined. See
http://portals.apache.org/jetspeed-2/getting-started.html.
Total time: 2 seconds
Finished at: Mon Aug 06 12:44:02 ADT 2007

Is there a clean place to learn about Jetspeed-2 other than the docs.





---------------------------------------------------------------------
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]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to