Skip to content

Commit

Permalink
修复maven的artifactId问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nl8590687 committed Nov 19, 2022
1 parent 73a3a63 commit 4dfaa57
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
2 changes: 1 addition & 1 deletion asrt_sdk_maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>net.ailemon.asrt</groupId>
<artifactId>asrt_sdk_maven</artifactId>
<artifactId>sdk</artifactId>
<version>1.0-alpha1</version>
<packaging>jar</packaging>

Expand Down
25 changes: 25 additions & 0 deletions asrt_webapp_demo/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<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>org.example</groupId>
<artifactId>asrt_webapp_demo</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>asrt_webapp_demo</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
13 changes: 13 additions & 0 deletions asrt_webapp_demo/src/main/java/net/ailemon/asrt/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package net.ailemon.asrt;

/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
38 changes: 38 additions & 0 deletions asrt_webapp_demo/src/test/java/net/ailemon/asrt/AppTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package net.ailemon.asrt;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}

/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}

/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}

0 comments on commit 4dfaa57

Please sign in to comment.