after I have added the exclusion, I have the following error, where can I
download the missing files ? 

D:\source\clubber>mvn clean compile hibernate3:hbm2ddl
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hibernate3'.
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [clean, compile, hibernate3:hbm2ddl]
[INFO]
-------------------------------------------------------------------------
---
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
update
s from appfuse
[INFO] [clean:clean]
[INFO] Deleting directory D:\source\clubber\target
[INFO] Deleting directory D:\source\clubber\target\classes
[INFO] Deleting directory D:\source\clubber\target\test-classes
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/org/codehaus/xfire/bcprov-jdk15/133/b
cprov-jdk15-133.pom
Downloading:
http://static.appfuse.org/repository/org/codehaus/xfire/bcprov-jdk1
5/133/bcprov-jdk15-133.pom
Downloading:
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.
0.pom
Downloading:
http://static.appfuse.org/repository/xml-security/xmlsec/1.3.0/xmls
ec-1.3.0.pom
Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://static.appfuse.org/repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.
pom
Downloading:
http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom

Downloading:
http://static.appfuse.org/repository/xfire/saaj-impl/1.3/saaj-impl-
1.3.pom
Downloading:
http://repo1.maven.org/maven2/org/appfuse/appfuse-struts/2.0-m5/app
fuse-struts-2.0-m5.warpath
Downloading:
http://static.appfuse.org/repository/org/appfuse/appfuse-struts/2.0
-m5/appfuse-struts-2.0-m5.warpath
Downloading:
http://static.appfuse.org/repository/org/appfuse/appfuse-web-common
/2.0-m5/appfuse-web-common-2.0-m5.warpath
Downloading:
http://repo1.maven.org/maven2/org/appfuse/appfuse-web-common/2.0-m5
/appfuse-web-common-2.0-m5.warpath
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.appfuse:appfuse-struts:warpath:2.0-m5

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.appfuse
-DartifactId=appfuse-struts
 \
          -Dversion=2.0-m5 -Dpackaging=warpath -Dfile=/path/to/file

  Path to dependency:
        1) com.clubber.app:clubber:war:1.0-SNAPSHOT
        2) org.appfuse:appfuse-struts:warpath:2.0-m5

2) org.appfuse:appfuse-web-common:warpath:2.0-m5

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.appfuse
-DartifactId=appfuse-web-co
mmon \
          -Dversion=2.0-m5 -Dpackaging=warpath -Dfile=/path/to/file

  Path to dependency:
        1) com.clubber.app:clubber:war:1.0-SNAPSHOT
        2) org.appfuse:appfuse-struts:warpath:2.0-m5
        3) org.appfuse:appfuse-web-common:warpath:2.0-m5

----------
2 required artifacts are missing.

for artifact:
  com.clubber.app:clubber:war:1.0-SNAPSHOT

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


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Wed Jun 27 21:32:32 SGT 2007
[INFO] Final Memory: 12M/23M
[INFO]
------------------------------------------------------------------------

ros wrote:
> 
> Hi!
> 
> You have to exclude AppFuse Data Common Package in your pom.xml. Then add
> in to your poroject User and Role pojos at appfuse namespace (as described
> in http://www.appfuse.org/display/APF/AppFuse+Core+Classes)
> 
> Try to do  mvn clean compile hibernate3:hbm2ddl and check database for
> user table structure. If it does not contains fields defined in User pojo
> of your project then AppFuse Data Common Package is not excluded.
> 
> What is your version of appfuse, M5?
> 
> Regards,
> ros
> 
> 
> 
> Fan wrote:
>> 
>> Hey Ros:
>> 
>> I did add the related Object to both hibernate.cfg.xml and
>> applicationContext.xml. But it just does not work
>> 
>> Or do you mind to show me your hibernate.cfg.xml and
>> applicationContext.xml ? I afraid I might do it wrongly
>> 
>> Is that necessary to exclude the AppFuse Data Common Package ?
>> 
>> 
>> ros wrote:
>>> 
>>> Hi!
>>> 
>>> I resolve that by add my Contact object to both hibernate.cfg.xml and
>>> applicationContext.xml.
>>> 
>>> Reffer to http://www.appfuse.org/display/APF/AppFuse+Core+Classes
>>> 
>>> Hope this helps.
>>> 
>>> ros
>>> 
>>> 
>>> 
>>> Fan wrote:
>>>> 
>>>> Ros, 
>>>> 
>>>> What's the fix ? I am facing the same error as you did
>>>> 
>>>> 
>>>> ros wrote:
>>>>> 
>>>>> Right. Thanks Matt!
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/override-User-code-class-and-link-OneToMany-to-any-other-class-tf3217084s2369.html#a11324523
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to