Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » IPP Artifactory and Create Maven Project(Facing an issue when creating maven project with artifact)
IPP Artifactory and Create Maven Project [message #1574804] Tue, 20 January 2015 12:46 Go to next message
Suresh Selvam is currently offline Suresh SelvamFriend
Messages: 9
Registered: November 2014
Junior Member
Hi All,

I have IPP repository access and able to access the artifacts.

When I tried to create a maven project by using the following steps from https://infinity.sungard.com/documentation/ipp/8.1/index.jsp?topic=/com.infinity.bpm.docs.installation/html/installation/ig-maven.html , I got the below error message while creating maven project (failed to download the metadata)

!MESSAGE Failure to transfer com.infinity.bpm.archetypes:ipp-archetype-tc6-ipp-portal-war/maven-metadata.xml from https://infinity.sungard.com/repository/ipp-releases was cached in the local repository, resolution will not be reattempted until the update interval of ipp-archetype-tc6-ipp-portal-war-repo has elapsed or updates are forced. Original error: Could not transfer metadata com.infinity.bpm.archetypes:ipp-archetype-tc6-ipp-portal-war/maven-metadata.xml from/to ipp-archetype-tc6-ipp-portal-war-repo (https://infinity.sungard.com/repository/ipp-releases): Failed to transfer https://infinity.sungard.com/repository/ipp-releases/com/infinity/bpm/archetypes/ipp-archetype-tc6-ipp-portal-war/maven-metadata.xml. Error code 503, Service Unavailable

!ENTRY org.eclipse.m2e.logback.appender 2 0 2015-01-20 14:12:11.153
!MESSAGE Failure to transfer com.infinity.bpm.archetypes:ipp-archetype-tc6-ipp-portal-war/maven-metadata.xml from https://infinity.sungard.com/repository/ipp-libs was cached in the local repository, resolution will not be reattempted until the update interval of ipp-repo has elapsed or updates are forced. Original error: Could not transfer metadata com.infinity.bpm.archetypes:ipp-archetype-tc6-ipp-portal-war/maven-metadata.xml from/to ipp-repo (https://infinity.sungard.com/repository/ipp-libs): Failed to transfer https://infinity.sungard.com/repository/ipp-libs/com/infinity/bpm/archetypes/ipp-archetype-tc6-ipp-portal-war/maven-metadata.xml. Error code 503, Service Unavailable

I tried both the version of artifact (6 and 7) but it failed.

Could you please help me to get it resolved?

Thanks in Advance.

Regards,
Suresh
Re: IPP Artifactory and Create Maven Project [message #1575364 is a reply to message #1574804] Tue, 20 January 2015 19:45 Go to previous messageGo to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
Registered: October 2011
Member

Hi Suresh,

I just verified that the repository server is up and running, so I have to assume that the "Error code 503, Service Unavailable" issue was only temporary.

Can you retry and see if it works?

Note: to be on the safe side, please use the "-u" flag for the mvn command to force an update of the artifacts

Regards,

Jan
Re: IPP Artifactory and Create Maven Project [message #1576193 is a reply to message #1575364] Wed, 21 January 2015 06:53 Go to previous messageGo to next message
Suresh Selvam is currently offline Suresh SelvamFriend
Messages: 9
Registered: November 2014
Junior Member
Hi Jan,

Thanks for your reply. I am trying to create a maven project using M2Eclipse in eclipse.

I retried as you suggested , now i have faced 'Access Denied' Error but when try to hit that URL at browser , i am able to see the repository using that same credential.

Please see the error log below ,

!ENTRY org.eclipse.m2e.logback.appender 2 0 2015-01-21 12:15:20.283
!MESSAGE Failure to transfer com.infinity.bpm.archetypes:ipp-archetype-tc7-ipp-portal-war/maven-metadata.xml from https://infinity.sungard.com/repository/ipp-releases was cached in the local repository, resolution will not be reattempted until the update interval of ipp-archetype-tc7-ipp-portal-war-repo has elapsed or updates are forced. Original error: Could not transfer metadata com.infinity.bpm.archetypes:ipp-archetype-tc7-ipp-portal-war/maven-metadata.xml from/to ipp-archetype-tc7-ipp-portal-war-repo (https://infinity.sungard.com/repository/ipp-releases): Access denied to https://infinity.sungard.com/repository/ipp-releases/com/infinity/bpm/archetypes/ipp-archetype-tc7-ipp-portal-war/maven-metadata.xml. Error code 401, Unauthorized

!ENTRY org.eclipse.m2e.logback.appender 2 0 2015-01-21 12:15:20.303
!MESSAGE Failure to transfer com.infinity.bpm.archetypes:ipp-archetype-tc7-ipp-portal-war/maven-metadata.xml from https://infinity.sungard.com/repository/ipp-releases was cached in the local repository, resolution will not be reattempted until the update interval of ipp-archetype-tc7-ipp-portal-war-repo has elapsed or updates are forced. Original error: Could not transfer metadata com.infinity.bpm.archetypes:ipp-archetype-tc7-ipp-portal-war/maven-metadata.xml from/to ipp-archetype-tc7-ipp-portal-war-repo (https://infinity.sungard.com/repository/ipp-releases): Access denied to https://infinity.sungard.com/repository/ipp-releases/com/infinity/bpm/archetypes/ipp-archetype-tc7-ipp-portal-war/maven-metadata.xml. Error code 401, Unauthorized

!ENTRY org.eclipse.m2e.logback.appender 4 0 2015-01-21 12:15:20.325
!MESSAGE Unable to create project from archetype [com.infinity.bpm.archetypes:ipp-archetype-tc7-ipp-portal-war:RELEASE -> https://infinity.sungard.com/repository/ipp-releases]

!ENTRY org.eclipse.m2e.core 4 -1 2015-01-21 12:15:20.327
!MESSAGE Unable to create project from archetype [com.infinity.bpm.archetypes:ipp-archetype-tc7-ipp-portal-war:RELEASE -> https://infinity.sungard.com/repository/ipp-releases]
!STACK 0
org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (com.infinity.bpm.archetypes:ipp-archetype-tc7-ipp-portal-war:8.1.2)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:112)
at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(DefaultArchetypeGenerator.java:286)
at org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype(DefaultArchetype.java:69)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.createArchetypeProjects0(ProjectConfigurationManager.java:770)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$5.call(ProjectConfigurationManager.java:719)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$5.call(ProjectConfigurationManager.java:1)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:166)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:142)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:96)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1348)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.createArchetypeProjects(ProjectConfigurationManager.java:717)
at org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizard$5.doCreateMavenProjects(MavenProjectWizard.java:244)
at org.eclipse.m2e.core.ui.internal.wizards.AbstactCreateMavenProjectJob$1.doCreateMavenProjects(AbstactCreateMavenProjectJob.java:46)
at org.eclipse.m2e.core.ui.internal.wizards.AbstractCreateMavenProjectsOperation.run(AbstractCreateMavenProjectsOperation.java:62)
at org.eclipse.m2e.core.ui.internal.wizards.AbstactCreateMavenProjectJob.runInWorkspace(AbstactCreateMavenProjectJob.java:50)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Please help me to proceed further.

Thanks much
Suresh
Re: IPP Artifactory and Create Maven Project [message #1576973 is a reply to message #1576193] Wed, 21 January 2015 16:40 Go to previous messageGo to next message
Ragul Kumar is currently offline Ragul KumarFriend
Messages: 3
Registered: November 2014
Junior Member
Hi Suresh,

Based on your comments above, am assuming that you have browser-based access to "ipp-releases".

The maven build process needs credentials for this repository and as described in the documentation, the maven global / user settings file (settings.xml), needs to have the right credentials configured for the repository "ipp-releases".

So, in the maven settings file, in your active profile, under repositories, you should have something like below:
<repository>
   <id>ipp-releases</id>
   <url>URL TO IPP-RELEASES REPO</url>
</repository>


Also, you should have the credentials for the above repository id configured in the servers element:

 <server>
    <id>ipp-releases</id>
    <username>YOUR USERNAME</username>
    <password>YOUR HASHED PASSWORD</password>
 </server>


Can you confirm that the above configuration is in place and does not have any typos?

Thanks,
Ragul

ps - my appologies, for some reason, I could not enter non-eclipse.org URLs in this message.
Re: IPP Artifactory and Create Maven Project [message #1578026 is a reply to message #1576973] Thu, 22 January 2015 06:28 Go to previous messageGo to next message
Suresh Selvam is currently offline Suresh SelvamFriend
Messages: 9
Registered: November 2014
Junior Member
Hi All,

I have configured setting.xml as described in the documentation. Please see below my setting.xml and let me know if anything missed here.

<server>
<id>ipp-releases</id>
<username>xxx@com</username>
<password>encrypted password</password>
</server>

and

<profile>
<id>IPP</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>

<repositories>
<repository>
<!-- (1.) Infinity Process Platform profile-->
<id>ipp-releases</id>
<url>https://infinity.sungard.com/repository/ipp-libs</url>
</repository>
<repository>
<!-- (2.) -->
<id>central</id>
<url>http://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>jboss</id>
<name>JBoss Repository</name>
<url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<!-- (4.) -->
<id>central-plugin</id>
<name>Central PlugIn Repository</name>
<url>http://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>
</profile>

Thanks ,
Suresh

[Updated on: Thu, 22 January 2015 08:28]

Report message to a moderator

Re: IPP Artifactory and Create Maven Project [message #1578732 is a reply to message #1578026] Thu, 22 January 2015 15:35 Go to previous messageGo to next message
Jan Hendrik Scheufen is currently offline Jan Hendrik ScheufenFriend
Messages: 77
Registered: October 2011
Member

Hi Suresh,

looks correct to me at first glance.
Have you tried it?

Jan
Re: IPP Artifactory and Create Maven Project [message #1579869 is a reply to message #1578732] Fri, 23 January 2015 06:26 Go to previous messageGo to next message
Suresh Selvam is currently offline Suresh SelvamFriend
Messages: 9
Registered: November 2014
Junior Member
Hi Jan,

I have tried the same what suggested but no luck, faced the same 'Access Denied' error.

Please help me.

Thanks,
Suresh
Re: IPP Artifactory and Create Maven Project [message #1587076 is a reply to message #1579869] Tue, 27 January 2015 06:07 Go to previous message
Rajkumar Dangi is currently offline Rajkumar DangiFriend
Messages: 51
Registered: November 2014
Location: Pune, India
Member
Hi Suresh,

Just couple of points which might help you to investigate root cause.
1. re-check if correct "settings.xml" is being used. i mean if this is picking up settings.xml in the ${maven.home}/conf/ folder or in the .m2 folder in the user's $home (on Windows: %homepath%) directory.

2. Is there any proxy configured for your network. If yes then you need to configure same in "settings.xml" like this:
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>PROXY HOST</host>
<port>PROXY PORT</port>
<nonProxyHosts>localhost|......</nonProxyHosts>
</proxy>
<proxy>
<active>true</active>
<protocol>https</protocol>
<host>PROXY HOST</host>
<port>PROXY PORT</port>
<nonProxyHosts>localhost|......</nonProxyHosts>
</proxy>
</proxies>

3. Which maven version are you using if you are using maven 3.0.4 and downloading dependencies behind a proxy , In this case either switch to Maven version 3.0.3 or download the following jar:
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-http-lightweight/2.2/wagon-http-lightweight-2.2.jar
and add it to the lib/ext folder in your Maven installation.

I hope above points will help us to find out the issue.
Previous Topic:Newbie Frustration
Next Topic:Structure data type
Goto Forum:
  


Current Time: Wed Apr 24 17:30:53 GMT 2024

Powered by FUDForum. Page generated in 0.03404 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top