mentby.com
Blog | Jobs | Help | Signup | Login
loading

Appfuse-2.1.0-M...

Last updated: Tue, 16 Mar 2010 07:28:09 -0700 View thread View thread at AppFuse

Hello,

I am trying to generate a Appfuse 2.1.0-M2-SNAPSHOT project, I have one
question
and a problem!
The question is:
- in the generated pom.xml we get
<wtpversion>1.5</wtpversion>
what happens if one uses 2.0 (which seems to be the most up-to-date)?

The problem: performing "mvn appfuse:full-source" throws a lot of warnings

[ maven embedder WARNING] Unable to get resource
'org.springframework:spring-orm:jar:3.0.0.RELEASE' from repository central
( http://repo1.maven.org/maven2 ):
 Unsupported Protocol: 'http': Cannotfind
wagon which supports the requested protocol: http
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
Missing:
----------
1) org.springframework:spring-jdbc:jar:3.0.0.RELEASE

  Path to dependency:

  1) org.appfuse:appfuse-data:pom:2.1.0-M2-SNAPSHOT

  2) org.springframework:spring-jdbc:jar:3.0.0.RELEASE

Then I tried a 2.1.0-M1 project, almost the same problems:
[ maven embedder WARNING] Unable to get resource
'org.springframework:spring-orm:jar:2.5.6' from repository central
( http://repo1.maven.org/maven2 ): Unsupported Protocol: 'http': Cannot find
wagon which supports the requested protocol: http
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
Missing:
----------
1) org.springframework:spring-aop:jar:2.5.6
2) org.springframework:spring-jdbc:jar:2.5.6
3) org.springframework:spring-orm:jar:2.5.6
----------
3 required artifacts are missing.

for artifact:
  org.appfuse:appfuse-data:pom:2.1.0-M1

from the specified remote repositories:
  central ( http://repo1.maven.org/maven2 ),
  appfuse-snapshots
( http://oss.sonatype.org/content/repositories/appfuse-snapshots )

What can I do?

Regards,I forgot to add: I'm on Ubuntu!

Marian1) go to  http://appfuse.org/display/APF/AppFuse+QuickStart  and select
Version = 2.1.0-M2-SNAPSHOT

2) copy & paste the "Command line" value and execute in in a (temporary)
folder:
mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-basic-struts-archetype
-DarchetypeVersion=2.1.0-M2-SNAPSHOT -DgroupId=com.mycompany
-DartifactId=myproject
-DarchetypeRepository= http://oss.sonatype.org/content/repositories/appfuse

3) cd myproject
4) mvn appfuse:full-source

But you gave me an idea, I shall try the above manipulations at home, on my
Mac...

MarianMeanwhile I've tested it on Fedora 12, it works like a charm......But, on the same Fedora 12, trying to perform a mvn eclipse:eclipse
produces this:

[INFO] Resource directory's path matches an existing source directory.
Resources will be merged with the source directory src/main/resources
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Request to merge when 'filtering' is not identical. Original=resource
src/main/resources: output=target/classes, include=[],
exclude=[ApplicationResources_de.properties|ApplicationResources_fr.properties|ApplicationResources_ko.properties|ApplicationResources_nl.properties|ApplicationResources_no.properties|ApplicationResources_pt*.properties|ApplicationResources_tr.properties|ApplicationResources_zh*.properties|applicationContext-resources.xml|struts.xml|**/*.java],
test=false, filtering=true, merging with=resource src/main/resources:
output=target/classes,
include=[applicationContext-resources.xml|struts.xml], exclude=[**/*.java],
test=false, filtering=falseOK, it's almos t OK now - the project is created but Eclipse show some errors
:

1) The errors below were detected when validating the file
"spring-beans-3.0.xsd" via the file "applicationContext.xml".  In most
cases these errors can be detected by validating "spring-beans-3.0.xsd"
directly.  However it is possible that errors will only occur when
spring-beans-3.0.xsd is validated in the context of
applicationContext.xml.

2) ct-props-correct:4 Error for type #AnnonType_list. Duplicate attribute
uses with the same name and target namespace are specified. Name of
dupplicate attribute is 'merge'.

There are also a lot of warnings, for instance complaining about errors in
header.jsp, line 3 :
"Syntax error on token "ne", delete this token"

Marian





Post a Comment