You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Kevin.Zhang" <zh...@yahoo.com> on 2009/11/25 07:45:44 UTC

cannot build tutorial-osgi-camel-part2

Hi Charles, 

I cannot build the reportincident.model. Below is the error. Please help me
out.

Thanks,
Kevin
-------------------------------------------------------------------------------------------------

C:\temp\tutorial-osgi-camel-part2\reportincident.model>mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Report Incident Model Bundle
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
C:\temp\tutorial-osgi-camel-part2\reportincident.model\target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/camel/camel-bindy/2.1-SNAPSHOT/camel-bindy-2.1-SNAPSHOT.pom
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/camel/camel-bindy/2.1-SNAPSHOT/camel-bindy-2.1-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.camel:camel-bindy:jar:2.1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.camel
-DartifactId=camel-bindy -Dversion=2.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:
      mvn deploy:deploy-file -DgroupId=org.apache.camel
-DartifactId=camel-bindy -Dversion=2.1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -Drepos
itoryId=[id]

  Path to dependency:
        1) org.apache.camel.example:reportincident.model:bundle:1.0-SNAPSHOT
        2) org.apache.camel:camel-bindy:jar:2.1-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  org.apache.camel.example:reportincident.model:bundle:1.0-SNAPSHOT

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


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Nov 24 22:38:34 PST 2009
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------
-- 
View this message in context: http://old.nabble.com/cannot-build-tutorial-osgi-camel-part2-tp26508233p26508233.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: cannot build tutorial-osgi-camel-part2

Posted by "Kevin.Zhang" <zh...@yahoo.com>.
Charles, you're right. It works now. Thank you. -Kevin


cmoulliard wrote:
> 
> Hi Kevin,
> 
> The maven repository that you use is not correct. Use this one :
> http://repository.apache.org/snapshots/ in your settings.xml (maven
> config file)
> 
> You can verify from your browser that camel jar exist under the
> following link :
> http://repository.apache.org/snapshots/org/apache/camel/camel-bindy/2.1-SNAPSHOT/
> 
> Regards,
> 
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
> 
> *****************************
> blog : http://cmoulliard.blogspot.com
> twitter : http://twitter.com/cmoulliard
> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
> 
> Apache Camel Group :
> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
> 
> 
> 
> On Wed, Nov 25, 2009 at 7:45 AM, Kevin.Zhang <zh...@yahoo.com>
> wrote:
>>
>> Hi Charles,
>>
>> I cannot build the reportincident.model. Below is the error. Please help
>> me
>> out.
>>
>> Thanks,
>> Kevin
>> -------------------------------------------------------------------------------------------------
>>
>> C:\temp\tutorial-osgi-camel-part2\reportincident.model>mvn clean install
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Report Incident Model Bundle
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean]
>> [INFO] Deleting directory
>> C:\temp\tutorial-osgi-camel-part2\reportincident.model\target
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository/org/apache/camel/camel-bindy/2.1-SNAPSHOT/camel-bindy-2.1-SNAPSHOT.pom
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository/org/apache/camel/camel-bindy/2.1-SNAPSHOT/camel-bindy-2.1-SNAPSHOT.jar
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.apache.camel:camel-bindy:jar:2.1-SNAPSHOT
>>
>>  Try downloading the file manually from the project website.
>>
>>  Then, install it using the command:
>>      mvn install:install-file -DgroupId=org.apache.camel
>> -DartifactId=camel-bindy -Dversion=2.1-SNAPSHOT -Dpackaging=jar
>> -Dfile=/path/to/file
>>
>>  Alternatively, if you host your own repository you can deploy the file
>> there:
>>      mvn deploy:deploy-file -DgroupId=org.apache.camel
>> -DartifactId=camel-bindy -Dversion=2.1-SNAPSHOT -Dpackaging=jar
>> -Dfile=/path/to/file -Durl=[url] -Drepos
>> itoryId=[id]
>>
>>  Path to dependency:
>>        1)
>> org.apache.camel.example:reportincident.model:bundle:1.0-SNAPSHOT
>>        2) org.apache.camel:camel-bindy:jar:2.1-SNAPSHOT
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>  org.apache.camel.example:reportincident.model:bundle:1.0-SNAPSHOT
>>
>> from the specified remote repositories:
>>  apache.incubating
>> (http://people.apache.org/repo/m2-incubating-repository),
>>  central (http://repo1.maven.org/maven2)
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4 seconds
>> [INFO] Finished at: Tue Nov 24 22:38:34 PST 2009
>> [INFO] Final Memory: 5M/10M
>> [INFO]
>> ------------------------------------------------------------------------
>> --
>> View this message in context:
>> http://old.nabble.com/cannot-build-tutorial-osgi-camel-part2-tp26508233p26508233.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -----
> Charles Moulliard
> SOA Architect
> 
> My Blog : http://cmoulliard.blogspot.com/  
> 

-- 
View this message in context: http://old.nabble.com/cannot-build-tutorial-osgi-camel-part2-tp26508233p26515181.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: cannot build tutorial-osgi-camel-part2

Posted by Charles Moulliard <cm...@gmail.com>.
Hi Kevin,

The maven repository that you use is not correct. Use this one :
http://repository.apache.org/snapshots/ in your settings.xml (maven
config file)

You can verify from your browser that camel jar exist under the
following link :
http://repository.apache.org/snapshots/org/apache/camel/camel-bindy/2.1-SNAPSHOT/

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm



On Wed, Nov 25, 2009 at 7:45 AM, Kevin.Zhang <zh...@yahoo.com> wrote:
>
> Hi Charles,
>
> I cannot build the reportincident.model. Below is the error. Please help me
> out.
>
> Thanks,
> Kevin
> -------------------------------------------------------------------------------------------------
>
> C:\temp\tutorial-osgi-camel-part2\reportincident.model>mvn clean install
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Report Incident Model Bundle
> [INFO]    task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory
> C:\temp\tutorial-osgi-camel-part2\reportincident.model\target
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/org/apache/camel/camel-bindy/2.1-SNAPSHOT/camel-bindy-2.1-SNAPSHOT.pom
> Downloading:
> http://people.apache.org/repo/m2-incubating-repository/org/apache/camel/camel-bindy/2.1-SNAPSHOT/camel-bindy-2.1-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.camel:camel-bindy:jar:2.1-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.apache.camel
> -DartifactId=camel-bindy -Dversion=2.1-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>      mvn deploy:deploy-file -DgroupId=org.apache.camel
> -DartifactId=camel-bindy -Dversion=2.1-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -Drepos
> itoryId=[id]
>
>  Path to dependency:
>        1) org.apache.camel.example:reportincident.model:bundle:1.0-SNAPSHOT
>        2) org.apache.camel:camel-bindy:jar:2.1-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>  org.apache.camel.example:reportincident.model:bundle:1.0-SNAPSHOT
>
> from the specified remote repositories:
>  apache.incubating
> (http://people.apache.org/repo/m2-incubating-repository),
>  central (http://repo1.maven.org/maven2)
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Tue Nov 24 22:38:34 PST 2009
> [INFO] Final Memory: 5M/10M
> [INFO]
> ------------------------------------------------------------------------
> --
> View this message in context: http://old.nabble.com/cannot-build-tutorial-osgi-camel-part2-tp26508233p26508233.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>