title: Failed to determine suitable jdbc url
body: <p>So when I run the command "mvn clean spring-boot:run" I get the following error:</p>
  
  <pre><code>Description:
  
  Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
  
  Reason: Failed to determine suitable jdbc url
  
  
  Action:
  
  Consider the following:
      If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
      If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
  </code></pre>
  
  <p>I know this might seem like a duplicate question because there are similar questions on StackOverflow but they are not the same. I can't find any explanation to this line:</p>
  
  <pre><code>Reason: Failed to determine suitable jdbc url
  </code></pre>
  
  <p>I'm new to springboot and it's the first time I'm playing with something like this.
  I will leave my pom.xml file here.
  Any help is very appreciated, 
  Thank you for your time! </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.2.2.RELEASE&lt;/version&gt;
          &lt;relativePath/&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;pt.ulisboa.tecnico.socialsoftware&lt;/groupId&gt;
      &lt;artifactId&gt;quizzes-tutor-backend&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;Quizzes Tutor Backend&lt;/name&gt;
      &lt;description&gt;Tutor System for the Software Architecture Course&lt;/description&gt;
  
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;fenix-ashes-maven-repository&lt;/id&gt;
              &lt;url&gt;https://fenix-ashes.ist.utl.pt/nexus/content/groups/fenix-ashes-maven-repository&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;properties&gt;
          &lt;java.version&gt;11&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;!-- Allows multiple properties files--&gt;
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;dev&lt;/id&gt;
              &lt;properties&gt;
                  &lt;activatedProperties&gt;dev&lt;/activatedProperties&gt;
              &lt;/properties&gt;
              &lt;activation&gt;
                  &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
              &lt;/activation&gt;
  
  &lt;!--Git Hook--&gt;
  &lt;!--            &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                      &lt;/plugin&gt;
  
                      &lt;plugin&gt;
                          &lt;groupId&gt;io.github.phillipuniverse&lt;/groupId&gt;
                          &lt;artifactId&gt;githook-maven-plugin&lt;/artifactId&gt;
                          &lt;version&gt;1.0.4&lt;/version&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;install&lt;/goal&gt;
                                  &lt;/goals&gt;
                                  &lt;configuration&gt;
                                      &lt;hooks&gt;
                                          &lt;pre-push&gt;
                                              BRANCH=$(git rev-parse &amp;#45;&amp;#45;abbrev-ref HEAD)
                                              if [[ "$BRANCH" == "master" ]]; then
                                                  cd backend
                                                  exec mvn clean -Ptest test
                                              fi
                                          &lt;/pre-push&gt;
                                      &lt;/hooks&gt;
                                  &lt;/configuration&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;--&gt;
  
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;id&gt;prod&lt;/id&gt;
              &lt;properties&gt;
                  &lt;activatedProperties&gt;prod&lt;/activatedProperties&gt;
              &lt;/properties&gt;
          &lt;/profile&gt;
          &lt;profile&gt;
              &lt;id&gt;test&lt;/id&gt;
              &lt;properties&gt;
                  &lt;activatedProperties&gt;test&lt;/activatedProperties&gt;
              &lt;/properties&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                          &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                      &lt;/plugin&gt;
  
                      &lt;plugin&gt;
                          &lt;!-- The gmavenplus plugin is used to compile Groovy code. To learn
                              more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki --&gt;
                          &lt;groupId&gt;org.codehaus.gmavenplus&lt;/groupId&gt;
                          &lt;artifactId&gt;gmavenplus-plugin&lt;/artifactId&gt;
                          &lt;version&gt;1.5&lt;/version&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;addTestSources&lt;/goal&gt;
                                      &lt;goal&gt;testCompile&lt;/goal&gt;
                                  &lt;/goals&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
  
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                          &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                          &lt;version&gt;2.22.2&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;useFile&gt;false&lt;/useFile&gt;
                              &lt;includes&gt;
                                  &lt;include&gt;**/*Test.java&lt;/include&gt;
                                  &lt;include&gt;**/*Spec.java&lt;/include&gt;
                              &lt;/includes&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
  
                      &lt;plugin&gt;
                          &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
                          &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
                          &lt;version&gt;0.8.4&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;excludes&gt;
                                  &lt;exclude&gt;/static/export/*&lt;/exclude&gt;
                              &lt;/excludes&gt;
                          &lt;/configuration&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;prepare-agent&lt;/goal&gt;
                                  &lt;/goals&gt;
                              &lt;/execution&gt;
                              &lt;execution&gt;
                                  &lt;id&gt;report&lt;/id&gt;
                                  &lt;phase&gt;test&lt;/phase&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;report&lt;/goal&gt;
                                  &lt;/goals&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
              &lt;version&gt;2.2.4.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
              &lt;version&gt;2.4.0-b180830.0359&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-configuration-processor&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Dependency of spring-boot-starter-web but with more recent version without vulnerabilities --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
              &lt;version&gt;2.10.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Access Control --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Postgres --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- In memory database for tests --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;version&gt;1.4.200&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Swagger --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
              &lt;version&gt;2.9.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.springfox&lt;/groupId&gt;
              &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
              &lt;version&gt;2.9.2&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Fenix --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.fenixedu&lt;/groupId&gt;
              &lt;artifactId&gt;feaf4j-api&lt;/artifactId&gt;
              &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.fenixedu&lt;/groupId&gt;
              &lt;artifactId&gt;feaf4j-okhttp&lt;/artifactId&gt;
              &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://www.baeldung.com/spring-retry --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.retry&lt;/groupId&gt;
              &lt;artifactId&gt;spring-retry&lt;/artifactId&gt;
              &lt;version&gt;1.2.5.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-aspects&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- For Working with Json Web Tokens (JWT) --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
              &lt;artifactId&gt;jjwt-api&lt;/artifactId&gt;
              &lt;version&gt;0.11.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
              &lt;artifactId&gt;jjwt-impl&lt;/artifactId&gt;
              &lt;version&gt;0.11.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.jsonwebtoken&lt;/groupId&gt;
              &lt;artifactId&gt;jjwt-jackson&lt;/artifactId&gt;
              &lt;version&gt;0.11.0&lt;/version&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Import/Export --&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;jaxen&lt;/groupId&gt;
              &lt;artifactId&gt;jaxen&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jdom&lt;/groupId&gt;
              &lt;artifactId&gt;jdom2&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Spock testing framework --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.spockframework&lt;/groupId&gt;
              &lt;artifactId&gt;spock-spring&lt;/artifactId&gt;
              &lt;version&gt;1.3-groovy-2.5&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.spockframework&lt;/groupId&gt;
              &lt;artifactId&gt;spock-core&lt;/artifactId&gt;
              &lt;version&gt;1.3-groovy-2.5&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Specific Groovy version rather than the one specified by spock-core --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
              &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
              &lt;version&gt;2.4.15&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Enables mocking of classes without default constructor (together with CGLIB) --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.objenesis&lt;/groupId&gt;
              &lt;artifactId&gt;objenesis&lt;/artifactId&gt;
              &lt;version&gt;2.6&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Here is my application.properties file:</p>
  
  <pre><code>## Profile specific properties
  spring.profiles.active=@activatedProperties@
  
  ## maven directory
  maven.basedir=@project.basedir@
  
  ## Datasource
  spring.datasource.driver-class-name=org.postgresql.Driver
  
  # A list of all Hikari parameters with a good explanation is available on https://github.com/brettwooldridge/HikariCP#configuration-knobs-baby
  # This property controls the minimum number of idle connections that HikariCP tries to maintain in the pool. Default: same as maximumPoolSize
  spring.datasource.hikari.minimumIdle=10
  # This property controls the maximum size that the pool is allowed to reach, including both idle and in-use connections. Basically this value will determine the maximum number of actual connections to the database backend.
  # Default: 10
  spring.datasource.hikari.maximumPoolSize=100
  #This property controls the maximum number of milliseconds that a client (that's you) will wait for a connection from the pool. If this time is exceeded without a connection becoming available, a SQLException will be thrown.
  #Lowest acceptable connection timeout is 250 ms. Default: 30000 (30 seconds)
  spring.datasource.hikari.connectionTimeout=600000
  # This property controls the maximum amount of time that a connection is allowed to sit idle in the pool. This setting only applies when minimumIdle is defined to be less than maximumPoolSize
  # Default: 600000 (10 minutes)
  spring.datasource.hikari.idleTimeout=600000
  # This property controls the maximum lifetime of a connection in the pool. An in-use connection will never be retired, only when it is closed will it then be removed.
  # Default: 1800000 (30 minutes)
  spring.datasource.hikari.maxLifetime=1800000
  
  ## Jpa
  spring.jpa.generate-ddl=true
  spring.jpa.hibernate.ddl-auto = update
  spring.jpa.show-sql = false
  spring.jpa.open-in-view=false
  # Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details.
  spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
  ## MULTIPART (MultipartProperties)
  # Enable multipart uploads
  spring.servlet.multipart.enabled=true
  # Threshold after which files are written to disk.
  spring.servlet.multipart.file-size-threshold=2KB
  # Max file size.
  spring.servlet.multipart.max-file-size=200MB
  # Max Request Size
  spring.servlet.multipart.max-request-size=215MB
  
  ## Resources
  spring.resources.add-mappings=false
  
  # Allow OPTIION requests for authentication
  spring.mvc.dispatch-options-request=true
  
  # Default port
  server.port = 8080
  
  # Debug mode
  #logging.level.root = debug
  </code></pre>