David Sean Taylor wrote:
"Have you copied in the .setttings.xml to your ".m2" directory as described here:

http://portals.apache.org/tutorials/jetspeed-2/01/first-steps.html

It will correctly setup the remote repos and copy resources into here

  <localRepository>/JetspeedTraining/maven/repository</ localRepository> "

Yes, the .m2/settings.xml under my user profile directory is configured, the only difference being the location of Tomcat, since I already had an installation.

"From that point on, its hit or miss with downloading the files, keep trying if it fails "

More like miss and miss. It looks to me that at some point http://repo1.maven.org/ got restructured and some of the content is missing from there. It IS, however, at http://www.bluesunrise.com/, so what I'm thinking is there must be a reference in the xml somewhere defining which repository to use.

I've checked the pom.xml in C:\JetspeedTraining\workspace\jetexpress, where I found this:
<repositories>
       <repository>
           <id>com.bluesunrise.m2</id>
           <name>Maven2 BlueSunrise</name>
           <url>http://www.bluesunrise.com/maven2</url>
       </repository>
       <repository>
           <id>central</id>
           <name>Maven Repository Switchboard</name>
           <url>http://repo1.maven.org/maven2</url>
       </repository>
       <repository>
           <id>com.bluesunrise.m1</id>
           <name>Maven1 BlueSunrise</name>
           <url>http://www.bluesunrise.com/maven</url>
           <layout>legacy</layout>
       </repository>
       <repository>
           <id>org.codehaus</id>
           <name>Maven1 Codehaus</name>
           <url>http://dist.codehaus.org</url>
           <layout>legacy</layout>
       </repository>
       <repository>
           <id>org.apache</id>
           <name>Maven1 Apache</name>
           <url>http://www.ibiblio.org/maven2</url>
           <layout>legacy</layout>
       </repository>
   </repositories>
   <pluginRepositories>
       <pluginRepository>
           <id>com.bluesunrise.m2</id>
           <name>Maven2 BlueSunrise</name>
           <url>http://www.bluesunrise.com/maven2</url>
       </pluginRepository>
       <pluginRepository>
           <id>central</id>
           <name>Maven Repository Switchboard</name>
           <url>http://repo1.maven.org/maven2</url>
       </pluginRepository>
   </pluginRepositories>

I've tried altering the url values for the central repository but the build came back with the same error, including the url for http://repo1.maven.org/maven2/org/apache/portals/ jetspeed-2/jetspeed-2/2.1-dev/jetspeed-2-2.1-dev.pom

David

David Sean Taylor wrote:


On Apr 24, 2007, at 9:57 PM, David Dyer wrote:

Update, I've managed to find the required .jar file at http:// www.bluesunrise.com/maven2/org/apache/portals/jetspeed-2/portal- archetype/2.1-dev/portal-archetype-2.1-dev.jar and do the install. the mvn archetype:create appears to have worked after that.

So, on to the next problem...

the mvn -P tomcat,min returns a fatal error as follows:

Downloading: http://repo1.maven.org/maven2/org/apache/portals/ jetspeed-2/jetspeed-2/2.1-dev/jetspeed-2-2.1-dev.pom [INFO] ---------------------------------------------------------------------- --
[ERROR] FATAL ERROR
[INFO] ---------------------------------------------------------------------- --
[INFO] Error building POM (may not be this project's POM).


Project ID: null:import:pom:null

Reason: Cannot find parent: org.apache.portals.jetspeed-2:jetspeed-2 for project
: null:import:pom:null


A quick check of the URL for the jetspeed-2-2.1-dev.pom file reveals that it doesn't live there no more (Not Found)

swapping out http://repo1.maven.org for http://www.bluesunrise.com returns what looks like the correct file.

So, the question is, who tells Maven to download from repo1.maven.org and can I reconfigure to default to http:// www.bluesunrise.com?


Have you copied in the .setttings.xml to your ".m2" directory as described here:

http://portals.apache.org/tutorials/jetspeed-2/01/first-steps.html

It will correctly setup the remote repos and copy resources into here

   <localRepository>/JetspeedTraining/maven/repository</ localRepository>

From that point on, its hit or miss with downloading the files, keep trying if it fails


Regards,
David

PS. I'm keeping a running record of the problems I've had in the interest of passing them on to improve the documentation and tutorial.


Just a quick note: as I've stated on the list before, I am planning on deleting the entire maven-2-based tutorial once the installer/Ant based tutorial is ready



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
David Dyer
Artifact Software Inc.
[EMAIL PROTECTED]
(514) 995-2830


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to