You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pratibhaG <pr...@in2m.com> on 2008/08/05 14:55:29 UTC

project property 'componentName' error

I have a camel component updateuserprofile-routing-su. 

When I do mvn install for the operation which contains this su, I get
following error:

The service unit updateuserprofile-routing-su does not have a dependency
which is packaged as a jbi-component or a project property 'componentName'

After some reading I found a workaround for this and added following to
pom.xml of updateuserprofile-routing-su. 
<componentName>servicemix-camel</componentName> in properties.

Still the problem is same.

How it can be resolved?

Pratibha
-- 
View this message in context: http://www.nabble.com/project-property-%27componentName%27-error-tp18830478p18830478.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: project property 'componentName' error

Posted by pratibhaG <pr...@in2m.com>.
This error comes only when I add following dependency:

<dependency>
      <groupId>com.in2m.servicemix.operations</groupId>
      <artifactId>errorhandling</artifactId>
      <version>1.0</version>
</dependency>

Another thing, when I add this dependency the error comes while building the
SA. The SU is built successfully.

Pratibha 
-- 
View this message in context: http://www.nabble.com/project-property-%27componentName%27-error-tp18830478p18848538.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: project property 'componentName' error

Posted by pratibhaG <pr...@in2m.com>.
here is the pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project>
	
  <parent>
    <artifactId>updateprofile</artifactId>
    <groupId>com.in2m.servicemix.operations</groupId>
    <version>1.0</version>
  </parent>
	
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.in2m.servicemix.operations.updateprofile</groupId>
  <artifactId>updateprofile-routing-su</artifactId>
  <packaging>jbi-service-unit</packaging>
  <name>FINICITY :: ESB :: UPDATEPROFILE :: CAMEL :: SU</name>
  <version>1.0</version>
  <url>http://www.finicity.com</url>
	
  <build>
    <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>${servicemix-version}</version>
        <extensions>true</extensions>
      </plugin>
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-maven-plugin</artifactId>
        <version>${camel-version}</version>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <releases />
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>apache</id>
      <name>Apache Repository</name>
      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
    </repository>
    <repository>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots />
      <id>apache.snapshots</id>
      <name>Apache Snapshots Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <releases />
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>apache</id>
      <name>Apache Repository</name>
      <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
    </pluginRepository>
    <pluginRepository>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots />
      <id>apache.snapshots</id>
      <name>Apache Snapshots Repository</name>
      <url>http://people.apache.org/repo/m2-snapshot-repository</url>
    </pluginRepository>
  </pluginRepositories>
  <dependencies>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-core</artifactId>
      <version>${servicemix-version}</version>
      <scope>provided</scope>
    </dependency>
	<dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-camel</artifactId>
      <version>3.2.2-SNAPSHOT</version>
      <scope>provided</scope>
    </dependency> 
    <dependency>
      <groupId>com.in2m.servicemix.operations</groupId>
      <artifactId>errorhandling</artifactId>
      <version>1.0</version>
    </dependency>
  </dependencies>
  <properties>
    <servicemix-version>3.2.1</servicemix-version>
    <camel-version>1.4-SNAPSHOT</camel-version>
    <componentName>servicemix-camel</componentName>
  </properties>
</project>
-- 
View this message in context: http://www.nabble.com/project-property-%27componentName%27-error-tp18830478p18831163.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: project property 'componentName' error

Posted by Manuel EVENO <ma...@gmail.com>.
Is the packaging for your pom is jbi-service-unit ?
Can you give us your complete pom ?

You can have a look at a complete working example here :
https://svn.apache.org/repos/asf/servicemix/smx3/trunk/samples/camel/camel-simple-su/pom.xml

Manuel

 --
Xebia
blog.xebia.fr (fr)
blog.xebia.com (en)



On Tue, Aug 5, 2008 at 3:19 PM, pratibhaG <pr...@in2m.com> wrote:

>
> I already have this in my pom.xml:
>
> <dependency>
>      <groupId>org.apache.servicemix</groupId>
>      <artifactId>servicemix-camel</artifactId>
>       <version>3.2.2-SNAPSHOT</version>
>      <scope>provided</scope>
> </dependency>
>
> The error comes when this is there in the file.
>
> Partibha
>
>
> --
> View this message in context:
> http://www.nabble.com/project-property-%27componentName%27-error-tp18830478p18830966.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Re: project property 'componentName' error

Posted by pratibhaG <pr...@in2m.com>.
I already have this in my pom.xml:

<dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-camel</artifactId>
      <version>3.2.2-SNAPSHOT</version>
      <scope>provided</scope>
</dependency> 

The error comes when this is there in the file.

Partibha


-- 
View this message in context: http://www.nabble.com/project-property-%27componentName%27-error-tp18830478p18830966.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: project property 'componentName' error

Posted by Manuel EVENO <ma...@gmail.com>.
Just add a dependency to servicemix-camel by adding this snippet to your
pom.xml :

  <dependencies>
    <dependency>
      <groupId>org.apache.servicemix</groupId>
      <artifactId>servicemix-camel</artifactId>
      <version>3.2.2</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

Manuel

 --
Xebia
blog.xebia.fr (fr)
blog.xebia.com (en)



On Tue, Aug 5, 2008 at 2:55 PM, pratibhaG <pr...@in2m.com> wrote:

>
> I have a camel component updateuserprofile-routing-su.
>
> When I do mvn install for the operation which contains this su, I get
> following error:
>
> The service unit updateuserprofile-routing-su does not have a dependency
> which is packaged as a jbi-component or a project property 'componentName'
>
> After some reading I found a workaround for this and added following to
> pom.xml of updateuserprofile-routing-su.
> <componentName>servicemix-camel</componentName> in properties.
>
> Still the problem is same.
>
> How it can be resolved?
>
> Pratibha
> --
> View this message in context:
> http://www.nabble.com/project-property-%27componentName%27-error-tp18830478p18830478.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Re: project property 'componentName' error

Posted by pratibhaG <pr...@in2m.com>.
Resolved it.

pratibha
-- 
View this message in context: http://www.nabble.com/project-property-%27componentName%27-error-tp18830478p18849820.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.