You need to add jboss as a pluginRepository.
On Mar 20, 2010, at 5:22 PM, Brian Lavender <[email protected]> wrote: > I am trying to get a config going so that I can use Hibernate. > According > to the output, it can't find a jdocbook-style-plugin. I believe it is > because I don't have the repository set. How do I tell Maven where to > find this jdocbook plugin? I found the file on the following site. > > http://repository.jboss.org/maven2/org/jboss/maven/plugins/maven-jdocbook-style-plugin/2.0.0/ > > Here is my pom.xml > > <?xml version="1.0"?> > <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/xsd/maven-4.0.0.xsd > "> > > <modelVersion>4.0.0</modelVersion> > > <parent> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-tutorials</artifactId> > <version>3.5.0-CR-1</version> > <relativePath>../pom.xml</relativePath> > </parent> > > <groupId>org.hibernate</groupId> > <artifactId>hibernate-tutorial-web</artifactId> > <packaging>war</packaging> > > <name>Hibernate Web Tutorial</name> > <description>A webapp-based tutorial project showcasing Hibernate > usage</description> > > <dependencies> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.3</version> > </dependency> > </dependencies> > > <repositories> > <repository> > <id>my-internal-site</id> > <url>http://repository.jboss.org/maven2</url> > </repository> > </repositories> > > > </project> > > And, here is the output. > > > $ mvn exec:java -Dexec.mainClass="org.hsqldb.Server" -Dexec.args="- > database.0 file:target/data/tutorial" > [INFO] Scanning for projects... > Downloading: > http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-style-plugin/2.0.0/maven-jdocbook-style-plugin-2.0.0.jar > [INFO] Unable to find resource 'org.jboss.maven.plugins:maven- > jdocbook-style-plugin:maven-plugin:2.0.0' in repository central > (http://repo1.maven.org/maven2 > ) > [INFO] Cannot find mojo descriptor for: 'exec:java' - Treating as > non-aggregator. > Downloading: > http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-style-plugin/2.0.0/maven-jdocbook-style-plugin-2.0.0.jar > [INFO] Unable to find resource 'org.jboss.maven.plugins:maven- > jdocbook-style-plugin:maven-plugin:2.0.0' in repository central > (http://repo1.maven.org/maven2 > ) > [INFO] > --- > --------------------------------------------------------------------- > [ERROR] BUILD ERROR > [INFO] > --- > --------------------------------------------------------------------- > [INFO] Plugin could not be found - check that the goal name is > correct: Unable to download the artifact from any repository > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.jboss.maven.plugins - > DartifactId=maven-jdocbook-style-plugin -Dversion=2.0.0 - > Dpackaging=maven-plugin -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the > file there: > mvn deploy:deploy-file -DgroupId=org.jboss.maven.plugins - > DartifactId=maven-jdocbook-style-plugin -Dversion=2.0.0 - > Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] - > DrepositoryId=[id] > > > org.jboss.maven.plugins:maven-jdocbook-style-plugin:maven-plugin: > 2.0.0 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > org.jboss.maven.plugins:maven-jdocbook-style-plugin:maven-plugin: > 2.0.0 > > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > > > [INFO] > --- > --------------------------------------------------------------------- > [INFO] For more information, run Maven with the -e switch > [INFO] > --- > --------------------------------------------------------------------- > [INFO] Total time: 2 seconds > [INFO] Finished at: Sat Mar 20 13:17:33 PST 2010 > [INFO] Final Memory: 4M/8M > [INFO] > --- > --------------------------------------------------------------------- > -- > Brian Lavender > http://www.brie.com/brian/ > > "There are two ways of constructing a software design. One way is to > make it so simple that there are obviously no deficiencies. And the > other > way is to make it so complicated that there are no obvious > deficiencies." > > Professor C. A. R. Hoare > The 1980 Turing award lecture > > --------------------------------------------------------------------- > 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]
