Good morning,
I'm following these steps to create a Jira plugin: https://developer.atlassian.com/server/framework/atlassian-sdk/create-a-helloworld-plugin-project/ but when I run "atlas-create-jira-plugin" I'm getting this error: "Execution null of goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate failed: A required class was missing while executing org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate: org/objectweb/asm/Opcodes"
I've checket my .m2/repository but here I have "C:\Users\eserretb.m2\repository\org\ow2\asm\asm\6.2.1\asm-6.2.1.jar".
Where can the problem be?
Thank you.
Regards.
I tried coying the content from "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\repository" to "C:\Users\user.m2\repository" but it does not work. Here is my settings.xml:
<settings>
<pluginGroups>
<pluginGroup>com.atlassian.maven.plugins</pluginGroup>
</pluginGroups>
<localRepository>C:\Users\eserretb\.m2\repository</localRepository>
<servers>
<server>
<id>HO</id>
<username>admin</username>
<password>acetato</password>
</server>
<server>
<id>Public Everis Repositories</id>
<username>admin</username>
<password>acetato</password>
</server>
<server>
<id>Public Repositories</id>
<username>admin</username>
<password>acetato</password>
</server>
<server>
<id>public</id>
<username>admin</username>
<password>acetato</password>
</server>
<server>
<id>nexus</id>
<username>admin</username>
<password>tpBC7AAS</password>
</server>
</servers>
<mirrors>
<mirror>
<id>nexus</id>
<mirrorOf>*,!sonar</mirrorOf>
<url>https://umane.everis.com/nexus/content/groups/everis.all/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>defaultProfile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<!--
Information on all Atlassian Maven repositories is available at
http://confluence.atlassian.com/display/DEVNET/Atlassian+Maven+Repositories.
-->
<repositories>
<repository>
<id>central</id>
<url>https://m2proxy.atlassian.com/repository/public</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
</releases>
</repository>
<repository>
<id>atlassian-m1-repository</id>
<url>https://m2proxy.atlassian.com/repository/m1/</url>
<releases>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>atlassian-m1</id>
<url>https://maven.atlassian.com/content/groups/m1/</url>
<releases>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>publicmaven</id>
<url>https://maven.atlassian.com/content/groups/public/</url>
<releases>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>atlassian-public</id>
<url>https://maven.atlassian.com/repository/public</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
<repository>
<id>atlassian-plugin-sdk</id>
<url>file://${env.ATLAS_HOME}/repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
<checksumPolicy>warn</checksumPolicy>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>https://maven.atlassian.com/content/groups/public/</url>
<releases>
<enabled>true</enabled>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
<properties>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<!--
If you have a Clover license, specify the filesystem path
to it here.
-->
<!--<clover.licenseLocation>/path/to/clover/license</clover.licenseLocation>-->
</properties>
</profile>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- SERVER ON A REMOTE HOST -->
<sonar.host.url>https://umane.everis.com/sonarqube</sonar.host.url>
<sonar.login>cfa812f98783e6d05589aafe087ca8db60c2b9bd</sonar.login>
</properties>
</profile>
</profiles>
</settings>
Related
I need an older version of Apache Commons Lang3 in Azure Artifacts. I need version 3.8.1 (last version that supports Java 7) but it's not listed. Is there a way to get Azure Artifacts to grab a specific version from Maven Central?
I ended up generating a new access token for the settings file and it worked. No where in the logs did it indicate there was an error connecting to the Artifacts feed. It just quietly rolled over to grab everything from Central.
Since the package is public, you just need at least one time to use, and then the package version will be listed in the artifact feed.
It is successfully to get the specific version package on my side:
How I achieve that:
POM.xml on my sideļ¼
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>111</version>
<name>demo</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<repositories>
<repository>
<id>BowmanCP</id>
<url>https://pkgs.dev.azure.com/BowmanCP/_packaging/BowmanCP/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>BowmanCP</id>
<url>https://pkgs.dev.azure.com/BowmanCP/_packaging/BowmanCP/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
</dependencies>
<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
The key is 3 part:
1, repositories part
<repositories>
<repository>
<id>BowmanCP</id>
<url>https://pkgs.dev.azure.com/BowmanCP/_packaging/BowmanCP/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
2, distributionManagement part
<distributionManagement>
<repository>
<id>BowmanCP</id>
<url>https://pkgs.dev.azure.com/BowmanCP/_packaging/BowmanCP/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</distributionManagement>
3, dependencies part
<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
</dependencies>
The previous 2 part comes from this place:
Push this Maven project to a repo in Azure DevOps, and then use below yml to install the package:
trigger:
- none
pool:
vmImage: ubuntu-latest
steps:
- task: MavenAuthenticate#0 # This step is changing the setting.xml in agent account.
inputs:
artifactsFeeds: 'BowmanCP'
- task: Maven#3 #This step will install the specific maven package mentioned in POM.xml,
inputs:
mavenPomFile: 'demo/pom.xml'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
mavenVersionOption: 'Default'
mavenOptions: '-Xmx3072m'
mavenAuthenticateFeed: true
effectivePomSkip: false
sonarQubeRunAnalysis: false
This is my repo structure:
You can refer to this official document:
https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/upstream-sources?view=azure-devops
I'm trying to setup remote development for my raspberry pi using eclipse.
https://docs.deistercloud.com/content/Technology.50/Internet%20of%20Things/Raspberry%20PI.2/Eclipse.4.xml?embedded=true
When I run my ant build all the Maven downloads default to using these repositories:
HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/maven/apache-maven/2.0.10/apache-maven-2.0.10.pom
I'm aware of the change to Maven that requires these downloads be from HTTPS sources and I've modified everywhere that I can think of to tell Maven to use the updated repositories to no avail. I included the below in my pom.xml:
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
I also followed all the steps here:
Requests to http://repo1.maven.org/maven2/ return a 501 HTTPS Required status and a body
No matter what, when I do the ant build, it forces downloads at the http location and fails.
Any advice?
The project is created in eclipse via new -> other -> maven -> org.apache.maven maven->quickstart
Trying to connect to mongodb docker container running on VirtualBox (as I have a windows setup). I'm making the connection using spring-boot project running on intellij on my Local Windows Machine.
Is there a configuration file in spring-boot I could use to specify host and port before attempting the connection to mongodb?
I already tried modifying application.properties (added ip for the VM that docker threw up initially - see docker console image) but it didn't work.
enter image description here
enter image description here
pom.xml entry:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.M7</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
Help appreciated.
As you can see in the picture at the end of this post only a few artifacts are available from the JBoss repository in Eclipse. But if you browse it online at https://repository.jboss.org/nexus/index.html#view-repositories;public-jboss~browsestorage there are hundreds. I have rebuilt and updated the index several times. I have checked "Full Index Enabled". I have changed the repository URL from https to http and back. I have searched the web of course but can't fix it. I'm not behind a proxy.
Here is some version information:
Ubuntu 10.10
Eclipse Indigo 3.7.2
Maven 3.0.4
The Maven central repository hosted at Apache is working fine, but the JBoss repository isn't. I have configured Maven with the settings.xml in my ~/.m2/ directory. Whenever I made changes, I have reloaded the settings.xml.
This is my settings.xml
<settings xmlns="http://maven.apache.org/settings/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>jboss-public-repository</id>
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-public-repository</activeProfile>
</activeProfiles>
</settings>
The Maven Repository Browser looks like this
Maven Repository Browser with very few artifacts in the JBoss repository
I have saved the configuration at the bottom in c:\users\username\.m2\settings.xml but pom.xml created as part of Maven Project in Eclipse is not picking up the values. The effective POM still has
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2</url>
</repository>
</repositories>
And what should be the http://ebr.springsource.com/respository equivalent of
<pluginRepositories>
<pluginRepository>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>Maven Plugin Repository</name>
<url>http://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>
settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
</repositories>
</settings>
you should add it to the home folder of the user who executes mvn command
By default your settings.xml is being looked up in:
The Maven install: $M2_HOME/conf/settings.xml
A user's install: ${user.home}/.m2/settings.xml