Thanks Allyson.
> Let me know how it goes,
I now have a different problem! Error message below.
Mark.
[INFO]
------------------------------------------------------------------------
[INFO] Building FuGE Hibernate STK Code: Mapping Between Hibernate and
JAXB2
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2//net/sourceforge/fuge/fuge-hibernate-ident
ification/1.0-SNAPSHOT/fuge-hibernate-identification-1.0-SNAPSHOT.pom
Downloading:
http://team.andromda.org/maven2/net/sourceforge/fuge/fuge-hibernate-iden
tification/1.0-SNAPSHOT/fuge-hibernate-identification-1.0-SNAPSHOT.pom
Downloading:
http://download.java.net/maven/2/net/sourceforge/fuge/fuge-hibernate-ide
ntification/1.0-SNAPSHOT/fuge-hibernate-identification-1.0-SNAPSHOT.pom
Downloading:
http://download.java.net/maven/1/net.sourceforge.fuge/poms/fuge-hibernat
e-identification-1.0-SNAPSHOT.pom
Downloading:
http://repo1.maven.org/maven2//net/sourceforge/fuge/fuge-jaxb2/1.0-SNAPS
HOT/fuge-jaxb2-1.0-SNAPSHOT.pom
Downloading:
http://team.andromda.org/maven2/net/sourceforge/fuge/fuge-jaxb2/1.0-SNAP
SHOT/fuge-jaxb2-1.0-SNAPSHOT.pom
Downloading:
http://download.java.net/maven/2/net/sourceforge/fuge/fuge-jaxb2/1.0-SNA
PSHOT/fuge-jaxb2-1.0-SNAPSHOT.pom
Downloading:
http://download.java.net/maven/1/net.sourceforge.fuge/poms/fuge-jaxb2-1.
0-SNAPSHOT.pom
Downloading:
http://repo1.maven.org/maven2//net/sourceforge/fuge/fuge-hibernate-ident
ification/1.0-SNAPSHOT/fuge-hibernate-identification-1.0-SNAPSHOT.jar
Downloading:
http://team.andromda.org/maven2/net/sourceforge/fuge/fuge-hibernate-iden
tification/1.0-SNAPSHOT/fuge-hibernate-identification-1.0-SNAPSHOT.jar
Downloading:
http://download.java.net/maven/2/net/sourceforge/fuge/fuge-hibernate-ide
ntification/1.0-SNAPSHOT/fuge-hibernate-identification-1.0-SNAPSHOT.jar
Downloading:
http://download.java.net/maven/1/net.sourceforge.fuge/jars/fuge-hibernat
e-identification-1.0-SNAPSHOT.jar
Downloading:
http://repo1.maven.org/maven2//net/sourceforge/fuge/fuge-jaxb2/1.0-SNAPS
HOT/fuge-jaxb2-1.0-SNAPSHOT.jar
Downloading:
http://team.andromda.org/maven2/net/sourceforge/fuge/fuge-jaxb2/1.0-SNAP
SHOT/fuge-jaxb2-1.0-SNAPSHOT.jar
Downloading:
http://download.java.net/maven/2/net/sourceforge/fuge/fuge-jaxb2/1.0-SNA
PSHOT/fuge-jaxb2-1.0-SNAPSHOT.jar
Downloading:
http://download.java.net/maven/1/net.sourceforge.fuge/jars/fuge-jaxb2-1.
0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) net.sourceforge.fuge:fuge-hibernate-identification:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=net.sourceforge.fuge
-DartifactId=fuge-hibernate-identification -Dversion=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=net.sourceforge.fuge
-DartifactId=fuge-hibernate-identification -Dversion=1.0-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) net.sourceforge.fuge:fuge-hibernate-mapping:jar:1.0-SNAPSHOT
2)
net.sourceforge.fuge:fuge-hibernate-identification:jar:1.0-SNAPSHOT
2) net.sourceforge.fuge:fuge-jaxb2:jar:1.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=net.sourceforge.fuge
-DartifactId=fuge-jaxb2 -Dversion=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=net.sourceforge.fuge
-DartifactId=fuge-jaxb2 -Dversion=1.0-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) net.sourceforge.fuge:fuge-hibernate-mapping:jar:1.0-SNAPSHOT
2) net.sourceforge.fuge:fuge-jaxb2:jar:1.0-SNAPSHOT
----------
2 required artifacts are missing.
for artifact:
net.sourceforge.fuge:fuge-hibernate-mapping:jar:1.0-SNAPSHOT
from the specified remote repositories:
maven-repository.dev.java.net (http://download.java.net/maven/1),
maven2-repository.dev.java.net (http://download.java.net/maven/2),
andromda (http://team.andromda.org/maven2),
central (http://repo1.maven.org/maven2),
repo1.maven.org/maven2 (http://repo1.maven.org/maven2/)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute
[INFO] Finished at: Thu Aug 21 10:20:31 BST 2008
[INFO] Final Memory: 43M/149M
[INFO]
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fuge-devel mailing list
Fuge-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuge-devel
From: fuge-deve...@lists.sourceforge.net [mailto:fuge-deve...@lists.sourceforge.net] On Behalf Of Allyson Lister
Sent: 21 August 2008 12:30
To: fuge-...@lists.sourceforge.net
Subject: Re: [Fuge-devel] Problem building hibernate-stk
Thanks Allyson. It works fine now, though I had to make a change to the top-level pom.xml. This has been noticed by someone else in the andromda bug tracker (http://www.andromda.org/jira/browse/ANDROMDAPP-40). It may be something incorrect with my setup, because obviously not everyone has this problem.
--- fuge-hibernate-mda/pom.xml (revision 52)
+++ fuge-hibernate-mda/pom.xml (working copy)
@@ -58,7 +58,7 @@
</build>
<properties>
<maven.andromda.config>${pom.basedir}/src/main/config</maven.andromda.config>
- <model.uri>file:${project.build.sourceDirectory}/FuGE-v1-profile.uml2</model.uri>
+ <model.uri>${pom.basedir}/src/main/uml/FuGE-v1-profile.uml2</model.uri>
<!-- If you remove the empty filter element below, the aut-generated files will not be made-->
<filter></filter>
<validation>true</validation>
So I've built it, but I'm not really sure how to use it! I'm more interested in the schema and object/relational mapping than the XML binding. I've had a look at the tests, but maybe SyMBA is the best example of how to use it? Do I need to use Spring? Do I need to write the schema to the database somehow?
Apologies for my naive questions. Also: have you considered just uploading a jar to the website so that people can get started without having to build it all using maven?
Mark.
From: fuge-deve...@lists.sourceforge.net [mailto:fuge-deve...@lists.sourceforge.net] On Behalf Of Allyson Lister
Sent: 21 August 2008 12:30
To: fuge-...@lists.sourceforge.net
Subject: Re: [Fuge-devel] Problem building hibernate-stk
Hi Mark,
Everything's been committed. Run an svn update, then try to mvn install again, and let me know how it goes.
Thanks again,
Allyson
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fuge-devel mailing list
Fuge-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuge-devel
I'm using Ubuntu 8.04, Java 1.6.0_06 and Maven 2.0.9.
> SyMBA (http://symba.sf.net) is a good way to see the
> Hibernate STK in action, although you don't need to use SyMBA
> if you don't want to. I can't help being a little biased
> here, as I am one of the main developers. It has a lot more
> features, including lsids, versioning, a web interface, web
> services, and more. It's still going through some final
> changes after the recent upgrade to FuGE Version 1, but feel
> free to have a play if you like. The sandbox install at
> http://www.cisban.ac.uk/symba-sandbox (Username "MickeyM",
> Pass "MousePass") shows the version just prior to the upgrade
> to FuGE Version 1. I'll update the sandbox to the latest
> version of SyMBA in the next few days.
Ok. I realise that I don't need to use SyMBA but I guess the codebase is
a good way to find out how this all fits together. I'll also take a look
at the classes you mentioned.
> After mvn install, you can create your database automatically
> with another mvn command shown here:
> http://fuge.sourceforge.net/stks/hibernate-stk/fuge-hibernate-
> books/fuge-hibernate/filling-the-databases.html (Of course,
> you'll need your database connection details to be correct in
> the trunk/pom.xml, as shown here:
> http://fuge.sourceforge.net/stks/hibernate-stk/fuge-hibernate-
> books/fuge-hibernate/database-setup.html
Thanks. I don't know how I missed that bit of the documentation!
> I do actually upload all SyMBA jars to the CARMEN maven
> repository, but I haven't done the same for this. The main
> reason is that not all of them are really all that much use
> on their own. For instance, the jars that contain the
> spring/hibernate classes contain the database connection
> details (passwords, usernames, jdbc urls, etc) specific to
> the person who ran the mvn install command. If someone else
> were to pull those down, they would be useful to look at
> class names and methods, but wouldn't work to connect to
> their own system. If you have a good idea about how to get
> around this, I'd be most interested. I definitely don't want
> jars going up somewhere with sensitive passwords in them ;)
You could rely on finding a runtime properties file on the classpath,
and failing on initialisation if it can't be found. But I understand the
problem. Actually, when I said jar I guess I meant a zip file -
containing the results of the mvn install. However, you'll still need
maven to create the schema! So perhaps not such a good idea.
Thanks again for all your help. I'm really grateful.
Mark.
--
Mark Woodbridge
CISBIC Data Management
Imperial College London
> Thanks for this. I hadn't seen it before, but I'll add it to
> the installation docs as a possible pitfall. Out of
> curiosity, are you using windows? That's the platform that
> bug mentions.
I'm using Ubuntu 8.04, Java 1.6.0_06 and Maven 2.0.9.
> SyMBA (http://symba.sf.net) is a good way to see the
> Hibernate STK in action, although you don't need to use SyMBA
> if you don't want to. I can't help being a little biased
> here, as I am one of the main developers. It has a lot more
> features, including lsids, versioning, a web interface, web
> services, and more. It's still going through some final
> changes after the recent upgrade to FuGE Version 1, but feel
> free to have a play if you like. The sandbox install at
> http://www.cisban.ac.uk/symba-sandbox (Username "MickeyM",
> Pass "MousePass") shows the version just prior to the upgrade
> to FuGE Version 1. I'll update the sandbox to the latest
> version of SyMBA in the next few days.
Ok. I realise that I don't need to use SyMBA but I guess the codebase is
a good way to find out how this all fits together. I'll also take a look
at the classes you mentioned.
> After mvn install, you can create your database automatically
> with another mvn command shown here:
> http://fuge.sourceforge.net/stks/hibernate-stk/fuge-hibernate-
> books/fuge-hibernate/filling-the-databases.html (Of course,
> you'll need your database connection details to be correct in
> the trunk/pom.xml, as shown here:
> http://fuge.sourceforge.net/stks/hibernate-stk/fuge-hibernate-
> books/fuge-hibernate/database-setup.html
Thanks. I don't know how I missed that bit of the documentation!
> I do actually upload all SyMBA jars to the CARMEN maven
> repository, but I haven't done the same for this. The main
> reason is that not all of them are really all that much use
> on their own. For instance, the jars that contain the
> spring/hibernate classes contain the database connection
> details (passwords, usernames, jdbc urls, etc) specific to
> the person who ran the mvn install command. If someone else
> were to pull those down, they would be useful to look at
> class names and methods, but wouldn't work to connect to
> their own system. If you have a good idea about how to get
> around this, I'd be most interested. I definitely don't want
> jars going up somewhere with sensitive passwords in them ;)
You could rely on finding a runtime properties file on the classpath,
and failing on initialisation if it can't be found. But I understand the
problem. Actually, when I said jar I guess I meant a zip file -
containing the results of the mvn install. However, you'll still need
maven to create the schema! So perhaps not such a good idea.
Thanks again for all your help. I'm really grateful.
Mark.
--
Mark Woodbridge
CISBIC Data Management
Imperial College London
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fuge-devel mailing list
Fuge-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuge-devel
Michael Miller
Lead Software
Developer
Rosetta
Biosoftware Business Unit
www.rosettabio.com
2008/8/21 Woodbridge, Mark R <m.wood...@imperial.ac.uk>
> Thanks for this. I hadn't seen it before, but I'll add it to
> the installation docs as a possible pitfall. Out of
> curiosity, are you using windows? That's the platform that
> bug mentions.
I'm using Ubuntu 8.04, Java 1.6.0_06 and Maven 2.0.9.
oh yeah - now I remember you mentioning that! :)
> SyMBA (http://symba.sf.net) is a good way to see the
> Hibernate STK in action, although you don't need to use SyMBA
> if you don't want to. I can't help being a little biased
> here, as I am one of the main developers. It has a lot more
> features, including lsids, versioning, a web interface, web
> services, and more. It's still going through some final
> changes after the recent upgrade to FuGE Version 1, but feel
> free to have a play if you like. The sandbox install at
> http://www.cisban.ac.uk/symba-sandbox (Username "MickeyM",
> Pass "MousePass") shows the version just prior to the upgrade
> to FuGE Version 1. I'll update the sandbox to the latest
> version of SyMBA in the next few days.
Ok. I realise that I don't need to use SyMBA but I guess the codebase is
a good way to find out how this all fits together. I'll also take a look
at the classes you mentioned.
Indeed - in my (biased) opinion, SyMBA is great, and if you want to get an application that already has bells and whistles (like a web interface), then it is a really good choice. We're also looking into upgrading the front-end to use GWT to make it a lot prettier, so we're constantly improving it. If you like it, you can always commit changes yourself and become a developer!
It's probably a good idea to have a look at the FuGE Hibernate STK code first, as it's much smaller than SyMBA, and gives you a good basic understanding of the structure before you have a look at SyMBA.
> After mvn install, you can create your database automatically
> with another mvn command shown here:
> http://fuge.sourceforge.net/stks/hibernate-stk/fuge-hibernate-
> books/fuge-hibernate/filling-the-databases.html (Of course,
> you'll need your database connection details to be correct in
> the trunk/pom.xml, as shown here:
> http://fuge.sourceforge.net/stks/hibernate-stk/fuge-hibernate-
> books/fuge-hibernate/database-setup.html
Thanks. I don't know how I missed that bit of the documentation!
> I do actually upload all SyMBA jars to the CARMEN maven
> repository, but I haven't done the same for this. The main
> reason is that not all of them are really all that much use
> on their own. For instance, the jars that contain the
> spring/hibernate classes contain the database connection
> details (passwords, usernames, jdbc urls, etc) specific to
> the person who ran the mvn install command. If someone else
> were to pull those down, they would be useful to look at
> class names and methods, but wouldn't work to connect to
> their own system. If you have a good idea about how to get
> around this, I'd be most interested. I definitely don't want
> jars going up somewhere with sensitive passwords in them ;)
You could rely on finding a runtime properties file on the classpath,
and failing on initialisation if it can't be found. But I understand the
problem. Actually, when I said jar I guess I meant a zip file -
containing the results of the mvn install. However, you'll still need
maven to create the schema! So perhaps not such a good idea.
Indeed - but the maven command that builds the database also creates two .sql files that are stored in another directory, showing you what was just run - these could then be added to the zip or jar files so that the user can build from them. It sounds like a good idea, but as always, I need to find the time. Generally these days new features etc come before such tasks. But, if you'd like to look into that as an alternative installation, I'd be happy to add you as a FuGE developer, which would allow you to modify the Hibernate STK ;)
Thanks again for all your help. I'm really grateful.No problem at all. Glad to hear from people looking into the STKs.
Mark.
--
Mark Woodbridge
CISBIC Data Management
Imperial College London