为什么我的Maven原型:生成失败?

时间:2015-02-23 17:17:37

标签: maven cq5 aem

我是CQ环境的新手,但不是Maven,Eclipse或Java,但我完全难过。我试图通过几个CQ的教程,我在第一个上遇到麻烦: 使用CQ 5.6.1,Maven 3.2.5和JDK 7。

我正在运行以下Maven命令来支持我的第一个CQ项目:

mvn archetype:generate \
-DarchetypeRepository=adobe-public-releases \
-DarchetypeGroupId=com.day.jcr.vault \
-DarchetypeArtifactId=multimodule-content-package-archetype \
-DarchetypeVersion=1.0.2 \
-DgroupId=my-group-id \
-DartifactId=myproject \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.mycompany.myproject \
-DappsFolderName=myproject \
-DartifactName="My Project" \
-DcqVersion="5.6.1" \
-DpackageGroup="My Company" -e -X

我的〜/ .m2 / settings.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">
  <proxies></proxies>
  <servers></servers>
  <mirrors></mirrors>
  <profiles>
    <!-- ====================================================== -->
    <!-- A D O B E   P U B L I C   P R O F I L E                -->
    <!-- ====================================================== -->
    <profile>
      <id>adobe-public</id>

      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>

      <properties>
        <releaseRepository-Id>adobe-public-releases</releaseRepository-Id>
        <releaseRepository-Name>Adobe Public Releases</releaseRepository-Name>
        <releaseRepository-URL>http://repo.adobe.com/nexus/content/groups/public</releaseRepository-URL>
      </properties>

      <repositories>
        <repository>
          <id>adobe-public-releases</id>
          <name>Adobe Public Repository</name>
          <url>http://repo.adobe.com/nexus/content/groups/public</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>

      <pluginRepositories>
        <pluginRepository>
          <id>adobe-public-releases</id>
          <name>Adobe Public Repository</name>
          <url>http://repo.adobe.com/nexus/content/groups/public</url>
          <releases>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
          </releases>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>

  <activeProfiles>
    <activeProfile>adobe-public</activeProfile>
  </activeProfiles>
  <pluginGroups>
    <pluginGroup>org.sonatype.plugins</pluginGroup>
    <pluginGroup>com.day.jcr.vault</pluginGroup>
    <pluginGroup>org.apache.sling</pluginGroup>
    <pluginGroup>com.adobe.granite</pluginGroup>
  </pluginGroups>
</settings>

Pastebin link to my terminal output

1 个答案:

答案 0 :(得分:0)

这被报告为错误JDK-7044060并且最近修复了。