facebook

MyEclipse 7.1.1 adds dependency to pom.xm fails maven2 build

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #300502 Reply

    mengmvn
    Member

    We configed the MyEclipse 7.1.1 with the Tomcat server 5.5.26 (We installed locally, we do not use the embedded Tomcat 6 server). Seems everything works just fine.

    but however, the MyEclipse add the following denpendency to the project pom.xml file.

    When we do the build using maven2 (mvn compile…) in a unix machine, it try to download these jars, and it failed to download them. Questions here

    1. can MyElipse not update th pom.xml file ? how ? – this is the prefer solution
    We do not want the MyEclipse to update the pom.xml by adding any dependency.

    2. Looks like the MyEclipse do download the jars and put them on my local .m2 folder
    for example,
    C:\Documents and Settings\smeng\.m2\repository\javax\faces\jsf-api\1.2_04

    Where did MyEclipse get these jars from ? where these jar coming from ? which org/company ?

    3. The frist 2 jars version 1.2_04 seems not listed in maven repository yet.
    (http://repo1.maven.org/maven2/javax/faces/jsf-impl)

    Thanks
    Michael Meng

    <dependency>
    <groupId>javax.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>1.2_04</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>javax.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>1.2_04</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>org.apache.openejb</groupId>
    <artifactId>javaee-api</artifactId>
    <version>5.0-1</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    <scope>provided</scope>
    </dependency>

    #300524 Reply

    Yes, MyEclipse preinstalls some jars to the local Maven repository.

    There are some jar files that are not in a Central Maven repository due to licensing restrictions – when you run Maven goals Maven will provide you with instructions. In such cases it is expected that user will download them manually and install locally. You can remove JSF jars from your pom.xml manually if your project doesn’t need them. MyEclipse automatically adds these jars to new JEE5 project as they are part of the specification and some users may need it.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: MyEclipse 7.1.1 adds dependency to pom.xm fails maven2 build

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