fail to run maven on jenkins on a closed environment -


i trying run simple build using maven on jenkins (1.651.2) windows. working on closed environment has no internet connection. trying same on internet pc works fine. command line works fine on jenkins error:

building on master in workspace c:\source\maven error: failed parse poms java.net.malformedurlexception: no protocol:          @ java.net.url.<init>(unknown source)         @ java.net.url.<init>(unknown source)         @ java.net.url.<init>(unknown source)         @ hudson.tools.zipextractioninstaller.performinstallation(zipextractioninstaller.java:79)         @ hudson.tools.installertranslator.gettoolhome(installertranslator.java:68)         @ hudson.tools.toollocationnodeproperty.gettoolhome(toollocationnodeproperty.java:108)         @ hudson.tools.toolinstallation.translatefor(toolinstallation.java:206)         @ hudson.model.jdk.fornode(jdk.java:143)         @ hudson.model.abstractproject.getenvironment(abstractproject.java:357)         @ hudson.model.run.getenvironment(run.java:2229)         @ hudson.model.abstractbuild.getenvironment(abstractbuild.java:938)         @ hudson.maven.abstractmavenbuild.getenvironment(abstractmavenbuild.java:56)         @ hudson.maven.mavenmodulesetbuild.getenvironment(mavenmodulesetbuild.java:166)         @ hudson.maven.mavenmodulesetbuild$mavenmodulesetbuildexecution.dorun(mavenmodulesetbuild.java:622)         @ hudson.model.abstractbuild$abstractbuildexecution.run(abstractbuild.java:534)         @ hudson.model.run.execute(run.java:1738)         @ hudson.maven.mavenmodulesetbuild.run(mavenmodulesetbuild.java:531)         @ hudson.model.resourcecontroller.execute(resourcecontroller.java:98)         @ hudson.model.executor.run(executor.java:410) finished: failure 

adding simple program pom file:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"           xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">       <modelversion>4.0.0</modelversion>       <groupid>com.mycompany.app</groupid>       <artifactid>my-app</artifactid>       <packaging>jar</packaging>       <version>1.0-snapshot</version>       <name>my-app</name>       <url>http://maven.apache.org</url>       <dependencies>         <dependency>           <groupid>junit</groupid>           <artifactid>junit</artifactid>           <version>3.8.1</version>           <scope>test</scope>         </dependency>       </dependencies>     </project> 

looks jenkins trying automatically install maven, please check configuration page if have similar (install automatically checked):

enter image description here

if so, please uncheck box , provide path maven installation, or leave blank if have maven in path of jenkins user.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -