Menu

Developing OpenCms with Maven

Help
Marc
2012-05-28
2013-04-25
  • Marc

    Marc - 2012-05-28

    Hi,

    the opencms-wiki says to use the following command:

    mvn archetype:generate -DarchetypeCatalog=http://bp-cms-commons.sourceforge.net/m2repo
    

    for \\\\\\\"creating the template of the Opencms-Module\\\\\\\".

    For me this results in the following output:

    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: \\\\\\\'archetype\\\\\\\'.
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO]    task-segment: [archetype:generate] (aggregator-style)
    [INFO] ------------------------------------------------------------------------
    [INFO] Preparing archetype:generate
    [INFO] No goals needed for project - skipping
    [INFO] [archetype:generate {execution: default-cli}]
    [INFO] Generating project in Interactive mode
    [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
    Choose archetype:
       Your filter doesn\\\\\\\'t match any archetype (hint: enter to return to initial list)
    Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): :
    

    I don\\\\\\\'t know much about maven, I\\\\\\\'m afraid, but my guess is, that the archetype in
    http://bp-cms-commons.sourceforge.net/m2repo/archetype-catalog.xml is not valid.

    Also I noticed in the opencms-mailing-list, that there is a repo for 8.0.4 on
    http://repo2.maven.org/ now, but also don\\\\\\\'t know how to use.

    My goal would be mainly to have an eclipse project with all the dependencies configured correctly
    mainly to have full auto-completion and other IDE-support. If I had an already preconfigured webapp
    to deploy this would also be nice.
    Up til 7.5.2 I was using the maven plugin from comundus, which doesn\\\\\\\'t seem to have support
    for version 8 yet.

    I\\\\\\\'d be thankful for any hints or advice.

    Greetings
    Marc Johnen

     
  • Brabenetz Harald

    Sorry for the late answer.

    I fixed the bp-cms-commons - archetype for maven modules (the archetype-catalog.xml File was corrupt):
    http://www.opencms-wiki.org/wiki/Developing_OpenCms_with_Maven_%28inkl._Eclipse%29#Developing_OpenCms_with_Maven

    The correct archetype-catalog.xml is:

    <?xml version="1.0" encoding="UTF-8"?><archetype-catalog>
      <archetypes>
        <archetype>
          <groupId>at.infonova.opencms.archetypes</groupId>
          <artifactId>opencms-webapp-archetype</artifactId>
          <version>1.0-B1</version>
          <repository>http://bp-cms-commons.sourceforge.net/m2repo</repository>
          <description>Open Source OpenCms Webapp Archetype (Infonova Sourceforge for OpenCms 7.5.2) Beta 1</description>
        </archetype>
        <archetype>
          <groupId>at.infonova.opencms.archetypes</groupId>
          <artifactId>opencms-module-archetype</artifactId>
          <version>1.0.1</version>
          <repository>http://bp-cms-commons.sourceforge.net/m2repo</repository>
          <description>Open Source OpenCms Module Archetype (Infonova Sourceforge) Version 1.0.1</description>
        </archetype>
      </archetypes>
    </archetype-catalog>
    

    with friendly regards,
    Harald

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.