I'm building the 'Very simple Session EJB' example from
http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.html
The POM is below.
I'm running a training course at a client's premises. The training room
machines don't have an Internet connection.The only way I can get things
onto the (Windows) machines is taking it with me on a CD.
This example is one of them, but there will be others as well.
The alternative is to convert the pom file into a standard ant build.xml
file, and then I can use ant. I'm looking into the ant:ant that you
mentioned.
At the moment, neither mvn clean install site nor mvn ant:ant are working at
all.

Problem with mvn clean site install --------------------------

I have also posted this to
http://www.nabble.com/Building-sample-project---maven-error-tf4729095s134.html
as I don't know whether it's a maven problem or a samples problem.

I'm trying to build the simple project from
http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.html

I've downloaded the file
http://cwiki.apache.org/GMOxDOC20/very-simple-session-ejb-example.data/mytime_.zip
and unzipped it.

I've installed Maven 2.0, and can check it with mvn -version
Maven version: 2.0.7
Java version: 1.5.0_04
OS name: "windows xp" version: "5.1" arch: "x86"

When I try to build the source, using mvn clean install site
I get a raft of errors, starting with:

[INFO] Scanning for projects...
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/samples/samples/2.0-SNAPSHOT/samples-2.0-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.geronimo.samples
ArtifactId: samples
Version: 2.0-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.geronimo.samples:samples:pom:2.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache.geronimo.samples:samples for project:
null:calculator-stateless-pojo:pom:null f
or project null:calculator-stateless-pojo:pom:null


If I try just browsing to the URL:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/samples/samples/2.0-SNAPSHOT/samples-2.0-SNAPSHOT.pom
I get a 404.




Problem with mvn ant:ant --------------------------
When I run mvn ant:ant on the below pom, I get the same error as if I try
mvn clean site install.



pom.xml ----------------------
<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
    
     http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->

<!-- $Rev: 550875 $ $Date: 2007-06-26 13:40:09 -0400 (Tue, 26 Jun 2007) $
-->

<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>
    
    <parent>
        <groupId>org.apache.geronimo.samples</groupId>
        <artifactId>samples</artifactId>
        <version>2.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    
    <artifactId>mytime</artifactId>
    <name>Geronimo Samples :: mytime</name>
    <packaging>pom</packaging>
    
    <description>
        Geronimo mytime sample created from an archetype.
    </description>
    
   <modules>
        <module>mytime-ejb</module>
        <module>mytime-war</module>
        <module>mytime-ear</module>
    </modules>

   <build>
        <plugins>
            <plugin>
                <artifactId>maven-site-plugin</artifactId>
                <inherited>false</inherited>
                <configuration>
                  <outputDirectory>${project.basedir}/docs</outputDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <repositories>
        <repository>
            <id>apache-snapshots</id>
            <name>Apache Snapshots Repository</name>
            <url>http://people.apache.org/repo/m2-snapshot-repository</url>
            <layout>default</layout>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>ignore</checksumPolicy>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories> 

</project>

-----------------------

Wendy Smoak-3 wrote:
> 
> On 10/31/07, PeterAU2 <[EMAIL PROTECTED]> wrote:
>>
>> Simple question that I haven't been able to find an answer in the online
>> doc.
>> Does Maven require an Internet connection in order to run?
>> (The system I'll be trialling it on doesn't have an Internet connection)
> 
> You can use the -o (or --offline) command line switch to tell it you
> are running offline, but you will first have to make sure that all of
> the dependencies you need are in your local repository.
> 
> Can you tell us more about the environment?  You will need to get all
> of the dependency jars onto the build box somehow...
> 
> -- 
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie%3A-Maven-need-connection--tf4728839s177.html#a13522797
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to