Solved

POM Tags

Posted on 2014-03-17
5
166 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

911 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now