Still same problem...
I can tell u in detail what i am doing

In starting When creating projects from archetypes, Maven's archetype plugin
is unable to locate e.g. servicemix-service-unit or
servicemix-service-assembly
Then i created a file "archetype-catalog.xml" with the following content in
~/.m2
<?xml version="1.0" encoding="utf-8"?>
<archetype-catalog>
<archetypes>
<archetype>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>servicemix-service-unit</artifactId>
<version>3.2.1</version>
<repository>http://repo1.maven.org/maven2</repository>
<description>ServiceMix archetype for creating a simple SU</description>
</archetype>
<archetype>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>servicemix-service-assembly</artifactId>
<version>3.2.1</version>
<repository>http://repo1.maven.org/maven2</repository>
<description>ServiceMix archetype for creating a simple SA</description>
</archetype>
</archetypes>
</archetype-catalog>

Then i call maven with extra parameter "-DarchetypeCatalog=local" to point
to the local archetype configuration.

C:\Apache Software Foundation\projects\tutorial>mvn archetype:create
-DarchetypeArtifactId=servicemix-service-unit
-DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-file-su -DarchetypeCatalog=local

after running this command it is asking for following parameters

Define value for groupId: : org.apache.servicemix.tooling
Define value for version: : 1.0-SNAPSHOT (here i mentioned version number)
Define value for package: : jar
after that SU created successfully

same for service assembly
C:\Apache Software Foundation\projects\tutorial>mvn -e archetype:create
-DarchetypeArtifactId=servicemix-service-assembly
-DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=tutorial-sa
-DarchetypeC
atalog=local

Define value for groupId: : org.apache.servicemix.tooling
Define value for version: : 1.0-SNAPSHOT (here i mentioned version number)
Define value for package: : jar

service assembly created sucessfully.
After that i modified the pom.xml files for defining dependencies..

Now i am running 
mvn install  and facing the same prob as mentioned below.

C:\Apache Software Foundation\projects\tutorial>mvn -e archetype:create
-DarchetypeArtifactId=servicemix
-service-assembly -DarchetypeGroupId=org.apache.servicemix.tooling
-DartifactId=tutorial-sa -DarchetypeC
atalog=local
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Tutorial
[INFO]   Tutorial::File SU
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Preparing archetype:create
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[INFO] Archetype
[org.apache.servicemix.tooling:servicemix-service-assembly:3.2.1 ->
http://repo1.maven.
org/maven2] found in catalog local
Define value for groupId: : org.apache.servicemix.tooling
Define value for version: : 1.0-SNAPSHOT
Define value for package: : jar
Confirm properties configuration:
groupId: org.apache.servicemix.tooling
artifactId: tutorial-sa
version: 1.0-SNAPSHOT
package: jar
 Y: : y
[INFO]
----------------------------------------------------------------------------
[INFO] Using following parameters for creating OldArchetype:
servicemix-service-assembly:3.2.1
[INFO]
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.apache.servicemix.tooling
[INFO] Parameter: packageName, Value: jar
[INFO] Parameter: basedir, Value: C:\Apache Software
Foundation\projects\tutorial
[INFO] Parameter: package, Value: jar
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: tutorial-sa
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference : template = archetype-res
ources/pom.xml [line 93,column 18] : ${servicemix-version} is not a valid
reference.
[INFO] ********************* End of debug info from resources from generated
POM ***********************

[INFO] OldArchetype created in dir: C:\Apache Software
Foundation\projects\tutorial\tutorial-sa
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 44 seconds
[INFO] Finished at: Wed Feb 20 15:35:46 IST 2008
[INFO] Final Memory: 8M/15M
[INFO]
------------------------------------------------------------------------

C:\Apache Software Foundation\projects\tutorial>mvn install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Tutorial
[INFO]   Tutorial::File SU
[INFO]   Tutorial::SA
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\Apache Software Foundation\projects\tutorial\pom.xml to
C:\Documents and Settings\b
husing\.m2\repository\org\apache\servicemix\tutorial\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial::File SU
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://people.apache.org/repo/m2-ibiblio-rsync-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom

Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://people.apache.org/repo/m2-ibiblio-rsync-repository/xml-security/xmlsec/1.3.0/xmlsec-
1.3.0.pom
Downloading:
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
[INFO] [jbi:generate-depends-file]
[INFO] Created: C:\Apache Software
Foundation\projects\tutorial\tutorial-file-su\target\classes\META-INF
\maven\dependencies.properties
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [jbi:generate-jbi-service-unit-descriptor]
[INFO] Generating jbi.xml
[INFO] generated : consumes [] provides []
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: C:\Apache Software
Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi
le-su-1.0-SNAPSHOT.jar
[INFO] [jbi:jbi-service-unit]
[INFO] Resolving org.apache.servicemix:servicemix-file:jar:3.2.1:compile
[INFO] Resolving org.apache.servicemix:servicemix-shared:jar:3.2.1:compile
[INFO] Resolving org.apache.servicemix:servicemix-common:jar:3.2.1:compile
[INFO] Resolving wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO] Resolving org.apache.servicemix:servicemix-soap:jar:3.2.1:compile
[INFO] Resolving wss4j:wss4j:jar:1.5.1:compile
[INFO] Resolving bouncycastle:bcprov-jdk14:jar:136:compile
[INFO] Resolving org.opensaml:opensaml:jar:1.1:compile
[INFO] Resolving xml-security:xmlsec:jar:1.3.0:compile
[INFO] Resolving org.apache.servicemix:servicemix-soap2:jar:3.2.1:compile
[INFO] Resolving org.apache.ws.commons.schema:XmlSchema:jar:1.2:compile
[INFO] Resolving org.apache.woden:woden:jar:1.0.0M6:compile
[INFO] Resolving org.apache.ws.commons:XmlSchema:jar:1.1:compile
[WARNING] Attempting to build MavenProject instance for Artifact
(org.apache.ws.commons:XmlSchema:1.1) o
f type: jar; constructing POM artifact instead.
[INFO] Resolving stax:stax-api:jar:1.0:compile
[INFO] Resolving xerces:xercesImpl:jar:2.8.0:compile
[INFO] Resolving xml-apis:xml-apis:jar:1.3.03:compile
[INFO] Resolving commons-logging:commons-logging:jar:1.1:compile
[INFO] Resolving log4j:log4j:jar:1.2.12:compile
[INFO] Generating service unit C:\Apache Software
Foundation\projects\tutorial\tutorial-file-su\target\t
utorial-file-su-1.0-SNAPSHOT.zip
[INFO] Building jar: C:\Apache Software
Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi
le-su-1.0-SNAPSHOT.zip
[INFO] [install:install]
[INFO] Installing C:\Apache Software
Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file-
su-1.0-SNAPSHOT.jar to C:\Documents and
Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tu
torial-file-su\1.0-SNAPSHOT\tutorial-file-su-1.0-SNAPSHOT.jar
[INFO] Installing C:\Apache Software
Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file-
su-1.0-SNAPSHOT.zip to C:\Documents and
Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tu
torial-file-su\1.0-SNAPSHOT\tutorial-file-su-1.0-SNAPSHOT.zip
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial::SA
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria
l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.pom
Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria
l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.servicemix.tutorial
-DartifactId=tutorial-file-su -D
version=1.0-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.servicemix.tutorial
-DartifactId=tutorial-file-su -Dve
rsion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

  Path to dependency:
        1)
org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0-SNAPSHOT
        2) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT

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

for artifact:
 
org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0-SNAPSHOT

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


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Wed Feb 20 15:39:48 IST 2008
[INFO] Final Memory: 19M/34M
[INFO]
------------------------------------------------------------------------


Please tell me where i am making a mistake
---------------------------------------------------------

gnodet wrote:
> 
> Please try again with 1.0-SNAPSHOT and not 1.0
> 
> On Wed, Feb 20, 2008 at 10:25 AM, Bhupinder Singh
> <[EMAIL PROTECTED]> wrote:
>>
>>  I changed the version number of SU and SA's pom 1.0.Even then it is
>> showing
>>  same error.
>>
>>
>>
>>
>>  It sems there is an inconsistency between the versions numbers used
>>  for the file SU.
>>  The file SU pom seems to specify 3.2.1 (the servicemix version) and
>>  the version referenced in the SA pom (1.0-SNAPSHOT).   Please fix the
>>  SU and SA so that the version is 1.0-SNAPSHOT.
>>
>>
>> [INFO] Scanning for projects...
>>  [INFO] Reactor build order:
>>  [INFO]   Tutorial
>>  [INFO]   Tutorial :: File SU
>>  [INFO]   Tutorial :: SA
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] Building Tutorial
>>  [INFO]    task-segment: [install]
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] [site:attach-descriptor]
>>  [INFO] [install:install]
>>  [INFO] Installing C:\Apache Software
>> Foundation\projects\tutorial\pom.xml to
>>  C:\Documents and Settings\b
>> 
>> husing\.m2\repository\org\apache\servicemix\tutorial\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT.pom
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] Building Tutorial :: File SU
>>  [INFO]    task-segment: [install]
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] [resources:resources]
>>  [INFO] Using default encoding to copy filtered resources.
>>  Downloading:
>> 
>> http://people.apache.org/repo/m2-ibiblio-rsync-repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
>>
>>  Downloading:
>> http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
>>  Downloading:
>>
>> http://people.apache.org/repo/m2-ibiblio-rsync-repository/xml-security/xmlsec/1.3.0/xmlsec-
>>  1.3.0.pom
>>  Downloading:
>>  http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
>>
>> [INFO] [jbi:generate-depends-file]
>>  [INFO] Created: C:\Apache Software
>>  Foundation\projects\tutorial\tutorial-file-su\target\classes\META-INF
>>  \maven\dependencies.properties
>>  [INFO] [compiler:compile]
>>  [INFO] No sources to compile
>>  [INFO] [jbi:generate-jbi-service-unit-descriptor]
>>  [INFO] Generating jbi.xml
>>  [INFO] generated : consumes [] provides []
>>  [INFO] [resources:testResources]
>>  [INFO] Using default encoding to copy filtered resources.
>>  [INFO] [compiler:testCompile]
>>  [INFO] No sources to compile
>>  [INFO] [surefire:test]
>>  [INFO] No tests to run.
>>  [INFO] [jar:jar]
>>  [INFO] Building jar: C:\Apache Software
>>  Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi
>>  le-su-1.0.jar
>>
>> [INFO] [jbi:jbi-service-unit]
>>  [INFO] Resolving org.apache.servicemix:servicemix-file:jar:3.2.1:compile
>>  [INFO] Resolving
>> org.apache.servicemix:servicemix-shared:jar:3.2.1:compile
>>  [INFO] Resolving
>> org.apache.servicemix:servicemix-common:jar:3.2.1:compile
>>  [INFO] Resolving wsdl4j:wsdl4j:jar:1.6.1:compile
>>  [INFO] Resolving org.apache.servicemix:servicemix-soap:jar:3.2.1:compile
>>  [INFO] Resolving wss4j:wss4j:jar:1.5.1:compile
>>  [INFO] Resolving bouncycastle:bcprov-jdk14:jar:136:compile
>>  [INFO] Resolving org.opensaml:opensaml:jar:1.1:compile
>>  [INFO] Resolving xml-security:xmlsec:jar:1.3.0:compile
>>  [INFO] Resolving
>> org.apache.servicemix:servicemix-soap2:jar:3.2.1:compile
>>  [INFO] Resolving org.apache.ws.commons.schema:XmlSchema:jar:1.2:compile
>>  [INFO] Resolving org.apache.woden:woden:jar:1.0.0M6:compile
>>  [INFO] Resolving org.apache.ws.commons:XmlSchema:jar:1.1:compile
>>  [WARNING] Attempting to build MavenProject instance for Artifact
>>  (org.apache.ws.commons:XmlSchema:1.1) o
>>  f type: jar; constructing POM artifact instead.
>>  [INFO] Resolving stax:stax-api:jar:1.0:compile
>>  [INFO] Resolving xerces:xercesImpl:jar:2.8.0:compile
>>  [INFO] Resolving xml-apis:xml-apis:jar:1.3.03:compile
>>
>> [INFO] Resolving commons-logging:commons-logging:jar:1.1:compile
>>  [INFO] Resolving log4j:log4j:jar:1.2.12:compile
>>  [INFO] Generating service unit C:\Apache Software
>>  Foundation\projects\tutorial\tutorial-file-su\target\t
>>  utorial-file-su-1.0.zip
>>
>> [INFO] Building jar: C:\Apache Software
>>  Foundation\projects\tutorial\tutorial-file-su\target\tutorial-fi
>>  le-su-1.0.zip
>>
>> [INFO] [install:install]
>>  [INFO] Installing C:\Apache Software
>>  Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file-
>>  su-1.0.jar to C:\Documents and
>>
>> Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tutorial-fi
>>  le-su\1.0\tutorial-file-su-1.0.jar
>>
>> [INFO] Installing C:\Apache Software
>>  Foundation\projects\tutorial\tutorial-file-su\target\tutorial-file-
>>  su-1.0.zip to C:\Documents and
>>
>> Settings\bhusing\.m2\repository\org\apache\servicemix\tooling\tutorial-fi
>>  le-su\1.0\tutorial-file-su-1.0.zip
>>
>>
>> [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] Building Tutorial :: SA
>>  [INFO]    task-segment: [install]
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  Downloading:
>> 
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria
>>  l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.pom
>>  Downloading:
>> 
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tutorial/tutoria
>>  l-file-su/1.0-SNAPSHOT/tutorial-file-su-1.0-SNAPSHOT.jar
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [ERROR] BUILD ERROR
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] Failed to resolve artifact.
>>
>>  Missing:
>>  ----------
>>  1) org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.apache.servicemix.tutorial
>>  -DartifactId=tutorial-file-su -D
>>  version=1.0-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.servicemix.tutorial
>>  -DartifactId=tutorial-file-su -Dve
>>  rsion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
>>  -DrepositoryId=[id]
>>
>>   Path to dependency:
>>         1)
>>  org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0
>>
>>         2)
>> org.apache.servicemix.tutorial:tutorial-file-su:jar:1.0-SNAPSHOT
>>
>>  ----------
>>  1 required artifact is missing.
>>
>>  for artifact:
>>   org.apache.servicemix.tooling:tutorial-sa:jbi-service-assembly:1.0
>>
>>
>>  from the specified remote repositories:
>>   central (http://repo1.maven.org/maven2),
>>   apache.snapshots
>> (http://people.apache.org/repo/m2-snapshot-repository),
>>   apache (http://people.apache.org/repo/m2-ibiblio-rsync-repository)
>>
>>
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] For more information, run Maven with the -e switch
>>  [INFO]
>>  ------------------------------------------------------------------------
>>  [INFO] Total time: 16 seconds
>>  [INFO] Finished at: Wed Feb 20 14:47:45 IST 2008
>>
>> [INFO] Final Memory: 19M/34M
>>  [INFO]
>>  ------------------------------------------------------------------------
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/Getting-failed-to-resolve-artifact-error-when-installing-project-component-using-Maven-tp15582805s12049p15585237.html
>>
>>
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-failed-to-resolve-artifact-error-when-installing-project-component-using-Maven-tp15582805s12049p15586191.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to