Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » maven archetype catalog requires authentication
maven archetype catalog requires authentication [message #1122812] Tue, 01 October 2013 20:09 Go to next message
Tim Stephenson is currently offline Tim Stephenson
Messages: 6
Registered: October 2013
Junior Member
Hi,

This wiki page offers the prospect of getting started quickly with some Maven Archetypes:
http://wiki.eclipse.org/Stardust/Knowledge_Base/Build_and_Change_Management/Maven/Basic_Setup

But unfortunately the catalogue URL points to the infinity.sungard.com site which currently requires authentication.

I guess that is not intended?

Cheers,
Tim
Re: maven archetype catalog requires authentication [message #1124131 is a reply to message #1122812] Thu, 03 October 2013 04:08 Go to previous messageGo to next message
Tanmoy Roy is currently offline Tanmoy Roy
Messages: 17
Registered: September 2013
Junior Member
Hi Tim,

Could you please send me your mvn command?
And it should point to http://download.eclipse.org/stardust/maven/releases

-Tanmoy
Re: maven archetype catalog requires authentication [message #1124246 is a reply to message #1124131] Thu, 03 October 2013 06:33 Go to previous messageGo to next message
Tim Stephenson is currently offline Tim Stephenson
Messages: 6
Registered: October 2013
Junior Member
Hi Tanmoy,

At this stage I am using the New > Project > New Maven Project wizard inside Eclipse. I attach a screenshot of the preference page configured for the new URL you mentioned and in the background you can see that no archetypes are found still.

https :// dl.dropboxusercontent.com/u/5026459/StardustMavenArchetypeRepoProblem.png

However, I can confirm that using a browser I do get access to the new URL you mentioned (is it possible that you could update the references to the sungard on the wiki page?). Furthermore using this command line I am able to generate a project ok:

mvn -DarchetypeArtifactId=tc6-ipp-portal-war -DarchetypeGroupId=org.eclipse.stardust.deploy.jee.archetypes -DarchetypeVersion=1.0.1 archetype:generate 


I then cd into the project directory and ran mvn package which produced this error in finding the tomcat60-ipp-portal-war pom:

[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]   
[ERROR]   The project com.knowprocess:stardust2-ipp-portal:1.0-SNAPSHOT (/Users/timstephenson/tmp/stardust2/ipp-portal/pom.xml) has 2 errors
[ERROR]     Non-resolvable import POM: Failure to find org.eclipse.stardust.deploy.jee.server:tomcat60-war:pom:1.0.1 in http://archive.eclipse.org/stardust/maven/3rdparty/eclipse was cached in the local repository, resolution will not be reattempted until the update interval of stardust-3rdparty-eclipse-repo has elapsed or updates are forced @ line 26, column 21 -> [Help 2]
[ERROR]     Non-resolvable import POM: Failure to find org.eclipse.stardust.deploy.jee.rtenv:tomcat60-ipp-portal-war:pom:1.0.1 in http://archive.eclipse.org/stardust/maven/3rdparty/eclipse was cached in the local repository, resolution will not be reattempted until the update interval of stardust-3rdparty-eclipse-repo has elapsed or updates are forced @ line 33, column 22 -> [Help 2]
[ERROR]   
[ERROR]   The project com.knowprocess:stardust2-custom:1.0-SNAPSHOT (/Users/timstephenson/tmp/stardust2/custom/pom.xml) has 1 error
[ERROR]     Non-resolvable import POM: Failure to find org.eclipse.stardust.deploy.jee.server:tomcat60-war:pom:1.0.1 in http://archive.eclipse.org/stardust/maven/3rdparty/eclipse was cached in the local repository, resolution will not be reattempted until the update interval of stardust-3rdparty-eclipse-repo has elapsed or updates are forced @ line 18, column 22 -> [Help 2]


It looks like those artefacts are in the download.eclipse.org rather than archive.eclipse.org repository but I am not able to find what is directing Maven to the wrong place.

Thanks in advance,
Tim
Re: maven archetype catalog requires authentication [message #1124247 is a reply to message #1124246] Thu, 03 October 2013 06:35 Go to previous messageGo to next message
Tim Stephenson is currently offline Tim Stephenson
Messages: 6
Registered: October 2013
Junior Member
Link for the picture is prohibited so here it is, please remove the spaces: https: // dl.dropboxusercontent.com/u/5026459/StardustMavenArchetypeRepoProblem.png
Re: maven archetype catalog requires authentication [message #1124279 is a reply to message #1124247] Thu, 03 October 2013 07:20 Go to previous messageGo to next message
Tanmoy Roy is currently offline Tanmoy Roy
Messages: 17
Registered: September 2013
Junior Member
Hi Tim,

I am not able to open the image. Most likely firewall issue.

Anyways, you are right the required pom file is available under download.eclipse.org/ repository and this entry is missing in the parent pom.
Once you generate the project go inside the project directory and edit the pom.xml.
Add another repository(see below) and then execute 'mvn clean package'

<repositories>
.....
<repository>
<id>stardust--repo</id>
<url>http://download.eclipse.org/stardust/maven/releases</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
.....
</repositories>

Regards,
Tanmoy
Re: maven archetype catalog requires authentication [message #1124292 is a reply to message #1124247] Thu, 03 October 2013 07:40 Go to previous messageGo to next message
Robert Emsbach is currently offline Robert Emsbach
Messages: 117
Registered: October 2011
Location: Singapore
Senior Member

Tim,

the page should no longer point to the infinity maven repo because we now have the archetypes in the eclipse maven repo. However, what is still missing there is the catalog file Sad I hope we can add it shortly and will then adjust the wiki page to the new URL.

Without archetype catalog the eclipse wizard for the maven project creation based on an archetype will not work so comfortably. However, an easy workaround would be to simply create the archetype using Maven on the command line and then use Eclipse's 'import existing maven project' function. Will that work for you? Which archetype are you trying to build?

Best regards

Rob


Re: maven archetype catalog requires authentication [message #1124453 is a reply to message #1124279] Thu, 03 October 2013 10:51 Go to previous messageGo to next message
Tim Stephenson is currently offline Tim Stephenson
Messages: 6
Registered: October 2013
Junior Member
Next error:

[ERROR] Failed to execute goal on project stardust2-custom: Could not resolve dependencies for project com.knowprocess:stardust2-custom:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: stax:stax-api:jar:1.0.1-eclipse01, rhino:js:jar:1.7R2-eclipse01, javax.activation:activation:jar:1.1-eclipse01, commons-jxpath:commons-jxpath:jar:1.3-eclipse01, aopalliance:aopalliance:jar:1.0-eclipse01, org.icefaces:icefaces:jar:1.8.2-r33557, commons-logging:commons-logging:jar:1.1.1-eclipse01, org.icefaces:icefaces-comps:jar:1.8.2-r33557, org.icefaces:icefaces-facelets:jar:1.8.2-r33557-eclipse01, log4j:log4j:jar:1.2.15-eclipse01, org.slf4j:slf4j-api:jar:1.5.11-eclipse01, javax.ws.rs:jsr311-api:jar:1.1.1-eclipse01, com.google.code.gson:gson:jar:1.6-eclipse01, backport-util-concurrent:backport-util-concurrent:jar:3.1-eclipse01, commons-collections:commons-collections:jar:3.2-eclipse01, commons-lang:commons-lang:jar:2.4-eclipse01, javax.mail:mail:jar:1.4-eclipse01, org.icepdf:icepdf-core:jar:4.3.2, net.sourceforge.htmlcleaner:htmlcleaner:jar:2.1, com.sun.media:jai_imageio:jar:1.1-eclipse01, org.apache.cxf:cxf-api:jar:2.6.1-eclipse01, com.sun.xml.bind:jaxb-impl:jar:2.1.12-eclipse01: Failure to find stax:stax-api:jar:1.0.1-eclipse01 in http://download.eclipse.org/stardust/maven/releases was cached in the local repository, resolution will not be reattempted until the update interval of stardust-3rdparty-eclipse-repo has elapsed or updates are forced -> [Help 1]


Analysing the pom with the Maven POM Editor's dependency tool shows that the carnot-engine 1.0.1 depends on this version of stax suffixed -eclipse01. A number of the other ipp dependencies seem to have similar dependencies on the other -eclipse01 variants.

And I am not able to locate these -eclipse01 dependencies in the eclipse maven repo.

Tim
Re: maven archetype catalog requires authentication [message #1124454 is a reply to message #1124292] Thu, 03 October 2013 10:53 Go to previous messageGo to next message
Tim Stephenson is currently offline Tim Stephenson
Messages: 6
Registered: October 2013
Junior Member
Thanks for the response Rob and yes I am ok on the command line Maven for now though as you'll see from my last post I think the archetype catalog is not the only thing that has not gotten published yet.

Cheers,
Tim
Re: maven archetype catalog requires authentication [message #1124494 is a reply to message #1124454] Thu, 03 October 2013 11:41 Go to previous messageGo to next message
Robert Emsbach is currently offline Robert Emsbach
Messages: 117
Registered: October 2011
Location: Singapore
Senior Member

Tim,

building the archetypes is tested and should definitely work. Please check if you have configured all repositories as listed here:
http://wiki.eclipse.org/Stardust/Knowledge_Base/Build_and_Change_Management/Maven/Basic_Setup
Also try to delete the corresponding folders in your maven repo (or with update policy set to always).

Best regards

Rob

Re: maven archetype catalog requires authentication [message #1124555 is a reply to message #1124494] Thu, 03 October 2013 13:00 Go to previous messageGo to next message
Robert Emsbach is currently offline Robert Emsbach
Messages: 117
Registered: October 2011
Location: Singapore
Senior Member

Tim,

I think you must be missing the other repos. I tried a fresh environment which did not even have maven installed before. My WAR build is running now (see below).

Here you see that the '...eclipse01' dependencies which you were missing
are downloaded from http://archive.eclipse.org/stardust/maven/3rdparty

Quote:

...
Downloading: http://archive.eclipse.org/stardust/maven/3rdparty/eclipse/javax/ws/rs/jsr311-api/1.1.1-eclipse01/jsr311-ap
i-1.1.1-eclipse01.pom
Downloaded: http://archive.eclipse.org/stardust/maven/3rdparty/eclipse/javax/ws/rs/jsr311-api/1.1.1-eclipse01/jsr311-api
-1.1.1-eclipse01.pom (6 KB at 5.8 KB/sec)
Downloading: http://download.eclipse.org/stardust/maven/releases/com/google/code/gson/gson/1.6-eclipse01/gson-1.6-eclips
e01.pom
Downloading: http://download.eclipse.org/stardust/maven/snapshots/com/google/code/gson/gson/1.6-eclipse01/gson-1.6-eclip
se01.pom
Downloading: http://archive.eclipse.org/stardust/maven/3rdparty/eclipse/com/google/code/gson/gson/1.6-eclipse01/gson-1.6
...

[Updated on: Fri, 04 October 2013 01:46]

Report message to a moderator

Re: maven archetype catalog requires authentication [message #1124648 is a reply to message #1124555] Thu, 03 October 2013 15:11 Go to previous messageGo to next message
Tim Stephenson is currently offline Tim Stephenson
Messages: 6
Registered: October 2013
Junior Member
Hi Rob,

Indeed, it was all about the repos in the project generated out of the archetype. I found that when I had 'corrected' one entry I had in fact removed one that was needed. Finally I just added the third one that as follows.

This is what I had generated for me:

   <repositories>
      <repository>
         <id>stardust-3rdparty-eclipse-repo</id>
         <url>http://archive.eclipse.org/stardust/maven/3rdparty/eclipse</url>
         <layout>default</layout>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>
      <repository>
         <id>stardust-3rdparty-public-repo</id>
         <url>http://archive.eclipse.org/stardust/maven/3rdparty/public</url>
         <layout>default</layout>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>
   </repositories>


And this is what builds successfully:

   <repositories>
       <repository>
          <id>stardust-3rdparty-public</id>
          <url>http://download.eclipse.org/stardust/maven/releases</url>
      </repository>
      <repository>
         <id>stardust-3rdparty-eclipse-repo</id>
         <url>http://archive.eclipse.org/stardust/maven/3rdparty/eclipse</url>
         <layout>default</layout>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>
      <repository>
         <id>stardust-3rdparty-public-repo</id>
         <url>http://archive.eclipse.org/stardust/maven/3rdparty/public</url>
         <layout>default</layout>
         <snapshots>
            <enabled>false</enabled>
         </snapshots>
      </repository>
   </repositories>


Interestingly, I have all of these in my settings.xml (and the others listed at http://wiki.eclipse.org/Stardust/Knowledge_Base/Build_and_Change_Management/Maven/Basic_Setup) but the build only works when I put them in my project's pom.xml. I have even tried running mvn setting the path to the settings file explicitly:

mvn -s /Users/timstephenson/.m2/settings.xml clean package 


Which also does not work. Personally I have not encountered settings.xml being used like this for project-specific settings (as opposed to sensitive information like usernames and passwords). So I would ask that you consider putting all the information into the archetype.

Thanks for your help,
Tim
Re: maven archetype catalog requires authentication [message #1125012 is a reply to message #1124648] Fri, 04 October 2013 00:40 Go to previous message
Robert Emsbach is currently offline Robert Emsbach
Messages: 117
Registered: October 2011
Location: Singapore
Senior Member

Thanks for the update and sorry for the inconvenience, Tim. For Stardust we only just released the archetypes (other environments to follow) and we obviously still need to improve a few things there. Glad its working for you now. Let me know if you encounter any other issues.

Best regards

Rob

P.S:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=418638
https://bugs.eclipse.org/bugs/show_bug.cgi?id=418641
https://bugs.eclipse.org/bugs/show_bug.cgi?id=418643

[Updated on: Fri, 04 October 2013 03:09]

Report message to a moderator

Previous Topic:Infinity Scan
Next Topic:Like Stardust on Facebook!
Goto Forum:
  


Current Time: Thu Aug 28 21:33:46 EDT 2014

Powered by FUDForum. Page generated in 0.01980 seconds