`
huhai
  • 浏览: 9871 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

windows上jetspeed2安装和配置

阅读更多

1、jetspeed2的安装
首页
http://portals.apache.org/jetspeed-2/

下载文件
jetspeed-installer-minimal-2.2.0.jar

安装
java -jar jetspeed-installer-minimal-2.2.0.jar
打开了图形化安装界面

命令行安装
java -jar jetspeed-installer-minimal-2.2.0.jar text

我的安装路径
e:\apache\Jetspeed-2.2.0

选择数据库
mysql

下载mysql驱动
http://dev.mysql.com/downloads/
5.0驱动地址
http://dev.mysql.com/downloads/connector/j/5.0.html

启动
cd e:\apache\Jetspeed-2.2.0\bin
startup.bat

访问地址
http://localhost:8080/jetspeed/portal

http://localhost:8080/jetspeed/desktop

用户名和密码
admin    -- System administrator, super user
manager   - Has system administration rights, but not super user
user    -- A sample user demonstrating with with a home page and advanced profiled menus
tomcat    -- A sample user demonstrating a user without a home page
jetspeed -- A sample user demonstrating discovery of pages by both group and role fallback profiling algorithms
subsite   -- Example of how to setup users with a primary subsite role fallback profiling rules
subsite2 -- Example of how to setup users with a secondary subsite role fallback profiling rules
devmgr    -- Delegated security manager, can manage users with the "dev" (developer) role

2、创建自己的portal
参考文档
http://portals.apache.org/jetspeed-2/tutorial/index.html

http://portals.apache.org/jetspeed-2/buildguide/jetspeed-archetype.html

解开压缩文件
jetspeed-2-2.2.0-src.zip
cd E:\book\opensource\jetspeed\jetspeed-2-2.2.0

编译和安装jetspeed maven plugin
mvn install -P init

修改maven2配置文件D:\tool\apache-maven-2.2.1\conf\settings.xml
<pluginGroup>org.apache.portals.jetspeed-2</pluginGroup>

using the jetspeed-archetype maven plugin

mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
    -DarchetypeGroupId=org.apache.portals.jetspeed-2
    -DarchetypeArtifactId=jetspeed-archetype
    -DarchetypeVersion=2.2.0
    -DartifactId=surpassPortal
    -Dpackage=cn.surpass.surpassPortal
    -DgroupId=cn.surpass.surpassPortal -Dversion=1.0.0

生成surpassPortal 应用
cd e:\workspace

mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
-DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=jetspeed-archetype
-DarchetypeVersion=2.2.0
-DartifactId=surpassPortal
-Dpackage=cn.surpass.surpassPortal
-DgroupId=cn.surpass.surpassPortal -Dversion=1.0.0

修改配置文件jetspeed-mvn-settings.xml
<org.apache.jetspeed.server.home>d:/dev/apache-tomcat-6.0.18/</org.apache.jetspeed.server.home>
<org.apache.jetspeed.catalina.version.major>6</org.apache.jetspeed.catalina.version.major>
<org.apache.jetspeed.production.database.default.name>mysql</org.apache.jetspeed.production.database.default.name>
<org.apache.jetspeed.production.jdbc.driver.groupId>mysql</org.apache.jetspeed.production.jdbc.driver.groupId>
<org.apache.jetspeed.production.jdbc.driver.artifactId>mysql-connector-java</org.apache.jetspeed.production.jdbc.driver.artifactId>
<org.apache.jetspeed.production.jdbc.driver.version>5.1.6</org.apache.jetspeed.production.jdbc.driver.version>
<org.apache.jetspeed.production.database.driver>com.mysql.jdbc.Driver</org.apache.jetspeed.production.database.driver>
<org.apache.jetspeed.production.database.url><![CDATA[jdbc:mysql://127.0.0.1/portal?useServerPrepStmts=false&amp;jdbcCompliantTruncation=false]]></org.apache.jetspeed.production.database.url>
<org.apache.jetspeed.production.database.user>portal</org.apache.jetspeed.production.database.user>
<org.apache.jetspeed.production.database.password>portal</org.apache.jetspeed.production.database.password>

发布应用到tomcat
mvn jetspeed:mvn -Dtarget=all

其他命令
mvn jetspeed:mvn -Dtarget=deploy-pa
mvn jetspeed:mvn -Dtarget=deploy-portal

启动tomcat
D:\eclipse-jee\apache-tomcat-6.0.18\bin

 

访问
http://localhost:8080/surpassPortal/portal

分享到:
评论
4 楼 helloklzs 2011-08-16  
楼上的这个问题,是不是通过eclipse中maven插件执行报出来的,你可以用maven本地工具进行执行下试一试,在工程目录中执行命令:mvn clean install,我测试过了,是成功的
3 楼 koko2031 2011-04-08  
我也碰到这个问题。
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:59.918s
[INFO] Finished at: Fri Apr 08 05:58:29 GMT 2011
[INFO] Final Memory: 5M/9M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-deploy-mav
en-plugin:2.2.0:deploy (deploy-jetspeed-layouts) on project jetexpress-portal: A
rtifact org.apache.portals.jetspeed-2:jetspeed-layouts:war dependency not define
d -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.portals.jetspeed-2:jetspeed-deploy-maven-plugin:2.2.0:deploy (deploy-j
etspeed-layouts) on project jetexpress-portal: Artifact org.apache.portals.jetsp
eed-2:jetspeed-layouts:war dependency not defined
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact org.apache.p
ortals.jetspeed-2:jetspeed-layouts:war dependency not defined
        at org.apache.jetspeed.maven.plugins.DeployMojo.execute(DeployMojo.java:
210)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jetexpress portal project ......................... FAILURE [15:37.639s]
[INFO] jetexpress portal ................................. SKIPPED
[INFO] jetexpress portlet application .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:56.983s
[INFO] Finished at: Fri Apr 08 05:58:29 GMT 2011
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-mvn-maven-
plugin:2.2.0:mvn (default-cli) on project jetexpress: ...FAILED[code=1]. -> [Hel
p 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.portals.jetspeed-2:jetspeed-mvn-maven-plugin:2.2.0:mvn (default-cli) o
n project jetexpress: ...FAILED[code=1].
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoFailureException: ...FAILED[code=1].
        at org.apache.jetspeed.maven.plugins.MvnMojo.executeTarget(MvnMojo.java:
506)
        at org.apache.jetspeed.maven.plugins.MvnMojo.execute(MvnMojo.java:328)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
2 楼 huhai 2011-02-18  
现在的2.2.1 版本了,去按官网的指导操作吧
1 楼 zhjb_javaeye 2011-02-18  
楼主你好,我要创建自己的Portal照你的方法进行安装报错:org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-unpack-maven-plugin:2.2.1:unpack (unpack-jetspeed-properties) on project taichina-portal: unpack artifact org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar not defined as plugin dependency
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: unpack artifact org.apache.portals.jetspeed-2:jetspeed-portal-resources:jar not defined as plugin dependency
        at org.apache.jetspeed.maven.utils.UnpackResources.unpack(UnpackResources.java:352)
        at org.apache.jetspeed.maven.mojo.AbstractUnpackMojo.execute(AbstractUnpackMojo.java:54)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
请问你在安装时有没遇到同样问题呢????

相关推荐

Global site tag (gtag.js) - Google Analytics