Welcome, Guest
Username Password: Remember me

Maven troubleshooting
(1 viewing) (1) Guest
Maven
  • Page:
  • 1
  • 2

TOPIC: Maven troubleshooting

Maven troubleshooting 2 years, 2 months ago #127

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44630
  • Karma: 4
  • Honor Medal 2009
i would like to knpw "Most Common Issues in Maven"?

Any body can focus on this?
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar

Re:Maven troubleshooting 2 years, 2 months ago #136

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3568
  • Karma: 0
  • Honor Medal 2009
You may get error with Java Heap Size error.
Solution: set the Environment Variable of MAVEN_OPTS to "-Xms512m -Xmx512m -XX:MaxPermSize=1024m"

Re:Maven troubleshooting 2 years, 2 months ago #137

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3568
  • Karma: 0
  • Honor Medal 2009
2)ArtifactResolutionException

This error generally occurs when Maven could not download dependencies. Possible causes for this error are:

1. The repository you have configured requires authentication and Maven failed to provide the correct credentials to the server. In this case, make sure your ${user.home}/.m2/settings.xml contains a <server> declaration whose <id> matches the <id> of the plugin repository to use. See the Maven Settings Reference for more details.
2. The remote repository in question uses SSL and the JVM running Maven does not trust the certificate of the server.
5. Maven failed to save the files to your local repository.
4. You have configured Maven to perform strict checksum validation and the files to download got corrupted.
3. There is a general network problem that prevents Maven from accessing any remote repository, e.g. a missing proxy configuration.(Communication Issue local box and repo)

Re:Maven troubleshooting 2 years, 2 months ago #138

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3568
  • Karma: 0
  • Honor Medal 2009
3)DuplicateProjectException
This error signals a collision of project identifiers during a reactor build. The coordinates for a project as given by its group id, artifact id and version must be unique within a reactor build. The usual cause for this error is a in one of the POMs so please verify the project coordinates are correctly set and valid.

Re:Maven troubleshooting 2 years, 2 months ago #139

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3568
  • Karma: 0
  • Honor Medal 2009
InternalErrorException


This error indicates a bug in Maven itself.

1. Capture the debug output of the failing build, e.g. by adding the flag -X to the command line and redirecting the console output of Maven to a file:

mvn <your goals> -X > debug.log

2.If interested report this bug to maven gurus you could submit a ticket in jira.codehaus.org/browse/MNG so we can avoid this bug in future provided bug has been fixed.It is said it is intermittent.

Re:Maven troubleshooting 2 years, 2 months ago #140

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3568
  • Karma: 0
  • Honor Medal 2009
4) InvalidPluginDescriptorException

This error signals incomplete or wrong information in the descriptor for a plugin. The plugin descriptor is a special file in the plugin's JAR file. An invalid descriptor is usually the result of bad driving while assembling the plugin. Please report this issue to the maintainer of the plugin in question.

Not a bad idea to try out another version of the plugin, there's not much you as a user can do.

Re:Maven troubleshooting 2 years, 2 months ago #141

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3568
  • Karma: 0
  • Honor Medal 2009
5) InvalidRepositoryException

This error is occurred if a repository declaration in the POM or the settings,xml specifies a bad repository identifier or URL. Simply double check tha POM and settings.xml and make sure each repository has both an <id> and <url> sho
  • uld resolve this issue.

    Re:Maven troubleshooting 2 years, 2 months ago #142

    • praveen
    • OFFLINE
    • Moderator
    • Posts: 43
    • Points: 3568
    • Karma: 0
    • Honor Medal 2009
    6)LifecycleNotFoundException

    This error is generated by a plugin goal that tries to fork non-existing life cycle.

    Re:Maven troubleshooting 2 years, 2 months ago #143

    • praveen
    • OFFLINE
    • Moderator
    • Posts: 43
    • Points: 3568
    • Karma: 0
    • Honor Medal 2009
    7)LifecyclePhaseNotFoundException

    This error is generated if you try to invoke a build command that Maven does not understand.

    Re:Maven troubleshooting 2 years, 2 months ago #144

    • praveen
    • OFFLINE
    • Moderator
    • Posts: 43
    • Points: 3568
    • Karma: 0
    • Honor Medal 2009
    8)LocalRepositoryNotAccessibleException

    This error is raised when Maven could not access your local repository. This could have the following reasons:

    1.No local repository is present the drive.
    2. The file permissions prevent Maven from accessing the repository.

    So please verify that your settings.xml specifies a valid directory and Ensure that your user account has both read and write access to this directory and all its sub directories and files.
    • Page:
    • 1
    • 2
    Time to create page: 0.96 seconds

         
        
    Home Forum