Hi Patric,
Thank you for the advice!
Unfortunately, I'm not getting as far as the sun jars, I am failing on apache 
jars.  Below is my error output from using your pom.  Is apache.org 
misbehaving, or is there something I am doing wrong?


[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Olia's xfire test
[INFO]    task-segment: [compile]
[INFO] 
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://dist.codehaus.org/xfire/poms/jaxb-api-2.0-ea3.pom
[WARNING] Unable to get resource from repository codehaus 
(http://dist.codehaus.org)
Downloading: 
http://repo1.maven.org/maven2/xfire/jaxb-api/2.0-ea3/jaxb-api-2.0-ea3.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[WARNING] POM for 'jaxen:jaxen:pom:1.1-beta-8:compile' is invalid. It will be 
ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid. It 
will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
Downloading: http://dist.codehaus.org/xfire/poms/jaxb-impl-2.0-ea3.pom
[WARNING] Unable to get resource from repository codehaus 
(http://dist.codehaus.org)
Downloading: 
http://repo1.maven.org/maven2/xfire/jaxb-impl/2.0-ea3/jaxb-impl-2.0-ea3.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: http://dist.codehaus.org/xfire/poms/jaxb-xjc-2.0-ea3.pom
[WARNING] Unable to get resource from repository codehaus 
(http://dist.codehaus.org)
Downloading: 
http://repo1.maven.org/maven2/xfire/jaxb-xjc/2.0-ea3/jaxb-xjc-2.0-ea3.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
Downloading: 
http://dist.codehaus.org/org.codehaus.xfire/poms/xbean-spring-2.3-patched-20060426.pom
[WARNING] Unable to get resource from repository codehaus 
(http://dist.codehaus.org)
Downloading: 
http://repo1.maven.org/maven2/org/codehaus/xfire/xbean-spring/2.3-patched-20060426/xbean-spring-2.3-patched-20060426.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[WARNING]
        Artifact junit:junit:jar:3.8.1:test retains local scope 'test' 
overriding broader scope 'compile'
        given by a dependency. If this is not intended, modify or remove the 
local scope.
 
[WARNING] POM for 'xfire:xfire-jsr181-api:pom:1.0-M1:compile' is invalid. It 
will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
Downloading: 
http://dist.codehaus.org/org.apache.ws.commons/jars/XmlSchema-1.0.1.jar
[WARNING] Unable to get resource from repository codehaus 
(http://dist.codehaus.org)
Downloading: 
http://cvs.apache.org/maven-snapshot-repository//org.apache.ws.commons/jars/XmlSchema-1.0.1.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
Error transferring file
  org.apache.ws.commons:XmlSchema:jar:1.0.1
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://dist.codehaus.org),
  apache-snapshots (http://cvs.apache.org/maven-snapshot-repository/)
Path to dependency:
        1) com.olia.app:xfireTest:war:1.0-SNAPSHOT
        2) org.codehaus.xfire:xfire-jaxb2:jar:1.1-RC1
        3) org.codehaus.xfire:xfire-core:jar:1.1-RC1
        4) org.apache.ws.commons:XmlSchema:jar:1.0.1
 
 
 
Caused by I/O exception: Connection refused
 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch 

-----Original Message-----
From: Patric Fornasier [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 5:58 PM
To: [email protected]
Subject: RE: [xfire-user] Sample pom?


Hi,


You are probably missing out the sun jars (i.e. activation, mail, etc.).
You'll have to download them manually onto your computer due to license issues. 
If you look carefully at the mvn error message at the end of the build, it will 
probably tell you exactly that.


Once you've downloaded the jars to your computer, install them into your local 
maven repo.

E.g. if you have downloaded the activation jar and stored it under 
d:/activation-1.0.2.jar you can execute the following command:

mvn install:install-file -Dfile=d:/activation-1.0.2.jar 
-DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 
-Dpackaging=jar

For more info on sun jars check out:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

Alternatively you could of course also make the sun jars available on a local 
web server and pull them off from there.

In case you still need a full pom, you'll find it at the end of this message 
(including junit jar and tomcat plugin)

Hope this helps!

Cheers,
Patric

<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>
  <groupId>au.com.nicta.toy.problem</groupId>
  <artifactId>toy-problem-xfire</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>BIG Toy Problem Service</name>
  <url>http://www.nicta.com.au</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.codehaus.xfire</groupId>
      <artifactId>xfire-jaxb2</artifactId>
      <version>1.1-RC1</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.xfire</groupId>
      <artifactId>xfire-spring</artifactId>
      <version>1.1-RC1</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.xfire</groupId>
      <artifactId>xfire-java5</artifactId>
      <version>1.1-RC1</version>
    </dependency>
  </dependencies>
  <build>
    <finalName>toy-problem</finalName>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>tomcat-maven-plugin</artifactId>
        <version>1.0-SNAPSHOT</version> 

      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>codehaus</id>
      <name>Codehaus maven repository</name>
      <url>http://dist.codehaus.org</url>
      <layout>legacy</layout>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>Maven Snapshots</id>
      <url>http://snapshots.maven.codehaus.org/maven2</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
</project>



________________________________

From: Kerzhner, Olia [mailto:[EMAIL PROTECTED]

Sent: Thursday, 11 May 2006 10:27 AM
To: [email protected]
Subject: [xfire-user] Sample pom?



Hi all,

I am new to xfire, and new to maven, and I am having trouble getting a build to 
run the samples.  I am trying to use maven to get all my dependencies, but I am 
not entirely sure what dependencies I should have, and what repositories I 
should use.  I followed this page
recommendations: http://xfire.codehaus.org/Maven+Guide
<http://xfire.codehaus.org/Maven+Guide>


For these dependencies:

<dependency>

    <groupId>org.codehaus.xfire</groupId>

    <artifactId>xfire-jaxb2</artifactId>

    <version>1.0</version>

</dependency>

<dependency>

    <groupId>org.codehaus.xfire</groupId>

    <artifactId>xfire-spring</artifactId>

    <version>1.0</version>

</dependency>

<dependency>

    <groupId>org.codehaus.xfire</groupId>

    <artifactId>xfire-java5</artifactId>

    <version>1.0</version>

</dependency>



And with this repository:

<repositories>

    <repository>

      <id>codehaus</id>

      <name>Codehaus maven repository</name>

      <url>http://dist.codehaus.org/</url>

      <layout>legacy</layout>

    </repository>

  </repositories>


And it keeps choking on various jars, I am not even sure where they are getting 
pulled in from.  Anyone has a complete sample pom that I can use for the sample?

Thanks in advance,

Olia




--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally 
privileged information or copyright material. You should not read, copy, use or 
disclose them without authorisation. If you are not an intended recipient, 
please contact us at once by return email and then delete both messages. We do 
not accept liability in connection with computer virus, data corruption, delay, 
interruption, unauthorised access or unauthorised amendment. This notice should 
not be removed.

Reply via email to