DropWizard The following artifacts could not be resolved -
DropWizard The following artifacts could not be resolved -
this pom.xml file.. getting build failed when using maven compile
error is
failed execute goal on project com.wenable.login: not resolve dependencies project com.wenable.aqua:com.wenable.login:jar:0.0.1-snapshot: next artifacts not resolved: io.dropwizard:dropwizard-auth:jar:0.0.1-snapshot, io.dropwizard:dropwizard-assets:jar:0.0.1-snapshot, io.dropwizard:dropwizard-spdy:jar:0.0.1-snapshot, io.dropwizard:dropwizard-hibernate:jar:0.0.1-snapshot, io.dropwizard:dropwizard-migrations:jar:0.0.1-snapshot, io.dropwizard:dropwizard-views-freemarker:jar:0.0.1-snapshot, io.dropwizard:dropwizard-views-mustache:jar:0.0.1-snapshot: not find artifact io.dropwizard:dropwizard-auth:jar:0.0.1-snapshot
http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.wenable.aqua com.wenable.login 0.0.1-snapshot loginapi
<properties> <dropwizard.version>0.7.0</dropwizard.version> </properties> <dependencies> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-core</artifactid> <version>${dropwizard.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-auth</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-assets</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-spdy</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-hibernate</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-migrations</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-views-freemarker</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-views-mustache</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-testing</artifactid> <version>${project.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-enforcer-plugin</artifactid> <version>1.3.1</version> <executions> <execution> <id>enforce</id> <configuration> <rules> <dependencyconvergence /> </rules> </configuration> <goals> <goal>enforce</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> <encoding>utf-8</encoding> </configuration> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-source-plugin</artifactid> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-shade-plugin</artifactid> <version>1.6</version> <configuration> <createdependencyreducedpom>true</createdependencyreducedpom> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>meta-inf/*.sf</exclude> <exclude>meta-inf/*.dsa</exclude> <exclude>meta-inf/*.rsa</exclude> </excludes> </filter> </filters> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.servicesresourcetransformer" /> <transformer implementation="org.apache.maven.plugins.shade.resource.manifestresourcetransformer"> <mainclass>com.wenable.login.loginapplication</mainclass> </transformer> </transformers> </configuration> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-jar-plugin</artifactid> <version>2.4</version> <configuration> <archive> <manifest> <adddefaultimplementationentries>true</adddefaultimplementationentries> </manifest> </archive> </configuration> </plugin> </plugins> </build>
all of dropwizard dependencies using ${project.version}
instead of ${dropwizard.version}
. should this:
<dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-core</artifactid> <version>${dropwizard.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-auth</artifactid> <version>${dropwizard.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-assets</artifactid> <version>${project.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-spdy</artifactid> <version>${dropwizard.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-hibernate</artifactid> <version>${dropwizard.version}</version> </dependency> <dependency> <groupid>io.dropwizard</groupid> <artifactid>dropwizard-migrations</artifactid> <version>${dropwizard.version}</version> </dependency>
dropwizard
Comments
Post a Comment