AMPS 8.0.0 Can not run with atlas-run

Hi,
I updated my amps from 6.0 -> 8.0.0
I already fixed my pom.xml file

<build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>jira-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.version}</productDataVersion>
                    <enableQuickReload>true</enableQuickReload>
                    <enableFastdev>false</enableFastdev>
                    <applications>
                        <application>
                            <applicationKey>jira-software</applicationKey>
                            <version>${jira.version}</version>
                        </application>
                    </applications>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.tests</groupId>
                            <artifactId>jira-testkit-plugin</artifactId>
                            <version>${testkit.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <instructions>
                        <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                        <!-- Add package to export here -->
                        <Export-Package>com.mgmtp.jira.plugin.api,</Export-Package>
                        <!-- Add package import here -->
                        <Import-Package>com.atlassian.jira.plugin.webfragment.conditions, org.springframework.osgi.*;resolution:="optional", org.eclipse.gemini.blueprint.*;resolution:="optional", *</Import-Package>
                        <!-- Ensure plugin is spring powered -->
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <includeExclude>-com.atlassian.plugin.spring.scanner.annotation.*</includeExclude>
                    <scannedDependencies>
                        <dependency>
                            <groupId>com.atlassian.plugin</groupId>
                            <artifactId>atlassian-spring-scanner-external-jar</artifactId>
                        </dependency>
                    </scannedDependencies>
                    <verbose>false</verbose>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <goals>post-integration-test</goals>
                    <preparationGoals>package</preparationGoals>
                    <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
                    <remoteTagging>true</remoteTagging>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <properties>
        <jira.version>7.12.1</jira.version>
        <amps.version>8.0.0</amps.version>
        <ao.version>2.0.0</ao.version>
        <atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>
        <!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. -->
        <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
        <testkit.version>1000.1.14</testkit.version>
        <pageobject.version>7.12.1</pageobject.version>
        <jira.functest.basics.version>1.9.11</jira.functest.basics.version>
        <jira.functest.legacy.version>7.7.1</jira.functest.legacy.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

I try with atlas-clean, atlas-mvn clean install. It works
But somehow, when I try run by atlas-run , it has an error

[ERROR] Invalid Atlassian maven plugin(s) detected: jira-maven-plugin
[ERROR] Please update your plugin POM to use the old maven plugin name(s) for your product, or update to AMPS 8.0.0 or later
[ERROR] See go.atlassian.com/atlassdk-147 for more information

Many thanks,

It would seem that when you run an atlas command it points to your old AMPS version. Could you see what ‘atlas-version’ returns for you?

@jeffrey.peeters
When I run atlas-version, I got this

ATLAS Version: 8.0.7
ATLAS Home: /usr/local/Cellar/atlassian-plugin-sdk/8.0.7/libexec
ATLAS Scripts: /usr/local/Cellar/atlassian-plugin-sdk/8.0.7/libexec/bin
ATLAS Maven Home: /usr/local/Cellar/atlassian-plugin-sdk/8.0.7/libexec/apache-maven-3.5.4
AMPS Version: 8.0.0


Executing: /usr/local/Cellar/atlassian-plugin-sdk/8.0.7/libexec/apache-maven-3.5.4/bin/mvn --version -gs /usr/local/Cellar/atlassian-plugin-sdk/8.0.7/libexec/apache-maven-3.5.4/conf/settings.xml
Java HotSpot™ 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T01:33:14+07:00)
Maven home: /usr/local/Cellar/atlassian-plugin-sdk/8.0.7/libexec/apache-maven-3.5.4
Java version: 1.8.0_161, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre
Default locale: en_VN, platform encoding: UTF-8
OS name: “mac os x”, version: “10.13.6”, arch: “x86_64”, family: “mac”

Hi @tien.dang

with the new sdk 8.x.x

for jira 8.0+

    <properties>
        <jira.version>8.1.0</jira.version>
        <amps.version>8.0.0</amps.version>

atlas-run

for jira 7.x

     <properties>
         <jira.version>7.12.3</jira.version>
         <amps.version>6.3.21</amps.version>

atlas-run -u 6.3.21

2 Likes

Thank you, @yann . It saves my day.

1 Like

Hi everyone,

Has anyone encountered this kind of problem? Configuration as it follows:

	<properties>
			<jira.version>8.4.2</jira.version>
			<amps.version>8.0.2</amps.version>

And the following error occur:

[ERROR] Plugin com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:amps.version or one of its dependencies could not be resolved: Failure to find com.atlassian.maven.plugins:amps-dispatcher-maven-plugin:jar:amps.version in https://maven.atlassian.com/repository/public was cached in the local repository, resolution will not be reattempted until the update interval of atlassian-public has elapsed or updates are forced -> [Help 1]

Any ideas? Thank you in advance.

Kind Regards,
Philip