portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <benethri...@charter.net>
Subject Re: Maven error in tutorial
Date Tue, 22 Apr 2008 00:15:07 GMT
Well, maybe not so perfect for me yet :-)

I have shifted to the maven tutorial as suggested earlier by David Taylor. I'm following its
instructions, doing exactly as it says (I think - i.e. I've said that before and been wrong,
but hopefully not this time :-)). I'm using the command shown in the tutorial:

mvn archetype:create -DarchetypeGroupId=org.apache.portals.jetspeed-2 -DarchetypeArtifactId=portal-archetype
-DarchetypeVersion=2.1 -DgroupId=org.apache.portals.tutorials -DartifactId=jetexpress -Dversion=1.0

...Most of it seems to be working ok, but am getting a build error as shown in this log (skip
down to near the bottom):
-----------------------------------------------------------------------------

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up
dates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet
ype-plugin/2.0-alpha-2/maven-archetype-plugin-2.0-alpha-2.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
etype/2.0-alpha-2/maven-archetype-2.0-alpha-2.pom
16K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven
-parent-7.pom
20K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
4K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archet
ype-plugin/2.0-alpha-2/maven-archetype-plugin-2.0-alpha-2.jar
64K downloaded
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/archetype-
common/2.0-alpha-2/archetype-common-2.0-alpha-2.pom
16K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-core/2.0.8/mav
en-core-2.0.8.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.8/maven-2.
0.8.pom
11K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/6/maven
-parent-6.pom
19K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-settings/2.0.8
/maven-settings-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0.8/ma
ven-model-2.0.8.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4.
6/plexus-utils-1.4.6.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.11/ple
xus-1.0.11.pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-containers
/1.0.3/plexus-containers-1.0.3.pom
492b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.4/plex
us-1.0.4.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
998b downloaded
Downloading: http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/c
lassworlds-1.1-alpha-2.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0
-alpha-6/wagon-file-1.0-alpha-6.pom
441b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
s/1.0-alpha-6/wagon-providers-1.0-alpha-6.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/1.0-alph
a-6/wagon-1.0-alpha-6.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
-api/1.0-alpha-6/wagon-provider-api-1.0-alpha-6.pom
588b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-paramet
er-documenter/2.0.8/maven-plugin-parameter-documenter-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lig
htweight/1.0-beta-2/wagon-http-lightweight-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
s/1.0-beta-2/wagon-providers-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/1.0-beta
-2/wagon-1.0-beta-2.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/4/maven
-parent-4.pom
9K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-sha
red/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom
845b downloaded
Downloading: http://repo1.maven.org/maven2/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug
2000r7-dev.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.pom
680b downloaded
Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0
.b2.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo
rting-api/2.0.8/maven-reporting-api-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-repo
rting/2.0.8/maven-reporting-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia-sink-api
/1.0-alpha-9/doxia-sink-api-1.0-alpha-9.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/doxia/doxia/1.0-alph
a-9/doxia-1.0-alpha-9.pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0.8/
maven-profile-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0.8
/maven-artifact-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-repository-met
adata/2.0.8/maven-repository-metadata-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-error-diagnost
ics/2.0.8/maven-error-diagnostics-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0.8/
maven-project-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manag
er/2.0.8/maven-artifact-manager-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-registr
y/2.0.8/maven-plugin-registry-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/commons-cli/commons-cli/1.0/commons-c
li-1.0.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0
.8/maven-plugin-api-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh-exte
rnal/1.0-beta-2/wagon-ssh-external-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh-comm
on/1.0-beta-2/wagon-ssh-common-1.0-beta-2.pom
851b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv
ity-api/1.0-alpha-5/plexus-interactivity-api-1.0-alpha-5.pom
430b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv
ity/1.0-alpha-5/plexus-interactivity-1.0-alpha-5.pom
482b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components
/1.1.4/plexus-components-1.1.4.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-descrip
tor/2.0.8/maven-plugin-descriptor-2.0.8.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-monitor/2.0.8/
maven-monitor-2.0.8.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-
beta-2/wagon-ssh-1.0-beta-2.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.27/jsch-0.1.27.po
m
965b downloaded
Downloading: http://repo1.maven.org/maven2/classworlds/classworlds/1.1/classworl
ds-1.1.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/net/sourceforge/jchardet/jchardet/1.0
/jchardet-1.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/commons-io/commons-io/1.3.1/commons-i
o-1.3.1.pom
6K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
.1.3/plexus-velocity-1.1.3.pom
976b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components
/1.1.5/plexus-components-1.1.5.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.5/plex
us-1.0.5.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collectio
ns/3.2/commons-collections-3.2.pom
10K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.4/velocity-1.4.po
m
2K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-de
p-1.4.pom
1K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-invoker
/2.0.6/maven-invoker-2.0.6.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-
components/6/maven-shared-components-6.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-monitor/2.0/ma
ven-monitor-2.0.pom
400b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.
pom
8K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0/m
aven-artifact-2.0.pom
723b downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.pom
767b downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/archetype-
common/2.0-alpha-2/archetype-common-2.0-alpha-2.jar
227K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.jar
164K downloaded
Downloading: http://repo1.maven.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0
.b2.jar
106K downloaded
Downloading: http://repo1.maven.org/maven2/net/sourceforge/jchardet/jchardet/1.0
/jchardet-1.0.jar
25K downloaded
Downloading: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
306K downloaded
Downloading: http://repo1.maven.org/maven2/jdom/jdom/1.0/jdom-1.0.jar
149K downloaded
Downloading: http://repo1.maven.org/maven2/commons-io/commons-io/1.3.1/commons-i
o-1.3.1.jar
81K downloaded
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
.1.3/plexus-velocity-1.1.3.jar
7K downloaded
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collectio
ns/3.2/commons-collections-3.2.jar
557K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.4/velocity-1.4.ja
r
352K downloaded
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-de
p-1.4.jar
505K downloaded
Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-invoker
/2.0.6/maven-invoker-2.0.6.jar
24K downloaded
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: org.apache.portals.tutorials
Downloading: http://repo1.maven.org/maven2/org/apache/portals/jetspeed-2/portal-
archetype/2.1/portal-archetype-2.1.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.portals.jetspeed-2
ArtifactId: portal-archetype
Version: 2.1

Reason: Unable to locate resource in repository

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.apache.portals.jetspeed-2 -DartifactI
d=portal-archetype -Dversion=2.1 -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.portals.jetspeed-2 -DartifactId=
portal-archetype -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]


  org.apache.portals.jetspeed-2:portal-archetype:jar:2.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31 seconds
[INFO] Finished at: Mon Apr 21 19:56:42 EDT 2008
[INFO] Final Memory: 7M/13M
[INFO] ------------------------------------------------------------------------

C:\JetspeedTraining\workspace>

------------------------------------------------------------------------------------------

Does anyone else get this error if they try the maven command?

Ben

---- Ron Wheeler <rwheeler@artifact-software.com> wrote: 
> I guess that Maven is now perfect. :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Mime
View raw message