How do I repair my POM with a missing artifact?

I have a POM problem that is not mine. Here he is.

<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.sms.smsoffice</groupId>
        <artifactId>sms-office</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>

    <artifactId>sms-office-ui</artifactId>
    <packaging>jar</packaging>
    <name>sms office ui</name>
    <description>sms office ui</description>

    <build>
        <resources>
            <resource>
                <filtering>false</filtering>
                <directory>src/main/java</directory>
                <targetPath>${project.build.outputDirectory}</targetPath>
                <includes>
                    <include>**</include>
                </includes>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
            <resource>
                <filtering>false</filtering>
                <directory>src/main/resources</directory>
                <targetPath>${project.build.outputDirectory}/resources</targetPath>
                <includes>
                    <include>**</include>
                </includes>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>make shared resources</id>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <phase>package</phase>
                        <configuration>
                            <descriptors>
                                <descriptor>src/main/assembly/resources.xml</descriptor>
                            </descriptors>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <!-- Project Internal Dependencies -->
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>sms-office-core</artifactId>
            <version>${project.version}</version>
        </dependency>

        <!-- External dependencies -->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.15</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket</artifactId>
            <version>${wicket.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-extensions</artifactId>
            <version>${wicket.version}</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-datetime</artifactId>
            <version>1.4.3</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-auth-roles</artifactId>
            <version>${wicket.auth-roles.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-spring</artifactId>
            <version>1.4.7</version>
        </dependency>
    </dependencies>
</project>

      

This is an error: Missing artifact javax.transaction: jta: jar: 1.0.1B

Failed to pass javax.jms: jms: jar: 1.1 from https://maven-repository.dev.java.net/nonav/repository has been cached in the local repository, the permission will not be re-downloaded until the java.net refresh interval expires, or will not be forced to update. Original error: Could not transfer artifact javax.jms: jms: jar: 1.1 from / to java.net ( https://maven-repository.dev.java.net/nonav/repository ): Cannot access https: / /maven-repository.dev.java.net/nonav/repository with a legacy type using the available connector factories: AetherRepositoryConnectorFactory, BasicRepositoryConnectorFactory

Please, help

+3


source to share


2 answers


If you really want the javax.transaction: jta: jar: 1.0.1B artifact, it's available here , so you can either add http://mirrors.ibiblio.org/maven/mule/dependencies/maven2/ as a repository in your pom download it or download it manually and install it yourself .



But instead, you should rather update your log4j version to 1.2.17, because 1.2.15 has bad metadata . You probably also want to depend on org.apache.wicket: wicket-core instead of org.apache.wicket: wicket, because org.apache.wicket: wicket is an aggregator , not a jar.

0


source


Try adding this dependency to the POM:



<dependency>
    <groupId>javax.transaction</groupId>
    <artifactId>jta</artifactId>
    <version>1.0.1B</version>
</dependency>

      

0


source







All Articles