-
Notifications
You must be signed in to change notification settings - Fork 16
FAQ
How do I change the max upload file size?
Check drop-project.properties.
When importing an assignment, I received an error about the ```max_allowed_packet''' variable. How can I change its value?
Go to MySQL's configuration file (my.ini on Windows; or ~/.my.conf on Linux) and search for the variable in the [mysqld] section.
After identifying the line, you should increase the value to a value that accommodates your importation needs.
How to get coverage metrics for student unit testes?
Add the following lines to your pom.xml:
<properties>
<dp.argLine></dp.argLine>
</properties>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<argLine>@{argLine} ${dp.argLine}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.2</version>
<configuration>
<includes>
<include>edu/someUniversity/xxx/xxx/*</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>generate-code-coverage-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
How do I connect Drop Project with a MySQL database without using the docker image?
- Open a MySQL client and create a database and corresponding user for drop project. Example for a 'dp' user with 'dp123' password:
create database dp;
create user 'dp'@'localhost' identified by 'dp123';
grant all privileges on dp.* to 'dp'@'localhost';
-
Copy
src/main/resources/drop-project-mysql.properties
tosrc/main/resources/config
. This file will override the default values. Fill in the properties with appropriate values in the newly created file:spring.datasource.url
spring.datasource.username
spring.datasource.password
-
Run the application with the ´mysql' spring profile. To activate this scheme, just launch the server with
-Dspring.profiles.active=mysql
. If you are executing the application from Intellij, just fill in the active profile in the run configuration dialog as depicted here: