我无法为maven 2.2.1配置setting.xml以在jahia上创建模块项目

时间:2013-12-03 16:17:41

标签: eclipse maven

当我想用maven创建一个带有原型的项目时我有这个错误:

-C:\Users\m026777\Documents\Workspace-jahia>mvn archetype:generate -DarchetypeCat
alog=http://maven.jahia.org/maven2

[INFO] Scanning for projects...


[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.jahia.server: checking for updates from central
[WARNING] repository metadata for: 'org.jahia.server' could not be retrieved fro
m repository: central due to an error: Error transferring file: Connection timed
 out: connect

[INFO] Repository 'central' will be blacklisted
[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exi
st or no valid version could be found

 ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42 seconds
[INFO] Finished at: Tue Dec 03 16:30:58 CET 2013
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------

Maven配置正确我想我可以知道我的版本。 我在我的setting.xml中配置了代理,如下所示:

//

xml version="1.0" encoding="UTF-8"    
settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
     localRepository>C:\Users\m026777\.m2\repository/localRepository
      proxies
   proxy

      active>true</active
      protocol>http</protocol
      host>10.100.6.93</host
      <port>8080</port>

      <nonProxyHosts>127.0.0.1</nonProxyHosts>
    </proxy>

  </proxies>

  <servers>

    <server>
      <id>jahiaRepository</id>
      <username>maven</username>
    </server>
  </servers>
    <profiles>

        <profile>
            <id>configure</id>
            <properties>
                <jahia.configure.active>true</jahia.configure.active>
                <jahia.configure.databaseType>mysql</jahia.configure.databaseType>
                <jahia.configure.databaseUrl>[jdbc:mysql://localhost/cj?useUnicode=true&amp;characterEncoding=UTF-8&amp;useServerPrepStmts=false]</jahia.configure.databaseUrl>
                <jahia.configure.databaseUsername></jahia.configure.databaseUsername>
                <jahia.configure.databasePassword></jahia.configure.databasePassword>
                <jahia.configure.localIp>127.0.0.1</jahia.configure.localIp>
                <jahia.configure.developmentMode>true</jahia.configure.developmentMode>
                <jahia.configure.outputContainerCacheActivated>false</jahia.configure.outputContainerCacheActivated>
                <jahia.deploy.processingServer>true</jahia.deploy.processingServer>
            </properties>
        </profile>

        <profile>
            <id>jahia6</id>
            <properties>
                <jahia.deploy.targetServerType>tomcat</jahia.deploy.targetServerType>
                <jahia.deploy.targetServerVersion>6</jahia.deploy.targetServerVersion>
                <jahia.deploy.targetServerDirectory>C:\Ent-Jahia_xCM_v6.6.2.0\tomcat</jahia.deploy.targetServerDirectory>
                <jahia.deploy.war.dirName>ROOT</jahia.deploy.war.dirName>
                <jahia.deploy.war.contextPath>/</jahia.deploy.war.contextPath>
                <jahia.deploy.war.servletPath>/cms</jahia.deploy.war.servletPath>
                <jahia.debug.address>socket:[hostname=localhost],port=5005</jahia.debug.address>
                <jahia.test.url>[1][http://localhost:8080/cms]</jahia.test.url>
            </properties>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>jahia6</activeProfile>
        <activeProfile>configure</activeProfile>
    </activeProfiles>
    <pluginGroups>
        <pluginGroup>org.jahia.server</pluginGroup>
    </pluginGroups>
</settings>

请帮帮我。

0 个答案:

没有答案