Bonjour,

J'utilise Spring roo pour mon application web, il existe une BD oracle existante et j'aimerais générer toutes mes entités automatiquement.

J'arrive à me connecter à ma base de données Oracle. Mais sur les forums il est dit qu'on ne peut pas utiliser la commande "database reverse engineer -schema monSchema" avec une bd Oracle.

Si j'ai bien compris il faut créer son propre bundle à côté et l'ajouter ensuite à son projet. J'ai suivi le tuto suivant (tuto reverse engineering avec Oracle) mais ça bloque au niveau de :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
osgi start --url file:/J:\.m2\repository\com\oracle\org.bluebell.com.oracle.ojdbc14_g\10.2.0.1.0.0001\org.bluebell.com.oracle.ojdbc14_g-10.2.0.1.0.0001.jar
J'obtiens l'erreur suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
org.osgi.framework.BundleException: Unresolved constraint in bundle org.bluebell.ojdbc14 [71]: package; (package=oracle.i18n.text)
Voici mon fichier pom :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.bluebell</groupId>
	<artifactId>${pom.groupId}.${pkgArtifactId}</artifactId>
	<packaging>bundle</packaging>
	<version>${osgiVersion}</version>
	<name>spring-roo-oracle-wrapper</name>
	<description>Oracle #jdbcdriver,driverclass:oracle.jdbc.OracleDriver This bundle wraps the standard Maven artifact: ${pkgArtifactId}-${pkgVersion}.</description>
	<properties>
		<pkgArtifactId>ojdbc14</pkgArtifactId>
		<pkgVersion>10.2.0.4</pkgVersion>
		<osgiVersion>${pkgVersion}.0001</osgiVersion>
		<pkgVendor>Oracle</pkgVendor>
		<pkgDocUrl/>
		<pkgLicense>http://wwses/distribution-license-152002.html</pkgLicense>
		<repo.folder>org/bluebell</repo.folder>
		<google.code.project.name>${project.name}</google.code.project.name>
	</properties>
 
	<dependencies>
		<dependency>
			<groupId>com.oracle</groupId>
			<artifactId>ojdbc14</artifactId>
			<version>10.2.0.4</version>
			<optional>true</optional>
		</dependency>
	</dependencies>
	<scm>
		<connection>scm:svn:https://${google.code.project.name}.googlecode.com/svn/trunk</connection>
		<developerConnection>scm:svn:https://${google.code.project.name}.googlecode.com/svn/trunk</developerConnection>
		<url>http://code.google.com/p/${google.code.project.name}/source/browse</url>
	</scm>
	<distributionManagement>
		<repository>
			<id>Google Code</id>
			<url>dav:https://${google.code.project.name}.googlecode.com/svn/repo</url>
		</repository>
	</distributionManagement>
	<build>
		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-webdav-jackrabbit</artifactId>
				<version>1.0-beta-6</version>
			</extension>
		</extensions>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>1.1</version>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<remoteOBR>true</remoteOBR>
					<bundleUrl>httppgp://${google.code.project.name}.googlecode.com/svn/repo/${repo.folder}/${project.artifactId}/${project.version}/${project.artifactId}-${project.version}.jar</bundleUrl>
					<instructions>
						<Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
						<Export-Package>*;version=${pom.version}</Export-Package>
						<Bundle-Vendor>${pkgVendor} (wrapped into an OSGi bundle by the Spring Roo project build system)</Bundle-Vendor>
						<Bundle-DocURL>${pkgDocUrl}</Bundle-DocURL>
						<Bundle-License>${pkgLicense}</Bundle-License>
					</instructions>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>
MERCI pour votre aide !!