1. Sebastian Sebastian
  2. scm-manager
  3. Issues

Issues

Issue #518 resolved

could not find config.xml in scm-plugin-backend

Anonymous created an issue

When I try to run the scm-plugin-backend, it throw a exception that is "could not find configuration at ....scm-backend\config.xml", and I cant not find it in github.

Comments (4)

  1. Sebastian Sebastian repo owner

    Here is a sample config.xml for the backend:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configuration>
    
      <admin-account>
        <username></username>
        <salt></salt>
        <password></password>
      </admin-account>
    
      <tracking-code>UA-00000000-00</tracking-code>
    
      <scann-interval>30m</scann-interval>
    
      <multithreaded>true</multithreaded>
    
      <news-settings>
        <url>http://www.scm-manager.org/feed/</url>
        <cache-enabled>false</cache-enabled>
        <copy-request-headers>false</copy-request-headers>
        <copy-response-headers>false</copy-response-headers>
      </news-settings>
    
      <excludes>
        <!-- exclude milestone releases -->
        <exclude>.*-M.\.jar</exclude>
        <!-- exclude milestone snapshots -->
        <exclude>.*-M.-SNAPSHOT\.jar</exclude>
        <exclude>.*-M.-[0-9]+\.[0-9]+-[0-9]+\.jar</exclude>
        <!-- exclude source jars -->
        <exclude>.*-sources\.jar</exclude>
        <!-- exclude javadoc jars -->
        <exclude>.*-javadoc\.jar</exclude>
        <!-- exclude core plugins -->
        <exclude>.*scm-hg-plugin.*.jar</exclude>
        <exclude>.*scm-svn-plugin.*.jar</exclude>
        <exclude>.*scm-git-plugin.*.jar</exclude>
      </excludes>
    
      <directories>
        <directory>/path/to/your/directory</directory>
        <directory>/path/to/another/directory</directory>
      </directories>
    
      <repositories>
        <repository>
          <id>central</id>
          <url>http://repo1.maven.org/maven2/</url>
        </repository>
        <repository>
          <id>scm.maven</id>
          <url>http://maven.scm-manager.org/nexus/content/groups/public/</url>
        </repository>
        <repository>
          <id>java.net2</id>
          <url>http://download.java.net/maven/2</url>
        </repository>
      </repositories>
    
    </configuration>
    

    You have to add your credentials to the admin account, change the directories to your maven repositories and you have to add the url to your maven repository. You can create the salt and the password hash with the attached command line util.

  2. Log in to comment