Solved

POM Tags

Posted on 2014-03-17
5
171 Views
Last Modified: 2014-03-18
Hi,

can somebody tell me about POM.xml syntax. Here is the one part of the tag below

  "is it all the jars has to be available below url... Please clarify



<repositories>
        <repository>
            <id>sattire.archiva.sattire</id>
            <name>Sattrire Release Repository</name>
            <url>http://repository.sattire.com/archiva/repository/sattire</url>
        </repository>
    </repositories>

Open in new window


what is goal tag and Phase tag mean...  Please clarify


 <plugin>
                <groupId>com.ning.maven.plugins</groupId>
                <artifactId>maven-duplicate-finder-plugin</artifactId>
                <version>1.0.5</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Open in new window



Thanks
0
Comment
Question by:roy_sanu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 21

Expert Comment

by:Amitkumar Panchal
ID: 39934163
You should refer POM reference at https://maven.apache.org/pom.html
0
 

Author Comment

by:roy_sanu
ID: 39934649
i need  some  specific answer to this why this url is required........ and what scenerio
one need this...........

<repositories>
        <repository>
            <id>sattire.archiva.sattire</id>
            <name>Sattrire Release Repository</name>
            <url>http://repository.sattire.com/archiva/repository/sattire</url>
        </repository>
    </repositories>

Open in new window

0
 
LVL 21

Accepted Solution

by:
Amitkumar Panchal earned 300 total points
ID: 39934799
By default, Maven download all dependencies from Maven Central Repository. But, some libraries are missing in central repository, and only available in remote repository like the one you gave in the example.

<repositories>
        <repository>
            <id>sattire.archiva.sattire</id>
            <name>Sattrire Release Repository</name>
            <url>http://repository.sattire.com/archiva/repository/sattire</url>
        </repository>
    </repositories>

Open in new window

0
 

Author Comment

by:roy_sanu
ID: 39934864
Thank you  for the one part  

when we will be needing this like goal tag... what is the need of goal

<plugin>
                <groupId>com.ning.maven.plugins</groupId>
                <artifactId>maven-duplicate-finder-plugin</artifactId>
                <version>1.0.5</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
0
 
LVL 21

Assisted Solution

by:Amitkumar Panchal
Amitkumar Panchal earned 300 total points
ID: 39934922
This is related to plug-ins in maven. Refer http://maven.apache.org/guides/mini/guide-configuring-plugins.html
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question