Error: ArtifactTransferException on configuring POM.xml file.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error: ArtifactTransferException on configuring POM.xml file.

Abhishek
Hi ,

I am getting an ArtifactTransferException after creating POM.xml file. Snapshot attached



Also attaching the stack trace MavenError.txt


Can anyone help me out with this issue.

also attaching pom.xmlpom.xml

Also, could you tell me what does source and target fields specify and how to set their values.


e.g.
<groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.1</version>
  <configuration>
  <source>1.5</source>
  <target>1.5</target>
  </configuration>
Reply | Threaded
Open this post in threaded view
|

Re: Error: ArtifactTransferException on configuring POM.xml file.

Abhishek
guys... I have found a solution this and it goes like this :

Steps to resolve:

1. Open folder by running this text (without Quotes) in Search Explorer of Window “%USERPROFILE%\.m2″.
2. After running above command, “m2″ folder of maven will open. Now search for file (without Quotes) “*.lastUpdated”.
3. In this step, delete all the files found by running Step 2.
4. Now go to Eclipse project and select “Maven | Update Dependency” or “Maven | Update Project”.

Reply | Threaded
Open this post in threaded view
|

Re: Error: ArtifactTransferException on configuring POM.xml file.

softwaretestingforum
Administrator
thanks for posting the solution
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: Error: ArtifactTransferException on configuring POM.xml file.

Abhishek
It will be my pleasure if I can contribute to this forum in any manner..

But I could not figure out what does source and target fields specify and how to set their values.

e.g.
<groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.1</version>
  <configuration>
  <source>1.5</source>
  <target>1.5</target>

  </configuration> 

Please help...
Reply | Threaded
Open this post in threaded view
|

Re: Error: ArtifactTransferException on configuring POM.xml file.

softwaretestingforum
Administrator
This is used to compile the source of project, and here it is 1.5.
Also, compiled classes would be compatible to 1.5 since target is set to 1.5 too
You may also like to see this -

http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html
~ seleniumtests.com