我完全是Maven的新手.我想用Eclipse Juno EE和原型"webapp"创建一个Maven项目.我安装了"Maven Integration for Eclipse WTP(孵化)",我还安装了"Maven Integration for Eclipse"(在Eclipse Marketplace的Installed选项卡上找到它).当我尝试从File-> New_> Maven Project创建新项目时,我得到错误:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Documents and Settings\PEP35KD\.m2\repository) Failed to resolve version for org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE: Could not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Documents and Settings\PEP35KD\.m2\repository)
它适用于各种原型.我正在使用代理,我使用以下内容在C:\ Documents and Settings\PEP35KD.m2 \下创建文件settings.xml:
<proxies>
<proxy>
<id>myId</id>
<active>true</active>
<protocol>http</protocol>
<username>rete\pep35kd</username>
<password>XXXX</password>
<host>XXXX</host>
<port>8080</port> …Run Code Online (Sandbox Code Playgroud) 我需要在 JSDoc 中添加教程的静态资源。我的项目结构是:
PROJECT ROOT
|
|
---> Project directory A
---> Project directory B
---> ...
|
---> Tutorials
|
|
|
-------->IMG
Run Code Online (Sandbox Code Playgroud)
目录tutorials/img 包含我想要包含的静态资源。我的conf文件是:
{
"tags": {
"allowUnknownTags": true,
"dictionaries": [
"jsdoc",
"closure"
]
},
"source": {
"include": [
"modules/abstractModel.js",
"modules/abstractMediator.js",
"modules/abstractTemplate.js",
"modules/abstractView.js",
"modules/modelEvent/modelEvent.js"
],
//"exclude": ["http/httpSession.js", "http/wyPlayWrapper.js", "util/service.js"],
"includePattern": ".+\\.js(doc)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"plugins": [],
"templates": {
"default": {
"staticFiles": {
"include": ["./trunk/tutorials/img/"]
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
这是我用来生成文档的命令行(从 shell 执行到 PROJECT ROOT 目录):
jsdoc -c conf/jsdoc.conf -u …