<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sk">
	<id>https://informatika.kubini.sk/index.php?action=history&amp;feed=atom&amp;title=Pr%C3%ADkazy_v_Maven</id>
	<title>Príkazy v Maven - História úprav</title>
	<link rel="self" type="application/atom+xml" href="https://informatika.kubini.sk/index.php?action=history&amp;feed=atom&amp;title=Pr%C3%ADkazy_v_Maven"/>
	<link rel="alternate" type="text/html" href="https://informatika.kubini.sk/index.php?title=Pr%C3%ADkazy_v_Maven&amp;action=history"/>
	<updated>2026-08-03T07:48:34Z</updated>
	<subtitle>História úprav pre túto stránku na wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://informatika.kubini.sk/index.php?title=Pr%C3%ADkazy_v_Maven&amp;diff=14&amp;oldid=prev</id>
		<title>Kubini: /* Spustenie main triedy */</title>
		<link rel="alternate" type="text/html" href="https://informatika.kubini.sk/index.php?title=Pr%C3%ADkazy_v_Maven&amp;diff=14&amp;oldid=prev"/>
		<updated>2023-02-09T23:05:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Spustenie main triedy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;sk&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Staršia verzia&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Verzia z 01:05, 10. február 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Riadok 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riadok 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== mvn exec ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== mvn exec ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Spustenie main triedy ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Spustenie main triedy ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt; mvn exec:java -Dexec.mainClass=com.mycompany.App &amp;lt;/pre&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;gt; &amp;lt;ref name=&amp;quot;run-main-class-of-maven-project&amp;quot;&amp;gt;run main class of Maven project- Stack Exchange [online]. Dostupné z: https://stackoverflow.com/questions/9846046/run-main-class-of-maven-project&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt; mvn exec:java -Dexec.mainClass=com.mycompany.App &amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/ref&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Referencie ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Referencie ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kubini</name></author>
	</entry>
	<entry>
		<id>https://informatika.kubini.sk/index.php?title=Pr%C3%ADkazy_v_Maven&amp;diff=13&amp;oldid=prev</id>
		<title>Kubini: /* Spustenie main triedy */</title>
		<link rel="alternate" type="text/html" href="https://informatika.kubini.sk/index.php?title=Pr%C3%ADkazy_v_Maven&amp;diff=13&amp;oldid=prev"/>
		<updated>2023-02-09T23:04:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Spustenie main triedy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;sk&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Staršia verzia&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Verzia z 01:04, 10. február 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l51&quot;&gt;Riadok 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Riadok 51:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== mvn exec ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== mvn exec ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Spustenie main triedy ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Spustenie main triedy ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mvn exec:java -Dexec.mainClass=com.mycompany.App &amp;lt;ref name=&amp;quot;run-main-class-of-maven-project&amp;quot;&amp;gt;run main class of Maven project- Stack Exchange [online]. Dostupné z: https://stackoverflow.com/questions/9846046/run-main-class-of-maven-project&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt; &lt;/ins&gt;mvn exec:java -Dexec.mainClass=com.mycompany.App &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt; &lt;/ins&gt;&amp;lt;ref name=&amp;quot;run-main-class-of-maven-project&amp;quot;&amp;gt;run main class of Maven project- Stack Exchange [online]. Dostupné z: https://stackoverflow.com/questions/9846046/run-main-class-of-maven-project&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ref&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Referencie ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Referencie ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kubini</name></author>
	</entry>
	<entry>
		<id>https://informatika.kubini.sk/index.php?title=Pr%C3%ADkazy_v_Maven&amp;diff=12&amp;oldid=prev</id>
		<title>Kubini: Vytvorená stránka „== mvn --version  ==    - Prints out the version of Maven you are running.  == mvn clean == - Cleans the maven project by deleting the target directory.  == mvn compiler:compile == - Compiles the java source classes of the maven project.  == mvn compiler:testCompile == - This command compiles the test classes of the maven project.  == mvn package == - Compiles all the Java files, run any tests, and package the deliverable code and resources into target/my-app-1.0.j…“</title>
		<link rel="alternate" type="text/html" href="https://informatika.kubini.sk/index.php?title=Pr%C3%ADkazy_v_Maven&amp;diff=12&amp;oldid=prev"/>
		<updated>2023-02-09T23:03:14Z</updated>

		<summary type="html">&lt;p&gt;Vytvorená stránka „== mvn --version  ==    - Prints out the version of Maven you are running.  == mvn clean == - Cleans the maven project by deleting the target directory.  == mvn compiler:compile == - Compiles the java source classes of the maven project.  == mvn compiler:testCompile == - This command compiles the test classes of the maven project.  == mvn package == - Compiles all the Java files, run any tests, and package the deliverable code and resources into target/my-app-1.0.j…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== mvn --version  ==   &lt;br /&gt;
- Prints out the version of Maven you are running.&lt;br /&gt;
&lt;br /&gt;
== mvn clean ==&lt;br /&gt;
- Cleans the maven project by deleting the target directory.&lt;br /&gt;
&lt;br /&gt;
== mvn compiler:compile ==&lt;br /&gt;
- Compiles the java source classes of the maven project.&lt;br /&gt;
&lt;br /&gt;
== mvn compiler:testCompile ==&lt;br /&gt;
- This command compiles the test classes of the maven project.&lt;br /&gt;
&lt;br /&gt;
== mvn package ==&lt;br /&gt;
- Compiles all the Java files, run any tests, and package the deliverable code and resources into target/my-app-1.0.jar (assuming the artifactId is my-app and the version is 1.0.)&lt;br /&gt;
- Builds the maven project and packages them into a JAR, WAR, etc.&lt;br /&gt;
&lt;br /&gt;
== mvn install ==&lt;br /&gt;
- Builds the maven project and installs the project files (JAR, WAR, pom.xml, etc) to the local repository.&lt;br /&gt;
&lt;br /&gt;
== mvn deploy ==&lt;br /&gt;
- This command is used to deploy the artifact to the remote repository. The remote repository should be configured properly in the project pom.xml file distributionManagement tag. The server entries in the maven settings.xml file is used to provide authentication details.&lt;br /&gt;
&lt;br /&gt;
== mvn validate ==&lt;br /&gt;
- Validates the maven project that everything is correct and all the necessary information is available.&lt;br /&gt;
&lt;br /&gt;
== mvn dependency:tree ==&lt;br /&gt;
- Generates the dependency tree of the maven project.&lt;br /&gt;
&lt;br /&gt;
== mvn dependency:analyze ==&lt;br /&gt;
- Analyzes the maven project to identify the unused declared and used undeclared dependencies.&lt;br /&gt;
- It’s useful in reducing the build size by identifying the unused dependencies and then remove it from the pom.xml file.&lt;br /&gt;
&lt;br /&gt;
== mvn archetype:generate ==&lt;br /&gt;
- Maven archetypes is a maven project templating toolkit. We can use this command to generate a skeleton maven project of different types, such as JAR, web application, maven site, etc.&lt;br /&gt;
- Recommended Reading: Creating a Java Project using Maven Archetypes (https://maven.apache.org/archetypes/maven-archetype-quickstart/).&lt;br /&gt;
&lt;br /&gt;
== mvn site:site ==&lt;br /&gt;
- Generates a site for the project.&lt;br /&gt;
- You will notice a “site” directory in the target after executing this command.&lt;br /&gt;
There will be multiple HTML files inside the site directory that provides information related to the project.&lt;br /&gt;
&lt;br /&gt;
== mvn test ==&lt;br /&gt;
- Run the test cases of the project using the maven-surefire-plugin.&lt;br /&gt;
&lt;br /&gt;
== mvn compile ==&lt;br /&gt;
- It’s used to compile the source Java classes of the project.&lt;br /&gt;
&lt;br /&gt;
== mvn verify ==&lt;br /&gt;
- Build the project, runs all the test cases and run any checks on the results of the integration tests to ensure quality criteria are met.&lt;br /&gt;
&lt;br /&gt;
== mvn exec ==&lt;br /&gt;
=== Spustenie main triedy ===&lt;br /&gt;
mvn exec:java -Dexec.mainClass=com.mycompany.App &amp;lt;ref name=&amp;quot;run-main-class-of-maven-project&amp;quot;&amp;gt;run main class of Maven project- Stack Exchange [online]. Dostupné z: https://stackoverflow.com/questions/9846046/run-main-class-of-maven-project&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Referencie ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kubini</name></author>
	</entry>
</feed>