Hello, My maven project used to download all dependencies like a charm, but recently I hear complaints from people who start from scratch that the project fails to download the jaxb compiler: The pom for my plugin is downloaded but the jar itself seems to be missing.
I get the following error: Trying repository java.net Downloading: http://download.java.net/maven/1//com.sun.tools.xjc.maven2/poms/maven-jaxb-plugin-1.1.pom 4K downloaded [DEBUG] Artifact resolved [DEBUG] Trying repository central Downloading: http://repo1.maven.org/maven2/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.jar [DEBUG] Unable to get resource 'com.sun.tools.xjc.maven2:maven-jaxb-plugin:maven-plugin:1.1' from repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] A required plugin was not found: 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=com.sun.tools.xjc.maven2 -DartifactId=maven-jaxb-plugin -Dversion=1.1 -Dpackaging=maven-plugin -Dfile=/path/to/file Here is my plugin definition <plugin> <groupId>com.sun.tools.xjc.maven2</groupId> <artifactId>maven-jaxb-plugin</artifactId> <version>1.1</version> <executions> <execution> <phase>generate-sources</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> <configuration> <generatePackage>net.ndr.hits.jms.schema</generatePackage> <schemaDirectory>src/main/resources/xsd</schemaDirectory> </configuration> </plugin> Thanks in advance for help. Jacques --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
