Hi, also tried using the command prompt and typed mvn install:install-file -DgroupId=javax.media -DartifactId=jai_core -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file but wanted to ask, the Dfile=/path/to/file, is this the actual jar file? because i still get a BUILD FAILURE. Please help guys.
fx5900 wrote: > > Hi am reading the ImageLabe lesson > http://docs.codehaus.org/display/GEOTDOC/08+ImageLab > http://docs.codehaus.org/display/GEOTDOC/08+ImageLab and have added the > JAR dependecy code for both Java Advanced Imaging and Image IO. However, > after did that and did a clean and build process i got a few errors > > ERROR]Transitive dependency resolution for scope: compile has failed for > your project. > [ERROR]Error message: Missing: > [ERROR]---------- > [ERROR]1) org.geotools:gt2-image:jar:1.0-SNAPSHOT > [ERROR] Try downloading the file manually from the project website. > [ERROR] Then, install it using the command: > [ERROR] mvn install:install-file -DgroupId=org.geotools > -DartifactId=gt2-image -Dversion=1.0-SNAPSHOT -Dpackaging=jar > -Dfile=/path/to/file > [ERROR] Alternatively, if you host your own repository you can deploy the > file there: > [ERROR] mvn deploy:deploy-file -DgroupId=org.geotools > -DartifactId=gt2-image -Dversion=1.0-SNAPSHOT -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > [ERROR] Path to dependency: > [ERROR] 1) org.geotools.demo:gt2-image:jar:1.0-SNAPSHOT > [ERROR] 2) org.geotools:gt2-image:jar:1.0-SNAPSHOT > [ERROR]2) javax.media:jai_core:jar:1.1.3 > [ERROR] Try downloading the file manually from the project website. > [ERROR] Then, install it using the command: > [ERROR] mvn install:install-file -DgroupId=javax.media > -DartifactId=jai_core -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file > [ERROR] Alternatively, if you host your own repository you can deploy the > file there: > [ERROR] mvn deploy:deploy-file -DgroupId=javax.media > -DartifactId=jai_core -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file > -Durl=[url] -DrepositoryId=[id] > [ERROR] Path to dependency: > [ERROR] 1) org.geotools.demo:gt2-image:jar:1.0-SNAPSHOT > [ERROR] 2) javax.media:jai_core:jar:1.1.3 > [ERROR]3) javax.media:jai_codec:jar:1.1.3 > [ERROR] Try downloading the file manually from the project website. > [ERROR] Then, install it using the command: > [ERROR] mvn install:install-file -DgroupId=javax.media > -DartifactId=jai_codec -Dversion=1.1.3 -Dpackaging=jar > -Dfile=/path/to/file > [ERROR] Alternatively, if you host your own repository you can deploy the > file there: > [ERROR] mvn deploy:deploy-file -DgroupId=javax.media > -DartifactId=jai_codec -Dversion=1.1.3 -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > [ERROR] Path to dependency: > [ERROR] 1) org.geotools.demo:gt2-image:jar:1.0-SNAPSHOT > [ERROR] 2) javax.media:jai_codec:jar:1.1.3 > [ERROR]4) javax.media:jai_imageio:jar:1.1 > [ERROR] Try downloading the file manually from the project website. > [ERROR] Then, install it using the command: > [ERROR] mvn install:install-file -DgroupId=javax.media > -DartifactId=jai_imageio -Dversion=1.1 -Dpackaging=jar > -Dfile=/path/to/file > [ERROR] Alternatively, if you host your own repository you can deploy the > file there: > [ERROR] mvn deploy:deploy-file -DgroupId=javax.media > -DartifactId=jai_imageio -Dversion=1.1 -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > [ERROR] Path to dependency: > [ERROR] 1) org.geotools.demo:gt2-image:jar:1.0-SNAPSHOT > [ERROR] 2) javax.media:jai_imageio:jar:1.1 > [ERROR]---------- > [ERROR]4 required artifacts are missing. > [ERROR]for artifact: > [ERROR] org.geotools.demo:gt2-image:jar:1.0-SNAPSHOT > [ERROR]from the specified remote repositories: > [ERROR] central (http://repo1.maven.org/maven2) > [ERROR]Group-Id: org.geotools.demo > [ERROR]Artifact-Id: gt2-image > [ERROR]Version: 1.0-SNAPSHOT > [ERROR]From file: C:\MyNBProjects\gt2-image\pom.xml > . > So what i did was downloaded the JAI files manually, placed the jai-1_1_2 > file in my C:\Documents and Settings\luong\.m2\repository and updated the > index on my NB6 but it did not show up on the tree. I have not downloaded > the Image IO files as of yet. Can somebody suggest what i could do please. > Thanks > > > -- View this message in context: http://www.nabble.com/ImageLab-Tutorial-Question-tp18268003p18269296.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]