- This topic has 4 replies, 3 voices, and was last updated 13 years, 4 months ago by cconway.
-
AuthorPosts
-
Smitht19MemberI have tried to scaffold a new Maven spring project on several computers and I keep getting missing jar files for maven. Please some advise if I should have to manually install these jars
6/20/11 7:43:23 AM EDT: Missing artifact javax.faces:jsf-api:jar:1.2_04:provided
6/20/11 7:43:23 AM EDT: Missing artifact javax.servlet:jstl:jar:1.2:provided
6/20/11 7:43:23 AM EDT: Missing artifact javax.faces:jsf-impl:jar:1.2_04:provided
6/20/11 7:43:23 AM EDT: Missing artifact javax.faces:jsf-api:jar:1.2_04:provided
6/20/11 7:43:23 AM EDT: Missing artifact javax.servlet:jstl:jar:1.2:provided
6/20/11 7:43:23 AM EDT: Missing artifact javax.faces:jsf-impl:jar:1.2_04:provided
6/20/11 7:43:23 AM EDT: Refreshing [/Todd/pom.xml]
6/20/11 7:43:23 AM EDT: [INFO] Installing C:\Java\Genuitec\MyEclipse for Spring 9\configuration\org.eclipse.osgi\bundles\92\1\.cp\data\2.0\lib\toplink\toplink-api.jar to C:\Documents and Settings\smitht19\.m2\repository\com\oracle\toplink\toplink\10.1.3\toplink-10.1.3.jar
6/20/11 7:43:24 AM EDT: Maven Builder: FULL_BUILD
6/20/11 7:43:24 AM EDT: Build errors for Todd; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project Todd: Missing:
———-
1) javax.servlet:jstl:jar:1.2Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.servlet -DartifactId=jstl -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/fileAlternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.servlet -DartifactId=jstl -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]Path to dependency:
1) Todd:Todd:pom:pom:0.0.1-SNAPSHOT
2) javax.servlet:jstl:jar:1.22) javax.faces:jsf-impl:jar:1.2_04
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl -Dversion=1.2_04 -Dpackaging=jar -Dfile=/path/to/fileAlternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-impl -Dversion=1.2_04 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]Path to dependency:
1) Todd:Todd:pom:pom:0.0.1-SNAPSHOT
2) javax.faces:jsf-impl:jar:1.2_043) javax.faces:jsf-api:jar:1.2_04
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api -Dversion=1.2_04 -Dpackaging=jar -Dfile=/path/to/fileAlternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-api -Dversion=1.2_04 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]Path to dependency:
1) Todd:Todd:pom:pom:0.0.1-SNAPSHOT
2) javax.faces:jsf-api:jar:1.2_04———-
3 required artifacts are missing.for artifact:
Todd:Todd:pom:0.0.1-SNAPSHOTfrom the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
6/20/11 7:43:24 AM EDT: Missing artifact javax.faces:jsf-api:jar:1.2_04:provided
6/20/11 7:43:24 AM EDT: Missing artifact javax.servlet:jstl:jar:1.2:provided
6/20/11 7:43:24 AM EDT: Missing artifact javax.faces:jsf-impl:jar:1.2_04:provided
6/20/11 7:45:26 AM EDT: Missing artifact javax.servlet:jstl:jar:1.2:provided
jkennedyMemberWe are looking into this issue, it looks like an API that we depend on to install jar files through Maven may have changed.
Sorry for the delay in responding, we should know more in a few hours.
Thanks,
Jack
cconwayMemberHi,
Before we look into this problem further, can you please post back the type of project are you using? Also, is this error causing your project to fail to deploy?
I see this error message immediately after creating a maven-enabled Web Project (before I even perform scaffolding) but the jar file is being downloaded into my local maven repository. Can you verify whether the jar file exists in your local maven repo? It appears that this error is reported during the maven build, but is actually benign. I can perform a subsequent clean build of the project and the error doesn’t reoccur.
Smitht19MemberIt is a Web Project with Maven support. If I manually install the missing Jars I can get the project to work
cconwayMemberIn this case, the problem is that the jstl-impl jar that was under the java.servlet group id was removed from the central maven repository. Fortunately, it’s in the repo under another group id. There is an automated workaround in 9.1 that will hopefully be available in the next week or two. In the meantime you can fix this in your projects by replacing the dependency entry in the pom.xml from:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>to:
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>jstl-impl</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>Please let us know if this works for you.
-
AuthorPosts