facebook

Maven problems

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #317619 Reply

    Smitht19
    Member

    I 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.2

    Try 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/file

    Alternatively, 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.2

    2) 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/file

    Alternatively, 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_04

    3) 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/file

    Alternatively, 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-SNAPSHOT

    from 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

    #317682 Reply

    jkennedy
    Member

    We 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

    #317684 Reply

    cconway
    Member

    Hi,

    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.

    #317687 Reply

    Smitht19
    Member

    It is a Web Project with Maven support. If I manually install the missing Jars I can get the project to work

    #317717 Reply

    cconway
    Member

    In 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.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Maven problems

You must be logged in to post in the forum log in