Hi Matt,
thanks for pointing that out.
I came to the conclusion that the maven plugin to eclipses messes up
my pom.xml
In the first place I thought, I could just add all dependencies which
I find in the repository search with the Keyword "org.appfuse". I
started the search, because eclipse cant resolve org.appfuse.model.
After adding the dependencies my pom.xml is updated (becoming much
smaller).
Probably I dont understand how to use maven eclipse plugin.
I just overwrote the updated pom with the orginal pom.xml, this
results in:
$ mvn test-compile hibernate3:hbm2ddl
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hibernate3'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building AppFuse Modular Application - Core
[INFO] task-segment: [test-compile, hibernate3:hbm2ddl]
[INFO]
----------------------------------------------------------------------------
[INFO] [aspectj:compile {execution: default}]
[WARNING] bad version number found in C:\Dokumente und
Einstellungen\rgu\.m2\repository\aspectj\aspectjrt\1.5.3\aspectjrt-1.5.3.jar
expected 1.5.2a found 1.5.3
[ERROR] BaseObject cannot be resolved to a type
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Compiler errors :
error at public class Client extends BaseObject {
^^^^^^^^^
C:\Source\rapport\core\src\main\java\com\innflow\rapport\model\Client.java:18:0::0
BaseObject cannot be resolved to a type
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Nov 26 14:07:00 CET 2007
[INFO] Final Memory: 9M/18M
[INFO]
------------------------------------------------------------------------
I tried with the flash demo which shows how to use the plugin. But the
author of the demo doesnt have to decide between so many different
jars/poms ;-)
Regards
René
-----Ursprüngliche Nachricht-----
Von: Matt Raible [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 26. November 2007 02:59
An: [email protected]
Betreff: Re: [appfuse-user] error with mvn test-compile
It looks like you're using 2.0-rc1 instead of 2.0 for some reason.
Did you create your project with 2.0 or 2.0-rc1?
NOTE: You should be able to use 2.0.1 as I'm in the process of
releasing it.
Matt
On Nov 25, 2007, at 3:12 PM, René Günther wrote:
Hello,
after exexcuting mvn test-compile in core directory of my modular jsf
version of appfuse I get the following error:
$ mvn test-compile hibernate3:hbm2ddl
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hibernate3'.
[INFO]
----------------------------------------------------------------------
------
[INFO] Building AppFuse Modular Application - Core
[INFO] task-segment: [test-compile, hibernate3:hbm2ddl]
[INFO]
----------------------------------------------------------------------
------
Downloading:
http://static.appfuse.org/repository/javax/persistence/ejb/3.0-
public_review
/ejb-3.0-public_review.jar
Downloading:
http://download.java.net/maven/1//javax.persistence/jars/ejb-3.0-
public_revi
ew.jar
Downloading:
http://repo1.maven.org/maven2/javax/persistence/ejb/3.0-
public_review/ejb-3.
0-public_review.jar
Downloading:
http://static.appfuse.org/repository/org/appfuse/appfuse/2.0-rc1-
SNAPSHOT/ap
pfuse-2.0-rc1-20070904.050713-181.jar
[INFO]
----------------------------------------------------------------------
--
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------
--
[INFO] Failed to resolve artifact.
Missing:
----------
1) javax.persistence:ejb:jar:3.0-public_review
Try downloading the file manually from:
http://prdownloads.sourceforge.net/hibernate/hibernate-
annotations-3.1beta5.
tar.gz?download
Then, install it using the command:
mvn install:install-file -DgroupId=javax.persistence -
DartifactId=ejb
\
-Dversion=3.0-public_review -Dpackaging=jar -Dfile=/path/
to/file
Path to dependency:
1) com.innflow.rapport:rapport-core:jar:1.0-SNAPSHOT
2) hibernate:hibernate-annotations:jar:3.1beta4
3) javax.persistence:ejb:jar:3.0-public_review
2) org.appfuse:appfuse:jar:2.0-rc1-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.appfuse -
DartifactId=appfuse \
-Dversion=2.0-rc1-20070904.050713-181 -Dpackaging=jar
-Dfile=/path/to/file
Path to dependency:
1) com.innflow.rapport:rapport-core:jar:1.0-SNAPSHOT
2) org.appfuse:appfuse:jar:2.0-rc1-SNAPSHOT
----------
2 required artifacts are missing.
for artifact:
com.innflow.rapport:rapport-core:jar:1.0-SNAPSHOT
from the specified remote repositories:
appfuse (http://static.appfuse.org/repository),
java.net (http://download.java.net/maven/1/),
central (http://repo1.maven.org/maven2)
[INFO]
----------------------------------------------------------------------
--
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------
--
[INFO] Total time: 3 seconds
[INFO] Finished at: Sun Nov 25 23:06:07 CET 2007
[INFO] Final Memory: 8M/15M
[INFO]
----------------------------------------------------------------------
--
I guess I could find those jars and install them as said in this error
message, but probably this error should not occur. Any ideas?
Regards
René
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]