Hi,
Could you remove the org.apache.servicemix:servicemix-pom:pom:2 from
your local maven repo? It should be the folder .m2/repository/org/
apache/servicemix/servicemix-pom/2.
Seems the file in this fold somehow get corrupted cause the error.
Freeman
On 2010-2-26, at 下午1:58, pratibhaG wrote:
Hi,
I have a project created which works fine with servicemix3.2.2. Now
I want
to upgrade the servicemix version to 3.3.1. I have made the
corresponding
changes in pom.xml file.
Here is the file content for pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<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>com.in2m.servicemix.common</groupId>
<artifactId>errorhandling</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>FINICITY :: ESB :: ERROR HANDLING :: OPERATION</name>
<url>http://www.finicity.com</url>
<repositories>
<repository>
<id>apache</id>
<name>Apache Repository</name>
<url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</
url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>apache.snapshots</id>
<name>Apache Snapshots Repository</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache</id>
<name>Apache Repository</name>
<url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</
url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>apache.snapshots</id>
<name>Apache Snapshots Repository</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-camel</artifactId>
<version>2009.01</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-core</artifactId>
<version>${servicemix-version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>4.3</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
<version>1.6.0</version>
</plugin>
</plugins>
</build>
<properties>
<servicemix-version>3.3.1</servicemix-version>
</properties>
</project>
When I do mvn install I get following:
pghog...@gpratibha:~/dev/smxesb/common/errorhandling> mvn install
[INFO] Scanning for projects...
[WARNING] POM for 'org.apache.servicemix:servicemix-pom:pom:
2:runtime' is
invalid.
Its dependencies (if any) will NOT be available to the current build.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: null:servicemix-utils:bundle:1.1.0
Reason: Cannot find parent: org.apache.servicemix:servicemix-pom for
project: null:servicemix-utils:bundle:1.1.0 for project
null:servicemix-utils:bundle:1.1.0
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Feb 26 11:27:37 IST 2010
[INFO] Final Memory: 8M/15M
What am I missing? I feel I am missing some configuration with the
versions
that I am providing in pom.xml.
Please help..
Thanks,
Pratibha
--
View this message in context:
http://old.nabble.com/Error-while-building-the-project-with-maven-while-using-servicemix3.3.1-tp27714850p27714850.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com